public class ONodeIDImpl extends Object implements gate.creole.ontology.ONodeID
| Modifier and Type | Field and Description |
|---|---|
protected String |
aResourceName
A Resource name (in current version - a value after the last
occurance of '#' or '/')
|
protected boolean |
isAnonymousResource
Denotes whether the OResource this URI belongs to is an anonymous
or not.
|
protected String |
namespace
Namespace for this URI (in current version - a value before the
last occurance of '#' or '/')
|
protected String |
uri
String representation of the URI
|
| Modifier | Constructor and Description |
|---|---|
protected |
ONodeIDImpl(String uri,
boolean isAnonymousResource)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(gate.creole.ontology.ONodeID other) |
boolean |
equals(Object other) |
String |
getNameSpace()
Retrieves the name space part from the URI.
|
String |
getResourceName()
Retrieves the resource name from the given URI.
|
int |
hashCode() |
boolean |
isAnonymousResource()
Indicates whether the URI refers to an anonymous resource
|
String |
toASCIIString() |
String |
toDisplayString() |
String |
toString()
Returns the string representation of the uri.
|
String |
toTurtle() |
void |
validate() |
protected String namespace
protected String aResourceName
protected String uri
protected boolean isAnonymousResource
protected ONodeIDImpl(String uri, boolean isAnonymousResource) throws gate.creole.ontology.InvalidURIException
uri - isAnonymousResource - gate.creole.ontology.InvalidURIExceptionpublic String getNameSpace()
getNameSpace in interface gate.creole.ontology.ONodeIDpublic String getResourceName()
getResourceName in interface gate.creole.ontology.ONodeIDpublic String toString()
public boolean isAnonymousResource()
isAnonymousResource in interface gate.creole.ontology.ONodeIDpublic int compareTo(gate.creole.ontology.ONodeID other)
compareTo in interface gate.creole.ontology.ONodeIDcompareTo in interface Comparable<gate.creole.ontology.ONodeID>public boolean equals(Object other)
public int hashCode()
public String toTurtle()
toTurtle in interface gate.creole.ontology.ONodeIDpublic void validate()
validate in interface gate.creole.ontology.ONodeIDpublic String toASCIIString()
toASCIIString in interface gate.creole.ontology.ONodeIDpublic String toDisplayString()
toDisplayString in interface gate.creole.ontology.ONodeID