qq547276542 / Agriculture_KnowledgeGraph

农业知识图谱(AgriKG):农业领域的信息检索,命名实体识别,关系抽取,智能问答,辅助决策
GNU General Public License v3.0
3.99k stars 1.56k forks source link

demo前端无法显示关系图?(neo4j里可以正常显示) #64

Closed niudd closed 5 years ago

niudd commented 5 years ago

如题,neo4j里可以正常显示关系图,但demo里却不显示?有没有人遇到过类似问题怎么解决 版本号:neo4j Desktop 1.2.1

image

xuwang0205 commented 5 years ago

same problem

CrisJk commented 5 years ago

可以看一下后端有没有报错吗?报的什么错?

YYGe01 commented 5 years ago

可以看一下后端有没有报错吗?报的什么错? 谢谢,我的也是关系图显示不出来,后段没有报错,如下 [18/Oct/2019 13:10:42] "GET /search_entity?user_text=%E6%B0%B4%E7%A8%BB HTTP/1.1" 200 30724 [18/Oct/2019 13:13:37] "GET /search_entity?user_text=%E6%B0%B4%E7%A8%BB HTTP/1.1" 200 30724 [18/Oct/2019 13:14:13] "GET /search_entity?user_text=%E8%A2%81%E9%9A%86%E5%B9%B3 HTTP/1.1" 200 32612

YYGe01 commented 5 years ago

可以看一下后端有没有报错吗?报的什么错?

不过刚开始启动的时候有黄色字体显示: "GET /static/img/favicon.png HTTP/1.1" 404 1669

YYGe01 commented 5 years ago

可以看一下后端有没有报错吗?报的什么错? 启动django会报红色错误,但是服务器可以启动。 You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them.

niudd commented 5 years ago

可以看一下后端有没有报错吗?报的什么错?

image

image

image

关系图区域里是空白。

niudd commented 5 years ago

可以看一下后端有没有报错吗?报的什么错?

启动项目的时候后端报了一句:

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them.

CrisJk commented 5 years ago

感觉是echarts的锅,明天再看看

YYGe01 commented 5 years ago

可以看一下后端有没有报错吗?报的什么错?

启动项目的时候后端报了一句:

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them.

这个我解决了,你按上面的提示运行python3 manage.py migrate 就可以了,这个文件是demo文件夹里有的,但是没有解决关系图不显示的问题。

CrisJk commented 5 years ago

@niudd @xuwang0205 @YYGe01 Fixed it! Please pull the latest version and enjoy it.