Test Case #53: @instanceof with @resource and nothing else, with a subelement

Fixed the SPARQL in this test case such that the @instanceof does not
apply to the @resource, but the @resource applies to the next triple.

Purpose:

Tests to make sure that @instanceof does not apply to @resource, but
@resource sets the subject for the next triple to be generated.

====================== Test Case 53 =============================

---------------------Test Case 53 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 0053</title>
  </head>
  <body>
    <p instanceof="foaf:Person" resource="http://www.example.org/#me">
      <span property="foaf:name">John Doe</span>
    </p>
  </body>
</html>
----------------------------------------------------------------

---------------------Test Case 53 SPARQL -----------------------
ASK WHERE {
_:a
   <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
      <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me>
   <http://xmlns.com/foaf/0.1/name>
      "John Doe" .
}
-----------------------------------------------------------------

-- 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 Monday, 17 December 2007 03:22:18 UTC