src/hdalab/management/commands/import_hdabo_db.py
branchdocumentation
changeset 693 09e00f38d177
parent 686 385e3a12ee27
--- a/src/hdalab/management/commands/import_hdabo_db.py	Thu Apr 12 01:27:16 2018 +0200
+++ b/src/hdalab/management/commands/import_hdabo_db.py	Wed Apr 11 12:19:47 2018 +0200
@@ -1,8 +1,27 @@
 # -*- coding: utf-8 -*-
 '''
-Created on Feb 28, 2012
+Cette commande transforme une base de donnée hdabo en base de donnée hdalab.
+En particulier cette command est utilisée dans l'import de l'extraction rdf des données HDA.
+
+Cette commande enchaine en fait les commandes Django suivantes:
 
-@author: ymh
+    - `migrate <https://docs.djangoproject.com/en/1.8/ref/django-admin/#django-admin-migrate>`_
+    - :mod:`query_wikipedia_category \-f \-\-all <hdalab.management.commands.query_wikipedia_category>` (si l'option est passée)
+    - :mod:`query_dbpedia \-f \-\-all <hdalab.management.commands.query_dbpedia>`
+    - :mod:`fill_tag_years <hdalab.management.commands.fill_tag_years>`
+    - :mod:`geojson_transform \<chemin répertoire data\>/countries.geo.json <hdalab.management.commands.geojson_transform>`
+    - :mod:`query_geo_inclusion <hdalab.management.commands.query_geo_inclusion>`
+    - :mod:`import_insee_csv \<chemin répertoire data\>/villes.csv <hdalab.management.commands.import_insee_csv>`
+    - :mod:`import_insee_csv \<chemin répertoire data\>/additional_cities.csv <hdalab.management.commands.import_insee_csv>`
+    - :mod:`import_hda_insee_csv \<chemin répertoire data\>/HDA_Insee.csv <hdalab.management.commands.import_hda_insee_csv>`
+    - :mod:`query_category_inclusion \-f \-\-all <hdalab.management.commands.query_category_inclusion>`
+
+**Usage**: ``django-admin import_hdabo_db [options] [<chemin répertoire data>]``
+
+**Options spécifiques:**
+
+    - *\-c,\-\-categories*: ajoute la commande :mod:`query_wikipedia_category \-f \-\-all <hdalab.management.commands.query_wikipedia_category>` à la chaîne de traitements.
+
 '''
 from django.core.management.base import BaseCommand
 from django.core.management import call_command