Skip to content

Instantly share code, notes, and snippets.

@syedhassaanahmed
Created January 28, 2018 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syedhassaanahmed/1d671bea895fb2fd47c05dfafb573deb to your computer and use it in GitHub Desktop.
Save syedhassaanahmed/1d671bea895fb2fd47c05dfafb573deb to your computer and use it in GitHub Desktop.
Downloads Apache Tinkerpop Gremlin Console and load it with data referred in this book http://kelvinlawrence.net/book/Gremlin-Graph-Guide.html
#!/bin/bash
# Download and extract Gremlin Console
curl -o gremlin-console.zip http://apache.mirrors.spacedump.net/tinkerpop/3.3.1/apache-tinkerpop-gremlin-console-3.3.1-bin.zip
unzip -n gremlin-console.zip && rm gremlin-console.zip
# Download GraphML data of air routes into /mydata
curl --create-dirs -o /mydata/air-routes.graphml https://raw.githubusercontent.com/krlawrence/graph/master/sample-data/air-routes.graphml
# Download groovy script to load data
cd apache-tinkerpop-gremlin-console-3.3.1
curl -O https://raw.githubusercontent.com/krlawrence/graph/master/sample-data/load-air-routes-graph.groovy
# Start Gremlin Console with groovy script
bin/gremlin.sh -i load-air-routes-graph.groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment