Class Node_Triple

java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Triple
All Implemented Interfaces:
Serializable

public class Node_Triple extends Node
RDF triples as RDF terms for RDF-star embedded triples.
See Also:
  • Constructor Details

    • Node_Triple

      public Node_Triple(Node s, Node p, Node o)
    • Node_Triple

      public Node_Triple(Triple triple)
  • Method Details

    • getTriple

      public Triple getTriple()
      Description copied from class: Node
      Get the triple for a triple term (embedded triple), otherwise die horribly
      Overrides:
      getTriple 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
    • isNodeTriple

      public boolean isNodeTriple()
      Description copied from class: Node
      Answer true iff this node is an "triple node" (RDF-star)
      Overrides:
      isNodeTriple 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()
      Overrides:
      hashCode in class Node
    • equals

      public boolean equals(Object obj)
      Description copied from class: Node
      Nodes only equal other Nodes that have equal labels.
      Specified by:
      equals in class Node
    • toString

      public String toString(PrefixMapping pm, boolean quoting)
      Description copied from class: Node
      Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied.
      Overrides:
      toString in class Node