Queries an OWL document loaded with jOWL.load for an OntologyObject with reference equal to 'resource'. Returns a kind of jOWL Ontology Object. Example:
jOWL("wine");
Initializes/resets jOWL with an OWL-RDFS document.
jOWL.load("path", function(){
declare all your logic inside this function
}, options);
initialize jOWL with an existing OWL DOM document. Most users will have no need for this function. See jOWL.load instead.
Returns a String representation of the OWL-RDFS document.
Without arguments this function will parse the current url and see if any parameters are defined, returns a JOWL object. With argument it will return a string that identifies the potential permalink for the given entry.
Ontology Elements
jOWL('someclass').description({split: true});
jOWL('someclass').label();
jOWL('someclass').bind($('.someClass'));
jOWL javascript equivalent to an owl:Class
Documentation in progress.
Documentation in progress.
Documentation in progress.
Documentation in progress.
Documentation in progress.
All user interface components can be re-styled, but for some basic css see the jOWL_xx.css file. All user interface components share 3 important functions:
var navbar = $('someelement').owl_navbar();
var tree = $('someelement').owl_treeview();
tree.addListener(navbar);
Uses jQuery syntax. Only accepts owl:Class entries. Example:
$('someelement').owl_navbar();
Uses jQuery syntax. Only accepts owl:Class entries. Example:
$('someelement').owl_treeview();
Uses jQuery syntax. Should be bound to an 'input' html element of the type 'text'. Example:
$('someinputelement').owl_autocomplete();
function(listitem, type, identifier, termarray){
//listitem = jQuery element wrapped around the Uses jQuery syntax. Only responds to owl:Class entries, shows matching owl:Thing's. Example:
$('someinputelement').owl_individuals();
Uses jQuery syntax. Example:
$('someinputelement').owl_custom(function(jOWLObject, element){
//define logic here
});
custom function: Argument 'jOWLObject' corresponds to the jOWLObject that fired up this component as a consequence of a selection event. Argument 'element' correspond to the jQuery element that wraps this component. For a better example of usage, see source of this page.
This jOWL view is generated a little different than seen in the other demo's. Instead of loading an external OWL-DL file, all OWL syntax is stored in the HTML itself by means of RDFa. Upon pageload jOWL extracts / generates an OWL-DL file from the RDFa which is then visualised with the usual functions.