I m making a SPARQL query against the Sesame store in localhost, using SPARQLWrapper:
sparql = SPARQLWrapper( http://localhost:8080/openrdf-sesame/repositories/rep/statements )
sparql.setQuery(query)
sparql.setReturnFormat(JSON)
results = sparql.query().convert()
However, I m getting:
File "build/bdist.linux-i686/egg/SPARQLWrapper/Wrapper.py", line 339, in query
File "build/bdist.linux-i686/egg/SPARQLWrapper/Wrapper.py", line 318, in _query
urllib2.HTTPError: HTTP Error 406: Not Acceptable
The strange thing is, however, that querying against the DBPedia SPARQL endpoint everything works fine...
Any thoughts?
Thanks!