Skip to content

Commit

Permalink
Add subannotation property to getSubject()
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Mar 10, 2024
1 parent ba3f8ea commit 001f94a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,14 @@ private static Set<IRI> getAxiomSubjects(OWLAxiom axiom) {
} else {
iris.addAll(getIRIsFromEntities(subject.getSignature()));
}
} else if (axiom instanceof OWLSubAnnotationPropertyOfAxiom) {
OWLSubAnnotationPropertyOfAxiom spAxiom = (OWLSubAnnotationPropertyOfAxiom) axiom;
OWLAnnotationProperty subject = spAxiom.getSubProperty();
if (!subject.isAnonymous()) {
return Sets.newHashSet(subject.asOWLAnnotationProperty().getIRI());
} else {
iris.addAll(getIRIsFromEntities(subject.getSignature()));
}
} else if (axiom instanceof OWLEquivalentDataPropertiesAxiom) {
OWLEquivalentDataPropertiesAxiom eqAxiom = (OWLEquivalentDataPropertiesAxiom) axiom;
for (OWLSubDataPropertyOfAxiom spAxiom : eqAxiom.asSubDataPropertyOfAxioms()) {
Expand Down

0 comments on commit 001f94a

Please sign in to comment.