Class OWLEntityRemover

java.lang.Object
org.semanticweb.owlapi.util.OWLEntityRemover
All Implemented Interfaces:
OWLClassVisitorBase, OWLDataEntityVisitorBase, OWLEntityVisitor, OWLIndividualEntityVisitorBase, OWLPropertyEntityVisitorBase, OWLVisitorBase

public class OWLEntityRemover extends Object implements OWLEntityVisitor
A convenience object that generates the changes which are necessary to remove an entity from a set of ontologies. This is accomplished by removing all axioms that refer to the entity. The entity remover follows the visitor design pattern, entities that need to be removed from an ontology should accept visits from the entity remover. Changes are accumulated as the entity remover visits various entities.
Since:
2.0.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Constructor Details

    • OWLEntityRemover

      public OWLEntityRemover(Collection<OWLOntology> ontologies)
      Creates an entity remover, which will remove entities (axioms referring to the entities from the specified ontologies).
      Parameters:
      ontologies - The set of ontologies that contain references to axioms to be removed.
    • OWLEntityRemover

      public OWLEntityRemover(Stream<OWLOntology> ontologies)
      Creates an entity remover, which will remove entities (axioms referring to the entities from the specified ontologies).
      Parameters:
      ontologies - The stream of ontologies that contain references to axioms to be removed.
    • OWLEntityRemover

      public OWLEntityRemover(OWLOntology ontology)
      Creates an entity remover, which will remove entities (axioms referring to the entities from the specified ontologies).
      Parameters:
      ontology - The ontology that contain references to axioms to be removed.
  • Method Details