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

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

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Wed, 04 Mar 2009 21:28:21 -0500
Message-ID: <49AF38C5.1040305@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:31 UTC