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

Re: RDFa API comments from TimBL

From: Nathan <nathan@webr3.org>
Date: Tue, 05 Oct 2010 21:08:54 +0100
Message-ID: <4CAB85D6.2010503@webr3.org>
To: Toby Inkster <tai@g5n.co.uk>
CC: Ivan Herman <ivan@w3.org>, RDFA Working Group <public-rdfa-wg@w3.org>, Tim Berners-Lee <timbl@w3.org>
Toby Inkster wrote:
> 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]);
>   }
> 

indeed! don't have document.anything* on the server side or in other 
languages though..
Received on Tuesday, 5 October 2010 20:09:51 UTC

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