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

fix: add support for urns to curie namespaces #287

Closed Silvanoc closed 9 months ago

Silvanoc commented 10 months ago

Support for URNs added on version v1.6.1 (later fixed on v1.6.2) is missing support for proper CURIE conversion for URNs. This patch fixes it.

It also provides a test-case.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d45970a) 62.09% compared to head (dee0311) 62.12%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #287 +/- ## ========================================== + Coverage 62.09% 62.12% +0.02% ========================================== Files 63 63 Lines 8461 8462 +1 Branches 2170 2170 ========================================== + Hits 5254 5257 +3 + Misses 2599 2598 -1 + Partials 608 607 -1 ``` | [Files](https://app.codecov.io/gh/linkml/linkml-runtime/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=linkml) | Coverage Δ | | |---|---|---| | [linkml\_runtime/utils/namespaces.py](https://app.codecov.io/gh/linkml/linkml-runtime/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=linkml#diff-bGlua21sX3J1bnRpbWUvdXRpbHMvbmFtZXNwYWNlcy5weQ==) | `73.83% <100.00%> (+1.32%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.