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

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

From: Toby Inkster <tai@g5n.co.uk>
Date: Sat, 12 Dec 2009 00:15:29 +0000
To: "Ennals, Robert" <robert.ennals@intel.com>
Cc: Manu Sporny <msporny@digitalbazaar.com>, "public-html@w3.org" <public-html@w3.org>
Message-ID: <1260576929.32395.64.camel@ophelia2.g5n.co.uk>
On Fri, 2009-12-11 at 20:14 +0000, Ennals, Robert wrote:

> Yeah. You are right. But typing about="_:bnode" seems pretty awkward
> for end users, especially given that, in the microdata usage models,
> this is something we expect to see almost everywhere. Microdata's
> "itemscope" seems much more friendly.

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.

> In Microdata, a common idiom is to write something like the following:
> <div itemscope>
>    <span itemprop="name">Rob</span>
>    <div itemprop="knows" itemscope>
>       <span itemprop="name">Manu</span>
>       <span itemprop="special-power">RDFa wizardry</span>
>    </div>
> </div>
> This declares two blank nodes, one for me and one for you, and
> declares that you are my friend.
> 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>

No extra node.

Toby A Inkster
Received on Saturday, 12 December 2009 00:16:15 UTC

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