-
Notifications
You must be signed in to change notification settings - Fork 7
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
@id value must be an absolut IRI #4
Comments
I am so sorry for not replying to you sooner. I understood the problem and added new test case test-issue-4 . Please try demo again. |
Thanks issue resolved. In test-issue-4 I would have also added a line Waiting for the npm version. |
Thank you again, Version 0.0.9 released. |
I encountered this issue when implementing
ttl2jsonld
to serialize jsonld in https://github.com/linkeddata/rdflib.js (see screens below)Your app does a good job to create a compact jsonld output with relative links from a compact ttl.
rdflib produce compact ttl with relative links and collections
@list.
Actually the only issue is when ttl contains
@prefix
with non abolute IRI, like@prefix : <#>.
or@prefix n: </#>.
@id
value accepts relative url without any problem.I made a simple function to find non valid IRI in @context. Then rebuild any @id value and delete @context declaration.
A better solution would to make a PR.
The text was updated successfully, but these errors were encountered: