public class AnonId extends Object
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 and Description |
---|
AnonId() |
AnonId(BlankNodeId id)
Create a new AnonId from the BlankNodeId argument supplied
|
AnonId(String idStr)
Create a new AnonId from the string argument supplied
|
Modifier and Type | Method and Description |
---|---|
static AnonId |
create() |
static AnonId |
create(String id) |
boolean |
equals(Object obj) |
BlankNodeId |
getBlankNodeId()
Return the system BlankNodeId
|
String |
getLabelString() |
int |
hashCode() |
String |
toString() |
public AnonId()
public AnonId(String idStr)
idStr
- A string representation of the id to be created.public AnonId(BlankNodeId id)
id
- A string representation of the id to be created.public static AnonId create()
public String getLabelString()
public BlankNodeId getBlankNodeId()
Licenced under the Apache License, Version 2.0