Neo4J: A Case Study

James Hughes
November 28, 2012

Neo4J: A Case Study

A look at how the Department of International Development for the UK Government has used Neo4J in their aid transparency program

James Hughes

November 28, 2012

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

36 slides
  1. or preaching to the converted the things I do for

    free beer neo4j or a case study
  2. The ability to trace all money spent through its entire

    journey from source to its final destination
  3. val org = createNode(orgModel) val country = createNode(countryModel) org -->

    “HAS_RECIPIENT_COUNTRY” --> country neo4j-scala
  4. val index = getNodeIndex("activity").get val node = index.get("id",id).getSingle val budgets

    = node.doTraverse[Budget]( follow ->- “HAS_BUDGET” ){ END_OF_GRAPH }{ ALL_BUT_START_NODE } neo4j-scala
  5. query[Node](""" | START global=node(0) | MATCH global-[:IS_SUB_LOCATION]->location<-[:IS_REC | RETURN DISTINCT

    n | ORDER BY n.projectBudget desc | LIMIT 5 """.stripMargin).map(_.toCC[Activity]) neo4j-scala

More Decks by James Hughes

Other Decks in Technology