Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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
Tweet

More Decks by James Hughes

Other Decks in Technology

Transcript

  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