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 10:48:17 -0400
Cc: W3C RDF WG <public-rdf-wg@w3.org>, JSON-LD JSON <public-linked-json@w3.org>
Message-Id: <ACB42FDE-0C75-4196-8E6A-9A27904BBF9C@3roundstones.com>
To: Gregg Kellogg <gregg@greggkellogg.net>
Hi all,

I tend toward Gregg's comments below.  The section only applies to those people extracting JSON-LD content into RDF, therefore those wishing to "just use JSON-LD" shouldn't need to worry about it.


On Mar 22, 2013, at 10:30, Gregg Kellogg <gregg@greggkellogg.net> wrote:

> Looking for comments on the JSON-LD in HTML section. Please chime in if you have an opinion on the behavior of multiple script tags containing JSON-LD, or possibly JSON-LD and Turtle, possibly included in an RDFa document.
> Gregg Kellogg
> Sent from my iPad
> Begin forwarded message:
>> From: Markus Lanthaler <notifications@github.com>
>> Date: March 22, 2013, 2:06:56 AM PDT
>> To: "json-ld/json-ld.org" <json-ld.org@noreply.github.com>
>> Cc: Gregg Kellogg <gregg@greggkellogg.net>
>> Subject: Re: [json-ld.org] JSON-LD in HTML (#231)
>> Reply-To: "json-ld/json-ld.org" <reply+i-12110895-52c09e5d3a34f703c6719b4aa90283f79295ff6a-46296@reply.github.co>
>> I did ask this already in c728c6b but would like to record it also here as commit discussions are somewhat difficult to find and I don't wanna forget this.
>> The section currently says:
>> 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.
>> Markus: Can we drop this part? I think it doesn't add much value but sounds overly complicated for people just wanting to use it as JSON-LD.
>> Gregg: It's important to give guidance when there are multiple script tags, so that the result is clear. We could say that the result is the merge of all such documents.
>> When extracting RDF, JSON-LD could be combined with other formats (microdata, RDFa, Turtle in HTML). In this case, it's also necessary to say what the expected result it. Without this statement, it won't be clear what to do.
>> Markus: I understand where you are coming from, but thatís an orthogonal aspect that is application dependent. In our spec we should define how JSON-LD can be embedded in HTML. How such data is used is beyond the scope of this spec. I would strongly prefer to remove this part.
>> ó
>> Reply to this email directly or view it on GitHub.

Received on Friday, 22 March 2013 14:48:41 UTC

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