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 0037</title>    
  </head>
  <body>
  	<div>
      <img 	about="http://sw-app.org/mic.xhtml#i"
  	   		rel="foaf:img"
  	   		src="http://sw-app.org/img/mic_2007_01.jpg" 
  	   		href="http://sw-app.org/img/mic_2006_03.jpg"
  	   		resource="http://sw-app.org/mic.xhtml#photo" 
  	   		alt="A photo depicting Michael" />  	
  	</div>
  </body>
</html>

  

Triples (N3 format)


@prefix _5: <http://sw-app.org/mic.xhtml#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

 _5:i foaf:img _5:photo. 
  

SPARQL (PASSED)

ASK WHERE {
	<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}