View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
What is a graph database?A database with an explicit graph structureEach node knows its adjacent nodesAs the number of the nodes increases,the cost of a local step (or hop) remains thesamePlus a index for lookupsFriday, June 7, 13
If you’ve everJoined more than 7 tables togetherModeled a graph in a tableFells icky when need to “adapt” yourER model to ﬁt on a DBTried to write some crazy view/storedprocedure with multiple recursive self an innerjoinsFriday, June 7, 13
EmbeddedGraphDatabaseService graphDb = new GraphDatabaseFactory().newEmbeddedDatabase(DB_PATH); <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>1.9</version> </dependency>Friday, June 7, 13
Standaloneneo4j-community-1.9 tiagobento$ bin/neo4j startStarting Neo4j Server...WARNING: not changing userprocess ... waiting for server to be ready..... OK.Go to http://localhost:7474/webadmin/for administration interface.Friday, June 7, 13
==> ==> ,,,/==> (o o)==> -----oOOo-(_)-oOOo-----==> ==> Available variables:==> g = (neo4jgraph[EmbeddedGraphDatabase [data/graph.db]]==> , null) out = (java.io.PrintStream@14c55ea==> , null)gremlin>Friday, June 7, 13