-
Notifications
You must be signed in to change notification settings - Fork 10
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
Corrected get_by_label to use only labels in the ontology #643
Conversation
Note it workd forimported ontologies if the whole ontoogy is loaded from outside. However, it the ontology is created directly in python it is not able to access classes in imported ontologies with get_by_label.
Simplified implementation of label_annotations.
Cleaned up and added test for exact_match. This is currently not working. So there is something wrong with that.
…-repo/EMMOntoPy into get_by_label_ni_imported_ontologies
Codecov Report
@@ Coverage Diff @@
## master #643 +/- ##
==========================================
+ Coverage 68.68% 68.82% +0.14%
==========================================
Files 16 16
Lines 3292 3301 +9
==========================================
+ Hits 2261 2272 +11
+ Misses 1031 1029 -2
|
ontopy/ontology.py
Outdated
Detault to DEFAULT_LABEL_ANNOTATIONS module variable. | ||
Label IRIs not in the ontology will need to be added to | ||
ontologies in order to be accessible. | ||
Default is None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None (default), is equivalent to set label_annotations
to the DEFAULT_LABEL_ANNOTATIONS
module variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Added a suggestion for a small change in docstring.
Description
get:by:label used to search wider than what ist was supposed to in the sense that is searched for prefLabels even when skos:prefLabel was not in the ontology.
Furthermore, documentation for get_by_label and get_by_label_all has been updated.
Type of change
Checklist
This checklist can be used as a help for the reviewer.
Comments