我正在使用neo4j导入工具,所以:
neo4j-admin import \
--mode=csv \
--database=graph.db \
--ignore-missing-nodes true \
--nodes $Data/issue_header.csv,$Data/issuesNode.csv \
--nodes $Data/labels_header.csv,$Data/labelsNode.csv \
--nodes $Data/user_header.csv,$Data/usersNode.csv \
--nodes $Data/comment_header.csv,$Data/commentsNode.csv \
--relationships $Data/assigned_to_header.csv,$Data/assigned_toRelationship.csv \
--relationships $Data/comment_created_by_header.csv,$Data/comment_created_byRelationship.csv \
--relationships $Data/comment_in_header.csv,$Data/comment_inRelationship.csv \
--relationships $Data/has_label_header.csv,$Data/has_labelRelationship.csv \
--relationships $Data/issue_created_by_header.csv,$Data/issue_created_byRelationship.csv \
--relationships $Data/pinged_in_comment_header.csv,$Data/pinged_in_commentRelationship.csv \
--relationships $Data/pinged_in_issue_header.csv,$Data/pinged_in_issueRelationship.csv
成功完成并显示一些警告:
IMPORT DONE in 4s 132ms.
Imported:
144190 nodes
433666 relationships
1232796 properties
Peak memory usage: 1.03 GB
There were bad entries which were skipped and logged into /home/import.report
然后,当我使用简单的match (n) return n
查询数据库时,没有返回任何内容,并且:sysinfo
报告了可观的存储大小,但ID分配为0。
导入后我丢失了某些东西吗?
以防万一,我正在使用Neo4j社区版。