Rdf test code