Class OWLOntologyAlreadyExistsException

All Implemented Interfaces:
Serializable

public class OWLOntologyAlreadyExistsException extends OWLOntologyCreationException
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 Details

    • OWLOntologyAlreadyExistsException

      public OWLOntologyAlreadyExistsException(OWLOntologyID id)
      Constructs an OWLOntologyAlreadyExistsException 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 (not null) that was already contained in the manager.
    • OWLOntologyAlreadyExistsException

      public OWLOntologyAlreadyExistsException(OWLOntologyID ontologyID, IRI documentIRI)
      Constructs an OWLOntologyAlreadyExistsException 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 ID
      documentIRI - The IRI of the document where the load attempt occurred from
    • OWLOntologyAlreadyExistsException

      public OWLOntologyAlreadyExistsException(OWLOntologyID id, Throwable t)
      Constructs an OWLOntologyAlreadyExistsException 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 (not null) that was already contained in the manager.
      t - the cause
    • OWLOntologyAlreadyExistsException

      public OWLOntologyAlreadyExistsException(OWLOntologyID ontologyID, IRI documentIRI, Throwable t)
      Constructs an OWLOntologyAlreadyExistsException 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 ID
      documentIRI - The IRI of the document where the load attempt occurred from
      t - the cause
  • Method Details

    • getOntologyID

      public OWLOntologyID getOntologyID()
      Gets the ID of the ontology that already exists.
      Returns:
      The ontology ID.
    • getDocumentIRI

      @Nullable public IRI 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.