adapt sparql query to use tripod's new version