-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Parser fails quietly with an @id with no scheme #145
Comments
In fact, other forms of invalid URI produce the same effect. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Hi, Try set document Url manually e.g. try {
JsonDocument doc = JsonDocument.of(stream);
doc.setDocumentUrl(URI.create("https://apicatog.com"));
List<RdfNQuad> list = JsonLd.toRdf(doc).get().toList();
....
} catch (JsonLdError e) {
....
} result:
Version |
Print a warning if a subject is not well-formed IRI (#145)
The above json-ld has an id with a relative (not absolute) URI.
The parser processes this as input without error but emits
no Triples output.
Code:
The list is empty.
I believe that the parser should either:
NOTE: Change the @id to 'urn:x.y.z' and it works fine.
The text was updated successfully, but these errors were encountered: