changed to use new RDF API