com.hp.hpl.jena.sparql.core
Class Var
java.lang.Object
com.hp.hpl.jena.graph.Node
com.hp.hpl.jena.graph.Node_Fluid
com.hp.hpl.jena.graph.Node_Variable
com.hp.hpl.jena.sparql.core.Var
public class Var
- extends com.hp.hpl.jena.graph.Node_Variable
A SPARQL variable
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.Node_Variable |
com.hp.hpl.jena.graph.Node_Variable.VariableName |
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.Node |
com.hp.hpl.jena.graph.Node.NotLiteral |
Fields inherited from class com.hp.hpl.jena.graph.Node |
ANY, NULL |
Methods inherited from class com.hp.hpl.jena.graph.Node_Variable |
getName, isVariable, toString, variable, visitWith |
Methods inherited from class com.hp.hpl.jena.graph.Node_Fluid |
isConcrete |
Methods inherited from class com.hp.hpl.jena.graph.Node |
cache, create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createUncachedLiteral, createUncachedLiteral, createURI, createVariable, getBlankNodeId, getBlankNodeLabel, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getNameSpace, getType, getURI, hasURI, isBlank, isLiteral, isURI, matches, sameValueAs, toString, toString, toString |
ANON
public static Var ANON
alloc
public static Var alloc(String varName)
alloc
public static Var alloc(com.hp.hpl.jena.graph.Node_Variable v)
alloc
public static Var alloc(com.hp.hpl.jena.graph.Node v)
alloc
public static Var alloc(Var v)
alloc
public static Var alloc(ExprVar nv)
lookup
public static com.hp.hpl.jena.graph.Node lookup(Binding binding,
com.hp.hpl.jena.graph.Node node)
lookup
public static com.hp.hpl.jena.graph.Node lookup(Binding binding,
Var var)
asNode
public com.hp.hpl.jena.graph.Node asNode()
getVarName
public String getVarName()
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.hp.hpl.jena.graph.Node
equals
public boolean equals(Object other)
- Overrides:
equals
in class com.hp.hpl.jena.graph.Node_Variable
isNamedVar
public boolean isNamedVar()
isBlankNodeVar
public boolean isBlankNodeVar()
isAllocVar
public boolean isAllocVar()
isAnonVar
public boolean isAnonVar()
canonical
public static String canonical(String x)
isVar
public static boolean isVar(com.hp.hpl.jena.graph.Node node)
isNamedVar
public static boolean isNamedVar(com.hp.hpl.jena.graph.Node node)
isNamedVarName
public static boolean isNamedVarName(String x)
isBlankNodeVar
public static boolean isBlankNodeVar(com.hp.hpl.jena.graph.Node node)
isBlankNodeVarName
public static boolean isBlankNodeVarName(String x)
isAllocVar
public static boolean isAllocVar(com.hp.hpl.jena.graph.Node node)
isAllocVarName
public static boolean isAllocVarName(String x)
varList
public static List<Var> varList(Collection<String> varNames)
- Convert a collection of variable names to variables
isAnonVar
public static boolean isAnonVar(Var var)
varNames
public static List<String> varNames(Collection<Var> vars)
- Return a list of String names from a collection of variables
Licenced under the Apache License, Version 2.0