You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
但发送请求 : http://ip:port/gSolve/?data={maxAnswerNum:3,%20maxSparqlNum:2,%20question:Who%20is%20the%20wife%20of%20Donald%20Trump?}
返回结果如下:
{"question":"Who is the wife of Donald Trump?","vars":["?wife"],"sparql":["select DISTINCT ?wife where { \t\t?wife. } LIMIT 3"],"results":{"bindings":[{"?wife":{"type":"uri","value":""}},{"?wife":{"type":"uri","value":""}},{"?wife":{"type":"uri","value":""}}]},"status":"200"}
返回结果中value为空,但是我看后台输出日志里面,实际已经查询到了结果,如下:
==========Group Simple Relations=========
Activity
nicklin96 commentedon Sep 11, 2019
您好!请问您是用什么方式获取和查看http请求返回的呢?
如果您在浏览器中查看返回内容,实体名字可能会被识别成HTML tag而无法正常显示。您可以通过查看网页源代码看到被识别成HTML tag的内容
jamestch commentedon Sep 11, 2019
谢谢您的指导,的确如此,查看网页源代码可以看到返回结果。这个问题是不是纯粹是网页展示的问题,那是不是可以这样理解:我通过程序requests.post/get获取response后直接解析结果是不是不存在这个问题
nicklin96 commentedon Sep 11, 2019
是的