openMetadataInitiative / openMINDS_Python

Python package for the openMINDS metadata models. The package contains all openMINDS schemas as Python classes in addition to schema base classes and utility methods.
MIT License
1 stars 2 forks source link

save () - @context and @vocab #11

Closed Peyman-N closed 1 year ago

Peyman-N commented 1 year ago

If @contextwith @vocab is set the properties do not have to (should not ?) identify the vocab.

Relevant issue #2

apdavison commented 1 year ago

The current implementation uses the key "vocab" in the @context, not "@vocab", so the current output is valid JSON-LD.

However, I think it's a good idea to use "@vocab"