Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update playground for YAML-LD #788

Open
3 tasks
gkellogg opened this issue Aug 3, 2022 · 2 comments
Open
3 tasks

Update playground for YAML-LD #788

gkellogg opened this issue Aug 3, 2022 · 2 comments
Labels
playground yaml-ld Discussion on a YAML-LD variant for JSON-LD

Comments

@gkellogg
Copy link
Member

gkellogg commented Aug 3, 2022

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.
@gkellogg
Copy link
Member Author

gkellogg commented Aug 6, 2022

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.

@gkellogg gkellogg added the yaml-ld Discussion on a YAML-LD variant for JSON-LD label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playground yaml-ld Discussion on a YAML-LD variant for JSON-LD
Projects
None yet
Development

No branches or pull requests

2 participants