Change is required for the test #0078

The test 0078 leads again to discrepancies due to the @typeof/@property behavior differences between RDFa 1.0 and RDFa 1.1; the situation is similar to the one I reported before[1]

The test is:

  <body>    
	<div about ="http://www.example.org/#somebody" rel="foaf:knows">
	    <p property="foaf:name">Ivan Herman</p>
	    <p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
	    <p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
	</div>
  </body>

and the required SPARQL is

ASK WHERE {
    <http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
	[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman"; 
	      <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
	[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
	      <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .

However, again due to the differences in @property/@type, the portion on Mark goes wrong, and what is generated by RDFa 1.1 is:

http://www.example.org/#somebody> foaf:knows 
       [ foaf:mailbox <mailto:ivan@w3.org>;
         foaf:name [ a foaf:Person ], "Ivan Herman" ] .

To get to the same SPARQL result, the correct test would/should be:

  <body>    
	<div about ="http://www.example.org/#somebody" rel="foaf:knows">
	    <p property="foaf:name">Ivan Herman</p>
	    <p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>		
	    <p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p> 
	</div>
  </body>

Ivan

[1] http://lists.w3.org/Archives/Public/public-rdfa-wg/2012Feb/0007.html

----
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:18:39 UTC