- 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>
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)
{
window.alert(nathans_friends[i]);
}
--
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Tuesday, 5 October 2010 20:15:22 UTC