Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

The IMDB Example Application for Neo4j written with Spring Datastore Graph

Web UI

This application serves as a boilerplate to illustrate the use of annotations to persist objects in Spring to Neo4j, along the lines of

public class Actor {
    @GraphProperty(index = true)
    private String name;

    @RelatedTo(type="ACTS_IN",elementClass = Movie.class)

    private Set<Movie> movies;
    static final String NAME_INDEX = "name";

    public String getName() {
        return name;

    public void setName(String name) { = name;

    public Iterable<Movie> getMovies() {
        return movies;

    public Role getRole(final Movie inMovie) {
        return (Role)getRelationshipTo((Movie)inMovie, Role.class,;

    public String toString() {
        return "Actor '" + this.getName() + "'";

Which produces a graph similar to


The documentation of the IMDB Example domain is found at []

Run build and run the example: git clone git:// cd spring-datastore-graph-imdb mvn clean install jetty:run

browse to http://localhost:8080/imdb/setup.html, insert the data and wait until it is completed (that may take some seconds). After that, you should be able to surf the data and look for actors and movies.

Stop the application with mvn jetty:stop

If you inspect the graph using Neoclipse, node-icons are found in src/test/resources/icons

Something went wrong with that request. Please try again.