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

Clarify support for interpreting-json-as-json-ld #166

Open
rob-metalinkage opened this issue Aug 29, 2022 · 0 comments
Open

Clarify support for interpreting-json-as-json-ld #166

rob-metalinkage opened this issue Aug 29, 2022 · 0 comments

Comments

@rob-metalinkage
Copy link

rob-metalinkage commented Aug 29, 2022

The JSON-LD specification allows injecting a context into a json document before parsing..

https://w3c.github.io/json-ld-syntax/#interpreting-json-as-json-ld

It is not obvious how PyLD supports this mode of processing - when accessing a document that sets the context via a link header it gets passed to process_context() - but it should be possible to force use of a context during parsing json that comes from other sources, and cannot set the link header this way. I suspect this is possibly just a small tweak and/or updating the README with a relevant example.

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

No branches or pull requests

1 participant