Giter Site home page Giter Site logo

kgqa-based-on-medicine's Issues

http503

一切正常,路径按照实际改过,可输入文字提交后转到错误界面,提示HTTP Error 503: Service Unavailable,各库版本与您一致,query_main运行后输入问题也报同样的错误,重启也试过,不知怎么回事

记录一下坑,给其他人借鉴

  • readme中
    • kgdrug.ttl rules.ttl应该放在run/datasets下
    • fuseki_conf.ttl放在run/configuration下,这样运行.bat时才会读取fuseki_conf文件
    • 打开fuseki服务后,浏览器打开localhost:3030看是否成功
  • fuseki_conf文件需要修改:
    • 本体kgdrug.ttl路径
    • rules.ttl路径
    • tdb_drug_new路径(最后一行)
  • windows路径中把\改成/,我用的windows

返回I don't understand

这个代码分为两部分,一部分是使用fuseki,另一部分是python的网页,但是python的网页好像并没有提交查询到fuseki的3030端口,我在网页提交问题,在fuseki的命令行没看到post,感觉并没有提交给3030端口

查询结果总是返回None值?

进行python query_main的时候,我试着打印,发现返回的结果总是None值,所以得到下面这个结果:
I can't understand. :(
####################################################################################################

请问要怎么解决?

http://120.78.207.99:8000/kgqa-demo 运行出错

怎么预防肌肉疼痛?

Request Method: POST
http://120.78.207.99:8000/kgqa-demo
2.0.3
URLError
<urlopen error [Errno 99] Cannot assign requested address>
/usr/lib/python3.5/urllib/request.py in do_open, line 1256
/usr/bin/python3
3.5.2
['/var/www/project_2018', '/var/www/project_2018', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages', '/var/www/project_2018/kgqa/KB_query', '/var/www/project_2018/kgqa', '/var/www/project_2018/kgqa/KB_query', '/var/www/project_2018/project_2018', '/var/www/project_2018/kgqa/KB_query']
Thu, 30 Aug 2018 05:10:54 +0000

本地的chrome显示有问题

项目运行成功,我用ie看正常,chrome问答部分显示问题。不过已经挺好了。

另外,请问:

  1. 医疗数据来自哪里?
  2. 增加疾病推断功能,有什么思路呢?

运行出现错误

EndPointNotFound: it was impossible to connect with the endpoint in that address, check if it is correct.

为什么在windows运行有问题?

[16/Jul/2019 21:02:15] "GET / HTTP/1.1" 200 3224
Not Found: /kgqa-demo
[16/Jul/2019 21:03:12] "POST /kgqa-demo HTTP/1.1" 404 2107
Using the URLconf defined in KGQA_Based_On_medicine.urls, Django tried these URL patterns, in this order:

^$
^static/(?P.*)$
The current path, kgqa-demo, didn't match any of these.
这个是什么原因呢,求回答

没有结果响应

您好,命令行,页面我都可以运行,但是输入没有正确响应

页面:按照提示输入
蜘蛛咬伤的概述是什么?,

def search_post(request):
ctx = {}
if request.POST:
question = request.POST['q']
ctx['rlt'] = query_main.query_function(question) #执行到这里报错了
print(ctx['rlt'])
return render(request, "post.html", ctx)

print 结果:
SELECT DISTINCT ?x WHERE {
?s :jibingname '蜘蛛咬伤'.?s :gaishu ?x
}

出现503错误,

其他就是无法理解之类,

命令行都是I dont .....之类

tdb数据上传有问题

windows数据无法上传成功
我尝试在localhost:3030界面里操作总提示
总是提示Result: failed with message "SyntaxError: JSON.parse Error: Invalid character at position:1"
是发布者给了我们错误数据吗
有没有传成功了的,对fuseki不熟

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.