improve rdf functions