public final class OWLOntologyID extends Object implements Comparable<OWLOntologyID>, 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 iri,
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(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.
|
String |
toString() |
public OWLOntologyID(IRI ontologyIRI)
ontologyIRI
- The ontology IRI used to indentify the ontologypublic OWLOntologyID(IRI iri, IRI versionIRI)
iri
- 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 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.Copyright © 2017 The University of Manchester. All Rights Reserved.