BlueBrain / nexus-forge

Building and Using Knowledge Graphs made easy
https://nexus-forge.readthedocs.io
GNU Lesser General Public License v3.0
38 stars 19 forks source link

Add optional context to register/update operations #357

Open ssssarah opened 9 months ago

ssssarah commented 9 months ago

Goal: provide schema context when registering updating/schema to then avoid having as_jsonld expand the context into the schemas, and have the schemas have a link to their context rather than the whole context https://bbpteam.epfl.ch/project/issues/browse/DKE-1249

Still in progress, to be tested

codecov-commenter commented 9 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (9ffefac) 74.13% compared to head (9611c02) 74.12%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #357 +/- ## ========================================== - Coverage 74.13% 74.12% -0.01% ========================================== Files 93 93 Lines 5919 5921 +2 ========================================== + Hits 4388 4389 +1 - Misses 1531 1532 +1 ``` | [Flag](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain) | `74.12% <72.22%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain) | Coverage Δ | | |---|---|---| | [kgforge/core/archetypes/store.py](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain#diff-a2dmb3JnZS9jb3JlL2FyY2hldHlwZXMvc3RvcmUucHk=) | `59.36% <100.00%> (ø)` | | | [kgforge/specializations/stores/demo\_store.py](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain#diff-a2dmb3JnZS9zcGVjaWFsaXphdGlvbnMvc3RvcmVzL2RlbW9fc3RvcmUucHk=) | `39.41% <100.00%> (ø)` | | | [tests/specializations/stores/test\_demo\_store.py](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain#diff-dGVzdHMvc3BlY2lhbGl6YXRpb25zL3N0b3Jlcy90ZXN0X2RlbW9fc3RvcmUucHk=) | `100.00% <100.00%> (ø)` | | | [kgforge/core/forge.py](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain#diff-a2dmb3JnZS9jb3JlL2ZvcmdlLnB5) | `64.87% <66.66%> (+0.17%)` | :arrow_up: | | [kgforge/specializations/stores/bluebrain\_nexus.py](https://app.codecov.io/gh/BlueBrain/nexus-forge/pull/357?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BlueBrain#diff-a2dmb3JnZS9zcGVjaWFsaXphdGlvbnMvc3RvcmVzL2JsdWVicmFpbl9uZXh1cy5weQ==) | `28.57% <55.55%> (-0.07%)` | :arrow_down: |

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