Package org.apache.jena.graph
Class Node_Graph
- java.lang.Object
-
- org.apache.jena.graph.Node
-
- org.apache.jena.graph.Node_Graph
-
- All Implemented Interfaces:
java.io.Serializable
public class Node_Graph extends Node
RDF Graphs as RDF terms.Beware that equality and hashCode are defined by object identity, not graph same-triples nor isomorphism.
For experimentation. Otherwise, unsupported.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
-
Constructor Summary
Constructors Constructor Description Node_Graph(Graph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Nodes only equal other Nodes that have equal labels.Graph
getGraph()
Get the graph for a graph term (N3 formula), otherwise die horriblyint
hashCode()
boolean
isConcrete()
Answer true iff this node is concrete, ie not variable, ie URI, blank, or literal.boolean
isNodeGraph()
Answer true iff this node is an "graph node" (N3 formula).java.lang.Object
visitWith(NodeVisitor v)
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
.-
Methods inherited from class org.apache.jena.graph.Node
getBlankNodeId, getBlankNodeLabel, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getName, getNameSpace, getTriple, getURI, hasURI, isBlank, isLiteral, isNodeTriple, isURI, isVariable, matches, sameValueAs, toString, toString, toString, toString
-
-
-
-
Constructor Detail
-
Node_Graph
public Node_Graph(Graph graph)
-
-
Method Detail
-
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
public Graph getGraph()
Description copied from class:Node
Get the graph for a graph term (N3 formula), otherwise die horribly
-
visitWith
public java.lang.Object visitWith(NodeVisitor v)
Description copied from class:Node
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
.
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:Node
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, ie not variable, ie URI, blank, or literal.- Specified by:
isConcrete
in classNode
-
-