Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mneedham/batch-import-video
Accompanying notes for the introduction to batch import video
https://github.com/mneedham/batch-import-video
Last synced: 14 days ago
JSON representation
Accompanying notes for the introduction to batch import video
- Host: GitHub
- URL: https://github.com/mneedham/batch-import-video
- Owner: mneedham
- Created: 2013-07-31T10:20:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-31T10:30:08.000Z (over 11 years ago)
- Last Synced: 2024-04-14T09:10:02.616Z (9 months ago)
- Language: Ruby
- Size: 117 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting started with the neo4j batch importer
These are accompanying notes for the [getting started with neo4j batch importer](https://vimeo.com/71408668) video.
## Pre video steps
1. [Download neo4j](http://www.neo4j.org/download) - I used version 1.9.1 in the video but any of the 1.9.* series should be fine.
2. Create nodes and relationships files. I ran the following commands:
````
bundle exec ruby generate-nodes.rb
bundle exec ruby generate-relationships.rb
````which uses [bundler](http://bundler.io/) - a ruby tool used to manage dependencies. This step can be replaced with your own CSV generating code.
## Terminal history from the video
./neo4j-community-1.9.1/bin/neo4j stop
curl http://dist.neo4j.org.s3.amazonaws.com/jexp/batch-import/batch-import-full-1.9.jar -o batch-import-full-1.9.jar
java -jar batch-import-full-1.9.jar
head -n 10 nodes.tsv
head -n 10 relationships.tsv
java -jar batch-import-full-1.9.jar neo4j-community-1.9.1/data/graph.db nodes.tsv relationships.tsv
./neo4j-community-1.9.1/bin/neo4j start## Post video steps
You can learn more about the [batch importer](https://github.com/jexp/batch-import) from [its github page](https://github.com/jexp/batch-import).