Skip to content

Instantly share code, notes, and snippets.

@dkuppitz
Created April 19, 2013 09:22
Show Gist options
  • Save dkuppitz/5419174 to your computer and use it in GitHub Desktop.
Save dkuppitz/5419174 to your computer and use it in GitHub Desktop.
Create an in-memory Titan Graph with sample data (Graph of Gods)
config = new BaseConfiguration()
storage = config.subset("storage")
storage.setProperty("backend", "inmemory")
index = storage.subset("index").subset("search")
index.setProperty("backend", "elasticsearch")
index.setProperty("local-mode", true)
index.setProperty("client-only", false)
index.setProperty("directory", "/tmp/titan/es")
g = TitanFactory.open(config)
GraphOfTheGodsFactory.load(g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment