yaml-ld icon indicating copy to clipboard operation
yaml-ld copied to clipboard

Collecting JSON-LD file samples

Open ioggstream opened this issue 3 years ago • 1 comments

I volounteer

To write some round-trip tests with files containing JSON-LD and YAML like the ones I wrote for https://github.com/ietf-wg-httpapi/mediatypes/blob/main/yaml-json-interoperability.yaml

Could you provide/link some of these files (e.g. creating a folder in this repo?)

If you prefer, I can use the https://github.com/ietf-wg-httpapi/mediatypes repo

cc: @msporny @gkellogg @pchampin

ioggstream avatar May 28 '22 13:05 ioggstream

These files are all derived from the examples in the spec: https://github.com/w3c/json-ld-syntax/tree/main/yaml. The extracted examples from the spec are in https://github.com/w3c/json-ld-syntax/tree/main/examples.

The YAML output is just the process of using the Ruby to_yaml on the parsed JSON.

The Rakefile has a script for extracting the examples, and testing that transformations are equivalent. Doing the same for YAML to JSON-LD should be trivial.

gkellogg avatar May 28 '22 16:05 gkellogg