W3C home > Mailing lists > Public > public-rdf-comments@w3.org > May 2012

Re: JSON-LD Syntax request for FPWD via RDF WG

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Wed, 23 May 2012 02:30:09 -0400
To: Richard Cyganiak <richard.cyganiak@deri.org>
CC: Markus Lanthaler <markus.lanthaler@gmx.net>, "public-rdf-comments@w3.org" <public-rdf-comments@w3.org>
Message-ID: <9311C88C-7EE6-46D3-94B7-0D596802E351@greggkellogg.net>


Gregg

On May 22, 2012, at 4:07 PM, Richard Cyganiak wrote:

> On 22 May 2012, at 20:00, Gregg Kellogg wrote:
> ...
>> You can turn it into RDF using my distiller (at http://rdf.greggkellogg.net/distiller. You could also use that to turn arbitrary RDF into JSON-LD.
> 
> Thanks, but this doesn't seem to work for me. I pasted http://json-ld.org/test-suite/tests/fromRdf-manifest.jsonld into the URI box and clicked Submit. I got: NoMethodError: undefined method `empty?' for nil:NilClass

Sorry, odd bug added in a recent update. Try it again:
http://rdf.greggkellogg.net/distiller?forat=turtle&in_fmt=jsonld&uri=http://json-ld.org/test-suite/tests/toRdf-manifest.jsonld

Gregg

> Best,
> Richard
> 
> 
> 
>> 
>> Gregg
>> 
>>>> The fact that manifests are all represented using JSON should make this a fairly easy thing to do within the HTML page itself, perhaps using the <script type="application/ld+json"> similar to that used in the Turtle spec.
>>> 
>>> Sounds useful.
>>> 
>>> Thanks,
>>> Richard
>>> 
>>> 
>>> 
>>>> 
>>>> Gregg
>>>> 
>>>>>> 3. Is it possible to serialize an RDF graph into a "pretty" JSON-LD
>>>>>> document using a context? I presume the answer is "yes" and involves
>>>>>> Compaction of the basic serialized output.
>>>>> 
>>>>> Yes, exactly either by compacting or by framing.
>>>>> 
>>>>> 
>>>>> [1] https://github.com/json-ld/json-ld.org/issues/125
>>>>> [2] http://json-ld.org/spec/latest/json-ld-syntax/#markup-examples
>>>> [3] http://www.w3.org/TR/2011/WD-rdf-interfaces-20110510/
>>>> [4] http://json-ld.org/test-suite/tests/fromRdf-manifest.jsonld
>>>> [5] http://json-ld.org/test-suite/tests/toRdf-manifest.jsonld
>>>> 
>>>>> --
>>>>> Markus Lanthaler
>>>>> @markuslanthaler
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
> 
> 
Received on Wednesday, 23 May 2012 06:32:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 23 May 2012 06:32:36 GMT