Re: question on RDFa subject resolution

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>.
</div>
========

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.


-Ben

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