Ontology
factory methods
for creating them instead.@Deprecated public class URI extends Object implements OURI, ONodeID, OBNodeID
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
URI(String uri,
boolean isAnonymousResource)
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected String namespace
protected String aResourceName
protected String uri
protected boolean isAnonymousResource
public URI(String uri, boolean isAnonymousResource) throws InvalidURIException
uri
- isAnonymousResource
- InvalidURIException
public String getNameSpace()
getNameSpace
in interface ONodeID
public String getResourceName()
getResourceName
in interface ONodeID
public String toString()
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)
public int hashCode()
public String toTurtle()
ONodeID
public void validate()
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
Copyright © 2024 GATE. All rights reserved.