public 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 iri)
Deprecated.
use the Optional based constructor instead
|
OWLOntologyID(IRI iri,
IRI versionIRI)
Deprecated.
use the Optional based constructor instead
|
OWLOntologyID(com.google.common.base.Optional<IRI> iri,
com.google.common.base.Optional<IRI> version)
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) |
com.google.common.base.Optional<IRI> |
getDefaultDocumentIRI()
Gets the IRI which is used as a default for the document that contain a
representation of an ontology with this ID.
|
com.google.common.base.Optional<IRI> |
getOntologyIRI()
Gets the ontology IRI.
|
com.google.common.base.Optional<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() |
@Deprecated public OWLOntologyID(IRI iri)
iri - The ontology IRI (may be null)@Deprecated public 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(@Nonnull com.google.common.base.Optional<IRI> iri, @Nonnull com.google.common.base.Optional<IRI> version)
iri - The ontology IRI (may be absent)version - The version IRI (must be absent if the ontologyIRI is absent)public OWLOntologyID()
public boolean isOWL2DLOntologyID()
true if this is a valid OWL 2 DL ontology ID, otherwise
falseIRI.isReservedVocabulary()public int compareTo(OWLOntologyID o)
compareTo in interface Comparable<OWLOntologyID>@Nonnull public com.google.common.base.Optional<IRI> getOntologyIRI()
@Nonnull public com.google.common.base.Optional<IRI> getVersionIRI()
@Nonnull public com.google.common.base.Optional<IRI> getDefaultDocumentIRI()
null if there is no ontology IRI. See
Ontology
Documents in the OWL 2 Structural Specification.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 © 2016 The University of Manchester. All Rights Reserved.