java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Variable
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Node_RuleVariable
"variable" nodes; these are outside the RDF specification
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
Field Summary
Fields inherited from class org.apache.jena.graph.Node
ANY, noLangTag, noTextDirection
-
Constructor Summary
ConstructorDescriptionNode_Variable
(String name) Initialise this Node_Variable from a stringname
, which becomes wrapped in a VariableName. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Java rules for equals.getName()
get a variable nodes name, otherwise die horriblyint
hashCode()
boolean
Answer true iff this node is concrete, meaning a node that is data in an RDF Graph.boolean
Answer true iff this node is a variable node - subclasses overridetoString()
Answer a human-readable representation of this Node.toString
(PrefixMapping pmap) Answer a human-readable representation of the Node.Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
.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
-
Constructor Details
-
Node_Variable
Initialise this Node_Variable from a stringname
, which becomes wrapped in a VariableName.
-
-
Method Details
-
isConcrete
public boolean isConcrete()Description copied from class:Node
Answer true iff this node is concrete, meaning a node that is data in an RDF Graph.- Specified by:
isConcrete
in classNode
-
getName
Description copied from class:Node
get a variable nodes name, otherwise die horribly -
visitWith
Description copied from class:Node
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
. -
isVariable
public boolean isVariable()Description copied from class:Node
Answer true iff this node is a variable node - subclasses override- Overrides:
isVariable
in classNode
-
hashCode
public int hashCode() -
equals
Description copied from class:Node
Java rules for equals. See also {#sameTermAs} and {#sameValueAs} Nodes only equal other Nodes that have equal labels. -
toString
Description copied from class:Node
Answer a human-readable representation of this Node.
-