Neo4j connector through its JSON REST API using curl.

In order to connect to Neo4j you need a connector:

var client = new Neo4jClient("http://neo4j:7474")
assert client.is_ok

The fundamental units that form a graph are nodes and relationships.

Nodes are used to represent entities stored in base:

var andres = new NeoNode
andres["name"] = "Andres"
# Connect the node to Neo4j
client.save_node(andres)
assert andres.is_linked

# Create a second node
var kate = new NeoNode
kate["name"] = "Kate"
client.save_node(kate)
assert kate.is_linked

Relationships between nodes are a key part of a graph database. They allow for finding related data. Just like nodes, relationships can have properties.

var loves = new NeoEdge(andres, "LOVES", kate)
client.save_edge(loves)
assert loves.is_linked

Nodes can also be loaded fron Neo4j:

var url = andres.url.to_s
var from = client.load_node(url)
assert from["name"].to_s == "Andres"
var to = from.out_nodes("LOVES").first      # follow the first LOVES relationship
assert to["name"].to_s == "Kate"

For more details, see http://docs.neo4j.org/chunked/milestone/rest-api.html

All subgroups and modules

module curl_json

neo4j :: curl_json

cURL requests compatible with the JSON REST APIs.
module error

neo4j :: error

Errors thrown by the neo4j library.
group graph

neo4j > graph

Provides an interface for services on a Neo4j graphs.
module neo4j

neo4j :: neo4j

Neo4j connector through its JSON REST API using curl.
package_diagram neo4j\> neo4j json json neo4j\>->json curl curl neo4j\>->curl parser_base parser_base json->parser_base serialization serialization json->serialization curl->json core core curl->core ...parser_base ... ...parser_base->parser_base ...serialization ... ...serialization->serialization ...core ... ...core->core neo4j\>graph\> graph neo4j\>graph\>->neo4j\> nitc nitc nitc->neo4j\>

Ancestors

group codecs

core > codecs

Group module for all codec-related manipulations
group collection

core > collection

This module define several collection classes.
group core

core

Nit common library of core classes and methods
group meta

meta

Simple user-defined meta-level to manipulate types of instances as object.
group parser_base

parser_base

Simple base for hand-made parsers of all kinds
group poset

poset

Pre order sets and partial order set (ie hierarchies)
group serialization

serialization

Abstract serialization services
group text

core > text

All the classes and methods related to the manipulation of text entities

Parents

group curl

curl

Data transfer powered by the native curl library
group json

json

read and write JSON formatted text

Children

group graph

neo4j > graph

Provides an interface for services on a Neo4j graphs.
group nitc

nitc

Nit compiler and tools

Descendants

group api

nitc > doc > api

Components required to build a web server about the nit model.
group catalog

nitc > catalog

Basic catalog generator for Nit packages
group commands

nitc > doc > commands

group compiler

nitc > compiler

Compilation to C
group compiler_ffi

nitc > compiler > compiler_ffi

Full FFI support for the compiler
group doc

nitc > doc

group dynamic_loading_ffi

nitc > interpreter > dynamic_loading_ffi

This group implement a partial support for the Nit FFI in the interpreter.
group ffi

nitc > ffi

Full FFI support, independent of the compiler
group frontend

nitc > frontend

Collect and orchestration of main frontend phases
group interpreter

nitc > interpreter

Interpretation of Nit programs
group metrics

nitc > metrics

Various statistics about Nit models and programs
group model

nitc > model

The meta model of Nit programs
group modelize

nitc > modelize

Create a model from nit source files
group nitni

nitc > nitni

Native interface related services (used underneath the FFI)
group parser

nitc > parser

Parser and AST for the Nit language
group platform

nitc > platform

Platform system, used to customize the behavior of the compiler.
group saf

nitc > saf

Nit Static Analysis Framework.
group semantize

nitc > semantize

Process bodies of methods in regard with the model.
group static

nitc > doc > static

Nitdoc generation framework
group term

nitc > doc > term

group testing

nitc > testing

Test unit generation and execution for Nit.
group uml

nitc > uml

Group head module for UML generation services
group vm

nitc > vm

Entry point of all vm components