Neo4j Data Loader
A simple Node module to quickly load smalller datasets into Neo4j for analysis in the their browser application.
Dependencies:
- Async.js
- Request.js
Installation
npm install neo4j-loader
API
There are only three methods to the API (fromFile, setURL, addToQueue), so it is very easy to use. Basically, you can use it to load data from a JSON file or in the context of a larger script - sending each realtionship to the queue manually.
Loading from a JSON file
var fs = ;var loader = ; var inputFile = 'data/relationships.json';var dataURL = 'http://localhost:7474/db/data/'; loader;
Add Each to Queue Manually
var fs = ;var loader = ; var inputFile = 'data/relationships.json';var dataURL = 'http://localhost:7474/db/data/'; // Make sure you set the URL first.loader; fs;