Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1191452002 opened this issue Apr 29, 2021 · 0 comments

Comments

@1191452002
Copy link

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

请教一下大家谢谢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant