get_graph method in rdf module.