当前位置:网站首页>Neo4j load CSV configuration and use
Neo4j load CSV configuration and use
2022-06-30 22:15:00 【Paper scum】
1、 Need to pass through cypher load Loading the file directly generates the corresponding map data , The configuration is as follows :
dbms.directories.import=import
dbms.security.allow_csv_import_from_file_urls=true
How to sample :
Put the document in neo4j In the catalog import Catalog
And then execute :
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 *;
Reference resources :LOAD CSV - Neo4j Cypher Manual
边栏推荐
- How to upload binary pictures in uniapp
- How to use filters in jfinal to monitor Druid for SQL execution?
- What are database OLAP and OLTP? Same and different? Applicable scenarios
- Some problems when SSH default port is not 22
- 与AI结对编程式是什么体验 Copilot vs AlphaCode, Codex, GPT-3
- Microservice link risk analysis
- Golang application ━ installation, configuration and use of Hugo blog system
- 机器学习工作要求研究生吗?
- Stimulate new kinetic energy to develop digital economy in multiple places
- Study summary of dynamic routing between capsules
猜你喜欢

JVM Part 21 of interview with big companies Q & A

部门新来了个阿里25K出来的,让我见识到了什么是天花板

Which direction should college students choose to find jobs after graduation?

Summary of errors reported when using YML file to migrate CONDA environment

程序员女友给我做了一个疲劳驾驶检测

公有云市场迈入深水区,冷静的亚马逊云还坐得住吗?

Web APIs comprehensive case -tab column switching - dark horse programmer

On several key issues of digital transformation

Vite2 is compatible with lower versions of chrome (such as Sogou 80). Some grammars requiring higher versions are processed through polyfills

牛逼|珍藏多年的工具让我实现了带薪摸鱼自由
随机推荐
Is machine learning suitable for girls?
顺祝老吴的聚会
I want to know who I need to know to open a stock account? In addition, is it safe to open a mobile account?
Go language learning notes - Gorm usage - database configuration, table addition | web framework gin (VII)
Web APIs comprehensive case -tab column switching - dark horse programmer
看阿里云 CIPU 的 10 大能力
机器学习中如何使用数据集?
微服务链路风险分析
msf之ms17-010永恒之蓝漏洞
Analysis of PostgreSQL storage structure
How to use filters in jfinal to monitor Druid for SQL execution?
Anfulai embedded weekly report no. 270: June 13, 2022 to June 19, 2022
When unittest automatically tests multiple use cases, the logging module prints repeatedly to solve the problem
Alibaba Kube eventer MySQL sink simple usage record
去中心化交易所系统开发技术原理丨数字货币去中心化交易所系统开发(说明案例)
Label Contrastive Coding based Graph Neural Network for Graph Classification
Stinky tofu made by Grandma
MFC interface library bcgcontrolbar v33.0 - desktop alarm window, grid control upgrade, etc
在启牛开的股票账户安全吗?如何申请低佣金的股票账户?
Apache服务器OpenSSL升级