Tag Summary |
init | To create and initialize the engine. You can add attributes to declare namespaces used in your SPARQL queries in the form prefix="namespace" e.g. dc="http://purl.org/dc/elements/1.1/" This tag must be called before any other calls to the SPARQL engine is made. If no engine variable is specified, the default variable "defaultEngineWrapper" is used. NB: to delete an engine, use the remove tag of the JSTL. |
reload | To re-initialize the engine reusing the parameters specified at initialization. NB: to delete an engine, use the remove tag of the JSTL. |
send-query | To send a SPARQL query to the engine and include the result directly in the current page. The query is specified either in attribute "query" or in the body of the tag. Namespaces declared at initialization may be used directly with out PREFIX declaration. |
store-result | To store the result of a SPARQL query into the context or write it in an xml external file. The query is specified either in attribute "query" or in the body of the tag. Namespaces declared at initialization may be used directly with out PREFIX declaration. |
for-each-result | A convenient loop tag to directly iterate over the results of a SPARQL query. Variables appearing in the SELECT clause are created and updated in the JSP context for each iteration e.g. SELECT ?name ?age { ... } means ${name} and ${age} can be used directly in the body of the tag. |
for-each-buffered-result | A convenient loop tag to directly iterate over the results of a SPARQL query. The result is buffered and if the tag is called again with the same query and reset="false", previous results are reused to save time. This can be useful for instance for paginated results. Variables appearing in the SELECT clause are created and updated in the JSP context for each iteration e.g. SELECT ?name ?age { ... } means ${name} and ${age} can be used directly in the body of the tag. |
if | To use a SPARQL query as test for a conditional statement IF-THEN. |
choose | To use a SPARQL query as test for a conditional statement CHOOSE-WHEN-OTHERWISE. |
when | To evaluate if and only if a condition is true. Used within choose tag. |
otherwise | To evaluate if and only if all other conditions are false. Used within choose tag. |
for-each-label | To iterate over the list of (rdfs) labels of a resource (class or property). |
for-each-comment | To iterate over the list of (rdfs) comments of a resource (class or property). |
for-each-child | To iterate over the list of direct children (rdfs:subXXX) of a resource (class or property). |
for-each-parent | To iterate over the list of direct parents (rdfs:subXXX) of a resource (class or property). |
for-each-root-concept | To iterate over the list of root classes of the loaded ontologies. |
for-each-root-property | To iterate over the list of root properties of the loaded ontologies. |
select | Generate select XHTML tag for each child (rdfs:subXXX) of a resource (class or property). |
input-list | Generate input checkbox or radio tags XHTML tag for each child (rdfs:subXXX) of a resource (class or property). |
create-annot | To create a new annotation file (e.g. "book.rdf") with its content. |
remove-annot | To remove an annotation file (e.g. "book.rdf") and its content. |
modify-annot | To modify an annotation file by re-writing one or more parts identified by an XPath e.g. xpath="//*[child::dc:title='the thing']". You can add attributes to declare namespaces used in the XPath expression in the form prefix="namespace" e.g. dc="http://purl.org/dc/elements/1.1/". |
create-rule | To create a new rule file. |
modify-rule | To modify a rule file by updating its condition and/or its conclusion. |
remove-rule | To remove a rule file. |
create-ontology | To create a new empty ontology file. |
modify-ontology | To modify an ontology file by re-writing the ontology modified part. |
remove-ontology | To remove an ontology file. |
create-concept | To create a new formatted basic concept. |
create-property | To create a new formatted basic property. |
create-notion | To create a new custom concept or property. |
remove-concept | To remove a concept (and optionally replace it by a substitute). All ontologies and annotations will be updated. |
remove-property | To remove a property (and optionally replace it by a substitute). All ontologies and annotations will be updated. |
modify-concept | To modify a concept. |
modify-property | To modify a concept. |
merge-concepts | To merge two concepts. The URI of the new merged concept will be uri1. All ontologies and annotations will be updated. |
merge-properties | To merge two properties. The URI of the new merged property will be uri1. All ontologies and annotations will be updated. |
Function Summary |
java.lang.String | validateQuery( javax.servlet.jsp.PageContext, java.lang.String) | To validate a query or a set of triples. Arguments are : the SPARQL query. Default engine instance is used. Because of '}' in SPARQL query, the query must be set as a variable before. |
java.lang.String | detailedValidateQuery( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | To validate a query or a set of triples. Arguments are : the SPARQL query. The specified engine instance is used. Default engine instance is used. Because of '}' in SPARQL query, the query must be set as a variable before. |
java.lang.String | quickQuery( javax.servlet.jsp.PageContext, java.lang.String) | To get the first result of the first binding of a query. Arguments are : the SPARQL query. Default engine instance is used. |
java.lang.String | detailedQuickQuery( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | To get the first result of the first binding of a query. Arguments are : the SPARQL query. The specified engine instance is used. |
java.lang.String | label( javax.servlet.jsp.PageContext, java.lang.String, java.lang.String, boolean) | To display label(s) of a notion. Arguments are : notion's URI, language, all labels or one only. |
java.lang.String | detailedLabel( javax.servlet.jsp.PageContext, java.lang.String, java.lang.String, boolean, fr.inria.semtags.EngineWrapper) | To display a label of a notion. Arguments are : notion's URI, language, all labels or one only, and the engine instance to use. |
java.lang.String | comment( javax.servlet.jsp.PageContext, java.lang.String, java.lang.String, boolean) | To display a comment of a notion. Arguments are : notion's URI, language, all comments or one only. |
java.lang.String | detailedComment( javax.servlet.jsp.PageContext, java.lang.String, java.lang.String, boolean, fr.inria.semtags.EngineWrapper) | To display a comment of a notion. Arguments are : notion's URI, language, all comments or one only, and the engine instance to use. |
int | instanceNb( javax.servlet.jsp.PageContext, java.lang.String) | To display the number of direct instances of a concept. Arguments are : concept's URI. |
int | detailedInstanceNb( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | To display the number of direct instances of a concept. Arguments are : concept's URI, and the engine instance to use. |
int | allInstanceNb( javax.servlet.jsp.PageContext, java.lang.String) | To display the number of instances of a concept or its descendants. Arguments are : concept's URI. |
int | detailedAllInstanceNb( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | To display the number of instances of a concept or its descendants. Arguments are : concept's URI, and the engine instance to use. |
java.lang.String | file( javax.servlet.jsp.PageContext, java.lang.String) | Return the relative file's name where the specified URI is defined. |
java.lang.String | detailedFile( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | Return the relative file's name where the specified URI is defined. Arguments are : concept's or property's URI and the engine instance to use. |
java.util.List | sources( javax.servlet.jsp.PageContext, java.lang.String) | Returns the sources URIs as a list where the specified SPARQL pattern is defined. |
java.util.List | detailedSources( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | Returns the sources URIs as a list where the specified SPARQL pattern is defined. Arguments are : pattern and the engine instance to use. |
boolean | isConcept( javax.servlet.jsp.PageContext, java.lang.String) | Return true if the specified URI is a concept, false otherwise. |
java.lang.String | detailedIsConcept( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | Return true if the specified URI is a concept, false otherwise. Arguments are : an URI and the engine instance to use. |
boolean | isProperty( javax.servlet.jsp.PageContext, java.lang.String) | Return true if the specified URI is a property, false otherwise. |
java.lang.String | detailedIsProperty( javax.servlet.jsp.PageContext, java.lang.String, fr.inria.semtags.EngineWrapper) | Return true if the specified URI is a property, false otherwise. Arguments are : an URI and the engine instance to use. |
java.lang.String | today( java.lang.String) | Display today's date. Arguments are : the locale for formatting display date. |
java.lang.String | customToday( java.lang.String) | Display today's date. Arguments are : the pattern for formatting display date. |
java.lang.String | generateID( ) | Generate an ID. |
java.lang.String | encode( java.lang.String) | No Description |
java.lang.String | decode( java.lang.String) | No Description |
java.lang.String | namespace( java.lang.String) | Return the namespace of the specified URI. |
java.lang.String | id( java.lang.String) | Return the ID (without the namespace) of the specified URI. |