@SuppressWarnings("null")
@Override
public Integer recomputeMetric() {
Set<OWLClass> processed = new HashSet<>();
Set<OWLClass> clses = new HashSet<>();
NamedConjunctChecker checker = new NamedConjunctChecker();
for (OWLOntology ont : getOntologies()) {
for (OWLClass cls : ont.getClassesInSignature()) {
assert cls != null;
if (processed.contains(cls)) {
continue;
}
processed.add(cls);
int count = 0;
for (OWLClassExpression sup : equivalent(
ont.getEquivalentClassesAxioms(cls),
OWLClassExpression.class)) {
assert sup != null;
if (checker.hasNamedConjunct(sup)) {
count++;
}
if (count > 1) {
clses.add(cls);
break;