-
Notifications
You must be signed in to change notification settings - Fork 15
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
Enable JSON-LD expansion on subjects (in addition to properties) #37
Comments
JSON-LD context expansion is currently not used for the base subject (directly after 'solid.data'), only for properties. It does indeed make sense to extend it to this case. |
For reference when this will be implemented: |
Great thanks! |
Considering const ContextParser = require('jsonld-context-parser').ContextParser;
const normalizedContext = await myParser.parse({
...
"collective":"https://api.happy-dev.fr/collectives/"
});
const iri = ContextParser.expandTerm('collective:1', normalizedContext);
const resource = solid.data[iri] |
Thanks! |
You get back a NamedNode; they are full URIs. |
Ok, you mean that the NamedNode URIs are never compacted with the current context? |
As we sometimes use the resource ids in URLs, we would like to use reduced ids to make it cleaner.
I expected the following code to work but I get an error. Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: