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: Mon, 07 Dec 2009 23:07:34 +0000
Message-ID: <4B1D8AB6.4090201@weborganics.co.uk>
To: Mark Birbeck <mark.birbeck@webbackplane.com>
CC: RDFa <public-rdf-in-xhtml-tf@w3.org>
Mark Birbeck wrote:
> Hi Martin,
>
>   
>> [...]
>>
>> and if you combine my example (+ your suggestions )  with yours .....
>>
>> {
>>   namespace: {
>>     foaf: "http://xmlns.com/foaf/0.1/",
>>     dc: "http://purl.org/dc/elements/1.1/"
>>   },
>>   context: {
>>     base: "http://example.org/about",
>>     token: {
>>       title: "dc:title",
>>       maker: "foaf:maker",
>>       name: "foaf:name",
>>       homepage: "foaf:homepage"
>>     }
>>   }
>> }
>>
>>     
> Oops...sorry...I haven't explained it very well.
>
> My 'token' value is playing exactly the same role as your 'namespaces'
> value. So I'm suggesting that for the JSON serialisation of prefix
> mappings, we actually use RDFj.
>   

All, sorry...
> Some justifications are:
>
>
>   

I agree :)
> And if we allowed the abbreviation, it could become this:
>
>   {
>     token: {
>       foaf: "http://xmlns.com/foaf/0.1/",
>       dc: "http://purl.org/dc/elements/1.1/"
>     }
>   }
>   

I have changed the example to

{
    "token": {
      "foaf": "http://xmlns.com/foaf/0.1/",
      "dc": "http://purl.org/dc/elements/1.1/"
    }
}

sorry about the quotes on everything php json decoding wont work with 
out them.

Best wishes Mark and thanks for your thoughts, very valuable.

-- 
Martin McEvoy

WebOrganics http://weborganics.co.uk/
Add to address book: http://transformr.co.uk/hcard/http://weborganics.co.uk/
Received on Monday, 7 December 2009 23:08:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 23:08:11 GMT