linkml / linkml-runtime

Runtime support for linkml generated models
https://linkml.io/linkml/
Creative Commons Zero v1.0 Universal
24 stars 23 forks source link

Add methods to replace functionality in biolink model toolkit with schemaview #235

Closed sierra-moxon closed 1 year ago

sierra-moxon commented 1 year ago

This includes two convenience methods: 1) all_aliases (a method to return all aliases from any schema element), used in a method in BMT to check which element a user is looking for when they ask by name. 2) get_children (for any element, not specifically a class, slot, etc.) https://github.com/biolink/biolink-model-toolkit/blob/4f93dd1be7327bcad3654283856c1ef5872413ae/bmt/toolkit.py#L368

codecov-commenter commented 1 year ago

Codecov Report

Merging #235 (0957332) into main (b992fe0) will increase coverage by 0.41%. The diff coverage is 87.50%.

@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
+ Coverage   63.54%   63.95%   +0.41%     
==========================================
  Files          53       53              
  Lines        6117     6140      +23     
  Branches     1650     1660      +10     
==========================================
+ Hits         3887     3927      +40     
+ Misses       1774     1728      -46     
- Partials      456      485      +29     
Impacted Files Coverage Δ
linkml_runtime/utils/schemaview.py 86.41% <86.95%> (+0.01%) :arrow_up:
linkml_runtime/utils/yamlutils.py 78.15% <100.00%> (ø)
linkml_runtime/linkml_model/meta.py 53.63% <0.00%> (+0.84%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.