use of edu.stanford.bmir.protege.web.server.change.OntologyChangeList 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);
}
Aggregations