public class OWLOntologyID extends Object implements Comparable<OWLOntologyID>, Serializable, IsAnonymous
Constructor and Description |
---|
OWLOntologyID()
Constructs an ontology identifier specifying that the ontology IRI (and hence the version
IRI) is not present.
|
OWLOntologyID(IRI iri)
Constructs an ontology identifier specifying the ontology IRI and version IRI.
|
OWLOntologyID(IRI iri,
IRI versionIRI)
Constructs an ontology identifier specifying the ontology IRI and version IRI.
|
OWLOntologyID(Optional<IRI> iri,
Optional<IRI> version)
Constructs an ontology identifier specifying the ontology IRI and version IRI.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OWLOntologyID o) |
boolean |
equals(Object obj) |
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.
|
Optional<IRI> |
getOntologyIRI()
Gets the ontology IRI.
|
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.
|
boolean |
match(IRI iri) |
boolean |
match(OWLOntologyID id) |
boolean |
matchDocument(IRI iri) |
boolean |
matchOntology(IRI iri) |
boolean |
matchVersion(IRI iri) |
String |
toString() |
isNamed
public OWLOntologyID(@Nullable IRI iri)
iri
- The ontology IRI (may be null
)public OWLOntologyID(@Nullable IRI iri, @Nullable IRI versionIRI)
iri
- The ontology IRI (may be null
)versionIRI
- The version IRI (must be null
if the ontologyIRI is null)public OWLOntologyID(Optional<IRI> iri, 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 match(IRI iri)
iri
- the iri to checkpublic boolean matchVersion(IRI iri)
iri
- the iri to checkpublic boolean matchDocument(IRI iri)
iri
- the iri to checkpublic boolean matchOntology(IRI iri)
iri
- the iri to checkpublic boolean match(OWLOntologyID id)
id
- the id to checkpublic boolean isOWL2DLOntologyID()
true
if this is a valid OWL 2 DL ontology ID, otherwise false
IRI.isReservedVocabulary()
public int compareTo(@Nullable OWLOntologyID o)
compareTo
in interface Comparable<OWLOntologyID>
public Optional<IRI> getOntologyIRI()
public Optional<IRI> getVersionIRI()
public Optional<IRI> getDefaultDocumentIRI()
null
if there is no ontology IRI. See
Ontology Documents in the
OWL 2 Structural Specification.public boolean isAnonymous()
isAnonymous
in interface 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 © 2020 The University of Manchester. All rights reserved.