semtags
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.


Tag Information
Tag Classfr.inria.semtags.query.ForEachBufferedResultTag
TagExtraInfo ClassNone
Body Contentscriptless
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
querytruetruejava.lang.StringSPARQL query that will be stored into the session so that next times this tag (with this query) will be called, the query will not be evaluated again unless reset="true".
resettruefalsejava.lang.StringDefault to false. If true, enforce to send the query to the engine even if it was already cached ; used for refresh.
varStatusfalsetruejava.lang.StringVariable that will contain the loop status (count, index, first, last). See javax.servlet.jsp.jstl.core.LoopTagStatus
beginfalsetrueintThe starting index of the loop ; default is 0.
endfalsetrueintThe ending index of the loop.
stepfalsetrueintThe iteration's step ; default is 1.
enginefalsetruefr.inria.semtags.EngineWrapperThe engine instance to query ; default is "defaultEngineWrapper".

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.