Class Node_Graph

java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Graph
All Implemented Interfaces:
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 due to the costs.

For experimentation.
Otherwise, unsupported.

See Also:
  • Constructor Details

    • Node_Graph

      public Node_Graph(Graph 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 class Node
    • getGraph

      public Graph getGraph()
      Description copied from class: Node
      Get the graph for a graph term (N3 formula), otherwise die horribly
      Overrides:
      getGraph in class Node
    • visitWith

      public Object visitWith(NodeVisitor v)
      Description copied from class: Node
      Visit a Node and dispatch on it to the appropriate method from the NodeVisitor v.
      Specified by:
      visitWith in class Node
      Parameters:
      v - the visitor to apply to the node
      Returns:
      the value returned by the applied method
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Node
    • equals

      public boolean equals(Object o)
      Description copied from class: Node
      Java rules for equals. See also {#sameTermAs} and {#sameValueAs} Nodes only equal other Nodes that have equal labels.
      Specified by:
      equals in class Node
    • 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 class Node
    • toString

      public String toString(PrefixMapping pmap)
      Description copied from class: Node
      Answer a human-readable representation of the Node. For URIs, abbreviate URI. For literals, quoting literals and abbreviating datatype URI.
      Specified by:
      toString in class Node
    • toString

      public String toString()
      Description copied from class: Node
      Answer a human-readable representation of this Node.
      Specified by:
      toString in class Node