SyntaxError: Missing parentheses in call to 'print'. Did you mean print(query)?
rocana95 opened this issue · 2 comments
rocana95 commented
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
return results["results"]["bindings"]
KseniiaKolesnichenko commented