Class AnonId


public class AnonId extends 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 Details

    • AnonId

      public AnonId()
    • AnonId

      public AnonId(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 Details

    • create

      public static AnonId create()
    • create

      public static AnonId create(String id)
    • getLabelString

      public String getLabelString()
    • getBlankNodeId

      public BlankNodeId getBlankNodeId()
      Return the system BlankNodeId
    • toString

      public String toString()
      toString in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      equals in class Object