axioms1.remove(ax);
axioms2.removeAll(pairs);
}
}
} else if (ax instanceof OWLEquivalentDataPropertiesAxiom) {
OWLEquivalentDataPropertiesAxiom ax2 = (OWLEquivalentDataPropertiesAxiom) ax;
if (ax2.getProperties().size() > 2) {
Set<OWLEquivalentDataPropertiesAxiom> pairs = ax2
.splitToAnnotatedPairs();
if (removeIfContainsAll(axioms2, pairs, destination)) {
axioms1.remove(ax);
axioms2.removeAll(pairs);
}
}
} else if (ax instanceof OWLEquivalentObjectPropertiesAxiom) {
OWLEquivalentObjectPropertiesAxiom ax2 = (OWLEquivalentObjectPropertiesAxiom) ax;
if (ax2.getProperties().size() > 2) {
Set<OWLEquivalentObjectPropertiesAxiom> pairs = ax2
.splitToAnnotatedPairs();
if (removeIfContainsAll(axioms2, pairs, destination)) {
axioms1.remove(ax);
axioms2.removeAll(pairs);
}