Back Home

Basics Overview

  • A property graph is a pragmatic model that supports easy domain modelling and rich query support.
  • Neo4j APIs
  • Transactions
  • Manual and Auto-Indexing

Neo and Java

Node firstNode = neo.createNode();
Node secondNode = neo.createNode();
Relationship relationship = firstNode.createRelationshipTo(
secondNode, MyRelationshipTypes.KNOWS );
firstNode.setProperty( "message", "Hello, " );
secondNode.setProperty( "message", "world!" );
relationship.setProperty( "message", "brave Neo " );

Neo and Groovy

Groovy handles the setProperty/getProperty methods in a particular fashion, and without doing anything special, you should be able to directly use this nicer syntax in Groovy:

so the equivalent getter and setter of the java example:

firstNode.message = "Hello"
secondNode.message = "world!"
relationship.message = "brave Neo"

You should also be able to use groovy map and tuples to set object value implicitly

Node neo = [name: "Neo"]
Relationship rel =  [ firstNode, KNOWS, secondNode ]
  • Declarative querying with the Neo4j Traverser APIs
  • The Cypher Query Language
  • Neo4j Server
  • Production-readiness
  • Neo4j server REST API
  • Developing Neo4j server extensions
  • Using Neo4j in large systems



Neo4j Spatial Plugin

Neo4j Spatial is a library of utilities for Neo4j that faciliates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial operations on the data like searching for data within specified regions or within a specified distance of a point of interest.

Neo4j and SPASQL

This plugin can be built from code on github

  • unzip to plugin directory
unzip -d $NEO4J_HOME/plugins/gremlin-plugin
  • restart the server

However the sqasql need for url's before node, syntax sucks!!!

"query" : "SELECT ?x ?y WHERE { ?x <> ?y . }"


Powerful framework for protein related information querying and management. Since it relies on a high-performance graph engine, data is stored in a way that semantically represents its own structure

Side share presentation

neo4j.txt · Last modified: 2013/09/29 11:15 by root
RSS - 200 © CrosswireDigitialMedia Ltd