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:cc="http://creativecommons.org/ns#">
	<head>
		<title>Test 0008</title>
	</head>
  <body>
  	<p>This document is licensed under a
  		<a 	about="" rel="cc:license"
    		href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
       		Creative Commons
  		</a>.
  	</p>	
  </body>
</html>

  

N3 Triples


@prefix _5: <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0008.>.
@prefix cc: <http://creativecommons.org/ns#>.

 _5:xhtml cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/>. 

  

RDF

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  xmlns:cc='http://creativecommons.org/ns#'
  xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
>
  <rdf:Description rdf:about="http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0008.xhtml">
    <cc:license rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.5/"/>
  </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/0008.xhtml> WHERE {
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0008.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}