In preparation for my presentation “Graph Database for SQL Server Professionals” (details here) I thought it would be worthwhile to quickly demonstrate and walkthrough installing Neo4j on Windows and get started creating graphs.
With the exception of our Windows Installer, you’ll need a Java Virtual Machine installed on your computer. It is recommended that you install either OpenJDK 7 or Oracle Java 7.
- OpenJDK 7 – http://openjdk.java.net/
- Oracle Java 7 – http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Then you need to download the latest stable version of Neo4j for Windows, which you can get here -> http://neo4j.org
Once the download completed run the executable and follow these simple steps:
[for the purpose of this demonstration Neo4j 2.1.3 was installed on a Windows Server 2012 R2 VM]
Not quite done! Before you click Start let’s you will need to change some default settings.
Click on Settings…
Then click the Edit… button for the Database Configuration
In the neo4j.properties file we want to enable Autoindexing which is disabled by default.
Simply remove the number sign (#) at the beginning of the following lines:
Once completed the file should look similar to the following – Close the file to Save and Close the Neo4j Settings
Now you can click on Start and browse to http://localhost:7474
You are now ready to explore Neo4j and create graphs. Do the Getting started and go through the Movie Graph sample
Some useful resources to explore:
- An impressive library of videos on Vimeo – http://vimeo.com/neo4j
- GraphGist wiki on Github – https://github.com/neo4j-contrib/graphgist/wiki
(I have submitted the “The Astérix GraphGist” in the Fun graph gists section)
- The Definitive Book on Graph Databases (free download) – http://www.graphdatabases.com/
In the near future I will posting more Neo4j topics; Graph Data Modeling, Importing data and Cypher.