Interface HasDirectAddAxioms

All Known Subinterfaces:
OWLMutableOntology, OWLOntology
All Known Implementing Classes:
ConcurrentOWLOntologyImpl, OWLImmutableOntologyImpl, OWLOntologyImpl

public interface HasDirectAddAxioms
Interface for an object that accepts axiom additions (typically, an OWLOntology).
Since:
3.5
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
  • Method Details

    • addAxioms

      ChangeApplied addAxioms(Collection<? extends OWLAxiom> axioms)
      A convenience method that adds a set of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.
      Parameters:
      axioms - The axioms to be added. Not null.
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
    • addAxioms

      ChangeApplied addAxioms(OWLAxiom... axioms)
      A convenience method that adds a set of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.
      Parameters:
      axioms - The axioms to be added. Not null.
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
    • add

      default ChangeApplied add(Collection<? extends OWLAxiom> axioms)
      A convenience method that adds a set of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.
      Parameters:
      axioms - The axioms to be added. Not null.
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
    • addAxioms

      ChangeApplied addAxioms(Stream<? extends OWLAxiom> axioms)
      A convenience method that adds a set of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.
      Parameters:
      axioms - The axioms to be added. Not null.
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
    • add

      default ChangeApplied add(OWLAxiom... axioms)
      A convenience method that adds a set of axioms to an ontology. The appropriate AddAxiom change objects are automatically generated.
      Parameters:
      axioms - The axioms to be added. Not null.
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.