Package org.semanticweb.owlapi.model
Interface HasAddAxioms
- 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:
- 3.5
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChangeApplied
addAxioms
(OWLOntology ont, Collection<? extends OWLAxiom> axioms) A convenience method that adds a collection of axioms to an ontology.addAxioms
(OWLOntology ont, Stream<? extends OWLAxiom> axioms) A convenience method that adds a stream of axioms to an ontology.
-
Method Details
-
addAxioms
A convenience method that adds a collection of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.- Parameters:
ont
- The ontology to which the axioms should be added.axioms
- The axioms to be added.- Returns:
- ChangeApplied.SUCCESSFULLY if the axioms are added, ChangeApplied.UNSUCCESSFULLY
otherwise. For more detailed results see
HasApplyChanges.applyChangesAndGetDetails(java.util.List)
-
addAxioms
A convenience method that adds a stream of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.- Parameters:
ont
- The ontology to which the axioms should be added.axioms
- The axioms to be added.- Returns:
- ChangeApplied.SUCCESSFULLY if the axioms are added, ChangeApplied.UNSUCCESSFULLY
otherwise. For more detailed results see
HasApplyChanges.applyChangesAndGetDetails(java.util.List)
-