W3C home > Mailing lists > Public > public-html@w3.org > December 2009

RE: ISSUE-76: If we fixed namespaces, does RDFa still have problems?

From: Ennals, Robert <robert.ennals@intel.com>
Date: Sat, 12 Dec 2009 01:15:08 +0000
To: Toby Inkster <tai@g5n.co.uk>
CC: Manu Sporny <msporny@digitalbazaar.com>, "public-html@w3.org" <public-html@w3.org>
Message-ID: <EB332302649177439359CE520D92A0AFA284AD33@irsmsx503.ger.corp.intel.com>
[snip]

> I *think* typeof="" should quickly and easily accomplish the feat of
> creating a blank node without giving it a name or type, or using
> chaining, but the current RDFa spec is a little unclear in that regard.
> Hopefully RDFa 1.1 will clarify this particular case, as I do think
> it's a useful pattern.

Ah. I hadn't realized that was legal. A quick play with the w3 online RDFa Distiller suggests that does indeed work.

[snip]

> > In RDFa I believe I would have to write:
> >
> > <div about="_:bnode" vocab="whatever">
> >    <span property="name">Rob</span>
> >    <div rel="knows"> -- This node isn't needed in Microdata
> >      <div about="_:bnode2">
> >        <span property="name">Manu</span>
> >        <span property="special-power">RDFa wizardry</span>
> >      </div>
> > </div>
> 
> In RDFa you could write:
> 
> <div about="_:bnode" vocab="whatever">
>   <span property="name">Rob</span>
>   <div rel="knows">
>     <span property="name">Manu</span>
>     <span property="special-power">RDFa wizardry</span>
>   </div>
> </div>
> 
> No extra node.

You are indeed right.

I think the reason I missed that was because, when I'd been playing around with RDFa, I'd been putting @typeof on all my nodes. Rather confusingly, if I write your example with @typeof:

<div about="_:bnode" vocab="whatever">
  <span property="name">Rob</span>
  <div rel="knows" typeof="Person">
    <span property="name">Manu</span>
    <span property="special-power">RDFa wizardry</span>
  </div>
</div>

... then it doesn't work, the link between me and Manu isn't made, and we need the indirection node again.


RDFa makes my head hurt...


-Rob


Received on Saturday, 12 December 2009 01:15:48 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:55 UTC