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

Multiple JSON-LD Contexts #22

Closed
azaroth42 opened this issue Feb 18, 2015 · 1 comment
Closed

Multiple JSON-LD Contexts #22

azaroth42 opened this issue Feb 18, 2015 · 1 comment
Labels

Comments

@azaroth42
Copy link
Collaborator

It is possible to have multiple JSON-LD contexts applied to exactly the same model to generate different serializations with the same structure. Compare the CG's context with the current WG's context, for example. The protocol should specify how to request the annotation using a particular context. For Create and Update this is not relevant as the context can be part of the JSON-LD payload of the request.

Proposal:
There is a recommended best practice of using profile URIs [1] from RFC 7284 [2]. The WG would need to register a profile for the base context and frame/structure, and further communities would then register their own profiles to specify alternatives. The registered profile URI is then carried in the Link header [3] on the HTTP request/response with a rel of 'profile' [4]

Thus the header might look like:

Link:  <http://www.w3.org/profile/oa/1>;rel="profile"

[1] http://www.iana.org/assignments/profile-uris/profile-uris.xhtml
[2] http://tools.ietf.org/html/rfc7284
[3] http://tools.ietf.org/html/rfc5988
[4] http://tools.ietf.org/html/rfc6906

@azaroth42
Copy link
Collaborator Author

Closed by pre-FPWD edits (4.2.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant