Namespace jQuery
The jQuery Javascript toolkit.
Defined in: jquery.rdf.widgets.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
annotator(options)
Display an annotation box when any element inside of a certain element is shift+clicked.
|
|
checkbox(options)
Let the user edit a triple by selecting which value(s) it takes on from a set of checkboxes.
|
|
combobox(options)
Let the user edit a triple by selecting which single value it takes on from a combobox.
|
|
createinstance(options)
Create a form for creating new information about an as-yet undescribed object.
|
|
edit(options)
Draw a label that, when clicked twice, transforms into an editable text box for modifying a value in a triple.
|
|
image(options)
Search for a valid image depicting a given resource and display it.
|
|
instancedropdown(options)
Provide an autocomplete input that contains all instances of a given type.
|
|
instancelist(options)
Provide an list that contains all instances of a given type.
|
|
label(options)
Display a simple text label for a given resource or implied resource.
|
|
radio(options)
Let the user edit a triple by selecting which single value it takes on from a set of radio buttons.
|
|
<static> |
jQuery.rdfwidget(name, prototype)
Define a new widget for use in the library.
|
resource(options)
Display a table containing all of the properties of a given resource.
|
|
selecttable(options)
Perform a SPARQL SELECT query with a set of properties and display the results in a table.
|
|
Display a list of all sources currently in use by the widget library.
|
|
Serialize the entire local store as N3 and display it in a text box.
|
|
toolbar(options)
Display an image for each resource of a certain type in a toolbar layout.
|
|
tripleedit(options)
Draw a series of editable boxes for editing each term in a single triple.
|
|
triplelist(options)
Display the list of triples that match a given pattern.
|
Method Detail
annotator(options)
Display an annotation box when any element inside of a certain element is shift+clicked.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.displayElement Optional
- A valid jQuery constructor argument that determines where the annotations will be displayed when an item is selected. If not provided, the annotations will be displayed in a floating popup.
checkbox(options)
Let the user edit a triple by selecting which value(s) it takes on from a set of checkboxes.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {Array} options.choices Optional
- The set of Terms that are made available to choose from as checkboxes.
- {String | Object} options.subject Optional
- The subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
combobox(options)
Let the user edit a triple by selecting which single value it takes on from a combobox.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {Array} options.choices Optional
- The set of choices the user may choose from as dropdown items in a combo box.
- {String | Object} options.subject Optional
- The subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
createinstance(options)
Create a form for creating new information about an as-yet undescribed object.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {Object} options.properties Optional
- An array of create instance options. Each object must at least have a property field, which defines which predicate the form input will obtain an object for. More coming soon.
edit(options)
Draw a label that, when clicked twice, transforms into an editable text box for modifying a value in a triple.
- Parameters:
- {String | Object} options.subject Optional
- The resource to display an edit for OR if predicate or object is defined, the subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
- {Boolean} options.autocomplete Optional, Default: true
- If false, no autocomplete menu will be displayed when the user is editing.
- {Object} options Optional
- @see CommonOptions
image(options)
Search for a valid image depicting a given resource and display it. Currently, bases this search off of the foaf:depiction property, dbpedia img property, and their subproperties.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.subject Optional
- The resource to display an image of OR if predicate or object is defined, the subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
- {String | Number} options.width Optional
- The width, in pixels, that the image should be displayed with (height will be scaled).
- {String | Number} options.height Optional
- The height, in pixels, that the image should be displayed with (width will be scaled).
instancedropdown(options)
Provide an autocomplete input that contains all instances of a given type.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.type Optional
- If provided, only instances of the given type will be displayed in the dropdown. Otherwise, all instances in the local store are options.
instancelist(options)
Provide an list that contains all instances of a given type.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.type Optional
- The rdf:type to filter instances by.
label(options)
Display a simple text label for a given resource or implied resource.
- Parameters:
- {String | Object} options.subject Optional
- The resource to display a label for OR if predicate or object is defined, the subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
- {Boolean} options.showlinks Optional, Default: true
- If false, labels for Symbols will not contain hyperlinks.
- {Boolean} options.selectable Optional, Default: true
- If false, the item will not be selectable and will not fire the rdfselect event.
- {Object} options Optional
- @see CommonOptions
radio(options)
Let the user edit a triple by selecting which single value it takes on from a set of radio buttons.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {Array} options.choices Optional
- The set of choices the user may choose from as a set of radio buttons.
- {String | Object} options.subject Optional
- The subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
<static>
jQuery.rdfwidget(name, prototype)
Define a new widget for use in the library.
- Parameters:
- {String} name
- the namespaced name of the widget, eg. ui.mywidgetname
- {Object} prototype
- the prototype class of the new widget.
resource(options)
Display a table containing all of the properties of a given resource.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.subject Optional
- the URI of the resource to be described.
selecttable(options)
Perform a SPARQL SELECT query with a set of properties and display the results in a table.
- Parameters:
- {String | Object} options.type Optional
- If specified, the required rdf:type of each result in the list.
- {Array} options.properties Optional
- If specified, the set of properties to be SELECTed for.
- {Array} options.requireall Optional, Default: true
- If false, matches that bind at least one item in options.properties will be displayed.
- {Object} options Optional
- @see CommonOptions
sourcelist()
Display a list of all sources currently in use by the widget library.
sourceview()
Serialize the entire local store as N3 and display it in a text box.
toolbar(options)
Display an image for each resource of a certain type in a toolbar layout.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.type Optional
- The rdf:type that should be used to decide which resources will appear in the toolbar.
tripleedit(options)
Draw a series of editable boxes for editing each term in a single triple.
- Parameters:
- {String | Object} options.subject Optional
- The subject of a statement to be matched.
- {String | Object} options.predicate Optional
- The predicate of a statement to be matched.
- {String | Object} options.object Optional
- The object of a statement to be matched.
- {Boolean} options.autocomplete Optional, Default: true
- If false, no autocomplete menu will be displayed.
- {Object} options Optional
- @see CommonOptions
triplelist(options)
Display the list of triples that match a given pattern.
- Parameters:
- {Object} options Optional
- @see CommonOptions
- {String | Object} options.subject Optional
- The subject of the statements to be matched.
- {String | Object} options.predicate Optional
- The predicate of the statements to be matched.
- {String | Object} options.object Optional
- The object of the statements to be matched.
- {String | Object} options.filterduplicates Optional, Default: false
- Remove duplicate statements from multiple different data sources.