Test Case #122: resource="[]" should not set the object

Purpose:

Tests to make sure that resource="[]" does not set the object since RDFa
does not allow un-prefixed CURIEs.

====================== Test Case 122 =============================

--------------------Test Case 122 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">
   <head>
      <title>Test 0122</title>
   </head>
   <body>
      <p about="http://example.org/section1.html">
         This section is contained below
         <span rel="up" resource="[]">the main site</span>.
      </p>
   </body>
</html>
-----------------------------------------------------------------

---------------------Test Case 122 SPARQL -----------------------
# This is a negative test. No triples should be generated from the
# XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html>
   <http://www.w3.org/1999/xhtml/vocab#up>
      ?obj .
}
-----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Absorbing Costs Considered Harmful
http://blog.digitalbazaar.com/2009/02/27/absorbing-costs-harmful

Received on Thursday, 5 March 2009 02:29:03 UTC