@Nonnull @Override public List<OWLOntologyChange> visit(@Nonnull OWLClass cls) { return new ClassDefinitionExtractor(cls, ontology, dataFactory) .getChangesToRemoveDefinition(); }
@Nonnull @Override public Set<OWLAxiom> visit(@Nonnull OWLClass cls) { return new ClassDefinitionExtractor(cls, ontology, dataFactory).getDefiningAxioms(); }
/** * Gets a list of changes that are necessary to remove the axioms that constitute the logical definition * of the target class. * @return A list of changes. */ @Nonnull public List<OWLOntologyChange> getChangesToRemoveDefinition() { List<OWLOntologyChange> changes = new ArrayList<>(); generateChangesToRemoveDefinitionFromOntology(ontology, changes); return changes; }