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 0033</title>
  </head>
  <body>
  	<p>
    	This paper was written by
    	<span rel="dc:creator">
      		<span property="foaf:name">Ben Adida</span>.
    	</span>
	</p>
  </body>
</html>



  

N3 Triples


@prefix _6: <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0033.>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

 _6:xhtml dc:creator [ foaf:name "Ben Adida"]. 

  

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.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0033.xhtml">
    <dc:creator>
      <rdf:Description>
        <foaf:name>Ben Adida</foaf:name>
      </rdf:Description>
    </dc:creator>
  </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/0033.xhtml> WHERE {
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0033.xhtml> <http://purl.org/dc/elements/1.1/creator> _:bn0 .
	_:bn0 <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}