Class Node_Graph

  • All Implemented Interfaces:

    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
    • 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.
        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
        getGraph in class Node
      • 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 NodeVisitor v.
        Specified by:
        visitWith in class Node
        v - the visitor to apply to the node
        the value returned by the applied method
      • hashCode

        public int hashCode()
        hashCode in class Node
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from class: Node
        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, ie not variable, ie URI, blank, or literal.
        Specified by:
        isConcrete in class Node