Geoff Plugin

The Neo4j Geoff Plugin provides an endpoint to insert Geoff snippets to the Neo4j Server.

Inserting a Geoff representation

This is the normal scheme for loading data into a clean graph, looking up some of the data via an index rule.

Final-Graph-Inserting-a-Geoff-representation.svg
Figure 1. Final Graph

Example request

  • POST http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/insert

  • Accept: application/json; charset=UTF-8

  • Content-Type: application/json

{
  "subgraph" : [ "(doc) {\"name\": \"doctor\"}", "(dal) {\"name\": \"dalek\"}", "(doc)-[:ENEMY_OF]->(dal) {\"since\":\"forever\"}", "(doc)<=|People| {\"name\": \"The Doctor\"}" ]
}

Example response

  • 200: OK

  • Content-Type: application/json; charset=UTF-8

{
  "params" : {
    "(doc)" : "/node/1",
    "(dal)" : "/node/2"
  }
}