Skip to content
This repository

A Relaxed Schema Graph Database Management System

branch: master


Sylva is a Relaxed-Schema Graph Database Management System.


Just in case, first thing you need is to have installed pip and virtualenv in your machine:

$ sudo apt-get install python-pip python-dev build-essential python-profiler libpq-dev
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv

Then, it's a good option to use virtualenvwrapper:

$ sudo pip install virtualenvwrapper

In the instructions given on virtualenvwrapper, you should to set the working directory for your virtual environments. So, you could add it in the end of your .bashrc file (newer versions of virtualenvwrapper don't require this):

$ mkdir -p ~/.venvs
export WORKON_HOME=~/.venvs
source /usr/local/bin/

And finally, create a virtualenv for the project:

$ mkvirtualenv sylva --no-site-packages

After you setup your virtual environment, you should be able to enable and disable it. The system propmt must change where you have it enable:

$ workon sylva
$ deactivate

Now, if you didn't get the project yet, clone it in your desired location:

$ cd $HOME
$ git clone git/sylva

Enter in the new location and update the virtual environment previously created:

$ cd git/sylva/
$ workon sylva
$ pip install -U -r requirements.txt

Relational Database

Now you have installed the Django project and almost ready to run it. Before that, you must create a database. In developing stage, we use SQLite:

$ cd $HOME
$ cd sylva/sylva
$ python syncdb --noinput
$ python migrate
$ python createsuperuser

And that is. If you run the project using the standalone development server of Django, you could be able to access to the URL http://localhost:8000/:

$ python runserver localhost:8000
$ xdg-open http://localhost:8000/

Graph Database

The last piece to make Sylva works is the Neo4j graph database. You can download the most current version (1.9.2 as today). After downloading, we need to unzip and setup some parameters:

$ cd git/sylva
$ wget
$ tar -zxvf neo4j-community-1.9.2-unix.tar.gz
$ mv neo4j-community-1.9.2-unix neo4j

Now, as indicated in in section GRAPHDATABASES, you need to edit the file neo4j/conf/ and set the next properies (the default configuration is reserved for testing client libraries):


And then you are ready to run the Neo4j server:

$ ./neo4j/bin/neo4j console
Something went wrong with that request. Please try again.