W3C home > Mailing lists > Public > public-linked-json@w3.org > March 2013

Re: [json-ld.org] JSON-LD in HTML (#231)

From: David Wood <david@3roundstones.com>
Date: Fri, 22 Mar 2013 15:48:35 -0400
Cc: "'Ivan Herman'" <ivan@w3.org>, "'W3C RDF WG'" <public-rdf-wg@w3.org>, "'JSON-LD JSON'" <public-linked-json@w3.org>
Message-Id: <C5FEABFC-0EAC-4F7A-B649-8C28DEA14C64@3roundstones.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>

On Mar 22, 2013, at 15:08, Markus Lanthaler <markus.lanthaler@gmx.net> wrote:

> On Friday, March 22, 2013 5:09 PM, Ivan Herman wrote:
> 
>>> [[[
>>> If a processor extracts the JSON-LD content into RDF, it should
>> expand the
>>> JSON-LD fragment into an RDF dataset using the algorithm defined in
>>> JSON-LD-API Convert to RDF Algorithm [JSON-LD-API]. If the HTML file
>>> contains multiple JSON-LD script tags, or other RDF statements are
>>> extracted, the result is the RDF merge of the datasets.
>>> 
>>> Other processors implementing this mechanism may choose to return the
>>> expanded JSON-LD output.
>>> ]]]
>>> 
>>> I'm specifically worried about the second paragraph. This suggest (to
>> me at
>>> least), that other (?) processors should return expanded JSON-LD
>> output
>>> instead of returning it as is.
>> 
>> Ah! Markus, you are right, I missed that stuff. In my view, processors
>> return RDF. Full stop...
> 
> My rewording (see below) I intentionally didn't use the word processor. What
> processor are you talking about? A JSON-LD processor? It wouldn't make much
> sense IMHO to restrict a JSON-LD processor to just extract RDF. As I said,
> what's done with the data is completely up to the application extracting it.
> We can say that if RDF is desired the specified algorithm should be used,
> but that's it IMO.
> 
> 
> [[[
> Defining how such data may be used is beyond the scope of this
> specification. The embedded JSON-LD document might be extracted as is or
> converted to RDF.
> 
> If JSON-LD content is extracted as RDF, it should be expanded into an RDF
> dataset using the Convert to RDF Algorithm [JSON-LD-API]. If multiple
> embedded JSON-LD documents are extracted as RDF, the result is the RDF merge
> of the extracted datasets.
> ]]]

+1.  Thanks, Markus.

Regards,
Dave
--
http://about.me/david_wood


> 
> 
> Cheers,
> Markus
> 
> 
> --
> Markus Lanthaler
> @markuslanthaler
> 
> 
> 
> 
> 



Received on Friday, 22 March 2013 19:48:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:21 UTC