W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > June 2008

Test Case #106 (v2): chaining with empty value in inner @rel

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Sat, 07 Jun 2008 14:45:14 -0400
Message-ID: <484AD73A.4070207@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

The SPARQL in this test was re-done to test that:

 a) dc:creator is bound to a blank node.
 b) ben.html does not exist in any triple.

Mark, let me know if you wanted something other than what's been written
below.

Purpose:

This test case checks the behavior of triple generation in the case
where the inner @rel is defined, but is blank, which halts chaining.

====================== Test Case 106 =============================

---------------------Test Case 106 XHTML--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
                      "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:dc="http://purl.org/dc/elements/1.1/">
   <head>
      <title>Test 0106</title>
   </head>
   <body>
      <div about="" rel="dc:creator">
         <a rel="" href="manu.html">Manu</a>
         created this page.
      </div>
   </body>
</html>
-----------------------------------------------------------------

---------------------Test Case 106 SPARQL -----------------------
ASK WHERE {
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0106.xhtml>
   <http://purl.org/dc/elements/1.1/creator>
      ?a .
OPTIONAL {
   ?x
      ?y
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/manu.html>
. }
FILTER (ISBLANK(?a) && !BOUND(?x) && !BOUND(?y))
}
-----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: DB Launches Medical Record Sales Service with Shepherd Medical
http://blog.digitalbazaar.com/2008/02/24/health2trade/
Received on Saturday, 7 June 2008 18:46:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 7 June 2008 18:46:10 GMT