Package org.semanticweb.owlapi.model
Class OWLOntologyAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.semanticweb.owlapi.model.OWLException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyAlreadyExistsException
- All Implemented Interfaces:
Serializable
Indicates that an ontology with the given ontology IRI (and possible version
IRI) exists.
- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to create an ontology failed because the manager already contained an ontology with specified ontology ID.Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to create an ontology failed because the manager already contained an ontology with specified ontology ID.OWLOntologyAlreadyExistsException
(OWLOntologyID ontologyID, IRI documentIRI) Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to load an ontology failed because the manager already contained an ontology with the ID that was the same as the ontology being loaded.OWLOntologyAlreadyExistsException
(OWLOntologyID ontologyID, IRI documentIRI, Throwable t) Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to load an ontology failed because the manager already contained an ontology with the ID that was the same as the ontology being loaded. -
Method Summary
Modifier and TypeMethodDescriptionGets the document IRI where the ontology was loaded from.Gets the ID of the ontology that already exists.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OWLOntologyAlreadyExistsException
Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to create an ontology failed because the manager already contained an ontology with specified ontology ID.- Parameters:
id
- The ID of the ontology (notnull
) that was already contained in the manager.
-
OWLOntologyAlreadyExistsException
Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to load an ontology failed because the manager already contained an ontology with the ID that was the same as the ontology being loaded.- Parameters:
ontologyID
- The ontology IDdocumentIRI
- The IRI of the document where the load attempt occurred from
-
OWLOntologyAlreadyExistsException
Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to create an ontology failed because the manager already contained an ontology with specified ontology ID.- Parameters:
id
- The ID of the ontology (notnull
) that was already contained in the manager.t
- the cause
-
OWLOntologyAlreadyExistsException
Constructs anOWLOntologyAlreadyExistsException
to describe the situation where an attempt to load an ontology failed because the manager already contained an ontology with the ID that was the same as the ontology being loaded.- Parameters:
ontologyID
- The ontology IDdocumentIRI
- The IRI of the document where the load attempt occurred fromt
- the cause
-
-
Method Details
-
getOntologyID
Gets the ID of the ontology that already exists.- Returns:
- The ontology ID.
-
getDocumentIRI
Gets the document IRI where the ontology was loaded from.- Returns:
- The IRI of the document where the ontology was loaded from. If the ontology was
created without loading it from an ontology document then the return value will be
null
.
-