---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
~/miniconda3/envs/jupyter/lib/python3.6/site-packages/SPARQLWrapper/Wrapper.py in _query(self)
536 try:
--> 537 response = urlopener(request)
538 return response, self.returnFormat
~/miniconda3/envs/jupyter/lib/python3.6/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
222 opener = _opener
--> 223 return opener.open(url, data, timeout)
224
~/miniconda3/envs/jupyter/lib/python3.6/urllib/request.py in open(self, fullurl, data, timeout)
531 meth = getattr(processor, meth_name)
--> 532 response = meth(req, response)
533
~/miniconda3/envs/jupyter/lib/python3.6/urllib/request.py in http_response(self, request, response)
641 response = self.parent.error(
--> 642 'http', request, response, code, msg, hdrs)
643
~/miniconda3/envs/jupyter/lib/python3.6/urllib/request.py in error(self, proto, *args)
569 args = (dict, 'default', 'http_error_default') + orig_args
--> 570 return self._call_chain(*args)
571
~/miniconda3/envs/jupyter/lib/python3.6/urllib/request.py in _call_chain(self, chain, kind, meth_name, *args)
503 func = getattr(handler, meth_name)
--> 504 result = func(*args)
505 if result is not None:
~/miniconda3/envs/jupyter/lib/python3.6/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
649 def http_error_default(self, req, fp, code, msg, hdrs):
--> 650 raise HTTPError(req.full_url, code, msg, hdrs, fp)
651
HTTPError: HTTP Error 500: Internal Server Error
During handling of the above exception, another exception occurred:
EndPointInternalError Traceback (most recent call last)
<ipython-input-5-f0d7a96b5cac> in <module>()
----> 1 results = sparql.query().convert()
~/miniconda3/envs/jupyter/lib/python3.6/site-packages/SPARQLWrapper/Wrapper.py in query(self)
565 @rtype: L{QueryResult} instance
566 """
--> 567 return QueryResult(self._query())
568
569 def queryAndConvert(self):
~/miniconda3/envs/jupyter/lib/python3.6/site-packages/SPARQLWrapper/Wrapper.py in _query(self)
543 raise EndPointNotFound(e.read())
544 elif e.code == 500:
--> 545 raise EndPointInternalError(e.read())
546 else:
547 raise e
EndPointInternalError: EndPointInternalError: endpoint returned code 500 and response.
Response:
b'virtuoso.jdbc4.VirtuosoException: Connection failed: Connection refused'