Test Case #17 (v2): specifying named bnode relationships

Purpose:

This test checks to make sure that the parser supports creating named
bnode relationships.

====================== Test Case 17 =============================

---------------------Test Case 17 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 0017</title>
  </head>
  <body>
        <p>
           <span about="[_:a]" property="foaf:name">Manu Sporny</span>
           <span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
           <span about="[_:b]" property="foaf:name">Ralph Swick</span>.
        </p>
  </body>
</html>
----------------------------------------------------------------

---------------------Test Case 17 SPARQL -----------------------
ASK WHERE {
_:x
   <http://xmlns.com/foaf/0.1/name>
      "Manu Sporny" .
_:x
   <http://xmlns.com/foaf/0.1/knows>
      _:y .
_:y
   <http://xmlns.com/foaf/0.1/name>
      "Ralph Swick" .
}
----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Dynamic Spectrum Auctions and Digital Marketplaces
http://blog.digitalbazaar.com/2008/04/24/dynamic-spectrum-auctions/

Received on Monday, 12 May 2008 16:20:25 UTC