Re: RDFa API comments from TimBL

On Tue, 05 Oct 2010 17:30:24 +0100
Nathan <> 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