public class OWLEntityRemover extends java.lang.Object implements OWLEntityVisitor
Constructor and Description |
---|
OWLEntityRemover(OWLOntologyManager owlOntologyManager,
java.util.Set<OWLOntology> ontologies)
Creates an entity remover, which will remove entities (axioms referring to the entities
from the specified ontologies).
|
Modifier and Type | Method and Description |
---|---|
java.util.List<OWLOntologyChange> |
getChanges() |
void |
reset()
Clears any changes which have accumulated over the course of visiting
different entities.
|
void |
visit(OWLAnnotationProperty property) |
void |
visit(OWLClass cls) |
void |
visit(OWLDataProperty property) |
void |
visit(OWLDatatype datatype) |
void |
visit(OWLNamedIndividual individual) |
void |
visit(OWLObjectProperty property) |
public OWLEntityRemover(OWLOntologyManager owlOntologyManager, java.util.Set<OWLOntology> ontologies)
owlOntologyManager
- The OWLOntologyManager
which contains the ontologies
that contain entities to be removed.ontologies
- The set of ontologies that contain references to axioms to be removed.public java.util.List<OWLOntologyChange> getChanges()
public void reset()
public void visit(OWLClass cls)
visit
in interface OWLEntityVisitor
public void visit(OWLDatatype datatype)
visit
in interface OWLEntityVisitor
public void visit(OWLNamedIndividual individual)
visit
in interface OWLEntityVisitor
public void visit(OWLDataProperty property)
visit
in interface OWLEntityVisitor
public void visit(OWLObjectProperty property)
visit
in interface OWLEntityVisitor
public void visit(OWLAnnotationProperty property)
visit
in interface OWLEntityVisitor