Package org.semanticweb.owlapi.model
Interface HasAddAxiom
- All Known Subinterfaces:
OWLOntologyManager
- All Known Implementing Classes:
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:
- 4.0.0
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
-
Method Summary
Modifier and TypeMethodDescriptionaddAxiom
(OWLOntology ont, OWLAxiom axiom) A convenience method that adds a single axiom to an ontology.
-
Method Details
-
addAxiom
A convenience method that adds a single axiom to an ontology. The appropriate AddAxiom change object is automatically generated.- Parameters:
ont
- The ontology to add the axiom to.axiom
- The axiom to be added- Returns:
- ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
- Throws:
OWLOntologyChangeException
- if there was a problem adding the axiom
-