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

Re: Another way other than @profile, @vocab or @map

From: Martin McEvoy <martin@weborganics.co.uk>
Date: Tue, 16 Mar 2010 23:17:13 +0000
Message-ID: <4BA01179.2010305@weborganics.co.uk>
To: Shane McCarron <shane@aptest.com>
CC: Toby Inkster <tai@g5n.co.uk>, RDFa WG <public-rdfa-wg@w3.org>
On 16/03/2010 22:04, Shane McCarron wrote:
> Yeah, this has a certain elegance to it.  It's a little 'hacky' too, 
> but I don't mind hacky.

And simplicity too, ... I like 'hacky', hacky is how all good things 
start ;)


>
> Martin McEvoy wrote:
>> Hello Toby
>>
>> Thanks for your reply,
>>
>> On 16/03/2010 19:17, Toby Inkster wrote:
>>> On Tue, 2010-03-16 at 14:38 +0000, Martin McEvoy wrote:
>>>> With all the above in mind,  RDFa could I think re-use an attribute
>>>> name that already exists in htm5, microdata to be more precise
>>>> "itemtype"[1]. RDFa could be used pretty much like microdata eg:
>>>>
>>>> <div itemtype="http://www.w3.org/2006/vcard/ns#" 
>>>> about="#BusinessEntity"
>>>> typeof="VCard">
>>>> <div property="fn">L'Amourita Pizza</div>
>>>> <div rel="adr">
>>>> <div typeof="Address">
>>>> <span property="street-address">2040 Any Street</span>,
>>>> <span property="locality">Springfield</span>,
>>>> <span property="postal-code">98102</span>.
>>>>                Tel:<span property="tel">206-555-7242</span>.
>>>> <span rel="url" resource="http://pizza.example.com/"></span>
>>>> </div>
>>>> </div>
>>>> </div>
>>> I like the general idea, but how about reusing typeof instead:
>>>
>>> <div typeof="http://www.w3.org/2006/vcard/ns#VCard" 
>>> about="#BusinessEntity">
>>> <div property="fn">L'Amourita Pizza</div>
>>> <div rel="adr">
>>> <div typeof="Address">
>>> <span property="street-address">2040 Any Street</span>,
>>> <span property="locality">Springfield</span>,
>>> <span property="postal-code">98102</span>.
>>> </div>
>>> </div>
>>>    Tel:<span property="tel">206-555-7242</span>.
>>> <span rel="url" resource="http://pizza.example.com/"></span>
>>> </div>
>>>
>>> This should be pretty easy to make workable: whenever typeof contains a
>>> full URI (CURIE versus URI can be determined by checking whether
>>> xmlns:http has been declared yet), then it sets the default prefix (by
>>> trimming back to the last non-QName character - in the example above
>>> '#') for unprefixed tokens. In the case where typeof contains multiple
>>> tokens (space-separated), then the first one wins.
>>>
>>> This may well be more author-friendly than external profiles; plus it's
>>> going to make parsing a bit faster, not needing to dereference external
>>> files.
>>
>> I like it Toby, allowing @typeof to accept a full uri is a lot better 
>> than my idea and easy to use in RDFa and very little extra cost for 
>> parsing,
>>
>> +1 from me on that one too ;)
>>
>> Best wishes
>>
>


-- 
Martin McEvoy
Received on Tuesday, 16 March 2010 23:17:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:06 GMT