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 0019</title>
  </head>
  <body>
    <div about="mailto:daniel.brickley@bristol.ac.uk"
      rel="foaf:knows" href="mailto:libby.miller@bristol.ac.uk"></div>
  </body>
</html>



  

N3 Triples


@prefix foaf: <http://xmlns.com/foaf/0.1/>.

 <mailto:daniel.brickley@bristol.ac.uk> foaf:knows <mailto:libby.miller@bristol.ac.uk>. 

  

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#'
>
  <rdf:Description rdf:about="mailto:daniel.brickley@bristol.ac.uk">
    <foaf:knows rdf:resource="mailto:libby.miller@bristol.ac.uk"/>
  </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/0019.xhtml> WHERE {
	<mailto:daniel.brickley@bristol.ac.uk> <http://xmlns.com/foaf/0.1/knows> <mailto:libby.miller@bristol.ac.uk> .
}