Test Case #121: "[prefix:]" CURIE format is valid

Purpose:

Ensures that an RDFa processor expands CURIEs having only a prefix and a
colon if a prefix is properly defined using xmlns.

====================== Test Case 121 =============================

---------------------Test Case 121 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/"
      xmlns:example="http://example.org/">
   <head>
      <title>Test Case 0121</title>
   </head>
   <body>
      <div>
         <p about="[example:]">
            The
            <span property="dc:title">Example Website</span>
            is used in many W3C tutorials.
         </p>
      </div>
   </body>
</html>
-----------------------------------------------------------------

---------------------Test Case 121 SPARQL -----------------------
ASK WHERE {
<http://example.org/>
   <http://purl.org/dc/elements/1.1/title>
      "Example Website" .
}
----------------------------------------------------------------

-- 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 19:20:25 UTC