当前位置:网站首页>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
边栏推荐
- [BSP video tutorial] BSP video tutorial issue 19: AES encryption practice of single chip bootloader, including all open source codes of upper and lower computers (June 26, 2022)
- Summary of errors reported when using YML file to migrate CONDA environment
- Best wishes for Lao Wu's party
- 部门新来了个阿里25K出来的,让我见识到了什么是天花板
- Ml & DL: Introduction à l’optimisation des hyperparamètres, indice d’évaluation, phénomène de surajustement et introduction détaillée aux méthodes d’optimisation des paramètres couramment utilisées da
- How does win11 optimize services? Win11 method of optimizing service
- Do a scrollbar thinking
- 在启牛开的股票账户安全吗?如何申请低佣金的股票账户?
- B_ QuRT_ User_ Guide(31)
- Where can I find the computer version of wechat files
猜你喜欢

Introduction and example of template method mode

Anfulai embedded weekly report no. 270: June 13, 2022 to June 19, 2022

Troubleshooting the problem of pytorch geometric torch scatter and torch spark installation errors

Is it difficult to get a certified equipment supervisor? What is the relationship with the supervising engineer?

谈谈数字化转型的几个关键问题

Windbg调试工具介绍

Some memory problems summarized

How to realize the center progress bar in wechat applet

B_ QuRT_ User_ Guide(31)

Where can I find the computer version of wechat files
随机推荐
Pytorch quantitative practice (1)
Alibaba Kube eventer MySQL sink simple usage record
《安富莱嵌入式周报》第270期:2022.06.13--2022.06.19
Look at the top 10 capabilities of alicloud cipu
What if the taskbar is blank after win11 update? Solution to blank and stuck taskbar after win11 update
Microservice link risk analysis
Modify the name of the launched applet
Apache server OpenSSL upgrade
Ml & DL: introduction to hyperparametric optimization in machine learning and deep learning, evaluation index, over fitting phenomenon, and detailed introduction to commonly used parameter adjustment
Troubleshooting the problem of pytorch geometric torch scatter and torch spark installation errors
Starting from pg15 xid64 ticket skipping again
Anfulai embedded weekly report no. 271: June 20, 2022 to June 26, 2022
Zhoushaojian, rare
ML&DL:机器学习和深度学习中超参数优化的简介、评估指标、过拟合现象、常用的调参优化方法之详细攻略
Error filesystemexception: /data/nodes/0/indices/gttxk-hntgkhacm-8n60jw/1/index/ es_ temp_ File: structure needs cleaning
KVM IO performance test data
ML&DL:機器學習和深度學習中超參數優化的簡介、評估指標、過擬合現象、常用的調參優化方法之詳細攻略
The programmer's girlfriend gave me a fatigue driving test
Best wishes for Lao Wu's party
Notes [introduction to JUC package and future]