W3C home > Mailing lists > Public > public-rdfa@w3.org > April 2012

Different treatment of @resource between RDFa 1.0 and 1.1

From: Alan Jeffrey <ajeffrey@bell-labs.com>
Date: Fri, 20 Apr 2012 12:00:23 -0500
Message-ID: <4F919627.7040602@bell-labs.com>
To: <public-rdfa@w3.org>
Hi everyone,

In our RDFa-annotated XML we have been using just the @resource, @rel 
and @href attributes for expressing hyperlinks, for example in RDFa 1.0:

   <foo xmlns:ex="http://example.com/ns#"
    resource="http://example.com/foo">
      <link rel="ex:bar" href="http://example.com/baz"/>
   </foo>

which generates the expected RDF from the 1.0 distiller:

   <rdf:RDF><rdf:Description rdf:about="http://example.com/foo">
     <ex:bar rdf:resource="http://example.com/baz"/>
   </rdf:Description></rdf:RDF>

but the 1.1 distiller generates different output (the @about value has 
changed):

   <rdf:RDF><rdf:Description rdf:about="">
     <ex:bar rdf:resource="http://example.com/baz"/>
   </rdf:Description></rdf:RDF>

Digging through the 1.1 spec (Sec 7.5, processing rule 5) it looks like 
the distiller is doing the right thing: the @resource attribute only 
sets the current object resource when there's an @rel, @rev or @property 
attribute.

Is this a deliberate non-backward-compatible change? Why doesn't 
@resource always set the current object resource?

Cheers,

Alan Jeffrey.
Received on Friday, 20 April 2012 17:01:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 20 April 2012 17:01:11 GMT