Class AnonId

java.lang.Object
org.apache.jena.rdf.model.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
      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 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()
      Overrides:
      toString in class Object
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object