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

我导入数据进入neo4j之后,为什么没看到知识图谱? #7

Open
zhouhao-learning opened this issue Oct 11, 2019 · 3 comments
Open

Comments

@zhouhao-learning
Copy link

@zhouhao-learning zhouhao-learning commented Oct 11, 2019

您好,很高兴看到您的项目,我使用您的方法把数据导入neo4j数据库

image

但是我访问 localhost:7474,并没有看到知识图谱,这是怎么回事呢?

image

请您多指教一下,谢谢!

@ITBOX-ITBOY
Copy link

@ITBOX-ITBOY ITBOX-ITBOY commented Nov 6, 2019

neo4j-admin import
--database=stock.db
--ignore-duplicate-nodes=true
--ignore-missing-nodes=true
--id-type=string
--nodes=executive.csv
--nodes=stock.csv
--nodes=industry.csv
--nodes=concept.csv
--relationships=executive_stock.csv
--relationships=stock_industry.csv
--relationships=stock_concept.csv

你执行这个语句
在修改neo4j.conf配置文件
dbms.active_database=stock.db
这个操作是为了切换数据库
修改好后,对neo4j服务进行重启

@lemonhu
Copy link
Owner

@lemonhu lemonhu commented Nov 6, 2019

谢谢关注。
@ITBOX-ITBOY 谢谢帮忙解答,问题应该在于生成了重复的实体ID,代码是基于实体名称属性利用md5()方法生成的实体ID,补加上--ignore-duplicate-nodes=true命令应该可以解决该问题。

@tecmry
Copy link

@tecmry tecmry commented Jan 25, 2020

在4.0.0版本的neo4j中--ignore-duplicate-nodes=true --ignore-missing-nodes=true取消了这两个选项我换成了--skip-duplicate-nodes=true --ignore-empty-strings=true

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

Successfully merging a pull request may close this issue.

None yet
4 participants