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

Test #59: @instanceof with @href, @rel, @resource, and no @about

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Tue, 11 Dec 2007 00:29:33 -0500
Message-ID: <475E203D.9060300@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

Purpose:

@instanceof does not apply to @href, @src, or @resource.

====================== Test Case 59 =============================

---------------------Test Case 59 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 0059</title>
  </head>
  <body>
    <div>
      <img instanceof="foaf:Person"
           rel="foaf:img"
           src="http://example.org/pics/random-stranger/small"
           href="http://example.org/pics/random-stranger/medium"
           resource="http://example.org/pics/random-stranger/large"
           alt="A picture of a random stranger" />
    </div>
  </body>
</html>
----------------------------------------------------------------

---------------------Test Case 59 SPARQL -----------------------
ASK WHERE {
   _:a
      <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
         <http://xmlns.com/foaf/0.1/Person> .
   _:a
      <http://xmlns.com/foaf/0.1/img>
         <http://example.org/pics/random-stranger/large> .
}
-----------------------------------------------------------------

-- 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 Tuesday, 11 December 2007 05:29:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:19 GMT