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

Re: The core processing step (was: Ben's rules:-)

From: Ben Adida <ben@adida.net>
Date: Fri, 10 Aug 2007 18:39:39 -0700
Message-ID: <46BD135B.4030705@adida.net>
To: public-rdf-in-xhtml-tf@w3.org

Ivan wrote:
> It seems that, at that point, we still have a problem with the basic
> processing step in RDFa, the one I always called "Ben's rules"[1]. The
> issue that was discussed before was the exact role of @about in chaining
> the subjects. Indeed, if one takes the rule as it is today then:
> <p>This photo was taken by
> <span about="http://www.ex.org" rel="dc:resource">Mark Birbeck</span>.</p>
> yields
> <http://www.ex.org> dc:resource <http://www.ex.org>
> which is certainly [NOT] what we want!

The way I "fixed" this in my parser is by using the "modified Ben's
rules" that does *not* use @about in the special subject resolution,
except in the special case that @rel and @rev are not present:

    // if there is an ABOUT at this stage, and no rel or rev
    // then that is the element's subject
    if (RDFA.getNodeAttributeValue(element,'about') &&
!RDFA.getNodeAttributeValue(element,'rel') &&
            return RDFA.getNodeAttributeValue(element,'about');

I believe that is equivalent to what Ivan described. It is indeed the
one somewhat inconsistent part of RDFa right now, and I do wonder if it
means we should generally encourage people to use @resource whenever
possible: exactly what Mark was saying a couple of weeks ago.

(I'm not suggesting changing the rules, just tweaking the Primer and the
way we encourage people to use @about and @resource.)

Received on Saturday, 11 August 2007 01:39:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:23 UTC