{ "info": { "author": "LOGILAB S.A. (Paris, FRANCE)", "author_email": "contact@logilab.fr", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: CubicWeb", "Programming Language :: JavaScript", "Programming Language :: Python" ], "description": "Summary\n-------\nCube for data.gouv.fr accidents (http://www.data.gouv.fr/fr/dataset/base-de-donnees-accidents-corporels-de-la-circulation-sur-6-annees)\n\n\n\nInstallation\n------------\n\nCreate an instance:\n\ncubicweb create accidents my_instance_accidents\n\nCreate the database:\n\ncubicweb db-create my_instance_accidents\n\n! Do not launch the db-init !\n\nInsert postgis:\n\npsql my_instance_accidents -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql\n\npsql my_instance_accidents -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql\n\nFinish the db:\n\ncubicweb db-init my_instance_accidents\n\n\n\nPush the data:\n\nGet the communes and departements on http://fr.dbpedia.org/sparql\nin JSON, using the following request:\n\n\nprefix db-owl: \n select ?ville ?code ?name ?lat ?long ?dep ?depcode ?depname where {\n ?ville db-owl:country .\n ?ville dbpedia-owl:inseeCode ?code.\n ?ville foaf:name ?name.\n ?ville dbpedia-owl:department ?dep.\n ?dep dbpedia-owl:inseeCode ?depcode.\n ?dep foaf:name ?depname.\n ?ville geo:lat ?lat.\n ?ville geo:long ?long.\n }\n\n\n\nPush the communes/departements using:\n\ncubicweb-ctl shell my_instance_accidents /path/to/cubes/accidents/import_communes.py /path/to/json/files\n\n\nDownload both vehicules and accidents files on data.gouv.fr.\nPush the data:\n\ncubicweb-ctl shell my_instance_accidents /path/to/cubes/accidents/import_vehicules.py /path/to/vehicules.csv\n\n\ncubicweb-ctl shell my_instance_accidents /path/to/cubes/accidents/import_accidents.py /path/to/accidents.csv", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.cubicweb.org/project/cubicweb-accidents", "keywords": null, "license": "LGPL", "maintainer": null, "maintainer_email": null, "name": "cubicweb-accidents", "package_url": "https://pypi.org/project/cubicweb-accidents/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cubicweb-accidents/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.cubicweb.org/project/cubicweb-accidents" }, "release_url": "https://pypi.org/project/cubicweb-accidents/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "0.1.0" }, "last_serial": 1075192, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9d468765aee803afc2f3acd26b413aa7", "sha256": "3fa042f1bcce979f711be4ee2c437840f2803277a34a43f3e4b6071717468b85" }, "downloads": -1, "filename": "cubicweb-accidents-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9d468765aee803afc2f3acd26b413aa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14032, "upload_time": "2014-04-29T08:47:33", "url": "https://files.pythonhosted.org/packages/98/f1/d21f31bc582cf4af0d8f4eeba72e578ebf56f917cae8a51b0739b64dd5af/cubicweb-accidents-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d468765aee803afc2f3acd26b413aa7", "sha256": "3fa042f1bcce979f711be4ee2c437840f2803277a34a43f3e4b6071717468b85" }, "downloads": -1, "filename": "cubicweb-accidents-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9d468765aee803afc2f3acd26b413aa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14032, "upload_time": "2014-04-29T08:47:33", "url": "https://files.pythonhosted.org/packages/98/f1/d21f31bc582cf4af0d8f4eeba72e578ebf56f917cae8a51b0739b64dd5af/cubicweb-accidents-0.1.0.tar.gz" } ] }