com.hp.hpl.jena.sparql.pfunction.library
Class strSplit
java.lang.Object
com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval
com.hp.hpl.jena.sparql.pfunction.PFuncSimpleAndList
com.hp.hpl.jena.sparql.pfunction.library.strSplit
- All Implemented Interfaces:
- PropertyFunction
public class strSplit
- extends PFuncSimpleAndList
Property function that requires the subject to be unbound, and 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. The subject
variable is bound for each result of the split, and each result has the
whitespace trimmed from it.
strSplit
public strSplit()
execEvaluated
public QueryIterator execEvaluated(Binding binding,
Node subject,
Node predicate,
PropFuncArg object,
ExecutionContext execCxt)
- Specified by:
execEvaluated in class PFuncSimpleAndList
- 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 if a bound variable in this bindingexecCxt - Execution context
- Returns:
- QueryIterator
Licenced under the Apache License, Version 2.0