Package org.apache.jena.rdf.model
Class AnonId
- java.lang.Object
-
- org.apache.jena.rdf.model.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 Summary
Constructors Constructor Description AnonId()
AnonId(java.lang.String idStr)
Create a new AnonId from the string argument suppliedAnonId(BlankNodeId id)
Create a new AnonId from the BlankNodeId argument supplied
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnonId
create()
static AnonId
create(java.lang.String id)
boolean
equals(java.lang.Object obj)
BlankNodeId
getBlankNodeId()
Return the system BlankNodeIdjava.lang.String
getLabelString()
int
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-