Fix QuotedEntityChecker returns values from axiom annotations
`getAnnotations` did a bit more work than users actually expected. `getAnnotationObjects` is the best choice in the most common use cases.
@@ -225,7 +225,7 @@ public class QuotedEntityChecker implements OWLEntityChecker {
ontologies.addAll(parentOntology.getImports());
for (OWLAnnotationProperty property : properties) {
// Get the labels for all entities
- for (OWLAnnotation ann : EntitySearcher.getAnnotations(entity, ontologies, property)) {
+ for (OWLAnnotation ann : EntitySearcher.getAnnotationObjects(entity, ontologies, property)) {
OWLLiteral value = ann.getValue().asLiteral().orNull();
// If it has a label, add it to the map (will replace short form)
if (value != null) {
