W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > February 2007

Re: question on RDFa subject resolution

From: Ben Adida <ben@adida.net>
Date: Fri, 09 Feb 2007 10:50:31 -0500
Message-ID: <45CC9847.7030201@adida.net>
To: bob@snee.com
CC: public-rdf-in-xhtml-tf@w3.org

Bob DuCharme wrote:
> When should it pick up an id attribute as a subject?

If I make a mistake here (and this is why we need to finish the Syntax
document ASAP), I hope Mark can come in and correct me :)

In the current specification, and ID attribute becomes the subject in
two specific cases:

1) the triple you're considering was generated by a LINK or META, and
there is an ID on the immediate parent.

2) you can encounter, as you go up the ancestor hierarchy and BEFORE you
hit an ABOUT, an element with a rel="", no href="", and an id="". This
case is *not yet* reflected in the RDFa Syntax document, and is meant to
handle the following striping situation:

This paper was written by
<div rel="dc:creator" id="me">
  <span property="foaf:name">Ben Adida</span>,
  <a rel="foaf:mbox" href="mailto:ben@adida.net">ben@adida.net</a>.

which yields:

<> dc:creator <#me> .

#me foaf:name "Ben Adida" ;
    foaf:mbox <mailto:ben@adida.net> .

Note how, in both of these cases, the absence of an ID would yield a
bnode. That's the way you can remember where ID comes in: if you would
otherwise get a bnode, but you actually want it addressable, you can use
ID. Note also how, in both cases, an ABOUT on the *same* element will
trump the ID.

Received on Friday, 9 February 2007 15:50:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:49 UTC