Created
January 28, 2018 22:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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