W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > June 2014

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

From: Jindřich Mynarz <mynarzjindrich@gmail.com>
Date: Tue, 3 Jun 2014 15:33:42 +0200
Message-ID: <CAE=8Bu-Apqh0kPe4KENRwEdOa8szUs5hMn3Pf-EE7+=KB5JuHw@mail.gmail.com>
To: public-rdf-ruby@w3.org
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:16 UTC