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

Change is required for test #0058

From: Ivan Herman <ivan@w3.org>
Date: Tue, 7 Feb 2012 15:04:40 +0100
Cc: Manu Sporny <msporny@digitalbazaar.com>
To: W3C RDFWA WG <public-rdfa-wg@w3.org>
Message-Id: <15D4840F-9702-4430-8269-36414F48714A@w3.org>

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

The test is:

    <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>
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 in the RDFa 1.1. Core).

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

    <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>
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 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:30 UTC