-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EntitySearcher ignores annotations from imports #745
Comments
To get the annotations from imported ontologies, pass the imports closure in the method. All methods are overloaded to accept a single ontology or a collection/stream of ontologies (depending whether you're using version 4 or 5). |
This seems true for I don't see any overload that takes a collection/stream of ontologies: owlapi/api/src/main/java/org/semanticweb/owlapi/search/EntitySearcher.java Lines 64 to 105 in b683b03
|
The EntitySearcher interface seems to have no way to obtain annotations from classes residing in imported ontologies. The following code will not return any annotations from imported ontologies:
You can obtain them using the annotationAssertionAxioms stream in OWLOntology:
Would it be possible to add the same Imports enum flag to the EntitySearcher annotation methods? I notice that some of the methods already have this functionality, e.g. getAxiomsIgnoreAnnotations
Thank you!
The text was updated successfully, but these errors were encountered: