patch based on example at google code

https://code.google.com/p/rdfquery/source/browse/trunk/tests/jquery.rdf.js?r=181#1356