java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Variable
org.apache.jena.sparql.core.Var
- All Implemented Interfaces:
Serializable
public class Var
extends org.apache.jena.graph.Node_Variable
A SPARQL variable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
org.apache.jena.graph.Node.NotLiteral -
Field Summary
FieldsFields inherited from class org.apache.jena.graph.Node
ANY, noLangTag, noTextDirection -
Method Summary
Modifier and TypeMethodDescriptionstatic Varstatic Varalloc(org.apache.jena.graph.Node v) static Varalloc(org.apache.jena.graph.Node_Variable v) static Varstatic Varstatic Stringfinal booleanfinal inthashCode()booleanstatic booleanisAllocVar(org.apache.jena.graph.Node node) static booleanbooleanstatic booleanbooleanstatic booleanisBlankNodeVar(org.apache.jena.graph.Node node) static booleanbooleanstatic booleanisNamedVar(org.apache.jena.graph.Node node) static booleanstatic booleanstatic booleanisRenamedVar(org.apache.jena.graph.Node node) static booleanisVar(org.apache.jena.graph.Node node) static org.apache.jena.graph.NodeReturn the value of the access function or node itself.static org.apache.jena.graph.NodeReturn the value of the access function or var itself.static org.apache.jena.graph.NodeReturn the value in the binding (if node is a Var) or the node itself.static org.apache.jena.graph.NodeReturn the value in the binding or the variable itself.varList(Collection<String> varNames) Convert a collection of variable names to variablesvarNames(Collection<Var> vars) Return a list of String names from a collection of variablesMethods inherited from class org.apache.jena.graph.Node_Variable
getName, isConcrete, isVariable, toString, toString, visitWithMethods inherited from class org.apache.jena.graph.Node
getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralBaseDirection, getLiteralDatatype, getLiteralDatatypeURI, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getNameSpace, getTriple, getURI, hasURI, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, isTripleTerm, isURI, matches, sameTermAs, sameValueAs
-
Field Details
-
ANON
-
-
Method Details
-
alloc
-
alloc
-
alloc
-
alloc
-
alloc
-
lookup
Return the value in the binding (if node is a Var) or the node itself. -
lookup
Return the value in the binding or the variable itself. -
lookup
public static org.apache.jena.graph.Node lookup(Function<Var, org.apache.jena.graph.Node> access, org.apache.jena.graph.Node node) Return the value of the access function or node itself. -
lookup
public static org.apache.jena.graph.Node lookup(Function<Var, org.apache.jena.graph.Node> access, Var var) Return the value of the access function or var itself. -
getVarName
-
hashCode
public final int hashCode()- Overrides:
hashCodein classorg.apache.jena.graph.Node_Variable
-
equals
- Overrides:
equalsin classorg.apache.jena.graph.Node_Variable
-
isNamedVar
public boolean isNamedVar() -
isBlankNodeVar
public boolean isBlankNodeVar() -
isAllocVar
public boolean isAllocVar() -
isAnonVar
public boolean isAnonVar() -
canonical
-
isVar
public static boolean isVar(org.apache.jena.graph.Node node) -
isRenamedVar
public static boolean isRenamedVar(org.apache.jena.graph.Node node) -
isRenamedVar
-
isNamedVar
public static boolean isNamedVar(org.apache.jena.graph.Node node) -
isNamedVarName
-
isBlankNodeVar
public static boolean isBlankNodeVar(org.apache.jena.graph.Node node) -
isBlankNodeVarName
-
isAllocVar
public static boolean isAllocVar(org.apache.jena.graph.Node node) -
isAllocVarName
-
varList
Convert a collection of variable names to variables -
isAnonVar
-
varNames
Return a list of String names from a collection of variables
-