json-ld/json-ld.org

Update playground for YAML-LD

gkellogg opened this issue · 2 comments

Two things for this:

  • jsonld.js should either be updated or have a shim for handling application/ld+yaml media type and transforming JSON to/from YAML.
  • the playground should allow options to specify input and/or output encodings for YAML-LD, also for Context and Frame.
    • as a bonus, allow Turtle/TriG input/output for appropriate algorithms using rdfjs.

Thoughts on this:

  • The "JSON-LD Input" tab might be a drop-down to select alternative formats. (Might suggest similar formats for the Context, Frame, and Output areas.
    • Note that processing could always be YAML, which handles JSON input as well.
    • The same mechanism could be used for selecting other RDF inputs, or RDF outputs in the N-Quads tab case.
  • Codemirror and linting additions for YAML might be a lot of work
  • Selecting input format might also select different example inputs
    • Alternatively, could be auto-generated from JSON using YAML library.