W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > December 2009

Re: RDFa without using xmlns:

From: Martin McEvoy <martin@weborganics.co.uk>
Date: Tue, 08 Dec 2009 11:45:35 +0000
Message-ID: <4B1E3C5F.9000604@weborganics.co.uk>
To: Toby Inkster <tai@g5n.co.uk>
CC: Mark Birbeck <mark.birbeck@webbackplane.com>, RDFa <public-rdf-in-xhtml-tf@w3.org>
Hello Toby...

Toby Inkster wrote:
> On Tue, 2009-12-08 at 11:15 +0000, Martin McEvoy wrote:
>   
>> Mark mentioned that the page needs to be updated to use quotes ;)
>>     
>
> I was thinking more of this example:
>
> {
>   /* bnode */
>     "a": "<http://www.w3.org/2004/09/fresnel#Format>",
>     "http://www.w3.org/2004/09/fresnel#group": "<http://ubiquity-rdfa.googlecode.com/svn/trunk/_samples/formats/debug.html>",
>     "http://ubiquity-rdfa.googlecode.com/action": function(obj) {
>       .
>       .
>       .
>       return;
>     }
> }
>
> Including Javascript functions is a non-trivial extension of JSON,
> enough to make the data unparsable by virtually any JSON library, and
> (even if parsed OK) useless outside of environments that can evaluate
> Javascript.
>   

Ok how about using arrays ?

{
    "context": [
        {
            "token": [
                {
                    "name": "http://xmlns.com/foaf/0.1/name",
                    "homepage": "http://xmlns.com/foaf/0.1/homepage"
                },
                {
                    "name": "Anna Wilder",
                    "homepage": "<http://example.org/about>"
                }
            ]
        }
    ]
}

Would that improve anything ?... or have I missed the point .... ( which 
I am guessing I may have )

Thanks...


-- 
Martin McEvoy

WebOrganics http://weborganics.co.uk/
Add to address book: http://transformr.co.uk/hcard/http://weborganics.co.uk/
Received on Tuesday, 8 December 2009 11:46:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 December 2009 11:46:11 GMT