public interface ONodeID extends Comparable<ONodeID>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ONodeID other) |
boolean |
equals(Object other) |
String |
getNameSpace() |
String |
getResourceName() |
int |
hashCode() |
boolean |
isAnonymousResource()
Return if this represents a blank node or a named resource.
|
String |
toASCIIString()
Return the node ID as a pure ASCII string.
|
String |
toDisplayString()
Return the node ID as a unicode string.
|
String |
toString()
Return the node ID as the string from which the ID was originally created.
|
String |
toTurtle()
Return a representation of the node that conforms to Turtle syntax.
|
void |
validate()
Validate if the string that was passed on as a bnode id or as an URI/IRI
to the constructor of the implementing class can be converted to
a blank node identifier or and URI/IRI that conforms to the implementaion.
|
String getNameSpace()
String getResourceName()
String toString()
String toASCIIString()
NOTE: URI encoding and translation from/to IRIs is not implemented yet!
String toDisplayString()
NOTE: not implemented yet!
boolean isAnonymousResource()
NOTE: not implemented yet!
int compareTo(ONodeID other)
compareTo
in interface Comparable<ONodeID>
String toTurtle()
TODO: at the moment, this only returns either the blank node ID unchanged or the URI as returned by toString() between "<" and ">". This will have to use a proper ASCII representation of the URI or an IRI representation instead.
void validate() throws IllegalArgumentException
TODO: this is not yet implemented.
IllegalArgumentException