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
        idStr - A string representation of the id to be created.
      • AnonId

        public AnonId​(BlankNodeId id)
        Create a new AnonId from the BlankNodeId argument supplied
        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()
        toString in class java.lang.Object
      • hashCode

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

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