Test Case #119: Fragment identifiers resolved correctly for subjects/objects

Purpose:

This test ensures that RDFa parsers strip the fragment identifier
from [base] when resolving subjects and objects. It also ensures
that proper URL resolution is performed for URLs with multiple
fragment identifiers.

====================== Test Case 119 =============================

---------------------Test Case 119 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/tc119.xhtml#fragment"></base>
      <title>Test 0119</title>
   </head>
   <body>
      <p>
         <div id="#manu" about="#tc-119" rel="dc:contributor"
              property="dc:creator"
              href="#invalid#manu">Manu Sporny</div>
         wrote this test.
      </p>
   </body>
</html>
-----------------------------------------------------------------

---------------------Test Case 119 SPARQL -----------------------
ASK WHERE {
<http://www.example.org/tc119.xhtml#tc-119>
   <http://purl.org/dc/elements/1.1/contributor>
      <http://www.example.org/tc119.xhtml#manu> .
<http://www.example.org/tc119.xhtml#tc-119>
   <http://purl.org/dc/elements/1.1/creator>
      "Manu Sporny" .
}
-----------------------------------------------------------------

-- 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:59 UTC