但发送请求 :
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=========
按照文档进行jar包部署,且出现了"Server Ready!"。
但发送请求 : 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=========
Check query graph count: 80 Pass single check: 2 Pass final check: 3 TopkJoin time=3 number of rankedSparqls = 3 parameter: ?operation=query&username=root&password=123456&db_name=dbpedia16&format=txt&sparql=select DISTINCT ?wife where { ?wife. } LIMIT 3
request: http://dbpedia16.gstore-pku.com:80/%3Foperation%3Dquery%26username%3Droot%26password%3D123456%26db_name%3Ddbpedia16%26format%3Dtxt%26sparql%3Dselect+DISTINCT+%3Fwife++where+%7B+%3CDonald_Trump%3E%09%3Cspouse%3E%09%3Fwife.+%7D+LIMIT+3
?wife