CleanData / data-network

An app for the visualisation of connections between datasets
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Data-Network

An app for the visualisation of connections between datasets, part of the Clean Data initiative that began at the Data Jam at New York Energy Week, 2013.

Background

Open Data is only useful if you can find it, parse it, and build on it. In many cases it is hard to find data sets - and when they are identified, they are in arcane data formats, or missing key information. Data standards are one approach to solving this problem. Another is to accept that the problem has already been solved many times over by a multitide of researchers.

This tool is designed to highlight the connections between datasets. If you are looking for a dataset, you should be able to see:

Other (extra credit) information that can come out a structured map of relations between datasets are:

By creating a visual network of data we will:

Stack

Dependencies

remember to run:

python manage.py syncdb

after each new app (but see below for how south integrates into this)

Database migrations

South changes the way databases are handled in django. After installing south, do the following (see here for the full discussion, and for a possible error):

python manage.py syncdb
python manage.py convert_to_south data_connections

to set up the database migration for the data_connections models. From now on, new changes to the custom app models will be updated in the database using South. This means we can do things like changing null=True without Django freaking out.

The full tutorial on how south handles database migrations can be found here:

When you've changed a model for an app that's being managed by south, do the following to migrate the database:

python manage.py schemamigration data_connections --auto
python manage.py migrate data_connections

If you're doing a number of small updates, then rather than creating a migration for each one, instead (after the first)

python manage.py schemamigration data_connections --auto --update
python manage.py migrate data_connections