Change is required for test #0058

It seems that a change is required for test 0058 due to RDFa 1.0 and RDFa 1.1 changes

The test is:

  <body>
    <div about="http://www.example.org/#ben" rel="foaf:knows">
      <p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
      <p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
    </div>
  </body>
  
In RDFa 1.0, this led to 

 <http://www.example.org/#ben> foaf:knows 
     [ foaf:name "Mark Birbeck" ],
     [ foaf:name "Ivan Herman" ].
     
In RDFa 1.1, this leads to a pretty ugly (and unreasonable) set of triplets of the form:

<http://www.example.org/#ben> foaf:knows 
    [ foaf:name [ a foaf:Person ], [ a foaf:Person ] ] .

Due to the change in the relations between @typeof and @property (see 8.1.1.3.1 in the RDFa 1.1. Core).

If we want to maintain the same target triples, the test has to be changed to:

 <body>
    <div about="http://www.example.org/#ben">
      <p property="foaf:knows" typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
      <p property="foaf:knows" typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
    </div>
  </body>
  
which has the advantage of testing the @property/@typeof relationship, too.

Actually, if we want to keep the old tests for RDFa 1.0, then a better way, probably, is to add a new, RDFa 1.1 specific test for this case

Ivan

----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Tuesday, 7 February 2012 14:05:32 UTC