Class strSplit
- java.lang.Object
-
- org.apache.jena.sparql.pfunction.PropertyFunctionBase
-
- org.apache.jena.sparql.pfunction.PropertyFunctionEval
-
- org.apache.jena.sparql.pfunction.PFuncSimpleAndList
-
- org.apache.jena.sparql.pfunction.library.strSplit
-
- All Implemented Interfaces:
PropertyFunction
public class strSplit extends PFuncSimpleAndList
Property function that requires the object to contain a list of two items, the first of which is a string to be split, and the second is a regular expression denoting the split point. If the subject is an unbound variable, it is bound for each result of the split, and each result has the whitespace trimmed from it. If the subject is not an unbound variable, then the property function will match if and only if the subject is one of the split results.
-
-
Constructor Summary
Constructors Constructor Description strSplit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(PropFuncArg argSubject, Node predicate, PropFuncArg argObject, ExecutionContext execCxt)Called during query plan construction immediately after the construction of the property function instance.QueryIteratorexecEvaluated(Binding binding, Node subject, Node predicate, PropFuncArg object, ExecutionContext execCxt)-
Methods inherited from class org.apache.jena.sparql.pfunction.PFuncSimpleAndList
execEvaluated
-
Methods inherited from class org.apache.jena.sparql.pfunction.PropertyFunctionEval
exec
-
Methods inherited from class org.apache.jena.sparql.pfunction.PropertyFunctionBase
exec
-
-
-
-
Method Detail
-
build
public void build(PropFuncArg argSubject, Node predicate, PropFuncArg argObject, ExecutionContext execCxt)
Description copied from interface:PropertyFunctionCalled during query plan construction immediately after the construction of the property function instance.- Specified by:
buildin interfacePropertyFunction- Overrides:
buildin classPropertyFunctionBase- Parameters:
argSubject- The parsed argument(s) in the subject positionpredicate- The extension URI (as a Node).argObject- The parsed argument(s) in the object positionexecCxt- Execution context
-
execEvaluated
public QueryIterator execEvaluated(Binding binding, Node subject, Node predicate, PropFuncArg object, ExecutionContext execCxt)
- Specified by:
execEvaluatedin classPFuncSimpleAndList- Parameters:
binding- Current solution from previous query stagesubject- Node in subject slot, after substitution if a bound variable in this bindingpredicate- This predicateobject- List in object slot, after substitution of any bound variables in this bindingexecCxt- Execution context- Returns:
- QueryIterator
-
-