com.hp.hpl.jena.sparql.pfunction.library
Class str

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.library.str
All Implemented Interfaces:
PropertyFunction

public class str
extends PFuncSimple

Property function to turn an RDF term (but not a blank node) into a string

      ?x :str "foo"@en
      


Constructor Summary
str()
           
 
Method Summary
 void build(PropFuncArg argSubject, Node predicate, PropFuncArg argObject, ExecutionContext execCxt)
          Called during query plan construction immediately after the construction of the property function instance.
 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
exec
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

str

public str()
Method Detail

build

public void build(PropFuncArg argSubject,
                  Node predicate,
                  PropFuncArg argObject,
                  ExecutionContext execCxt)
Description copied from interface: PropertyFunction
Called during query plan construction immediately after the construction of the property function instance.

Specified by:
build in interface PropertyFunction
Overrides:
build in class PropertyFunctionBase
Parameters:
argSubject - The parsed argument(s) in the subject position
predicate - The extension URI (as a Node).
argObject - The parsed argument(s) in the object position
execCxt - Execution context

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


Licenced under the Apache License, Version 2.0