Hi
I've been trying to get a minimal example with rdfQuery for 2 hours now and it just won't work, I though I would ask for help here if someone is reading...
Here is the code :
<!DOCTYPE html>
<html>
<head>
<title>RDFQuery test</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jquery.rdfquery.core-1.0.js"></script>
<script src="js/jquery.rdfquery.rdfa-1.0.js"></script>
<script type="text/javascript">
function test() {
var r = $('#info').rdf();
alert(r.databank.size());
// alert(r.databank.dump({format:'application/rdf+xml', serialize: true}));
}
</script>
</head>
<body
onload="test();"
prefix="dc:
http://purl.org/dc/elements/1.1/"
prefix="foaf:
http://xmlns.com/foaf/0.1/">
<p id="info">This paper was written by <span rel="dc:creator" resource="#me"><span property="foaf:name">Ben Adida</span>.</span></p>
</body>
</html>
Always printing 0... anyone can suggest what I'm doing wrong ? I took the content example from the wiki page.
Thanks
Thomas