- From: Shane McCarron <shane@aptest.com>
- Date: Tue, 16 Mar 2010 17:04:25 -0500
- To: martin@weborganics.co.uk
- CC: Toby Inkster <tai@g5n.co.uk>, RDFa WG <public-rdfa-wg@w3.org>
Yeah, this has a certain elegance to it. It's a little 'hacky' too, but I don't mind hacky. 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 > -- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: shane@aptest.com
Received on Tuesday, 16 March 2010 22:05:09 UTC