W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > October 2010

Re: RDFa API comments from TimBL

From: Toby Inkster <tai@g5n.co.uk>
Date: Tue, 5 Oct 2010 21:06:25 +0100
To: nathan@webr3.org
Cc: Ivan Herman <ivan@w3.org>, RDFA Working Group <public-rdfa-wg@w3.org>, Tim Berners-Lee <timbl@w3.org>
Message-ID: <20101005210625.0ca1a956@miranda.g5n.co.uk>
On Tue, 05 Oct 2010 17:30:24 +0100
Nathan <nathan@webr3.org> wrote:

> so let's say we put all this in a property .graph, then you could do:
>    var nathan = store.graph[":nathan"];
> and `nathan` would contain an object with all the properties as 
> properties, and each value as an array of objects.
> likewise if you did store.graph[":nathan"]["foaf:knows"] you'd get an 
> array of ["manu", "ivan", "mark"] back - this should work in other 
> languages too, certainly does in PHP and the likes.

getItemBySubject and the PropertyGroup interface is intended to be
conceptually similar:

  var nathan = document.getItemBySubject("#nathan");
  var nathans_friends = nathan.get("foaf:knows");
  for (var i in nathans_friends)

Toby A Inkster
Received on Tuesday, 5 October 2010 20:15:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:21 UTC