Test Case #42 (v2): on IMG element @src specifies subject, not object

Purpose:

This test ensures that on an IMG element, @src specifies the subject,
not the object, when used in conjunction with a @rel. To specify @src as
the object, there must be a hanging @rel further up the DOM tree.

====================== Test Case 42 ============================

---------------------Test Case 42 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 0042</title>
  </head>
  <body>
    <div>
      <img rel="foaf:img"
           src="http://sw-app.org/img/mic_2007_01.jpg"
           alt="A photo depicting Michael" />
    </div>
  </body>
</html>
----------------------------------------------------------------

---------------------Test Case 42 SPARQL -----------------------
# This is a NEGATIVE test, we shouldn't get any triples
ASK WHERE {
?subject
   <http://xmlns.com/foaf/0.1/img>
      ?object .
}
----------------------------------------------------------------

-- 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 15:47:12 UTC