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

Test Case #17: specifying named bnode relationships

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 12 May 2008 10:23:53 -0400
Message-ID: <482852F9.8070608@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

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 {
_:a
   <http://xmlns.com/foaf/0.1/name>
      "Manu Sporny" .
_:a
   <http://xmlns.com/foaf/0.1/knows>
      _:b .
_:b
   <http://xmlns.com/foaf/0.1/name>
      "Ralph Swick" .
}
----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Intro to the Semantic Web in 6 minutes (video)
http://blog.digitalbazaar.com/2007/12/26/semantic-web-intro
Received on Monday, 12 May 2008 14:24:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 12 May 2008 14:24:32 GMT