当前位置:网站首页>neo4j load csv 配置和使用
neo4j load csv 配置和使用
2022-06-30 19:11:00 【会发paper的学渣】
1、需要通过cypher load加载文件直接生成对应的图谱数据,配置如下:
dbms.directories.import=import
dbms.security.allow_csv_import_from_file_urls=true
如何样例:
将文件放到neo4j目录下的import目录
然后执行:
LOAD CSV WITH HEADERS FROM "file:///test.csv" AS row
MERGE (parent_category:Category {name: row.parent_category})
MERGE (category:Category {name: row.category})
MERGE (category)-[:PARENT_CATEGORY]->(parent_category)
MERGE (p:Product {sku: toString(row.sku)})
SET p.name = row.name,
p.price = toFloat(row.price)
MERGE (p)-[:IN_CATEGORY]->(category)
MERGE (d:Designer {name: row.designer})
MERGE (p)-[:DESIGNED_BY]-(d)
RETURN *;
边栏推荐
- 盘点华为云GaussDB(for Redis)六大秒级能力
- Promise从认识到使用
- Safe holidays without holidays, VR traffic makes children travel safely | Guangzhou Sinovel viewpoint
- 连接实验室服务器
- composer
- 漫画 | Oracle 被新时代抛弃了吗?
- [multithreading] use the thread pool to implement a simple thread pool
- ABAQUS 2022最新版——完善的现实仿真解决方案
- Configure server environment
- 重复乃技艺之母
猜你喜欢

Friends in Guangzhou can join us if they have the opportunity

A necessary tool for testing -- postman practical tutorial

History, selection strategy and in-depth evaluation of note taking software

企业中通过组策略管理Edge浏览器设置(IE模式、主页绑定等)

假期安全不放假,VR交通让孩子安全出行|广州华锐视点

Growth summer challenge is coming, exclusive community welfare is coming ~ get CSDN customized T-shirt for free

更智能!AIRIOT加速煤炭行业节能减排升级

“更福特、更中国”拨云见日,长安福特王牌产品订单过万
![[solved] how does Tiktok cancel paying attention to the cancelled account](/img/1f/7b0bd2c0f69f7f3d1c25c426cc5771.png)
[solved] how does Tiktok cancel paying attention to the cancelled account

Taiwan SSS Xinchuang sss1700 replaces cmedia cm6533 24bit 96KHz USB audio codec chip
随机推荐
派尔特医疗在港交所招股书二次“失效”,上市计划实质性延迟
闲鱼难“翻身”
Force deduction ----- count the string containing the given prefix
MySQL billing Statistics (Part 1): MySQL installation and client dbeaver connection
dataloader 源码_DataLoader
笔记软件的历史、选择策略以及深度评测
一文详解|Go 分布式链路追踪实现原理
企业中台规划和IT架构微服务转型
SQL continuous login problem
详解kubernetes备份恢复利器 Velero | 深入了解Carina系列第三期
【NLP】【TextCNN】 文本分类
Tencent conference application market was officially launched, with more than 20 applications in the first batch
Final chapter of binary tree
在广州的朋友,有机会可以参加下
How JS correctly clears all child elements under an element
await和async
Task01:初识数据库与SQL(笔记1)
Simple usage of LinkedList (2022.6.13-6.19)
手机炒股开户安全嘛!?
内存数据库如何发挥内存优势?