You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by GitBox <gi...@apache.org> on 2022/04/16 08:57:18 UTC
[GitHub] [jena] afs commented on issue #1254: json-ld serialisation and URIs/predicate overlapping
afs commented on issue #1254:
URL: https://github.com/apache/jena/issues/1254#issuecomment-1100612572
Hi @fatzh,
Jena uses [jsonld-java](https://github.com/jsonld-java/jsonld-java) for reading JSON-LD 1.0 and uses [titanium-json-ld](https://github.com/filip26/titanium-json-ld) to parse JSON-LD 1.1.
Jena uses jsonld-java for writing JSON-LD (so JSON-LD 1.0). Note - your data does not have "@ version" (space added to not name a GH user!)
When I parse the `[ "book:_B", "book:_C", "book:_2", "book:_1", "book:_A" ]` I get different RDF between JSON-LD 1.0 and 1.1 across json-ld-java and titanium. Same for the JSON-LD playground does the same for JSON-LD 1.0 vs 1.1.
See a users@jena thread:
https://lists.apache.org/thread/zl0c6jgxnc9ckmc5pvhcoy72ypyr41fp
Suggestion - could you add a prefix to the data for `book:`? The writer tries to use the prefixes to build the context.
It looks like a difference between JSON-LD 1.0 and 1.1.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org