java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Graph
- All Implemented Interfaces:
Serializable
RDF Graphs as RDF terms.
Beware that equality and hashCode are defined by object identity, not graph same-triples nor isomorphism due to the costs.
For experimentation.
Otherwise, unsupported.
- 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Java rules for equals.getGraph()
Get the graph for a graph term (N3 formula), 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 an "graph node" (N3 formula).toString()
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, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralLanguage, getLiteralLexicalForm, getLiteralTextDirection, getLiteralValue, getLocalName, getName, getNameSpace, getTriple, getURI, hasURI, isBlank, isExt, isLiteral, isNodeTriple, isURI, isVariable, matches, sameTermAs, sameValueAs
-
Constructor Details
-
Node_Graph
-
-
Method Details
-
isNodeGraph
public boolean isNodeGraph()Description copied from class:Node
Answer true iff this node is an "graph node" (N3 formula). This is not related to named graphs.- Overrides:
isNodeGraph
in classNode
-
getGraph
Description copied from class:Node
Get the graph for a graph term (N3 formula), otherwise die horribly -
visitWith
Description copied from class:Node
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
. -
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. -
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
-
toString
Description copied from class:Node
Answer a human-readable representation of this Node.
-