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