Class AnonId


  • public class AnonId
    extends java.lang.Object
    System id for an anonymous node.

    Blank nodes have identity (.equals tells them apart) but have no web-visible external stable identifier like a URI.

    The Jena API has traditionally had AnonId in the RDF API. BlankNodeId is the SPI equivalent and databases that need a persistent identifier across JVM instances use that for blank nodes.

    This id is guaranteed to be unique on this machine.

    • Constructor Detail

      • AnonId

        public AnonId()
      • AnonId

        public AnonId​(java.lang.String idStr)
        Create a new AnonId from the string argument supplied
        Parameters:
        idStr - A string representation of the id to be created.
      • AnonId

        public AnonId​(BlankNodeId id)
        Create a new AnonId from the BlankNodeId argument supplied
        Parameters:
        id - A string representation of the id to be created.
    • Method Detail

      • create

        public static AnonId create()
      • create

        public static AnonId create​(java.lang.String id)
      • getLabelString

        public java.lang.String getLabelString()
      • getBlankNodeId

        public BlankNodeId getBlankNodeId()
        Return the system BlankNodeId
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object