Gregg Kellogg
Gregg Kellogg
Another thing to consider would be adding an optional argument to `#to_s` to specify a format string to use rather than FORMAT (although, the timezone information isn't included in the...
All implementations of JSON-LD allow you to provide a custom document loader, precicely to handle this situation. You can invoke the JSON-LD api with a `documentLoader` option providing a callback...
Compaction to the list form happens when converting from RDF to JSON-LD. Note that RDF lists that can be serialized with a shorthand (Turtle or JSON-LD) subjects always use a...
JSON-LD playground doesn't do RDF to JSON-LD. Try it on my [distiller](http://rdf.greggkellogg.net/distiller?command=serialize&format=jsonld&output_format=jsonld).
Using that on the distiller link I gave you doing jsonld to jsonld I get the following: ```json { "@id": "http://ex.org/item/2", "http://ex.org/eal/hasAnswerText": { "@list": [ "42", "43", "41" ] },...
“Serialize” with “jsonld” as both input and output formats.
Compaction does not fold first/last chains. That is done when converting from RDF. With the distiller, your parsing JSON-LD to RDF and then back to JSON-LD, which is why this...
It was considered both for JSON-LD 1.0 and 1.1 but rejected, as Compaction doesn’t deal with RDF semantics/schema at all. Round-tripping is a reasonable way to do this.
Pyld has a BSD license, and I'll be working to bring that one up to date. I think some of the code might be shared, with permission from Digital Bazaar,...
The spec specifically calls for such IRIs to be ignored, so raising an error would cause some tests to fail. I think the best thing to do is issue a...