com.hp.hpl.jena.sparql.pfunction
Class PFuncAssignToObject
java.lang.Object
com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval
com.hp.hpl.jena.sparql.pfunction.PFuncSimple
com.hp.hpl.jena.sparql.pfunction.PFuncAssignToObject
- All Implemented Interfaces:
- PropertyFunction
public abstract class PFuncAssignToObject
- extends PFuncSimple
Common case: take a node (subject) and
calculate something else, assign it to a
variable (object)
Method Summary |
abstract com.hp.hpl.jena.graph.Node |
calc(com.hp.hpl.jena.graph.Node node)
|
QueryIterator |
execEvaluated(Binding binding,
com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.graph.Node predicate,
com.hp.hpl.jena.graph.Node object,
ExecutionContext execCxt)
|
PFuncAssignToObject
public PFuncAssignToObject()
execEvaluated
public QueryIterator execEvaluated(Binding binding,
com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.graph.Node predicate,
com.hp.hpl.jena.graph.Node object,
ExecutionContext execCxt)
- Specified by:
execEvaluated
in class PFuncSimple
- Parameters:
binding
- Current solution from previous query stagesubject
- Node in subject slot, after substitution if a bound variable in this bindingpredicate
- This predicateobject
- Node in object slot, after substitution if a bound variable in this bindingexecCxt
- Execution context
- Returns:
- QueryIterator
calc
public abstract com.hp.hpl.jena.graph.Node calc(com.hp.hpl.jena.graph.Node node)
Licenced under the Apache License, Version 2.0