public interface HasApplyChange
Modifier and Type | Method and Description |
---|---|
ChangeApplied |
applyChange(OWLOntologyChange change)
A convenience method that applies just one change to an ontology.
|
@Nonnull ChangeApplied applyChange(@Nonnull OWLOntologyChange change)
OWLOntologyManager
implementation, the instance used should be the one
that the ontology returns through the getOWLOntologyManager()
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.change
- The change to be appliedOWLOntologyChangeException
- 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 of
SetOntologyID
where the new
OWLOntologyID
already belongs to an ontology
managed by this manager.Copyright © 2020 The University of Manchester. All rights reserved.