W3C home > Mailing lists > Public > public-linked-json@w3.org > August 2016

Re: JSON-LD & nested structure

From: james anderson <james@dydra.com>
Date: Thu, 18 Aug 2016 00:20:08 +0000
Message-ID: <010201569b04f410-a3dbbf58-0a62-4d29-8f09-707d497394d3-000000@eu-west-1.amazonses.com>
To: JSON-LD CG <public-linked-json@w3.org>

> On 2016-08-18, at 01:52, Gregg Kellogg <gregg@greggkellogg.net> wrote:
>> On Aug 17, 2016, at 4:33 PM, james anderson <james@dydra.com <mailto:james@dydra.com>> wrote:
>> good morning;
>>> On 2016-08-17, at 22:43, Gregg Kellogg <gregg@greggkellogg.net <mailto:gregg@greggkellogg.net>> wrote:
>>> […]
>>>> I don't know if the Ruby implementation supports these features yet.
>>> I believe I support all of the embedding options that Dave’s does.
>>> BTW, on my short-term list is to try to update the Framing spec based on this common behavior.
>> if you should get to that, please distinguish between behaviour which concerns or presumes a json data model and that which concerns just the encoding itself.
>> as the document stands, there are aspects which one ignores - with bad conscience, but to advantage, when one has no json data model and there are others which, when they are implemented because they are stated so explicitly, but without a model, are just not a good idea.
> James, I imagine the algorithm to be defined in a manner similar to both the existing, and other JSON-LD algorithms. As framing always involves expansion, the structure of both the frame, and the source document is well defined in terms of expanded JSON-LD.
> Could you provide an example of where the existing text confuses the JSON data model and the encoding? If this is confusing in existing algorithms, can you suggest how that wording might be improved?

while the potential for confusion among an abstract model, a concrete model, and the concrete encoding applies to other issues with the documents, with respect to this issue, the concern is that the framing document presumes a concrete model.
in detail, that it is a “json” model is incidental.

the examples which spring to mind:

- if i have understood the document correctly, it stipulates that as part of the process the data be ordered by id.
there are situations in which it is possible to arrange for that without materializing a model, but that is not always the case.
in other situations, this requirement make it difficult to stream a response encoded as json-ld.

- the @link mode:
> One more thing -- I forgot there's also an "@link" embed option, which
> will cause the output to use direct object references (in-memory links)
> when embedding. This kind of output can't necessarily be serialized due
> to potential circular references, but it is often useful for applications.

- the @last mode presumes there is some state within which a reference is known to be last. @first would be as unfortunate. @never is the only one which makes sense for streamed data.
best regards, from berlin,
james anderson | james@dydra.com | http://dydra.com

Received on Thursday, 18 August 2016 00:20:44 UTC

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