NEO4J installation and use Neo4j-import Import data

Source: Internet
Author: User
Tags neo4j
neo4j InstallationGo to official website (https://neo4j.com/download/other-releases/#releases) download neo4j corresponding version, unzip can use
TAR-XZVF neo4j-community-3.3.1-unix.tar.gz

Start command: bin/neo4j start/console/stop (Start/console/stop) command line: Bin/cypher-shell

Neo4j-import 1. Conditions of Use Shutdown neo4j cannot be added in the original database, only one database import file format can be rebuilt as CSV 2. Parameters --into: Database name--bad-tolerance: The number of errors that can be tolerated (that is, more than the specified number of programs are directly hung up), the default is--multiline-fields: whether to allow multiple lines of insertion (that is, some line-wrapping data can also be read)
--nodes: Inserting nodes
--relationships: Insert Relationship
More parameters allow the command to Bin/neo4j-import 3. Example Node.csv
Id:id (company), name
100000001, Dai Guo
100000003, Dai Jiyu
100000004, Rang
Relation_header.csv
: start_id (company), relation,type:ignore,:end_id (company)
Relation.csv
714362, shareholder, shareholder, 100409508
6769709, shareholder, shareholder, 114116132
3560046, shareholder, shareholder, 107407670
20109212, shareholder, shareholder of corporation, 134342172
20657888, shareholder, corporate shareholder, 135224137

Bin/neo4j-import--multiline-fields=true--bad-tolerance=1000000--into graph.db--id-type string--nodes:person Node.csv--relationships:related Relation_header.csv,relation.csv

After running, put the generated graph.db into data/databases, overwrite the original database, start the operation can

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.