简体   繁体   English

将数据加载到Neo4j

[英]Loading data into Neo4j

I'm new to neo4j. 我是neo4j的新手。 I have data as a CSV file in local Windows machine,how can I import it into Community Edition of Neo4j using Windows platform. 我在本地Windows计算机中将数据作为CSV文件保存,如何使用Windows平台将其导入Neo4j的Community Edition。

Sample query which I'm trying: 我正在尝试的示例查询:

LOAD CSV FROM "D:\Neo4j\try.csv"
  AS empdetails
MERGE (i:ID { id: empdetails[0]})
MERGE (m:EmpName { name: empdetails[1]})
MERGE (c:Cmpname { cname: empdetails[2]})
CREATE (m)-[:WORKS_IN]->(c)

My sample data looks like: 我的样本数据如下:

id empname      cmpname
1  arunprakash  LntInfotech

And I'm facing a problem in loading data from the above URL. 我在从上述URL加载数据时遇到问题。 Can anyone please help me out... 谁能帮我...

Thanks in advance. 提前致谢。

The above path dnt work for me. 上面的路径为我工作。 The path which i got the result is "file:D:\\\\Neo4j\\\\try.csv". 我得到结果的路径是“ file:D:\\\\ Neo4j \\\\ try.csv”。

我可以从“ file:/// D:/Neo4j/try.csv”加载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM