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

Change is required for the test #0078

From: Ivan Herman <ivan@w3.org>
Date: Tue, 7 Feb 2012 15:17:51 +0100
Cc: Manu Sporny <msporny@digitalbazaar.com>
To: W3C RDFWA WG <public-rdfa-wg@w3.org>
Message-Id: <9FECBF56-8C31-4A18-B6B3-6E5A0CBAFD94@w3.org>
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

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