Package org.semanticweb.owlapi.model
Interface HasApplyChange
- All Known Subinterfaces:
OWLMutableOntology
,OWLOntology
,OWLOntologyManager
- All Known Implementing Classes:
ConcurrentOWLOntologyImpl
,OWLImmutableOntologyImpl
,OWLOntologyImpl
,OWLOntologyManagerImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 3.5
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
-
Method Summary
Modifier and TypeMethodDescriptionapplyChange
(OWLOntologyChange change) A convenience method that applies just one change to an ontology.
-
Method Details
-
applyChange
A convenience method that applies just one change to an ontology. When this method is used through anOWLOntologyManager
implementation, the instance used should be the one that the ontology returns through thegetOWLOntologyManager()
call. The reason is that some changes, e.g., change of ontology id and change of imports directives, affect data that only that manager instance knows about, such as the imports closure; changes of ontology id through the wrong manager will make the ontology unreachable through its new id in the manager associated with the ontology. Configuration for loading and saving parameters is also held by the manager, if not explicitly specified for the ontology. While the change might be successful, other bugs might be made apparent later.- Parameters:
change
- The change to be applied- Returns:
- ChangeApplied.SUCCESSFULLY if the change is applied with success, ChangeApplied.UNSUCCESSFULLY otherwise.
- Throws:
OWLOntologyChangeException
- If the change could not be applied. See subclasses of ontology change exception for more specific details.OWLOntologyRenameException
- If one or more of the changes is an instance ofSetOntologyID
where the newOWLOntologyID
already belongs to an ontology managed by this manager.
-