Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

Cube for accidents (


Create an instance:

cubicweb create accidents my_instance_accidents

Create the database:

cubicweb db-create my_instance_accidents

! Do not launch the db-init !

Insert postgis:

psql my_instance_accidents -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql

psql my_instance_accidents -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql

Finish the db:

cubicweb db-init my_instance_accidents

Push the data:

Get the communes and departements on
in JSON, using the following request:

prefix db-owl: <>
select ?ville ?code ?name ?lat ?long ?dep ?depcode ?depname where {
?ville db-owl:country <> .
?ville dbpedia-owl:inseeCode ?code.
?ville foaf:name ?name.
?ville dbpedia-owl:department ?dep.
?dep dbpedia-owl:inseeCode ?depcode.
?dep foaf:name ?depname.
?ville geo:lat ?lat.
?ville geo:long ?long.

Push the communes/departements using:

cubicweb-ctl shell my_instance_accidents /path/to/cubes/accidents/ /path/to/json/files

Download both vehicules and accidents files on
Push the data:

cubicweb-ctl shell my_instance_accidents /path/to/cubes/accidents/ /path/to/vehicules.csv

cubicweb-ctl shell my_instance_accidents /path/to/cubes/accidents/ /path/to/accidents.csv

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(14.0 kB) Copy SHA256 Hash SHA256
Source None Apr 29, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers