Class ITER_XPath
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
fr.mines_stetienne.ci.sparql_generate.xml.ITER_XPath
- All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction
public class ITER_XPath
extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
Iterator function
iter:XPath
extracts parts of a XML document, using XPath queries.
See Live example
- Param 1: (xml): the URI of the XML document (a URI), or the XML document itself (a String);
- Param 2: (xPath) the XPath query;
- Param 3 .. N : (auxXPath ... ) other XPath queries, which will be executed over the results of the execution of xPath, and provide one result each.
- Output 1: (literal) matched XML element, encoded as a boolean, float, double, integer, string, as it best fits;
- Output 2 .. N-1: (string) result of the execution of the auxiliary XPath queries on Output 1, encoded as a boolean, float, double, integer, string, as it best fits;
- Output N: (integer) the position of the result in the list;
- Output N+1: (boolean) true if this result has a next result in the list.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
exec
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
build, exec, getContext
-
Field Details
-
URI
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ITER_XPath
public ITER_XPath()
-
-
Method Details
-
exec
public List<List<org.apache.jena.sparql.expr.NodeValue>> exec(List<org.apache.jena.sparql.expr.NodeValue> args)- Specified by:
exec
in classfr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
-
checkBuild
public void checkBuild(org.apache.jena.sparql.expr.ExprList args)- Specified by:
checkBuild
in classfr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
-