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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanJava rules for equals.getGraph()Get the graph for a graph term (N3 formula), otherwise die horriblyinthashCode()booleanAnswer true iff this node is concrete, meaning a node that is data in an RDF Graph.booleanAnswer 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, getLiteralBaseDirection, getLiteralDatatype, getLiteralDatatypeURI, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getName, getNameSpace, getTriple, getURI, hasURI, isBlank, isExt, isLiteral, isNodeTriple, isTripleTerm, isURI, isVariable, matches, sameTermAs, sameValueAs
-
Constructor Details
-
Node_Graph
-
-
Method Details
-
isNodeGraph
public boolean isNodeGraph()Description copied from class:NodeAnswer true iff this node is an "graph node" (N3 formula). This is not related to named graphs.- Overrides:
isNodeGraphin classNode
-
getGraph
Description copied from class:NodeGet the graph for a graph term (N3 formula), otherwise die horribly -
visitWith
Description copied from class:NodeVisit a Node and dispatch on it to the appropriate method from the NodeVisitorv. -
hashCode
public int hashCode() -
equals
Description copied from class:NodeJava 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:NodeAnswer true iff this node is concrete, meaning a node that is data in an RDF Graph.- Specified by:
isConcretein classNode
-
toString
Description copied from class:NodeAnswer a human-readable representation of this Node.
-