w3c / json-ld-bp

JSON-LD 1.1 Best Practices Note
https://w3c.github.io/json-ld-bp/
Other
21 stars 7 forks source link

Extra framing and validation information for extension #37

Open sebastiankb opened 3 years ago

sebastiankb commented 3 years ago

Coming from today's WoT Thing Description meeting:

We wondering if there is a standardized place where we can find the Frame and/or validation document (eg, SHACL, JSON Schema,... ) for a specific context. Can be this placed within the context file or what is the recommendation?

gkellogg commented 3 years ago

It's reasonable for the frame document to be used as a context. The only thing a JSON-LD processor looks for in a remote document used as a context is the @context, itself.

I've also used this as an alternate way to describe the vocabulary, when the context and the vocabulary share the same URI.

It's certainly reasonable for a frame document to also be used as a context, and, indeed, it does so for the frame output where the result is compacted using this context.

This could go in the Best Practices document.

gkellogg commented 2 years ago

Transferred from json-ld-api to json-ld-bp.