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

Test Case #118: Fragment identifiers stripped from BASE

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Wed, 19 Nov 2008 17:36:06 -0500
Message-ID: <492494D6.3020509@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

Purpose:

This test ensures that fragment identifiers are stripped from [base]
when used to generate triples.

====================== Test Case 118 =============================

---------------------Test Case 118 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/">
   <head>
      <base href="http://www.example.org/tc118.xhtml#fragment"></base>
      <title property="dc:title">Test 0118</title>
   </head>
   <body>
      <p>This test case should strip all but the last #test-id
         part away from the base URL.</p>
   </body>
</html>
-----------------------------------------------------------------

---------------------Test Case 118 SPARQL -----------------------
ASK WHERE {
<http://www.example.org/tc118.xhtml>
   <http://purl.org/dc/elements/1.1/title>
      "Test 0118" .
}
-----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.

blog: POSIX Threads Don't Scale Past 100K Concurrent Web Requests
http://blog.digitalbazaar.com/2008/09/30/scaling-webservices-part-1

blog: Fibers are the Future: Scaling Past 100K Concurrent Web Requests
http://blog.digitalbazaar.com/2008/10/21/scaling-webservices-part-2
Received on Wednesday, 19 November 2008 22:36:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 19 November 2008 22:36:44 GMT