- From: Ivan Herman <ivan@w3.org>
- Date: Fri, 22 Jun 2007 13:18:05 +0200
- To: Ben Adida <ben@adida.net>
- Cc: mark.birbeck@x-port.net, RDFa <public-rdf-in-xhtml-tf@w3.org>
- Message-ID: <467BAFED.7060307@w3.org>
Ben Adida wrote: > [cut] > I agree that we need to provide an interpretation for class="xy:zz" on > an img. I think it's clear that this applies to the IMG, but I think we > don't need to special-case it too much. We've already set the precedent > that @REL automatically sets the subject of all contained triples, > including any triple generated by @CLASS, to be the OBJECT (in that case > a bnode, but the OBJECT nevertheless). I think we can carry this rule > over. If there's a REL on an IMG, then @SRC acts like @HREF and becomes > the subject for all triples generated by contained elements. Thus @CLASS > is the rdf:type of the @SRC attribute. > Except that the content model of IMG is EMPTY... Ie, in a valid XHTML1 there is _no_ contained elements. Which, for me, means that a "rel" attribute on img has no relevance on the generated triples (in a DTD it probably should be disallowed, if easily doable).... Nevertheless, I have no problem if the presence of @class generates an extra triple which sets the type of the resource at @src; this is probably consistent with everything else. > I believe this carries over to the following situation involving an > anchor rather than an IMG: > > <a rel="dc:creator" href="http://ben.adida.net/#me" > class="foaf:Person">Ben</a> > > I'm pretty sure that should be interpreted as: > > <http://ben.adida.net/#me> rdf:type foaf:Person . > > right? > > Now, what to do if there is a @REV? I think the same thing applies, > actually, meaning that @SRC is the subject of the @REV predicate, but > *also* of the @CLASS rdf:type and all contained elements. > > One last thing: I think all of above should apply to OBJECT/@SRC. > > > -Ben > -- Ivan Herman, W3C Semantic Web Activity Lead URL: http://www.w3.org/People/Ivan/ PGP Key: http://www.cwi.nl/%7Eivan/AboutMe/pgpkey.html FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Friday, 22 June 2007 11:18:07 UTC