-
Notifications
You must be signed in to change notification settings - Fork 16
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 how client's JSON-LD context, flattening and the hydra helper from namespaces should work together #15
Comments
Capturing #17
It seems to me that hydra namespace helper depends directly on the JSON-LD context used for framing the "hypermedia interface". Terms from hydra vocab used in that interface get matched in code against full IRIs provided by that namespace helper. In PR #17 we can see that matching against the IRIs provided by helper puts particular requirements on the JSON-LD context used for framing. Do we intend that hydra namespace helper only gets used internally by the client or also expose it to the developers who use the client in their applications? |
The situation now is Heracles.ts no more uses JSON-LD framing for data model processing. The The response is first flattened to contextles form with all IRIs (including blank nodes) expanded and all values normalized. Then the internal engine traverse such a graph searching for resources matching I hope this answers your doubtes. As for the JSON-LD context used - there is neither special requirement nor limitation on using it by other developers. |
PR #11 introduces in JSON-LD context
to my understanding to enforce full IRIs which later get matched against
hydra
helper exported fromnamespaces
module. Possibly currently JSON-LD context, flattening of the response and use of hydra helper from namespaces module don't work together as good as they can.@lanthaler also questioned the two lines above in JSON-LD context in #11 (comment)
I see this issue a distinct but related to #14
The text was updated successfully, but these errors were encountered: