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

Test Case #59: multiple hanging @rels with multiple children

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Fri, 07 Dec 2007 11:31:11 -0500
Message-ID: <4759754F.3040603@digitalbazaar.com>
To: RDFa <public-rdf-in-xhtml-tf@w3.org>

Purpose:

When there are multiple hanging @rels on an element, the parser must
create a triple for each @rel completed by each child subject.

====================== Test Case 59 =============================

---------------------Test Case 59 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:dc="http://purl.org/dc/elements/1.1/"
      xmlns:foaf="http://xmlns.com/foaf/0.1/">
  <head>
    <title>Test 0059</title>
  </head>
  <body>
    <p>This document was authored and published by:</p>
    <ul rel="dc:creator dc:publisher">
        <li about="http://www.example.org/#manu"
          property="foaf:name">Manu Sporny</li>
        <li about="http://www.example.org/#fabien"
          property="foaf:name">Fabien Gandon</li>
    </ul>
  </body>
</html>
----------------------------------------------------------------

---------------------Test Case 59 SPARQL------------------------
ASK WHERE {
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0059.xhtml>
   <http://purl.org/dc/elements/1.1/creator>
      <http://www.example.org/#manu> .
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0059.xhtml>
   <http://purl.org/dc/elements/1.1/publisher>
      <http://www.example.org/#manu> .

<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0059.xhtml>
   <http://purl.org/dc/elements/1.1/creator>
      <http://www.example.org/#fabien> .
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0059.xhtml>
   <http://purl.org/dc/elements/1.1/publisher>
      <http://www.example.org/#fabien> .

<http://www.example.org/#manu>
   <http://xmlns.com/foaf/0.1/name>
      "Manu Sporny"

<http://www.example.org/#fabien>
   <http://xmlns.com/foaf/0.1/name>
      "Fabien Gandon"
}
-----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Over One Million Songs Available on Bitmunk
http://blog.digitalbazaar.com/2007/10/29/one-million-songs-on-bitmunk/
Received on Friday, 7 December 2007 16:31:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:19 GMT