JSON-LD for non-LD to LD and LD to LD mappings #85
simontaurus
started this conversation in
FAIR Impact Mapping Recommendations
Replies: 1 comment 3 replies
-
I am not exactly clear yet about what you would like to add to the recommendation; Can you provide a full JSON LD example with the mapping for the Jane Doe example? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@matentzn, @sveinugu, @jesper-friis
Following the scenario-discussion in #84 JSON-LD should be more prominent as recommendation since it is an existing W3C standard and can cover multiple scenarios:
non-LD to LD
This is the major usecase for JSON-LD by applying a JSON-LD context to any JSON document.
non-LD to non-LD
Since (most) JSON-LD transformations are reversible having two non-LD to LD mappings in place can also form the chain non-LD' to LD, LD to non-LD''. Note that the LD representations needs to be the same or a mapping (see next point) exists.
This does not only cover simple keyword mappings but also important data transformations like array/literal enforcement (
"@container": "@set"
), adding/skipping nesting levels (@nest
) and default language for non-localized literals (@language
), all implemented by JSON-LD standard algorithmsLD to LD
This is out of scope for standard JSON-LD since not even the definition of an alias is allowed.
However, a simple extension (see OO-LD/schema#11) would allow to define exact mappings for properties and classes, potentially generated from SSSOM by applying confidence intervals for the exactness of a mapping.
In combination with syntactical schemas like JSON-SCHEMA / pydantic (see https://github.com/OO-LD/schema) we can archive e.g. people using multiple, syntactically non-interoperable, data classes
which are nevertheless semantically interoperable with the provide annotations (see https://github.com/OO-LD/oold-python) and a corresponding SSSOM:
If you agree I can draft an update of the documentation https://github.com/mapping-commons/rda-fair-mappings/blob/main/docs/recommendation.md regarding JSON-LD in general and add a use case for the specific implementation with OO-LD.
Beta Was this translation helpful? Give feedback.
All reactions