[neo4j] Install and Usage - dsindex/blog GitHub Wiki
- overview
- how to install neo4j
- download released version
- install maven for source building
- install java7, graphviz, nodejs, npm : how to install nodejs, npm
- run
cd neo4j-community-2.2.1
cd conf
vi neo4j-server.properties
org.neo4j.server.webserver.address=your_address
vi neo4j.properties
node_auto_indexing=true
node_keys_indexable=name,synonyms
relationship_auto_indexing=true
relationship_keys_indexable=name
cd ../bin
./neo4j start
or
./neo4j console
visit http://your_address:7474/
- try online
- fulltext indexing
- bulk insert
- create nodes bulk upload with csv
- create relationships
- bulk insert using 'neo4j-import'
- command
./bin/neo4j-import --into ./data/person.db --nodes person.csv --relationships:HAS_PARENT parent_rel.csv --skip-bad-relationships true --stacktrace true
- nodes
id:id(Person),name,synonyms,job,age:int,....,homepage,:LABEL 1,홍길동,동해번쩍,괴도,25,....,http://....,Person ....
- relationships
:START_ID(Person),relname,:END_ID(Person) 1,"parent",0 10,"parent",0 100,"parent",2 .... => START_ID,END_ID 사이 필드는 relationship의 properties, 생략가능하다.