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

Re: first pass implementation of Mark's chaining rules

From: Ben Adida <ben@adida.net>
Date: Wed, 05 Dec 2007 07:07:05 -0800
Message-ID: <4756BE99.3030901@adida.net>
To: Ivan Herman <ivan@w3.org>
CC: RDFa <public-rdf-in-xhtml-tf@w3.org>

Ivan Herman wrote:
> Ben,
> I have also implemented the parser (not installed yet, only on my
> machine) but I do not know what the exact rules for @instanceof are, so
> that is still missing. Can you give me a succinct, procedural definition?

My read of Mark's rules is  that @instanceof always applies to the
"subject". There are only two cases:

<span about="#me" instanceof="foaf:Person" ....>

applies to #me no matter what other attributes are around. (Note that
#me may complete a hanging-rel, but that's independent of @instanceof.)

<span instanceof="foo:bar">

applies to a new bnode corresponding to the <span>, and there may be a
hanging-rel completion with that new bnode as the object. It's important
to note that it's a NEW bnode, meaning that two spans, each with its own
@instanceof, will correspond to two bnodes, both of which may complete a
hanging rel (thus creating two objects for that rel.)

In both cases, the subject of contained HTML and additional attributes
on the same element is set to the subject of the @instanceof.

If you take a look at my test file and how my code parses it, all
examples mentioned above are covered.

Received on Wednesday, 5 December 2007 15:07:30 UTC

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