com.hp.hpl.jena.sparql.pfunction
Class PropFuncArg
java.lang.Object
com.hp.hpl.jena.sparql.util.PrintSerializableBase
com.hp.hpl.jena.sparql.pfunction.PropFuncArg
- All Implemented Interfaces:
- PrintSerializable, Printable
public class PropFuncArg
- extends PrintSerializableBase
Class representing an argument (subject or object position) of a property function.
Such an argument can be a graph node (variable, IRI, literal).
Blank nodes from the query will be seen as variables. Most implementations will want to
work with the property function arguments after substitution from the current binding.
PropFuncArg
public PropFuncArg(List<com.hp.hpl.jena.graph.Node> argList,
com.hp.hpl.jena.graph.Node arg)
PropFuncArg
public PropFuncArg(List<com.hp.hpl.jena.graph.Node> argList)
PropFuncArg
public PropFuncArg(com.hp.hpl.jena.graph.Node arg)
getArg
public com.hp.hpl.jena.graph.Node getArg()
getArgList
public List<com.hp.hpl.jena.graph.Node> getArgList()
getArgListSize
public int getArgListSize()
getArg
public com.hp.hpl.jena.graph.Node getArg(int index)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
isList
public boolean isList()
isNode
public boolean isNode()
asExprList
public ExprList asExprList(PropFuncArg pfArg)
output
public void output(IndentedWriter out,
SerializationContext sCxt)
evalIfExists
@Deprecated
public PropFuncArg evalIfExists(Binding binding)
- Deprecated. Use
Substitute.substitute(PropFuncArg, Binding)
- Create a new PropFuncArg by replacing any variables by their values given in the binding.
If there is no binding, keep the variable.
- Parameters:
binding
-
- Returns:
- A PropFuncArg with any varibales substituted by values in the binding
Licenced under the Apache License, Version 2.0