linkml / linkml-runtime

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

add a simple method to return multivalued slots #185

Closed sierra-moxon closed 2 years ago

sierra-moxon commented 2 years ago

better might be to have a method that returns all "x" slots where "x" is any metadata component of a slot (e.g.: all "identifier" slots, all "reflexive" slots, etc)?

@turbomam @hrshdhgd - is this what you are looking for?

codecov-commenter commented 2 years ago

Codecov Report

Merging #185 (0993f75) into main (f0870b9) will increase coverage by 0.70%. The diff coverage is 89.58%.

@@            Coverage Diff             @@
##             main     #185      +/-   ##
==========================================
+ Coverage   62.46%   63.16%   +0.70%     
==========================================
  Files          49       50       +1     
  Lines        5437     5497      +60     
  Branches     1547     1565      +18     
==========================================
+ Hits         3396     3472      +76     
+ Misses       1650     1603      -47     
- Partials      391      422      +31     
Impacted Files Coverage Δ
linkml_runtime/utils/pattern.py 85.71% <85.71%> (ø)
linkml_runtime/utils/schemaview.py 84.40% <95.00%> (+0.29%) :arrow_up:
linkml_runtime/__init__.py 89.47% <0.00%> (-10.53%) :arrow_down:
linkml_runtime/dumpers/rdflib_dumper.py 97.50% <0.00%> (-0.15%) :arrow_down:
linkml_runtime/utils/slot.py 100.00% <0.00%> (ø)
linkml_runtime/utils/eval_utils.py 73.40% <0.00%> (ø)
linkml_runtime/utils/schemaview_cli.py 0.00% <0.00%> (ø)
linkml_runtime/linkml_model/linkml_files.py 0.00% <0.00%> (ø)
linkml_runtime/loaders/rdflib_loader.py 87.35% <0.00%> (+0.07%) :arrow_up:
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a49927d...0993f75. Read the comment docs.