|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.creole.ontology.URI
Ontology
factory methods
for creating them instead.
@Deprecated public class URI
Each resource has a unique URI in the Ontology. Each URI has a namespace and a name which all together makes a qualified URI. e.g. namespace: http://gate.ac.uk, aResourceName: Person , URI = http://gate.ac.uk#Person. It is possible to have a URI for an anonymouse resource, in which case the namespace is set to an empty string and a flag (isAnonymouseResource) is set to true.
Field Summary | |
---|---|
protected String |
aResourceName
Deprecated. A Resource name (in current version - a value after the last occurance of '#' or '/') |
protected boolean |
isAnonymousResource
Deprecated. Denotes whether the OResource this URI belongs to is an anonymous or not. |
protected String |
namespace
Deprecated. Namespace for this URI (in current version - a value before the last occurance of '#' or '/') |
protected String |
uri
Deprecated. String representation of the URI |
Constructor Summary | |
---|---|
URI(String uri,
boolean isAnonymousResource)
Deprecated. Constructor |
Method Summary | |
---|---|
int |
compareTo(ONodeID other)
Deprecated. |
boolean |
equals(Object other)
Deprecated. |
String |
getNameSpace()
Deprecated. Retrieves the name space part from the URI. |
String |
getResourceName()
Deprecated. Retrieves the resource name from the given URI. |
int |
hashCode()
Deprecated. |
boolean |
isAnonymousResource()
Deprecated. Indicates whether the URI refers to an anonymous resource |
String |
toASCIIString()
Deprecated. Return the node ID as a pure ASCII string. |
String |
toDisplayString()
Deprecated. Return the node ID as a unicode string. |
String |
toString()
Deprecated. Returns the string representation of the uri. |
String |
toTurtle()
Deprecated. Return a representation of the node that conforms to Turtle syntax. |
void |
validate()
Deprecated. 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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String namespace
protected String aResourceName
protected String uri
protected boolean isAnonymousResource
Constructor Detail |
---|
public URI(String uri, boolean isAnonymousResource) throws InvalidURIException
uri
- isAnonymousResource
-
InvalidURIException
Method Detail |
---|
public String getNameSpace()
getNameSpace
in interface ONodeID
public String getResourceName()
getResourceName
in interface ONodeID
public String toString()
toString
in interface ONodeID
toString
in class Object
public boolean isAnonymousResource()
isAnonymousResource
in interface ONodeID
public int compareTo(ONodeID other)
compareTo
in interface ONodeID
compareTo
in interface Comparable<ONodeID>
public boolean equals(Object other)
equals
in interface ONodeID
equals
in class Object
public int hashCode()
hashCode
in interface ONodeID
hashCode
in class Object
public String toTurtle()
ONodeID
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.
toTurtle
in interface ONodeID
public void validate()
ONodeID
TODO: this is not yet implemented.
validate
in interface ONodeID
public String toDisplayString()
ONodeID
NOTE: not implemented yet!
toDisplayString
in interface ONodeID
public String toASCIIString()
ONodeID
NOTE: URI encoding and translation from/to IRIs is not implemented yet!
toASCIIString
in interface ONodeID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |