W3C home > Mailing lists > Public > public-linked-json@w3.org > December 2011

Re: Empty frame [] should not destroy triples

From: Dave Longley <dlongley@digitalbazaar.com>
Date: Tue, 20 Dec 2011 17:42:08 -0500
Message-ID: <4EF10F40.4030305@digitalbazaar.com>
To: Josh Mandel <Joshua.Mandel@childrens.harvard.edu>
CC: public-linked-json@w3.org
On 12/20/2011 04:31 PM, Josh Mandel wrote:
> Thanks, Dave!  Framing with an empty array now works the way I expect it to.


> Framing with an empty dictionary  -- {} -- though, is (still?) lossy.
> Example:  http://tinyurl.com/7zk3egq (load + click "Framed" tab).
> I think an empty dictionary frame should also preserve the set of
> implied triples, unless there's an implication I haven't thought
> through...

If you frame with an empty dictionary, it picks the first match and only 
the first match. The framing algorithm interprets an empty dictionary as 
a request to return "any" subject, but only one of them. So this 
behavior is intentional. If you want multiple subjects you must use an 
array (either [] or [{}] -- these two are equivalent). Do these options 
not fully cover your use cases?

>    -Josh
> On Wed, Nov 23, 2011 at 11:57 AM, Dave Longley
> <dlongley@digitalbazaar.com>  wrote:
>> Josh,
>> This is a bug that I also discovered while looking into the other issue
>> you brought up with @embed in your previous email. When I get a chance,
>> I'll fix both of them.
>> -Dave

Dave Longley
Digital Bazaar, Inc.
Received on Tuesday, 20 December 2011 22:42:33 UTC

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