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
Fields inherited from class org.apache.jena.graph.Node
ANY, noLangTag, noTextDirection
-
Method Summary
Modifier and TypeMethodDescriptionstatic Var
static Var
alloc
(org.apache.jena.graph.Node v) static Var
alloc
(org.apache.jena.graph.Node_Variable v) static Var
static Var
static String
final boolean
final int
hashCode()
boolean
static boolean
isAllocVar
(org.apache.jena.graph.Node node) static boolean
boolean
static boolean
boolean
static boolean
isBlankNodeVar
(org.apache.jena.graph.Node node) static boolean
boolean
static boolean
isNamedVar
(org.apache.jena.graph.Node node) static boolean
static boolean
static boolean
isRenamedVar
(org.apache.jena.graph.Node node) static boolean
isVar
(org.apache.jena.graph.Node node) static org.apache.jena.graph.Node
Return the value of the access function or node itself.static org.apache.jena.graph.Node
Return the value of the access function or var itself.static org.apache.jena.graph.Node
Return the value in the binding (if node is a Var) or the node itself.static org.apache.jena.graph.Node
Return 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, visitWith
Methods inherited from class org.apache.jena.graph.Node
getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralLanguage, getLiteralLexicalForm, getLiteralTextDirection, getLiteralValue, getLocalName, getNameSpace, getTriple, getURI, hasURI, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, 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:
hashCode
in classorg.apache.jena.graph.Node_Variable
-
equals
- Overrides:
equals
in 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
-