Closed rocana95 closed 4 years ago
class BaseSPARQL: def execution(self, query, show_query=False): if show_query: print query self._sparql.setQuery(query) results = self._sparql.query().convert()
return results["results"]["bindings"]
I'm closing this issue in favor of #31
Hello! I can't understand how to solve this problem. Can you give me an advice?
the print query not work in python3 of course
class BaseSPARQL: def execution(self, query, show_query=False): if show_query: print query self._sparql.setQuery(query) results = self._sparql.query().convert()
print results