use of org.semanticweb.owlapi.util.OWLEntityRemover in project webprotege by protegeproject.
the class DeleteEntityChangeListGenerator method generateChanges.
@Override
public OntologyChangeList<OWLEntity> generateChanges(ChangeGenerationContext context) {
OntologyChangeList.Builder<OWLEntity> builder = new OntologyChangeList.Builder<>();
OWLEntityRemover remover = new OWLEntityRemover(rootOntology.getImportsClosure());
entity.accept(remover);
List<RemoveAxiom> changeList = remover.getChanges();
builder.addAll(changeList);
return builder.build(entity);
}
use of org.semanticweb.owlapi.util.OWLEntityRemover in project webprotege by protegeproject.
the class DeleteEntitiesChangeListGenerator method generateChanges.
@Override
public OntologyChangeList<Set<OWLEntity>> generateChanges(ChangeGenerationContext context) {
generateMessage();
OWLEntityRemover entityRemover = new OWLEntityRemover(rootOntology.getImportsClosure());
entities.forEach(entity -> entity.accept(entityRemover));
return OntologyChangeList.<Set<OWLEntity>>builder().addAll(entityRemover.getChanges()).build(entities);
}
Aggregations