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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to