|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticweb.owl.util.OWLEntityRemover
public class OWLEntityRemover
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 11-Dec-2006
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.
Constructor Summary | |
---|---|
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). |
Method Summary | |
---|---|
java.util.List<OWLOntologyChange> |
getChanges()
Gets the list of ontology changes that are required in order to remove visited entities from the set of ontologies. |
void |
reset()
Clears any changes which have accumulated over the course of visiting different entities. |
void |
visit(OWLClass cls)
|
void |
visit(OWLDataProperty property)
|
void |
visit(OWLDataType dataType)
|
void |
visit(OWLIndividual individual)
|
void |
visit(OWLObjectProperty property)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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(OWLIndividual individual)
visit
in interface OWLEntityVisitor
public void visit(OWLDataProperty property)
visit
in interface OWLEntityVisitor
public void visit(OWLObjectProperty property)
visit
in interface OWLEntityVisitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |