gremlin-scala-examples
gremlin-scala-examples copied to clipboard
Examples for different graph dbs
Gremlin-Scala examples
A collection of example projects and recipies for Gremlin-Scala that you can use as templates for your own tinkering.
Tinkergraph
- MovieLens - a large collection of traversals based on a presentation by Marko Rodriguez and Daniel Kuppitz
Gremlin-Server
Demonstrate setup with a remote graph db.
- Simple traversal
OrientDB
- Simple traversals
Neo4j
- Simple traversal
- Indexes
- Shortest path - Blog post
Neo4j Bolt protocol
- Simple traversal
DSE graph
Note: to start DSE, first run: docker run --name dseg51 -p 9042:9042 -d luketillman/datastax-enterprise:5.1.1 -g
To stop DSE, run docker stop dseg51
.
To start it again, run docker start dseg51
.
- Simple traversal, bulk scenario
Janusgraph
- Simple traversal
Sqlg
Note: to run PostgresSpec
, first run docker run -e -d POSTGRESQL_PASSWORD=pass -p 9096:5432 postgres
- Simple traversal (H2)
- Simple traversal (PostgreSQL)
Usage
First install jdk 8 and configure it to be your JAVA_HOME
and in your path (check with echo $JAVA_HOME
and java -version
).
cd tinkergraph
sbt test
cd orientdb
sbt test
cd neo4j
sbt test
cd janusgraph
sbt test
cd sqlg
sbt testOnly H2Spec