}
for (OWLOntology ont : ontologies) {
for (OWLDataPropertyAssertionAxiom ax : ont.getDataPropertyAssertionAxioms(ind)) {
if (!ax.getProperty().isAnonymous()) {
changes.add(new RemoveAxiom(ont, ax));
OWLDataFactory df = getDataFactory();
OWLAnnotation anno = df.getOWLAnnotation(df.getOWLAnnotationProperty(ax.getProperty().asOWLDataProperty().getIRI()),
ax.getObject());
OWLAnnotationAssertionAxiom annoAx = df.getOWLAnnotationAssertionAxiom(ind.getIRI(), anno);
changes.add(new AddAxiom(ont, annoAx));
convertedDataProperties.add((OWLDataProperty) ax.getProperty());
}
}
}
for (OWLOntology ont : ontologies) {
for (OWLAxiom ax : ont.getDeclarationAxioms(ind)) {
changes.add(new RemoveAxiom(ont, ax));
}
for (OWLClassAssertionAxiom ax : ont.getClassAssertionAxioms(ind)) {
changes.add(new RemoveAxiom(ont, ax));
}
}
}
for (OWLDataProperty prop : convertedDataProperties) {
for (OWLOntology ont : ontologies) {
for (OWLAxiom ax : ont.getDeclarationAxioms(prop)) {
changes.add(new RemoveAxiom(ont, ax));
}
for (OWLAxiom ax : ont.getAxioms(prop)) {
changes.add(new RemoveAxiom(ont, ax));
}
}
}
}