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

Test Case #123: "[]" is a valid safe CURIE

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Wed, 07 Jan 2009 16:56:56 -0500
Message-ID: <49652528.4040107@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

Purpose:

Shane said that the [] CURIE is "probably legal"... I'm starting to
think he's just making this stuff up, now. :)

This test checks to make sure that about="[]" and resource="[]" generate
the proper triples. Both should be identified as relative URIs and
resolved against the [base] URL. In this case [base] is the URL for the
current document.

====================== Test Case 123 =============================

---------------------Test Case 123 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 Case 0123</title>
   </head>
   <body>
      <p about="http://example.org/">
         <span about="[]" property="dc:title">Test Case 0123</span>
         checks to make sure RDFa processors resolve the empty
         CURIE correctly.
         <div about="http://example.org/">
            <div resource="[]">
               <span property="dc:contributor">Shane McCarron</span>
               contributed to this test.
            </div>
         </div>
      </p>
   </body>
</html>
-----------------------------------------------------------------

---------------------Test Case 123 SPARQL -----------------------
ASK WHERE {
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0123.xhtml>
   <http://purl.org/dc/elements/1.1/title>
      "Test Case 0123" .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0123.xhtml>
   <http://purl.org/dc/elements/1.1/contributor>
      "Shane McCarron" .
}
----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Dynamic Spectrum Auctions and Digital Marketplaces
http://blog.digitalbazaar.com/2008/04/24/dynamic-spectrum-auctions/
Received on Wednesday, 7 January 2009 21:57:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 January 2009 21:57:38 GMT