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:xsd="http://www.w3.org/2001/XMLSchema#">
  <head>
   <title>Test 0029</title>
  </head>
  <body>
  	<p>
    	<span 	about="http://example.org/foo"
	      		property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck
   		</span>.
	</p>	  
  </body>
</html>



  

N3 Triples


@prefix _6: <http://example.org/>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.

 _6:foo dc:creator "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string>. 

  

RDF

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  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://example.org/foo">
    <dc:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Mark Birbeck</dc:creator>
  </rdf:Description>
</rdf:RDF>

  

SPARQL (FAILED)

ASK FROM <http://www.w3.org/2007/08/pyRdfa/extract?uri=http%3A//www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0029.xhtml> WHERE {
	<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck "^^<http://www.w3.org/2001/XMLSchema#string> .
}