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.

@FunctionalInterface public interface HasAddAxioms
Since:
3.5
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
  • Method Details

    • addAxioms

      default ChangeApplied addAxioms(OWLOntology ont, Collection<? extends OWLAxiom> axioms)
      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

      ChangeApplied addAxioms(OWLOntology ont, Stream<? extends OWLAxiom> axioms)
      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)