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

avoid duplicate class names in `domain_of` slot #252

Closed sujaypatil96 closed 1 year ago

sujaypatil96 commented 1 year ago

Do not populate domain_of list for a slot with duplicate class value names.

This PR seeks to address https://github.com/linkml/linkml/issues/1147

codecov-commenter commented 1 year ago

Codecov Report

Merging #252 (8ff4bdc) into main (b992fe0) will increase coverage by 0.37%. The diff coverage is 62.58%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #252      +/-   ##
==========================================
+ Coverage   63.54%   63.91%   +0.37%     
==========================================
  Files          53       53              
  Lines        6117     6236     +119     
  Branches     1650     1692      +42     
==========================================
+ Hits         3887     3986      +99     
+ Misses       1774     1769       -5     
- Partials      456      481      +25     
Impacted Files Coverage Δ
linkml_runtime/index/object_index.py 88.28% <12.50%> (-3.53%) :arrow_down:
linkml_runtime/dumpers/rdflib_dumper.py 94.94% <40.00%> (-2.97%) :arrow_down:
linkml_runtime/utils/context_utils.py 68.33% <50.00%> (-1.85%) :arrow_down:
linkml_runtime/utils/schemaview.py 83.29% <55.67%> (-3.11%) :arrow_down:
linkml_runtime/__init__.py 100.00% <100.00%> (ø)
linkml_runtime/utils/namespaces.py 73.37% <100.00%> (+2.48%) :arrow_up:
linkml_runtime/utils/yamlutils.py 79.44% <100.00%> (+1.29%) :arrow_up:
... and 1 more

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