com.hp.hpl.jena.sparql.pfunction
Class PFuncAssignToObject

java.lang.Object
  extended by com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
      extended by com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval
          extended by com.hp.hpl.jena.sparql.pfunction.PFuncSimple
              extended by 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)


Constructor Summary
PFuncAssignToObject()
           
 
Method Summary
abstract  Node calc(Node node)
           
 QueryIterator execEvaluated(Binding binding, Node subject, Node predicate, Node object, ExecutionContext execCxt)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.pfunction.PFuncSimple
execEvaluated
 
Methods inherited from class com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval
exec
 
Methods inherited from class com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
build, exec
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PFuncAssignToObject

public PFuncAssignToObject()
Method Detail

execEvaluated

public QueryIterator execEvaluated(Binding binding,
                                   Node subject,
                                   Node predicate,
                                   Node object,
                                   ExecutionContext execCxt)
Specified by:
execEvaluated in class PFuncSimple
Parameters:
binding - Current solution from previous query stage
subject - Node in subject slot, after substitution if a bound variable in this binding
predicate - This predicate
object - Node in object slot, after substitution if a bound variable in this binding
execCxt - Execution context
Returns:
QueryIterator

calc

public abstract Node calc(Node node)


Licenced under the Apache License, Version 2.0