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

uncamelcase method #195

Closed sierra-moxon closed 2 years ago

sierra-moxon commented 2 years ago

working on replacing functionality from biolink-model-toolkit. Translator biolink model components come back from queries of their architecture in camelcase already (SmallMolecule or biolink:SmallMolecule vs. small molecule). This is just a helper method to convert back to model-case to use SchemaView to retrieve classes instead of biolink-model-toolkit. Is it overkill to think about making sv.get_class() etc. recognize any form of class name (I can work with this method alone for my needs, I could also put this method in my own code)?

codecov-commenter commented 2 years ago

Codecov Report

Merging #195 (78ebaed) into main (7a53613) will decrease coverage by 1.24%. The diff coverage is 44.00%.

@@            Coverage Diff             @@
##             main     #195      +/-   ##
==========================================
- Coverage   63.33%   62.08%   -1.25%     
==========================================
  Files          50       52       +2     
  Lines        5501     5874     +373     
  Branches     1567     1666      +99     
==========================================
+ Hits         3484     3647     +163     
- Misses       1598     1771     +173     
- Partials      419      456      +37     
Impacted Files Coverage Δ
linkml_runtime/linkml_model/annotations.py 90.38% <ø> (ø)
linkml_runtime/linkml_model/extensions.py 85.45% <ø> (ø)
linkml_runtime/linkml_model/mappings.py 0.00% <ø> (ø)
linkml_runtime/linkml_model/types.py 100.00% <ø> (ø)
linkml_runtime/linkml_model/validation.py 0.00% <0.00%> (ø)
linkml_runtime/linkml_model/meta.py 52.66% <52.27%> (-0.09%) :arrow_down:
linkml_runtime/linkml_model/units.py 76.00% <76.00%> (ø)
linkml_runtime/utils/formatutils.py 83.14% <100.00%> (+1.66%) :arrow_up:
linkml_runtime/utils/inference_utils.py 94.02% <100.00%> (+0.37%) :arrow_up:

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 dd2378e...78ebaed. Read the comment docs.