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

Pass in baseUri to JSON-LD lib in parse() #177

Closed
dmitrizagidulin opened this issue Mar 14, 2017 · 0 comments
Closed

Pass in baseUri to JSON-LD lib in parse() #177

dmitrizagidulin opened this issue Mar 14, 2017 · 0 comments
Assignees

Comments

@dmitrizagidulin
Copy link
Contributor

Currently, the JSON-LD section in parse() (specifically, the jsonld.toRDF() call) is not passing in the base URI. Which results in various issues, including the downstream issue nodeSolidServer/node-solid-server#497 (translation from JSON-LD into Turtle breaks for empty <> URIs).

The fix is minimal, and involves passing in base to the toRDF() call:

jsonld.toRDF(jsonDocument,
  {format: 'application/nquads', base},
  nquadCallback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants