Add support for anonymous expressions
@@ -1013,7 +1013,6 @@ public class RelatedObjectsHelper {
OWLClass cls,
Collection<OWLClassExpression> superClasses) {
for (OWLClassExpression sc : superClasses) {
- if (objects.contains(sc)) {
if (objects.containsAll(sc.getSignature())) {
Map<String, OWLClassExpression> classPair = new HashMap<>();
classPair.put(SUB, cls);
@@ -1027,7 +1026,6 @@ public class RelatedObjectsHelper {
sc.asOWLClass(),
EntitySearcher.getSuperClasses(sc.asOWLClass(), ontology));
}
- }
} else if (!sc.isAnonymous()) {
spanGapsHelper(
ontology,
@@ -1057,7 +1055,6 @@ public class RelatedObjectsHelper {
OWLDataProperty property,
Collection<OWLDataPropertyExpression> superProperties) {
for (OWLDataPropertyExpression sp : superProperties) {
- if (objects.contains(sp)) {
if (objects.containsAll(sp.getSignature())) {
Map<String, OWLDataPropertyExpression> propertyPair = new HashMap<>();
propertyPair.put(SUB, property);
@@ -1072,7 +1069,6 @@ public class RelatedObjectsHelper {
property,
EntitySearcher.getSuperProperties(property, ontology));
}
- }
} else if (!sp.isAnonymous()) {
spanGapsHelper(
ontology,
@@ -1102,7 +1098,6 @@ public class RelatedObjectsHelper {
OWLObjectProperty property,
Collection<OWLObjectPropertyExpression> superProperties) {
for (OWLObjectPropertyExpression sp : superProperties) {
- if (objects.contains(sp)) {
if (objects.containsAll(sp.getSignature())) {
Map<String, OWLObjectPropertyExpression> propertyPair = new HashMap<>();
propertyPair.put(SUB, property);
@@ -1117,7 +1112,6 @@ public class RelatedObjectsHelper {
property,
EntitySearcher.getSuperProperties(property, ontology));
}
- }
} else if (!sp.isAnonymous()) {
spanGapsHelper(
ontology,
