-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature request: "JSON-LD Schema" export #143
Comments
@nissimsan , I'll go through the requirments and get back to you soon. |
@kshychko and @onthebreeze - thoughts on this? |
Thought we had this already - but happy to support it - @Kseniya can you add it to your to-do list please |
I'm keen to bridge the plugin capabilities to generate schemas which can be used for
https://github.com/w3c-ccg/traceability-vocab
which pulls together JSON schemas, generating Verifiable Credential schemas.
The traceability-vocab is based on a clever approach to include the JSON-LD references into schemas, including it into the $comment element. example:
"$comment": "{\"term\": \"ParcelDelivery\", \"@id\": \"https://schema.org/ParcelDelivery\"}"
This level of precision can't otherwise be included in JSON Schema, and currently gets lost in all our exporting options. So alongside
YAML
,JSON
,JSON Schema
, I propose a additional optionJSON-LD Schema
option, targeted having this included and also with a few tweaks (compared to existing JSON Schema) tailored for fitting in with the traceability-vocab structure:"@id"
tag (which is currently just empty):^^ IGNORE POINT 2, REF KSENIYA'S COMMENT
"description"
of the root element, to use the actual description of the element rather than the name of the exported view:Skip the
"definitions"
, instead just list the properties directly under the"properties"
element. Please see attached examples.Always include "@context" and "type" elements. These can just be hard coded to:
Examples.zip
The text was updated successfully, but these errors were encountered: