Pages

Gremlin Console with preloaded Air Routes Graph Data

I am currently learning Apache Tinkerpop. An excellent resource is the free online book PRACTICAL GREMLIN by Kelvin R. Lawrence. And one part of this following this book requires one to setup a Gremlin console. And this was a pain to do each time I would start reading/following the book. So I created a Docker Image which contains the Gremlin Console with the air-routes data preloaded so that you can start working immediately.
 
 

Pull and Run Image

docker pull srasul/gremlin-console-air-routes-data:latest
docker run -it srasul/gremlin-console-air-routes-data:latest


Example


$ docker run -it srasul/gremlin-console-air-routes-data:latest
Apr 12, 2020 10:24:01 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.

         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
plugin activated: tinkerpop.tinkergraph
gremlin> g
==>graphtraversalsource[tinkergraph[vertices:3742 edges:57574], standard]
gremlin> g.V().groupCount().by(label)
==>[continent:7,country:237,version:1,airport:3497]