Class Node_URI

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

public class Node_URI extends Node
RDF nodes with a global identity given by a URI.
See Also:
  • Method Details

    • 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
    • getURI

      public String getURI()
      Description copied from class: Node
      get the URI of this node if it has one, else die horribly
      Overrides:
      getURI 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
    • isURI

      public boolean isURI()
      Description copied from class: Node
      Answer true iff this node is a URI node [subclasses override]
      Overrides:
      isURI 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
    • toString

      public String toString(PrefixMapping pm)
      Answer a String representing the node, taking into account the PrefixMapping.
      Specified by:
      toString in class Node
    • getNameSpace

      public String getNameSpace()
      Description copied from class: Node
      get the namespace part of this node if it's a URI node, else die horribly
      Overrides:
      getNameSpace in class Node
    • getLocalName

      public String getLocalName()
      Description copied from class: Node
      get the localname part of this node if it's a URI node, else die horribly
      Overrides:
      getLocalName in class Node
    • hasURI

      public boolean hasURI(String uri)
      Description copied from class: Node
      answer true iff this node is a URI node with the given URI
      Overrides:
      hasURI in class Node
    • hashCode

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

      public boolean equals(Object obj)
      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