updated code to match new dbpedia graph version