Class ITER_Split
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.iterator.IteratorFunctionBase2
fr.mines_stetienne.ci.sparql_generate.iterator.library.ITER_Split
- All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction
public class ITER_Split
extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase2
Iterator function
iter:Split
iterates over the array of strings resulting from spliting the input string
around matches of the given regular expression.
- Param 1: (input) is the input string;
- Param 2: (regex) is a regular expression;
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase2
checkBuild, exec
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_Split
public ITER_Split()
-
-
Method Details
-
exec
public List<List<org.apache.jena.sparql.expr.NodeValue>> exec(org.apache.jena.sparql.expr.NodeValue stringValue, org.apache.jena.sparql.expr.NodeValue delimeterValue)- Specified by:
exec
in classfr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase2
- Parameters:
stringValue
- a RDF Literal with datatypexsd:string
representing the source stringdelimeterValue
- a RDF Literal with datatypexsd:string
representing the delimeter which can be regular expression- Returns:
- a list of RDF Literal with datatype
xsd:string
-