KG-demo-for-movie icon indicating copy to clipboard operation
KG-demo-for-movie copied to clipboard

想请教一下我运行最新的这个版本,为什么运行query_main文件报错了

Open 1191452002 opened this issue 3 years ago • 0 comments

Traceback (most recent call last): File "D:/Graduation project experiment/KG-demo-for-movie-master/kg_demo_movie/KB_query/query_main.py", line 65, in ans = qa_interface.answer(question) File "D:/Graduation project experiment/KG-demo-for-movie-master/kg_demo_movie/KB_query/query_main.py", line 33, in answer result = self.fuseki.get_sparql_result(my_query) File "D:\Graduation project experiment\KG-demo-for-movie-master\kg_demo_movie\KB_query\jena_sparql_endpoint.py", line 28, in get_sparql_result return self.sparql_conn.query().convert() File "D:\Python\lib\site-packages\SPARQLWrapper\Wrapper.py", line 1107, in query return QueryResult(self._query()) File "D:\Python\lib\site-packages\SPARQLWrapper\Wrapper.py", line 1073, in _query response = urlopener(request) File "D:\Python\lib\urllib\request.py", line 223, in urlopen return opener.open(url, data, timeout) File "D:\Python\lib\urllib\request.py", line 526, in open response = self._open(req, data) File "D:\Python\lib\urllib\request.py", line 544, in _open '_open', req) File "D:\Python\lib\urllib\request.py", line 504, in _call_chain result = func(*args) File "D:\Python\lib\urllib\request.py", line 1346, in http_open return self.do_open(http.client.HTTPConnection, req) File "D:\Python\lib\urllib\request.py", line 1321, in do_open r = h.getresponse() File "D:\Python\lib\http\client.py", line 1331, in getresponse response.begin() File "D:\Python\lib\http\client.py", line 297, in begin version, status, reason = self._read_status() File "D:\Python\lib\http\client.py", line 266, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response

请教一下大家谢谢了

1191452002 avatar Apr 29 '21 14:04 1191452002