How to skip flattening when serializing RDF::Graph to JSON-LD?

Hi,

when using JSON-LD writer, is it possible to skip flattening (
http://www.w3.org/TR/json-ld-api/#flattening-algorithm)? I'd like to see
objects identified with blank nodes as nested in the resulting JSON instead
of being inserted as top-level objects in the JSON-LD @graph. This is what
PyRDFa (http://www.w3.org/2012/pyRdfa/) distiller does when JSON-LD output
is requested. Is this possible with the json/ld gem?

I've consulted the library's documentation (
http://rubydoc.info/gems/json-ld/file/README.md), but I haven't found an
answer.

Best,

Jindřich

-- 
Jindřich Mynarz
http://mynarz.net/#jindrich

Received on Tuesday, 3 June 2014 13:34:30 UTC