Package org.apache.jena.graph
Class BlankNodeId
java.lang.Object
org.apache.jena.graph.BlankNodeId
System identifier for a blank node.
Blank nodes have identity (you can .equals them apart)
but no external stable identifier like a URI.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBlankNodeId
(String id) Create a new BlankNodeId from the string argument supplied. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlankNodeId
create()
Creates new BlankNodeId with a fresh internal idstatic BlankNodeId
Creates new BlankNodeId with the given idboolean
Test whether two id's are the sameboolean
Answer the label string of this BlankNodeId.int
hashCode()
return a hashcode for this idint
toString()
return a string representation of the id
-
Constructor Details
-
BlankNodeId
Create a new BlankNodeId from the string argument supplied.- Parameters:
id
- A string representation of the id to be created.
-
-
Method Details
-
create
Creates new BlankNodeId with a fresh internal id -
create
Creates new BlankNodeId with the given id -
hashCode1
public int hashCode1() -
hashCode
public int hashCode()return a hashcode for this id -
equals
Test whether two id's are the same -
equals1
-
toString
return a string representation of the id -
getLabelString
Answer the label string of this BlankNodeId. To be used in preference totoString
-