¶ ↑
Welcome to NeoGenerateThis Project allows you to quickly define a graph and generate tab separated files. These files will imported into the Neo4j using the Neo4j Batch Importer
¶ ↑
InstallationMake sure prerequisites (maven, java, ruby) are installed (see below) then starting from a Project directory:
Step 1: Install Batch Importer
See maxdemarzi.com/2012/02/28/batch-importer-part-1/ for a detailed guide.
Quick Steps:
git clone https://github.com/maxdemarzi/batch-import cd batch-import mvn clean compile assembly:single cd ..
Step 2: Install this application
git clone https://github.com/maxdemarzi/neo_generate.git cd neo_generate gem install bundler bundle install rake neo4j:install rake neo4j:create rake neo4j:load rake neo4j:start
¶ ↑
Customizing the graphOpen up neo_generate.rb and alter the nodes, relationships and sizes.
¶ ↑
PrerequisitesOn Ubuntu:
Install Basics:
sudo apt-get install build-essential wget
Install Java:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
Install Maven:
sudo apt-get install maven2 or for Maven 3.0.4 wget http://www.gtlib.gatech.edu/pub/apache/maven/binaries/apache-maven-3.0.4-bin.tar.gz tar -zxf apache-maven-3.0.4-bin.tar.gz sudo cp -R apache-maven-3.0.4 /usr/local sudo ln -s /usr/local/apache-maven-3.0.4/bin/mvn /usr/bin/mvn
Install Ruby:
sudo apt-get install libxslt-dev libxml2-dev libmysql-ruby libmysqlclient-dev libreadline-dev libcurl4-openssl-dev openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion curl -L https://get.rvm.io | bash -s stable rvm install 1.9.3