public class BlankNodeId extends Object
Databases need a persistent identifier for blank nodes - BlankNodeId.
The equivalent concept for the API is AnonId
.
Historically, that has been in the org.apache.jena.rdf.model
package.
This id is guaranteed to be globally unique.
JenaParameters.disableBNodeUIDGeneration
Constructor and Description |
---|
BlankNodeId(String id)
Create a new BlankNodeId from the string argument supplied.
|
Modifier and Type | Method and Description |
---|---|
static BlankNodeId |
create()
Creates new BlankNodeId with a fresh internal id
|
static BlankNodeId |
create(String id)
Creates new BlankNodeId with the given id
|
boolean |
equals(Object other)
Test whether two id's are the same
|
boolean |
equals1(Object obj) |
String |
getLabelString()
Answer the label string of this BlankNodeId.
|
int |
hashCode()
return a hashcode for this id
|
int |
hashCode1() |
String |
toString()
return a string representation of the id
|
public BlankNodeId(String id)
id
- A string representation of the id to be created.public static BlankNodeId create()
public static BlankNodeId create(String id)
public int hashCode1()
public int hashCode()
public boolean equals(Object other)
public boolean equals1(Object obj)
public String toString()
public String getLabelString()
toString
Licenced under the Apache License, Version 2.0