Skip to content

Instantly share code, notes, and snippets.

@phact
Last active August 29, 2015 14:14
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 phact/8d62d6963f369f13c14e to your computer and use it in GitHub Desktop.
Save phact/8d62d6963f369f13c14e to your computer and use it in GitHub Desktop.
titan, c*

###Have your DSE instance up. Then follow these steps

wget http://s3.thinkaurelius.com/downloads/titan/titan-all-0.4.4.zip unzip titan-all-0.4.4.zip

cd titan-all-0.4.4 bin/gremlin.sh

g = TitanFactory.open('conf/titan-cassandra-es.properties') GraphOfTheGodsFactory.load(g)

saturn = g.V('name','saturn').next() saturn.getProperty('name') saturn.map() saturn.in('father').in('father').name

g.E.has('place',WITHIN,Geoshape.circle(37.97,23.72,50))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment