Re: RDFa without using xmlns:

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 UTC