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:dc="http://purl.org/dc/elements/1.1/"
      xmlns:foaf="http://xmlns.com/foaf/0.1/">
	<head>
		<title>Test 0007</title>
	</head>
	<body>
		<p>This photo was taken by
			<a 	about="photo1.jpg" property="dc:title"
   				content="Portrait of Mark" rel="dc:creator"
      			rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
		</p>	
	</body>
</html>

  

N3 Triples


@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

 <http://www.blogger.com/profile/1109404> foaf:img <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg>. 

 <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg> dc:creator <http://www.blogger.com/profile/1109404>;
     dc:title "Portrait of Mark". 

  

RDF

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  xmlns:foaf='http://xmlns.com/foaf/0.1/'
  xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
  xmlns:dc='http://purl.org/dc/elements/1.1/'
>
  <rdf:Description rdf:about="http://www.blogger.com/profile/1109404">
    <foaf:img>
      <rdf:Description rdf:about="http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg">
        <dc:title>Portrait of Mark</dc:title>
        <dc:creator rdf:resource="http://www.blogger.com/profile/1109404"/>
      </rdf:Description>
    </foaf:img>
  </rdf:Description>
</rdf:RDF>

  

SPARQL (PASSED)

ASK FROM <http://www.w3.org/2007/08/pyRdfa/extract?uri=http%3A//www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0007.xhtml> WHERE {
	<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg> .
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}