Package org.semanticweb.owlapi.model
Interface HasDirectAddAxiom
- All Known Subinterfaces:
OWLMutableOntology
,OWLOntology
- All Known Implementing Classes:
ConcurrentOWLOntologyImpl
,OWLImmutableOntologyImpl
,OWLOntologyImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for an object that accepts axiom additions (typically, an OWLOntology).
- Since:
- 4.0.0
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChangeApplied
A convenience method that adds a single axiom to an ontology.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:
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
-
add
A convenience method that adds a single axiom to an ontology. The appropriate AddAxiom change object is automatically generated.- Parameters:
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
-