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

Test Case #57: hanging @rel can create multiple triples

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Thu, 06 Dec 2007 12:46:45 -0500
Message-ID: <47583585.1060601@digitalbazaar.com>
To: RDFa <public-rdf-in-xhtml-tf@w3.org>

Purpose:

Checks to make sure the parser creates multiple triples when @rel is
used with multiple child elements.

====================== Test Case 57 =============================

---------------------Test Case 57 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:foaf="http://xmlns.com/foaf/0.1/">
  <head>
		<title>Test 0057</title>
  </head>
  <body>
  	<div about="http://www.example.org/#ben" rel="foaf:knows">
	    <p about="http://www.example.org/#mark"
               property="foaf:name">Mark Birbeck</p>
	    <p about="http://www.example.org/#ivan"
               property="foaf:name">Ivan Herman</p>
   	</div>
  </body>
</html>

---------------------Test Case 57 SPARQL------------------------

ASK WHERE {
<http://www.example.org/#ben>
   <http://xmlns.com/foaf/0.1/knows>
      <http://www.example.org/#mark> .
<http://www.example.org/#ben>
   <http://xmlns.com/foaf/0.1/knows>
      <http://www.example.org/#ivan> .
<http://www.example.org/#mark>
   <http://xmlns.com/foaf/0.1/name>
      "Mark Birbeck" .
<http://www.example.org/#ivan>
   <http://xmlns.com/foaf/0.1/name>
      "Ivan Herman" .
}

-----------------------------------------------------------------

-- 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 Thursday, 6 December 2007 17:47:12 GMT

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