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

bug in example-http-request-with-profile-requesting-a-compacted-document-with-a-reference-to-a-compaction-context #402

Open
VladimirAlexiev opened this issue Nov 23, 2022 · 0 comments
Labels
Editorial Used by the errata management ErratumRaised Used by the errata management

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented Nov 23, 2022

EXAMPLE 168: HTTP Request with profile requesting a compacted document with a reference to a compaction context

GET /ordinary-json-document.json HTTP/1.1
Host: example.com
Accept: application/ld+json;profile="http://www.w3.org/ns/json-ld#flattened http://www.w3.org/ns/json-ld#compacted"

Requests the server to return the requested resource as JSON-LD in both compacted document form and flattened document form.

"reference to a compaction context" is missing from the example.
If we look at https://w3c.github.io/json-ld-syntax/#interpreting-json-as-json-ld, perhaps adding a Link header is needed.

GET /ordinary-json-document.json HTTP/1.1
Host: example.com
Link: <https://json-ld.org/contexts/person.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
Accept: application/ld+json;profile="http://www.w3.org/ns/json-ld#flattened http://www.w3.org/ns/json-ld#compacted"

But is this allowed in a Request?

And you should add to the description:

Also requests a specific compaction context to be used, through the "Link" header 
as described in section <a href="#interpreting-json-as-json-ld">6.1 Interpreting JSON as JSON-LD</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Editorial Used by the errata management ErratumRaised Used by the errata management
Projects
Status: Errata
Development

No branches or pull requests

2 participants