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
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:21 UTC