Qi4j
Introduction
Tutorials
Javadoc
Samples
Core
Libraries
Extensions
Tools
Glossary 

Neo4j

code

docs

tests

The Neo4J Library provides a Neo4J embedded database as a Qi4j Service.

Table 36. Artifact

Group IDArtifact IDVersion

org.qi4j.library

org.qi4j.library.neo4j

2.0


Assembly

Simply assemble the Service:

public void assemble( ModuleAssembly module )
        throws AssemblyException
{
    module.services( EmbeddedDatabaseService.class );
}

Usage

The embedded Neo4J database files are stored in the data directory defined using the FileConfig Library.

@Service EmbeddedDatabaseService neo4jService;

public void doSomething()
{
    GraphDatabaseService db = neo4jService.database();
      [...snip...]

}