public final class OWLOntologyID extends java.lang.Object implements java.lang.Comparable<OWLOntologyID>, java.io.Serializable
Constructor and Description |
---|
OWLOntologyID()
Constructs an ontology identifier specifying that the ontology IRI (and hence the version IRI) is not present.
|
OWLOntologyID(IRI ontologyIRI)
Constructs an ontology identifier specifying the ontology IRI
|
OWLOntologyID(IRI ontologyIRI,
IRI versionIRI)
Constructs an ontology identifier specifiying the ontology IRI and version IRI
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OWLOntologyID o) |
boolean |
equals(java.lang.Object obj) |
IRI |
getDefaultDocumentIRI()
Gets the IRI which is used as a default for the document that contain a representation of an ontology with this
ID.
|
IRI |
getOntologyIRI()
Gets the ontology IRI.
|
IRI |
getVersionIRI()
Gets the version IRI.
|
int |
hashCode() |
boolean |
isAnonymous()
Determines if this ID names an ontology or whether it is an ID for an ontology without an IRI.
|
boolean |
isOWL2DLOntologyID()
Determines if this is a valid OWL 2 DL ontology ID.
|
java.lang.String |
toString() |
public OWLOntologyID(IRI ontologyIRI)
ontologyIRI
- The ontology IRI used to indentify the ontologypublic OWLOntologyID(IRI ontologyIRI, IRI versionIRI)
ontologyIRI
- The ontology IRI (may be null
)versionIRI
- The version IRI (must be null
if the ontologyIRI is null)public OWLOntologyID()
public boolean isOWL2DLOntologyID()
true
if this is a valid OWL 2 DL ontology ID, otherwise false
IRI.isReservedVocabulary()
public int compareTo(OWLOntologyID o)
compareTo
in interface java.lang.Comparable<OWLOntologyID>
public IRI getOntologyIRI()
null
if there is no ontology IRI.public IRI getVersionIRI()
null
if there is no version IRI.public IRI getDefaultDocumentIRI()
null
if there is no ontology IRI.
See Ontology Documents in
the OWL 2 Structural Specification.null
.public boolean isAnonymous()
true
if this ID is an ID for an ontology without an IRI, or false
if this ID is an ID for an ontology with an IRI.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object