diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..176af7e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.ipynb_checkpoints/ + diff --git a/ckan_donnees_quebec.ipynb b/ckan_donnees_quebec.ipynb new file mode 100644 index 0000000..653c8ff --- /dev/null +++ b/ckan_donnees_quebec.ipynb @@ -0,0 +1,1490 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exploration du portail CKAN Données Québec" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "#!/usr/bin/env python\n", + "import urllib2\n", + "import urllib\n", + "import json\n", + "import pprint" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Lister les groupes du portail de données" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "data_string = urllib.quote(json.dumps({'id': 'data-explorer'}))" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false, + "scrolled": false + }, + "outputs": [], + "source": [ + "# Make the HTTP request.\n", + "response = urllib2.urlopen('https://www.donneesquebec.ca/recherche/api/action/group_list',\n", + " data_string)\n", + "assert response.code == 200" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "# Use the json module to load CKAN's response into a dictionary.\n", + "response_dict = json.loads(response.read())" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false, + "scrolled": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[u'agriculture-alimentation',\n", + " u'economie-entreprises',\n", + " u'education-recherche',\n", + " u'environnement-ressources-naturelles-energie',\n", + " u'gouvernement-finances',\n", + " u'infrastructures',\n", + " u'loi-justice-securite-publique',\n", + " u'politiques-sociales',\n", + " u'sante',\n", + " u'societe-culture',\n", + " u'tourisme-sports-loisirs',\n", + " u'transport']\n" + ] + } + ], + "source": [ + "# Check the contents of the response.\n", + "assert response_dict['success'] is True\n", + "result = response_dict['result']\n", + "pprint.pprint(result)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Lister le contenu d'un groupe" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "data_string = urllib.quote(json.dumps({'id': u'education-recherche',\n", + " 'include_datasets': True,\n", + " 'include_extras': False,\n", + " 'include_users': False}))" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "response = urllib2.urlopen('https://www.donneesquebec.ca/recherche/api/action/group_show',\n", + " data_string)\n", + "assert response.code == 200" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "response_dict = json.loads(response.read())" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T14:37:28.265944',\n", + " u'description': u\"Domaine d'affaires correspondant au d\\xe9veloppement et au maintien du syst\\xe8me \\xe9ducatif ainsi que l'acc\\xe8s \\xe0 celui-ci. Cette cat\\xe9gorie inclut \\xe9galement tout ce qui a trait \\xe0 l'innovation et \\xe0 la recherche industrielle et scientifique.\",\n", + " u'display_name': u'\\xc9ducation et recherche',\n", + " u'groups': [],\n", + " u'id': u'9cc61d74-f537-4002-b3e0-86d840c157c5',\n", + " u'image_display_url': u'https://www.donneesquebec.ca/recherche/images/categories/education-recherche.gif',\n", + " u'image_url': u'https://www.donneesquebec.ca/recherche/images/categories/education-recherche.gif',\n", + " u'is_organization': False,\n", + " u'name': u'education-recherche',\n", + " u'num_followers': 0,\n", + " u'package_count': 22,\n", + " u'packages': [{u'author': u\"Minist\\xe8re de l'\\xc9ducation et de l'Enseignement Sup\\xe9rieur\",\n", + " u'author_email': u'informationsgeographiques@education.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2013-11-19T09:36:16',\n", + " u'metadata_modified': u'2017-03-14T14:22:16.707520',\n", + " u'methodologie': u'',\n", + " u'name': u'localisation-des-etablissements-denseignement-du-reseau-scolaire-au-quebec',\n", + " u'notes': u\"Localisation des \\xe9coles pour le r\\xe9seau public (francophone, anglophone et statut particulier) incluant les ordres d'enseignement pr\\xe9scolaire, primaire, secondaire, formation professionnelle et l'enseignement des adultes. \\r\\n\\r\\nDe plus, la localisation des \\xe9tablissements d'enseignement des r\\xe9seaux coll\\xe9gial et universitaire ainsi que les \\xe9coles priv\\xe9s et gouvernementale est \\xe9galement disponible.\",\n", + " u'num_resources': 8,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T13:04:11.921347',\n", + " u'description': u\"En vertu de sa loi constitutive, le Minist\\xe8re r\\xe9alise ses activit\\xe9s dans les domaines de l\\u2019\\xe9ducation pr\\xe9scolaire et de l\\u2019enseignement primaire, secondaire, coll\\xe9gial et universitaire, de la recherche, de l'aide financi\\xe8re aux \\xe9tudes ainsi que dans les domaines du loisir et du sport.\",\n", + " u'id': u'290c7e13-a963-4ce4-8c89-b2da75021c18',\n", + " u'image_url': u'2016-03-15-180532.399024MEESw2.gif',\n", + " u'is_organization': True,\n", + " u'name': u'mels',\n", + " u'revision_id': u'14221a37-d54d-4259-92f5-8b523b35cc57',\n", + " u'state': u'active',\n", + " u'title': u\"Minist\\xe8re de l'\\xc9ducation et de l'Enseignement sup\\xe9rieur\",\n", + " u'type': u'organization'},\n", + " u'owner_org': u'290c7e13-a963-4ce4-8c89-b2da75021c18',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u\"Localisation des \\xe9tablissements d'enseignement du r\\xe9seau scolaire au Qu\\xe9bec\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'asNeeded',\n", + " u'url': u'',\n", + " u'version': None},\n", + " {u'author': u\"Minist\\xe8re de l'\\xc9ducation et de l'Enseignement Sup\\xe9rieur\",\n", + " u'author_email': u'informationsgeographiques@education.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'54c17473-19cc-47d5-a5a7-99295190ec4b',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2013-11-19T11:45:51',\n", + " u'metadata_modified': u'2017-03-13T18:40:15.252185',\n", + " u'methodologie': u'',\n", + " u'name': u'limites-des-commissions-scolaires-au-quebec',\n", + " u'notes': u'Limites des commissions scolaires francophones, anglophones et \\xe0 statut particulier.',\n", + " u'num_resources': 8,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T13:04:11.921347',\n", + " u'description': u\"En vertu de sa loi constitutive, le Minist\\xe8re r\\xe9alise ses activit\\xe9s dans les domaines de l\\u2019\\xe9ducation pr\\xe9scolaire et de l\\u2019enseignement primaire, secondaire, coll\\xe9gial et universitaire, de la recherche, de l'aide financi\\xe8re aux \\xe9tudes ainsi que dans les domaines du loisir et du sport.\",\n", + " u'id': u'290c7e13-a963-4ce4-8c89-b2da75021c18',\n", + " u'image_url': u'2016-03-15-180532.399024MEESw2.gif',\n", + " u'is_organization': True,\n", + " u'name': u'mels',\n", + " u'revision_id': u'14221a37-d54d-4259-92f5-8b523b35cc57',\n", + " u'state': u'active',\n", + " u'title': u\"Minist\\xe8re de l'\\xc9ducation et de l'Enseignement sup\\xe9rieur\",\n", + " u'type': u'organization'},\n", + " u'owner_org': u'290c7e13-a963-4ce4-8c89-b2da75021c18',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'c618c041-e3d2-40bc-b607-a9f6229e625f',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u'Limites des commissions scolaires au Qu\\xe9bec',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'',\n", + " u'version': None},\n", + " {u'author': u'L\\u2019\\xe9quipe de recherche marketing au CEFRIO',\n", + " u'author_email': u'info@cefrio.qc.ca',\n", + " u'creator_user_id': u'6dae464f-b8e9-4024-b26a-e58c62617945',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'organismes',\n", + " u'id': u'92e6181d-1f0d-4284-a852-4a3c8dde03f1',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2016-07-13T14:39:04.401564',\n", + " u'metadata_modified': u'2017-02-15T18:49:11.146167',\n", + " u'methodologie': u'La plupart des questions sont \\xe0 choix unique, donc les r\\xe9ponses \\xe0 celles-ci sont inscrites directement. Cependant, dans le cas des questions 3, 50, 5, 8, 9, 11, 14, 35, 16, 25, 24, 21, 22, 39 et 44, il s\\u2019agit de questions \\xe0 choix multiples. Notez que lorsqu\\u2019il est inscrit \\xab S\\xe9lectionn\\xe9 \\xbb, c\\u2019est parce que le r\\xe9pondant a coch\\xe9 le choix. Sinon, la case est vide.',\n", + " u'name': u'enquete-portant-sur-les-donnees-ouvertes-au-quebec',\n", + " u'notes': u'Cette \\xe9tude a \\xe9t\\xe9 men\\xe9e en 2015 par le CEFRIO, le Centre facilitant la recherche et l\\u2019innovation dans les organisations \\xe0 l\\u2019aide des technologies de l\\u2019information et des communications. Il s\\u2019agissait d\\u2019une mesure de l\\u2019usage des donn\\xe9es ouvertes au Qu\\xe9bec. Plus particuli\\xe8rement, l\\u2019enqu\\xeate portait sur l\\u2019utilisation et la publication des donn\\xe9es ouvertes dans les minist\\xe8res, les organismes publics et les municipalit\\xe9s.\\r\\nCi-joint sont le questionnaire qui a \\xe9t\\xe9 utilis\\xe9 pour mener l\\u2019enqu\\xeate, ainsi que les r\\xe9ponses aux questions en donn\\xe9es ouvertes.',\n", + " u'num_resources': 2,\n", + " u'num_tags': 1,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2017-02-14T14:56:34.986786',\n", + " u'description': u\"Le CEFRIO accompagne les entreprises et organisations dans la transformation de leurs processus et pratiques d'affaires par l'appropriation du num\\xe9rique. Organisme de recherche et d'innovation, le CEFRIO est mandat\\xe9 par le gouvernement du Qu\\xe9bec afin de contribuer \\xe0 l'avancement de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise par le num\\xe9rique. Il recherche, exp\\xe9rimente, enqu\\xeate et fait conna\\xeetre les usages du num\\xe9rique dans tous les volets de la soci\\xe9t\\xe9. Son action s'appuie sur une \\xe9quipe exp\\xe9riment\\xe9e, un r\\xe9seau de 90 chercheurs associ\\xe9s et invit\\xe9s ainsi que l'engagement de plus de 150 membres.\\r\\n\",\n", + " u'id': u'9054c664-b0b4-49a1-bc52-dc7fe5947f53',\n", + " u'image_url': u'2017-02-14-195926.282247CEFRIO-logo.png',\n", + " u'is_organization': True,\n", + " u'name': u'cefrio',\n", + " u'revision_id': u'1d7449fe-0a8d-4330-8f9a-f6595f7b5e55',\n", + " u'state': u'active',\n", + " u'title': u'CEFRIO',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'9054c664-b0b4-49a1-bc52-dc7fe5947f53',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'671be162-b041-419a-aab8-d1a7a63aeaa5',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u'Enqu\\xeate portant sur l\\u2019utilisation et la publication de donn\\xe9es ouvertes au Qu\\xe9bec',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'notPlanned',\n", + " u'url': u'http://www.cefrio.qc.ca/ ',\n", + " u'version': None},\n", + " {u'author': u\"Service de l'informatique\",\n", + " u'author_email': u'webmestre@gatineau.ca',\n", + " u'creator_user_id': u'6dae464f-b8e9-4024-b26a-e58c62617945',\n", + " u'ext_spatial': u'ville-gatineau',\n", + " u'extras_organisation_principale': u'ville-de-gatineau',\n", + " u'id': u'ab7c07cf-794c-4a34-8272-1aa5eb0a0410',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2014-02-21T00:00:00',\n", + " u'metadata_modified': u'2017-02-13T20:33:12.473963',\n", + " u'methodologie': u'',\n", + " u'name': u'vgat_1267315911',\n", + " u'notes': u'Lieux publics',\n", + " u'num_resources': 5,\n", + " u'num_tags': 5,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-22T12:42:18.285387',\n", + " u'description': u'[La Ville de Gatineau a lanc\\xe9 son portail de donn\\xe9es ouvertes en janvier 2013. Gatineau participe, avec les autres grandes villes du Qu\\xe9bec et le gouvernement qu\\xe9b\\xe9cois, \\xe0 la diffusion des donn\\xe9es municipales.] (http://www.gatineau.ca/donneesouvertes/) ',\n", + " u'id': u'23e2ed49-fd2c-4114-858e-00ddc65304cc',\n", + " u'image_url': u'2015-11-26-225403.942662logogatineau.png',\n", + " u'is_organization': True,\n", + " u'name': u'ville-de-gatineau',\n", + " u'revision_id': u'39535c99-05a5-4ee4-ae58-dc000edeebfc',\n", + " u'state': u'active',\n", + " u'title': u'Ville de Gatineau',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'23e2ed49-fd2c-4114-858e-00ddc65304cc',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'e8bbd4c9-66b8-4fe1-b63f-ef9b6f5c1989',\n", + " u'state': u'active',\n", + " u'temporal': u'2014-02-21/2015-10-23',\n", + " u'title': u'Lieux publics',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'irregular',\n", + " u'url': u'http://www.gatineau.ca/donneesouvertes/fiche_metadonnees_fr.aspx?id=1267315911',\n", + " u'version': None},\n", + " {u'author': u'ZAP Sherbrooke',\n", + " u'author_email': u'info@zapsherbrooke.org',\n", + " u'creator_user_id': u'e87675f6-190a-4c76-a65b-df97a2c542aa',\n", + " u'ext_spatial': u'ville-sherbrooke',\n", + " u'extras_organisation_principale': u'ville-de-sherbrooke',\n", + " u'id': u'233354e9-9679-4453-8b41-d82575fb1787',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': u'',\n", + " u'maintainer_email': u'',\n", + " u'metadata_created': u'2015-12-15T00:00:00',\n", + " u'metadata_modified': u'2016-12-16T19:05:05.283805',\n", + " u'methodologie': u'',\n", + " u'name': u'information-des-connexions',\n", + " u'notes': u\"Liste compl\\xe8te des connexions au r\\xe9seau ZAP estrie\\r\\n\\r\\n- id - identifiant unique de la connextion\\r\\n- node_id - num\\xe9ro identifiant la borne zap utilis\\xe9\\r\\n- identity - identificant unique de l'appareil connect\\xe9\\r\\n- incomming - Quantit\\xe9 de donn\\xe9es t\\xe9l\\xe9charg\\xe9 (Download) en octet\\r\\n- outgoing - Quantit\\xe9 de donn\\xe9es t\\xe9l\\xe9vers\\xe9 (Upload) en octet\\r\\n- created_at - Date de cr\\xe9ation de la connexion\\r\\n- user_agent - Identifiant du navigateur utilis\\xe9 pour la connexion\",\n", + " u'num_resources': 6,\n", + " u'num_tags': 5,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-22T12:54:12.103590',\n", + " u'description': u'Issu d\\u2019une initiative du P\\xf4le Universitaire, ZAP Sherbrooke est un organisme \\xe0 but non lucratif dont la mission est de promouvoir le d\\xe9ploiement de points d\\u2019acc\\xe8s Internet public sans-fil et gratuit sur le territoire de la Ville de Sherbrooke.\\r\\nNotre objectif est de faire rayonner Sherbrooke comme l\\u2019une des villes offrant le plus de points d\\u2019acc\\xe8s Internet pour ses citoyens et ses visiteurs dans ses lieux publics et dans les \\xe9tablissements commerciaux les plus fr\\xe9quent\\xe9s.\\r\\n\\r\\nSi vous \\u0153uvrez au sein d\\u2019un organisme communautaire, d\\u2019une association sans but lucratif ou poss\\xe9dez un \\xe9tablissement commercial (restaurant\\u2026) et que vous d\\xe9sirez activer un point d\\u2019acc\\xe8s Internet sans fil public pour vos visiteurs et clients, [contactez-nous](http://www.zapsherbrooke.org/nous-contacter/) !',\n", + " u'id': u'65ec9a05-e669-4377-8ab2-a093b5af4688',\n", + " u'image_url': u'2016-01-20-170628.661786zap-sherbrooke.jpg',\n", + " u'is_organization': True,\n", + " u'name': u'zap-sherbrooke',\n", + " u'revision_id': u'4ddfba8b-77a5-421a-a5bf-5ffe96e507d9',\n", + " u'state': u'active',\n", + " u'title': u'ZAP Sherbrooke',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'65ec9a05-e669-4377-8ab2-a093b5af4688',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'1819c76b-ca6b-4e99-be3c-79fd90e5a97c',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u'Information des connexions',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'notPlanned',\n", + " u'url': u'',\n", + " u'version': None},\n", + " {u'author': u'L\\u2019\\xe9quipe de recherche marketing au CEFRIO',\n", + " u'author_email': u'info@cefrio.qc.ca',\n", + " u'creator_user_id': u'6dae464f-b8e9-4024-b26a-e58c62617945',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'organismes',\n", + " u'id': u'ec9a5bab-29ef-41bd-83e5-b17ccab487d8',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2016-07-13T14:15:11.373476',\n", + " u'metadata_modified': u'2016-10-24T15:45:14.046565',\n", + " u'methodologie': u'Les r\\xe9ponses compl\\xe8tes des r\\xe9pondants sont fournies dans le fichier csv. La plupart des questions sont \\xe0 choix unique, donc les r\\xe9ponses \\xe0 celles-ci sont inscrites directement. \\r\\n\\r\\nCependant, dans le cas des questions 4, 5, 8 et 11, il s\\u2019agit de questions \\xe0 choix multiples. Notez que lorsqu\\u2019il est inscrit \\xab 1 \\xbb, c\\u2019est parce que le r\\xe9pondant a coch\\xe9 le choix. \\r\\n',\n", + " u'name': u'enquete-cefrio-2015-utilisateurs',\n", + " u'notes': u'Cette \\xe9tude a \\xe9t\\xe9 men\\xe9e en 2015 par le CEFRIO, le Centre facilitant la recherche et l\\u2019innovation dans les organisations \\xe0 l\\u2019aide des technologies de l\\u2019information et des communications. Elle visait \\xe0 cerner la r\\xe9utilisation qui est faite des donn\\xe9es et \\xe0 mieux conna\\xeetre le profil des utilisateurs des quatre portails de donn\\xe9es ouvertes suivants :\\r\\n\\r\\n* Le portail commun du gouvernement du Qu\\xe9bec\\r\\n* Le portail de donn\\xe9es ouvertes de la Ville de Montr\\xe9al\\r\\n* Le portail de donn\\xe9es ouvertes de la Ville de Qu\\xe9bec\\r\\n* Le portail de donn\\xe9es ouvertes de la Ville de Sherbrooke\\r\\n\\r\\nCi-joint sont le questionnaire qui a \\xe9t\\xe9 utilis\\xe9 pour mener l\\u2019enqu\\xeate, ainsi que les r\\xe9ponses aux questions. ',\n", + " u'num_resources': 2,\n", + " u'num_tags': 1,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2017-02-14T14:56:34.986786',\n", + " u'description': u\"Le CEFRIO accompagne les entreprises et organisations dans la transformation de leurs processus et pratiques d'affaires par l'appropriation du num\\xe9rique. Organisme de recherche et d'innovation, le CEFRIO est mandat\\xe9 par le gouvernement du Qu\\xe9bec afin de contribuer \\xe0 l'avancement de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise par le num\\xe9rique. Il recherche, exp\\xe9rimente, enqu\\xeate et fait conna\\xeetre les usages du num\\xe9rique dans tous les volets de la soci\\xe9t\\xe9. Son action s'appuie sur une \\xe9quipe exp\\xe9riment\\xe9e, un r\\xe9seau de 90 chercheurs associ\\xe9s et invit\\xe9s ainsi que l'engagement de plus de 150 membres.\\r\\n\",\n", + " u'id': u'9054c664-b0b4-49a1-bc52-dc7fe5947f53',\n", + " u'image_url': u'2017-02-14-195926.282247CEFRIO-logo.png',\n", + " u'is_organization': True,\n", + " u'name': u'cefrio',\n", + " u'revision_id': u'1d7449fe-0a8d-4330-8f9a-f6595f7b5e55',\n", + " u'state': u'active',\n", + " u'title': u'CEFRIO',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'9054c664-b0b4-49a1-bc52-dc7fe5947f53',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'5efbd0ac-ed37-4538-8226-1756788a9f58',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u'Enqu\\xeate visant \\xe0 dresser un portrait des utilisateurs de portails de donn\\xe9es ouvertes au Qu\\xe9bec',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'notPlanned',\n", + " u'url': u'http://www.cefrio.qc.ca/ ',\n", + " u'version': None},\n", + " {u'author': u'Division de la g\\xe9omatique',\n", + " u'author_email': u'',\n", + " u'creator_user_id': u'e87675f6-190a-4c76-a65b-df97a2c542aa',\n", + " u'ext_spatial': u'ville-sherbrooke',\n", + " u'extras_organisation_principale': u'ville-de-sherbrooke',\n", + " u'id': u'b06580aa-611d-4b5a-a93b-de93e4f488cb',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': u'',\n", + " u'maintainer_email': u'',\n", + " u'metadata_created': u'2015-10-22T17:54:43.762089',\n", + " u'metadata_modified': u'2016-05-04T15:37:40.993334',\n", + " u'name': u'courbes-de-niveau',\n", + " u'notes': u\"Repr\\xe9sentation cartographique des courbes de niveaux du territoire de la Ville de Sherbrooke. Courbe de niveau : ligne r\\xe9unissant, sur une carte g\\xe9ographique, des points de m\\xeame cote d'altitude. [OQLF]\",\n", + " u'num_resources': 5,\n", + " u'num_tags': 5,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-22T12:54:08.495802',\n", + " u'description': u\"Les donn\\xe9es g\\xe9omatiques sont produites et g\\xe9r\\xe9es par l'\\xe9quipe de la Division de la g\\xe9omatique de la Ville de Sherbrooke. Elles sont compl\\xe9mentaires aux autres donn\\xe9es de la Ville de Sherbrooke.\\r\\n\\r\\nLa Ville de Sherbrooke a lanc\\xe9 son portail de donn\\xe9es ouvertes le 15 novembre 2013. Elle s'implique activement au sein du groupe des grandes villes du Qu\\xe9bec (GVQ) et participe au d\\xe9veloppement de standards de diffusion des donn\\xe9es municipales.\",\n", + " u'id': u'40e646ad-789a-4531-9861-9d4ef212554e',\n", + " u'image_url': u'2016-01-20-170556.161274sherbrooke.jpg',\n", + " u'is_organization': True,\n", + " u'name': u'ville-de-sherbrooke-donnees-geomatiques',\n", + " u'revision_id': u'5dcdf05c-99fc-4f1b-99a0-f2c7dc6ed27b',\n", + " u'state': u'active',\n", + " u'title': u'Ville de Sherbrooke - Donn\\xe9es g\\xe9omatiques',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'40e646ad-789a-4531-9861-9d4ef212554e',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'455c026c-233b-4f31-855e-3a7edf0c22d5',\n", + " u'state': u'active',\n", + " u'title': u'Courbes de niveau',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'asNeeded',\n", + " u'url': u'http://www.ville.sherbrooke.qc.ca/citoyen/vie-sportive-et-recreative/',\n", + " u'version': None},\n", + " {u'author': u'ZAP Sherbrooke',\n", + " u'author_email': u'info@zapsherbrooke.org',\n", + " u'creator_user_id': u'e87675f6-190a-4c76-a65b-df97a2c542aa',\n", + " u'ext_spatial': u'ville-sherbrooke',\n", + " u'extras_organisation_principale': u'ville-de-sherbrooke',\n", + " u'id': u'5cc3989e-442b-4f25-8049-d39d44421d6f',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': u'',\n", + " u'maintainer_email': u'',\n", + " u'metadata_created': u'2015-10-22T00:00:00',\n", + " u'metadata_modified': u'2016-04-20T20:22:04.411918',\n", + " u'methodologie': u'',\n", + " u'name': u'zap-points-d-acces',\n", + " u'notes': u'Liste des points ZAP d\\xe9ploy\\xe9s sur le territoire estrien',\n", + " u'num_resources': 1,\n", + " u'num_tags': 6,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-22T12:54:12.103590',\n", + " u'description': u'Issu d\\u2019une initiative du P\\xf4le Universitaire, ZAP Sherbrooke est un organisme \\xe0 but non lucratif dont la mission est de promouvoir le d\\xe9ploiement de points d\\u2019acc\\xe8s Internet public sans-fil et gratuit sur le territoire de la Ville de Sherbrooke.\\r\\nNotre objectif est de faire rayonner Sherbrooke comme l\\u2019une des villes offrant le plus de points d\\u2019acc\\xe8s Internet pour ses citoyens et ses visiteurs dans ses lieux publics et dans les \\xe9tablissements commerciaux les plus fr\\xe9quent\\xe9s.\\r\\n\\r\\nSi vous \\u0153uvrez au sein d\\u2019un organisme communautaire, d\\u2019une association sans but lucratif ou poss\\xe9dez un \\xe9tablissement commercial (restaurant\\u2026) et que vous d\\xe9sirez activer un point d\\u2019acc\\xe8s Internet sans fil public pour vos visiteurs et clients, [contactez-nous](http://www.zapsherbrooke.org/nous-contacter/) !',\n", + " u'id': u'65ec9a05-e669-4377-8ab2-a093b5af4688',\n", + " u'image_url': u'2016-01-20-170628.661786zap-sherbrooke.jpg',\n", + " u'is_organization': True,\n", + " u'name': u'zap-sherbrooke',\n", + " u'revision_id': u'4ddfba8b-77a5-421a-a5bf-5ffe96e507d9',\n", + " u'state': u'active',\n", + " u'title': u'ZAP Sherbrooke',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'65ec9a05-e669-4377-8ab2-a093b5af4688',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'e88fed40-4ba0-434f-8188-c5af1f1a4e84',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u\"ZAP : Points d'acc\\xe8s\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'asNeeded',\n", + " u'url': u'http://auth.zapsherbrooke.org/nodeextra/map',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'edae56ac-129d-438b-9c34-0f16e69c9e01',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T16:47:20',\n", + " u'metadata_modified': u'2016-02-23T15:57:12.704677',\n", + " u'name': u'utilisation-dinternet-a-des-fins-personnelles-par-les-individus-a-partir-de-nimporte-quel-2010',\n", + " u'notes': u\"Fait saillant : Le taux d'utilisation d'Internet \\xe0 des fins personnelles chez les personnes de 55 ans et plus au Qu\\xe9bec se r\\xe9v\\xe8le plus faible qu'en Ontario et que dans l'ensemble du Canada. Source\\xa0: Statistique Canada, Enqu\\xeate canadienne sur l'utilisation d'Internet, compilation sp\\xe9ciale, 2010.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'f97e7aa3-0eb3-4960-9bba-49ad43357b0b',\n", + " u'state': u'active',\n", + " u'title': u\"Utilisation d'Internet \\xe0 des fins personnelles par les individus \\xe0 partir de n'importe quel endroit, selon certains groupes d'\\xe2ge, Qu\\xe9bec, Ontario et Canada, 2010\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'72484e1e-5c01-441a-b30f-c73158c30b37',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:41:09',\n", + " u'metadata_modified': u'2016-02-23T15:57:09.882339',\n", + " u'name': u'taux-dactivite-chez-les-personnes-agees-de-55-ans-et-plus-quebec-ontario-1976-2010',\n", + " u'notes': u\"Fait saillant : Au Qu\\xe9bec, le taux d'activit\\xe9 chez les 55-59 ans a progress\\xe9 plus rapidement qu'en Ontario depuis le d\\xe9but des ann\\xe9es 2000 r\\xe9duisant ainsi l'\\xe9cart de fa\\xe7on notable par rapport \\xe0 sa province voisine. Source : Statistique Canada, Revue chronologique de la population active, 71F0004XVB, 2010\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 3,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'e3bd83ef-380c-4c53-894e-bb3bbcf9b8e5',\n", + " u'state': u'active',\n", + " u'title': u\"Taux d'activit\\xe9 chez les personnes \\xe2g\\xe9es de 55 ans et plus, Qu\\xe9bec, Ontario, 1976-2010\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'f43be6fe-e758-455c-a027-33df8c732f65',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:55:59',\n", + " u'metadata_modified': u'2016-02-23T15:56:33.883518',\n", + " u'name': u'rapport-de-dependance-demographique-quebec-1971-2051',\n", + " u'notes': u'Fait saillant : Le rapport de d\\xe9pendance d\\xe9mographique augmentera de mani\\xe8re significative au cours des prochaines ann\\xe9es. Selon la projection de l\\u2019ISQ (sc\\xe9nario de r\\xe9f\\xe9rence), le nombre de personnes de 65 ans et plus pour 100 personnes de 20-64 ans passera de 25 en 2011 \\xe0 plus de 50 en 2051. Sources: Statistique Canada, Estimations d\\xe9mographiques (1971 \\xe0 2011).\\n(2016 \\xe0 2031) Institut de la statistique du Qu\\xe9bec.\\nPerspectives d\\xe9mographiques du Qu\\xe9bec et des r\\xe9gions, 2006-2056, \\xe9dition 2009',\n", + " u'num_resources': 2,\n", + " u'num_tags': 3,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'3ecfebca-feec-40e2-a862-b171501a4c5f',\n", + " u'state': u'active',\n", + " u'title': u'Rapport de d\\xe9pendance d\\xe9mographique, Qu\\xe9bec, 1971-2051',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'0243430d-6512-4099-a55f-00575d95aa5c',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:50:22',\n", + " u'metadata_modified': u'2016-02-23T15:56:31.573571',\n", + " u'name': u'pyramide-des-ages-animee',\n", + " u'notes': u\"Fait saillant : La pyramide des \\xe2ges illustre la pr\\xe9pond\\xe9rance des g\\xe9n\\xe9rations issues du baby-boom de l'apr\\xe8s-guerre (1946-1966).\\nLeur progression dans la pyramide sera la cause principale de l'augmentation rapide du nombre de personnes de 65 ans et plus au cours des prochaines ann\\xe9es.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'87ab40af-1747-4ed6-b038-d97f061b78f7',\n", + " u'state': u'active',\n", + " u'title': u'Pyramide des \\xe2ges anim\\xe9e',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'be845635-c8ab-4f95-a4dd-06d1bdc5497a',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:46:19',\n", + " u'metadata_modified': u'2016-02-23T15:56:29.682755',\n", + " u'name': u'proportion-et-effectif-des-grands-groupes-dage-quebec-1971-2051',\n", + " u'notes': u'Fait saillant : Entre 1971 et 2011, la proportion de personnes \\xe2g\\xe9es de 65 ans et plus dans la population qu\\xe9b\\xe9coise a plus que doubl\\xe9 et leur nombre a \\xe9t\\xe9 multipli\\xe9 par trois. D\\u2019ici 2051, leur proportion devrait passer de 16 % \\xe0 28 %. Sources: Statistique Canada, Estimations d\\xe9mographiques (1971 \\xe0 2011).\\nInstitut de la statistique du Qu\\xe9bec, Perspectives d\\xe9mographiques 2006-2056, \\xc9dition 2009 (2016 \\xe0 2051). \\nNote : Estimations d\\xe9finitives de 1971 \\xe0 2011 et Projections (sc\\xe9nario A, ISQ 2009) de 2016 \\xe0 2051.',\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'9622082f-0ba8-4f56-8b37-12fc886c0615',\n", + " u'state': u'active',\n", + " u'title': u\"Proportion et effectif des grands groupes d'\\xe2ge, Qu\\xe9bec, 1971-2051\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'56430dd5-962b-4ee3-a831-2efd27080bb0',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:41:19',\n", + " u'metadata_modified': u'2016-02-23T15:56:29.245185',\n", + " u'name': u'proportion-et-effectif-des-65-ans-et-plus-quebec-regions-administratives-et-regions-metrop-2031',\n", + " u'notes': u'Fait saillant : De grandes disparit\\xe9s existent entre les r\\xe9gions quant au vieillissement de la population, mais toutes conna\\xeetront une augmentation marqu\\xe9e de la proportion des a\\xeen\\xe9s dans la population totale, de m\\xeame qu\\u2019une croissance importante de leur effectif. Sources: Statistique Canada, Estimations d\\xe9mographiques (1971 \\xe0 2011).\\nInstitut de la statistique du Qu\\xe9bec, Perspectives d\\xe9mographiques 2006-2056, \\xc9dition 2009 (2016 \\xe0 2051)',\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'fc7941c1-733c-41a0-b8ae-a35972b59f69',\n", + " u'state': u'active',\n", + " u'title': u'Proportion et effectif des 65 ans et plus, Qu\\xe9bec, r\\xe9gions administratives et r\\xe9gions m\\xe9tropolitaines (RMR), de 1996 \\xe0 2031',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'021b4ac8-3988-43ce-a75b-246aaa70ce05',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:59:47',\n", + " u'metadata_modified': u'2016-02-23T15:56:17.115597',\n", + " u'name': u'part-des-titulaires-dun-grade-universitaire-dans-la-population-groupes-dage-choisis-c-1990-2011',\n", + " u'notes': u\"Fait saillant : De 1990 \\xe0 2011, au Qu\\xe9bec, la part des titulaires d'un grade universitaire augmente chez les 65 ans et plus, tout en demeurant moindre qu'au Canada et qu'en Ontario. Source : Adapt\\xe9 par l'Institut de la statistique du Qu\\xe9bec (ISQ) de Statistique Canada (SC), Compilation sp\\xe9ciale, Tableau Qc1t02an -\\xa0Estimations de la population active selon le niveau de scolarit\\xe9, le groupe d'\\xe2ge, le sexe, Canada, province, r\\xe9gion infraprovinciale, moyenne annuelle, 2012. Cela ne constitue pas une approbation de ce produit par Statistique Canada.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'664bbd91-6144-49be-806a-67e27859c21b',\n", + " u'state': u'active',\n", + " u'title': u\"Part des titulaires d'un grade universitaire dans la population, groupes d'\\xe2ge choisis, Canada, Qu\\xe9bec, Ontario, 1990-2011\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'6dae464f-b8e9-4024-b26a-e58c62617945',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'69bcca6e-bed4-4487-8c86-9843caad186c',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T18:04:01',\n", + " u'metadata_modified': u'2016-02-23T15:56:05.501935',\n", + " u'name': u'niveaux-de-competence-selon-le-groupe-dage-et-le-domaine-population-de-16-ans-et-plus-queb-2003',\n", + " u'notes': u\"Fait saillant : La proportion de personnes qui n'atteint pas le seuil de compr\\xe9hension souhaitable en lecture tend \\xe0 cro\\xeetre avec l'\\xe2ge.\\n\\nSource\\xa0: Statistique Canada, Enqu\\xeate internationale sur l'alphab\\xe9tisation et les comp\\xe9tences des adultes (EIACA), 2003.\\nCompilation : Institut de la statistique du Qu\\xe9bec.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'238b0bc5-4340-44fa-a31f-a88d10650c68',\n", + " u'state': u'active',\n", + " u'title': u\"Niveaux de comp\\xe9tence selon le groupe d'\\xe2ge et le domaine, population de 16 ans et plus, Qu\\xe9bec, 2003\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'd65a50d1-4577-46be-9e8f-0d502a4e7cad',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T16:39:08',\n", + " u'metadata_modified': u'2016-02-23T15:55:18.689986',\n", + " u'name': u'individus-utilisant-internet-a-partir-de-nimporte-quel-endroit-ayant-commande-un-produit-o-2010',\n", + " u'notes': u\"Fait saillant : Pr\\xe8s de trois internautes sur dix \\xe2g\\xe9s de 65 ans et plus ont command\\xe9 un produit ou service sur Internet en 2010. Source\\xa0: Statistique Canada, Enqu\\xeate canadienne sur l'utilisation d'Internet, compilation sp\\xe9ciale, 2010.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'f96a9f08-8eac-4e1f-b2e9-de0aaa383e9f',\n", + " u'state': u'active',\n", + " u'title': u\"Individus utilisant Internet \\xe0 partir de n'importe quel endroit ayant command\\xe9 un produit ou service sur internet, selon le groupe d'\\xe2ge, Qu\\xe9bec, Ontario et Canada, 2010\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'7400fe0a-9a9a-45d3-828c-8a078b21cdad',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:06:07',\n", + " u'metadata_modified': u'2016-02-23T15:55:05.246609',\n", + " u'name': u'evolution-de-lage-moyen-de-la-prise-de-la-retraite-quebec-ontario-canada-1990-2011',\n", + " u'notes': u\"Fait saillant : Apr\\xe8s avoir atteint son plus bas niveau en 1998, l'\\xe2ge moyen de la prise de la retraite au Qu\\xe9bec avoisine 61 ans en 2011. Source: Statistique Canada, Revue chronologique de la population active, 71F004XVB, 2011.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 5,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'f73d613a-bfaa-48da-954d-62d8be482b2a',\n", + " u'state': u'active',\n", + " u'title': u\"\\xc9volution de l'\\xe2ge moyen de la prise de la retraite, Qu\\xe9bec, Ontario, Canada, 1990-2011\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'\\xc9v\\xe9n\\xe9ments - SOCI\\xc9TIC',\n", + " u'author_email': u'',\n", + " u'creator_user_id': u'e87675f6-190a-4c76-a65b-df97a2c542aa',\n", + " u'ext_spatial': u'ville-sherbrooke',\n", + " u'extras_organisation_principale': u'ville-de-sherbrooke',\n", + " u'id': u'3a20b6cb-4658-49cc-adc5-102c386319a4',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': u'',\n", + " u'maintainer_email': u'',\n", + " u'metadata_created': u'2015-12-15T00:00:00',\n", + " u'metadata_modified': u'2016-02-23T15:55:04.897124',\n", + " u'methodologie': u'',\n", + " u'name': u'evenements-societic',\n", + " u'notes': u'',\n", + " u'num_resources': 2,\n", + " u'num_tags': 3,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-22T12:54:16.165063',\n", + " u'description': u\"Fond\\xe9 en 1980, le regroupement TI Estrie rassemble de nombreux intervenants du secteur des TIC en Estrie. L\\u2019OBNL se veut une tribune d'\\xe9change, un r\\xe9seau de contacts et un lieu de diffusion d'informations reli\\xe9es aux TIC.\\r\\nEn 2014, notre d\\xe9sir de nous red\\xe9finir nous pousse \\xe0 actualiser notre image de marque et modifier notre programmation afin de continuer \\xe0 r\\xe9pondre aux attentes de nos membres. Notre nouveau branding, Soci\\xe9TIC, allie le mot \\xabsoci\\xe9t\\xe9\\xbb, soit un groupe d'individus ayant des int\\xe9r\\xeats communs et \\xe9tablissant des liens entre eux et l'acronyme TIC (Technologie de l'information et des communications). En second niveau, le terme \\xab\\xe9thique\\xbb qui rappelle aux bonnes pratiques pr\\xe9sent\\xe9es lors de nos conf\\xe9rences.\\r\\nMalgr\\xe9 la nouvelle formule de notre organisme, notre plus grand d\\xe9sir est de continuer de servir nos membres et de nous d\\xe9marquer en tant que guichet privil\\xe9gi\\xe9 d\\u2019informations associ\\xe9es aux TIC en Estrie. Nous poursuivrons ainsi notre mission de favoriser la visibilit\\xe9 de nos comp\\xe9tences r\\xe9gionales et d\\u2019offrir des conf\\xe9rences de qualit\\xe9 \\xe0 prix accessible.\\r\\n\\r\\nPuisque le succ\\xe8s de notre organisme passe par la participation de ses membres, nous esp\\xe9rons que vous continuerez \\xe0 participer activement \\xe0 nos activit\\xe9s !\\r\\nhttps://societic.ca/\",\n", + " u'id': u'c87e366e-7e62-4f24-8450-b409042befc0',\n", + " u'image_url': u'2016-01-20-170503.027734societic1.png',\n", + " u'is_organization': True,\n", + " u'name': u'societic',\n", + " u'revision_id': u'8fec1ec0-0d67-4618-99f5-b900796fbf69',\n", + " u'state': u'active',\n", + " u'title': u'Soci\\xe9TIC',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'c87e366e-7e62-4f24-8450-b409042befc0',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'83cdabfe-e3ca-4e46-8ea8-f56857b70816',\n", + " u'state': u'active',\n", + " u'temporal': u'',\n", + " u'title': u'\\xc9v\\xe9nements - Soci\\xe9tic',\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'notPlanned',\n", + " u'url': u'',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'5d0941ea-39c2-4d8a-9009-7b2ff5a94cf2',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T17:00:47',\n", + " u'metadata_modified': u'2016-02-23T15:54:46.586091',\n", + " u'name': u'croissance-relative-de-la-population-de-differents-groupe-dage-quebec-2011-2051',\n", + " u'notes': u'Fait saillant : D\\u2019ici \\xe0 2051, la population de 65 ans et plus conna\\xeetra une forte croissance pendant que les groupes d\\u2019\\xe2ge plus jeunes enregistreront une croissance beaucoup plus mod\\xe9r\\xe9e, ou parfois m\\xeame n\\xe9gative. Parmi les a\\xeen\\xe9s, ce sont les groupes les plus \\xe2g\\xe9s qui conna\\xeetront la croissance la plus marqu\\xe9e par rapport \\xe0 2011. Sources: Statistique Canada, Estimations d\\xe9mographiques (2011).\\nInstitut de la statistique du Qu\\xe9bec, Perspectives d\\xe9mographiques 2006-2056, \\xc9dition 2009 (2016 \\xe0 2051)',\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'72e5ebcb-68fb-4981-8a83-ca3e77dfc8bf',\n", + " u'state': u'active',\n", + " u'title': u\"Croissance relative de la population de diff\\xe9rents groupe d'\\xe2ge, Qu\\xe9bec, 2011-2051\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'cc4f4736-c933-453c-867f-8dba59198674',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T16:26:05',\n", + " u'metadata_modified': u'2016-02-23T15:54:08.801030',\n", + " u'name': u'activites-en-ligne-des-individus-qui-utilisent-internet-a-partir-de-nimporte-quel-endroit-2010',\n", + " u'notes': u\"Fait saillant : Utiliser le courrier \\xe9lectronique, chercher des renseignements m\\xe9dicaux ou li\\xe9s \\xe0 la sant\\xe9, se renseigner sur des investissements, se renseigner sur des \\xe9v\\xe9nements communautaires, s\\u2019amuser \\xe0 des jeux en ligne et faire un appel t\\xe9l\\xe9phonique sont des activit\\xe9s qui ne diminuent pas en popularit\\xe9 avec l'\\xe2ge chez les internautes. Source : Statistique Canada, Enqu\\xeate canadienne sur l'utilisation d'Internet, compilation sp\\xe9ciale, 2010.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'dc2c4af7-1dc3-43f3-85ba-ade883885084',\n", + " u'state': u'active',\n", + " u'title': u\"Activit\\xe9s en ligne des individus qui utilisent internet \\xe0 partir de n'importe quel endroit, selon le groupe d'\\xe2ge, Qu\\xe9bec, 2010\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None},\n", + " {u'author': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'author_email': u'cid@stat.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'id': u'c543570e-7e37-4b7f-b1e7-10f901238128',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2012-06-26T18:03:56',\n", + " u'metadata_modified': u'2016-02-23T15:54:08.378773',\n", + " u'name': u'activite-physique-de-loisir-selon-le-sexe-et-lage-population-de-15-ans-et-plus-quebec-2007-2008',\n", + " u'notes': u\"Fait saillant : Si pr\\xe8s du quart des personnes de 25 \\xe0 44 ans sont s\\xe9dentaires, c'est le cas d'environ 39 % des personnes de 75 ans et plus. Source : Statistique Canada, Enqu\\xeate sur la sant\\xe9 dans les collectivit\\xe9s canadiennes, 2007-2008, fichier de partage.\\nCompilation : Institut de la statistique du Qu\\xe9bec. \\nMise en garde : Toutes les estimations pr\\xe9sent\\xe9es ont une bonne pr\\xe9cision (coefficient de variation inf\\xe9rieur \\xe0 15 %).\\nEnviron 10 % des personnes de 75 ans et plus n'ont pas r\\xe9pondu aux questions sur l'activit\\xe9 physique de loisir.\",\n", + " u'num_resources': 2,\n", + " u'num_tags': 3,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T12:05:06.074888',\n", + " u'description': u'L\\u2019Institut de la statistique du Qu\\xe9bec est l\\u2019organisme gouvernemental responsable de produire, d\\u2019analyser et de diffuser des informations statistiques officielles, objectives et de qualit\\xe9 pour le Qu\\xe9bec. Celles-ci enrichissent les connaissances, \\xe9clairent les d\\xe9bats et appuient la prise de d\\xe9cision des diff\\xe9rents acteurs de la soci\\xe9t\\xe9 qu\\xe9b\\xe9coise.',\n", + " u'id': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'image_url': u'2016-02-12-203801.927490Logo-ISQ-STATwsig.gif',\n", + " u'is_organization': True,\n", + " u'name': u'isq',\n", + " u'revision_id': u'8ab6b9da-6604-400e-af9a-9c2815b0ed24',\n", + " u'state': u'active',\n", + " u'title': u'Institut de la statistique du Qu\\xe9bec',\n", + " u'type': u'organization'},\n", + " u'owner_org': u'0fd1cbe2-46bc-4677-9690-35f5127220e4',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'revision_id': u'84d4c78e-cfdb-451e-ab81-b36e79937ed2',\n", + " u'state': u'active',\n", + " u'title': u\"Activit\\xe9 physique de loisir selon le sexe et l'\\xe2ge, population de 15 ans et plus, Qu\\xe9bec, 2007-2008\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'annual',\n", + " u'url': u'http://www.stat.gouv.qc.ca',\n", + " u'version': None}],\n", + " u'revision_id': u'31fa977a-f0d4-4351-a26e-1fdaa66166a2',\n", + " u'state': u'active',\n", + " u'tags': [],\n", + " u'title': u'\\xc9ducation et recherche',\n", + " u'type': u'group'}\n" + ] + } + ], + "source": [ + "assert response_dict['success'] is True\n", + "result = response_dict['result']\n", + "pprint.pprint(result)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Lister le contenu d'un package" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": true, + "scrolled": true + }, + "outputs": [], + "source": [ + "data_string = urllib.quote(json.dumps({'id': u'6fd957e2-d988-4420-8c87-0734f1133a04'}))" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": true, + "scrolled": false + }, + "outputs": [], + "source": [ + "response = urllib2.urlopen('https://www.donneesquebec.ca/recherche/api/action/package_show',\n", + " data_string)\n", + "assert response.code == 200" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": true, + "scrolled": true + }, + "outputs": [], + "source": [ + "response_dict = json.loads(response.read())" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{u'author': u\"Minist\\xe8re de l'\\xc9ducation et de l'Enseignement Sup\\xe9rieur\",\n", + " u'author_email': u'informationsgeographiques@education.gouv.qc.ca',\n", + " u'creator_user_id': u'ab00ad09-22b2-47ac-aa53-727f87686b51',\n", + " u'ext_spatial': u'province-quebec',\n", + " u'extras': [],\n", + " u'extras_organisation_principale': u'gouvernement-du-quebec',\n", + " u'groups': [{u'description': u\"Domaine d'affaires correspondant au d\\xe9veloppement et au maintien du syst\\xe8me \\xe9ducatif ainsi que l'acc\\xe8s \\xe0 celui-ci. Cette cat\\xe9gorie inclut \\xe9galement tout ce qui a trait \\xe0 l'innovation et \\xe0 la recherche industrielle et scientifique.\",\n", + " u'display_name': u'\\xc9ducation et recherche',\n", + " u'id': u'9cc61d74-f537-4002-b3e0-86d840c157c5',\n", + " u'image_display_url': u'https://www.donneesquebec.ca/recherche/images/categories/education-recherche.gif',\n", + " u'name': u'education-recherche',\n", + " u'title': u'\\xc9ducation et recherche'}],\n", + " u'id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'isopen': True,\n", + " u'language': u'FR',\n", + " u'license_id': u'cc-by',\n", + " u'license_title': u'Creative Commons - Attribution 4.0',\n", + " u'license_url': u'https://www.donneesquebec.ca/fr/licence/#cc-by',\n", + " u'maintainer': None,\n", + " u'maintainer_email': None,\n", + " u'metadata_created': u'2013-11-19T09:36:16',\n", + " u'metadata_modified': u'2017-03-14T14:22:16.707520',\n", + " u'methodologie': u'',\n", + " u'name': u'localisation-des-etablissements-denseignement-du-reseau-scolaire-au-quebec',\n", + " u'notes': u\"Localisation des \\xe9coles pour le r\\xe9seau public (francophone, anglophone et statut particulier) incluant les ordres d'enseignement pr\\xe9scolaire, primaire, secondaire, formation professionnelle et l'enseignement des adultes. \\r\\n\\r\\nDe plus, la localisation des \\xe9tablissements d'enseignement des r\\xe9seaux coll\\xe9gial et universitaire ainsi que les \\xe9coles priv\\xe9s et gouvernementale est \\xe9galement disponible.\",\n", + " u'num_resources': 8,\n", + " u'num_tags': 2,\n", + " u'organization': {u'approval_status': u'approved',\n", + " u'created': u'2015-10-26T13:04:11.921347',\n", + " u'description': u\"En vertu de sa loi constitutive, le Minist\\xe8re r\\xe9alise ses activit\\xe9s dans les domaines de l\\u2019\\xe9ducation pr\\xe9scolaire et de l\\u2019enseignement primaire, secondaire, coll\\xe9gial et universitaire, de la recherche, de l'aide financi\\xe8re aux \\xe9tudes ainsi que dans les domaines du loisir et du sport.\",\n", + " u'id': u'290c7e13-a963-4ce4-8c89-b2da75021c18',\n", + " u'image_url': u'2016-03-15-180532.399024MEESw2.gif',\n", + " u'is_organization': True,\n", + " u'name': u'mels',\n", + " u'revision_id': u'14221a37-d54d-4259-92f5-8b523b35cc57',\n", + " u'state': u'active',\n", + " u'title': u\"Minist\\xe8re de l'\\xc9ducation et de l'Enseignement sup\\xe9rieur\",\n", + " u'type': u'organization'},\n", + " u'owner_org': u'290c7e13-a963-4ce4-8c89-b2da75021c18',\n", + " u'private': False,\n", + " u'relationships_as_object': [],\n", + " u'relationships_as_subject': [],\n", + " u'resources': [{u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2016-03-17T17:10:05.677839',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'HTML',\n", + " u'hash': u'',\n", + " u'id': u'6076f9de-0d3d-45b8-8dd3-8d318d496de0',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'Carte interactive (IGO)',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 0,\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'standardqc': u'',\n", + " u'state': u'active',\n", + " u'url': u'https://www.donneesquebec.ca/igo/apercu/?layeractif=MELS_SCOL_UNIVERSITAIRE_P,MELS_SCOL_COLLEGIAL_P,INFRA_SCOL_PPS_PRIVE_P,INFRA_SCOL_PPS_PUBLIC_P,MELS_SCOL_UNIVERSITAIRE_P&zoom=8',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575051',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'WMS',\n", + " u'hash': u'',\n", + " u'id': u'86dfbab9-ca65-4f4f-b308-a634d56f6678',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'Acc\\xe9der au WMS du IGO-Navigateur',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 1,\n", + " u'resource_locator_function': u'',\n", + " u'resource_locator_protocol': u'OGC:WMS',\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'state': u'active',\n", + " u'url': u'https://geoegl.msp.gouv.qc.ca/ws/igo_gouvouvert.fcgi?request=getcapabilities&version=1.3.0&service=wms',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575076',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'WFS',\n", + " u'hash': u'',\n", + " u'id': u'3aade294-7936-4c4d-8e5f-dc83646dae02',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'Un service Web d\\u2019entit\\xe9s g\\xe9ographiques ou WFS est disponible',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 2,\n", + " u'resource_locator_function': u'',\n", + " u'resource_locator_protocol': u'OGC:WFS',\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'state': u'active',\n", + " u'url': u'https://geoegl.msp.gouv.qc.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getcapabilities',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575081',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'SHP',\n", + " u'hash': u'',\n", + " u'id': u'03380a9f-6e3b-4335-8733-e9246b63325a',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'\\xc9tablissement scolaire public',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 3,\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'standardqc': u'',\n", + " u'state': u'active',\n", + " u'url': u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=INFRA_SCOL_PPS_PUBLIC_P&outputformat=shp',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575087',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'SHP',\n", + " u'hash': u'',\n", + " u'id': u'e175a082-23cc-4434-837c-4d8a73679ef2',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'\\xc9tablissement scolaire priv\\xe9',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 4,\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'standardqc': u'',\n", + " u'state': u'active',\n", + " u'url': u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=INFRA_SCOL_PPS_PRIVE_P&outputformat=shp',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575092',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'SHP',\n", + " u'hash': u'',\n", + " u'id': u'bfd5d6ec-446f-4514-bad0-2ece05f8f4b6',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'\\xc9tablissement scolaire gouvernemental',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 5,\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'standardqc': u'',\n", + " u'state': u'active',\n", + " u'url': u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=INFRA_SCOL_GOUVERNEMENTAL_P&outputformat=shp',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575097',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'SHP',\n", + " u'hash': u'',\n", + " u'id': u'8892cee0-af21-4d6a-a725-9e7a31ea5f4c',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'\\xc9tablissement scolaire coll\\xe9gial',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 6,\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'standardqc': u'',\n", + " u'state': u'active',\n", + " u'url': u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=MELS_SCOL_COLLEGIAL_P&outputformat=shp',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None},\n", + " {u'cache_last_updated': None,\n", + " u'cache_url': None,\n", + " u'created': u'2015-12-17T14:00:09.575102',\n", + " u'datastore_active': False,\n", + " u'description': u'',\n", + " u'format': u'SHP',\n", + " u'hash': u'',\n", + " u'id': u'78d88379-3eb4-4243-81d4-75b5d9056788',\n", + " u'last_modified': None,\n", + " u'mimetype': None,\n", + " u'mimetype_inner': None,\n", + " u'name': u'\\xc9tablissement scolaire universitaire',\n", + " u'package_id': u'6fd957e2-d988-4420-8c87-0734f1133a04',\n", + " u'position': 7,\n", + " u'resource_type': None,\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'size': None,\n", + " u'standardqc': u'',\n", + " u'state': u'active',\n", + " u'url': u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=MELS_SCOL_UNIVERSITAIRE_P&outputformat=shp',\n", + " u'url_type': None,\n", + " u'webstore_last_updated': None,\n", + " u'webstore_url': None}],\n", + " u'revision_id': u'e4a11046-0d51-4a14-b3aa-4a5c512cd970',\n", + " u'state': u'active',\n", + " u'tags': [{u'display_name': u'division administrative',\n", + " u'id': u'dfbf6ed9-3eb8-4fb5-8648-0fefe84869b8',\n", + " u'name': u'division administrative',\n", + " u'state': u'active',\n", + " u'vocabulary_id': None},\n", + " {u'display_name': u'territoire',\n", + " u'id': u'c10b914d-2d5c-4588-936b-78da36615015',\n", + " u'name': u'territoire',\n", + " u'state': u'active',\n", + " u'vocabulary_id': None}],\n", + " u'temporal': u'',\n", + " u'title': u\"Localisation des \\xe9tablissements d'enseignement du r\\xe9seau scolaire au Qu\\xe9bec\",\n", + " u'type': u'dataset',\n", + " u'update_frequency': u'asNeeded',\n", + " u'url': u'',\n", + " u'version': None}\n" + ] + } + ], + "source": [ + "assert response_dict['success'] is True\n", + "result = response_dict['result']\n", + "pprint.pprint(result)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Liste des URL des ressources de ce package qui sont au format SHP" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=INFRA_SCOL_PPS_PUBLIC_P&outputformat=shp',\n", + " u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=INFRA_SCOL_PPS_PRIVE_P&outputformat=shp',\n", + " u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=INFRA_SCOL_GOUVERNEMENTAL_P&outputformat=shp',\n", + " u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=MELS_SCOL_COLLEGIAL_P&outputformat=shp',\n", + " u'https://www.donneesquebec.ca/ws/igo_gouvouvert.fcgi?service=wfs&version=1.1.0&request=getfeature&typename=MELS_SCOL_UNIVERSITAIRE_P&outputformat=shp']" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[i[u'url'] for i in result[u'resources'] if i[u'format'] == u'SHP']" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true, + "scrolled": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/service_wms_canada.ipynb b/service_wms_canada.ipynb new file mode 100644 index 0000000..cc0c9c6 --- /dev/null +++ b/service_wms_canada.ipynb @@ -0,0 +1,465 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "from owslib.wms import WebMapService" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "wms = WebMapService('http://cartes.geogratis.gc.ca/wms/elevation_fr?', version='1.3.0')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Propriétés du service web WMS" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'WMS'" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms.identification.type" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'1.3.0'" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms.identification.version" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "u\"Service de cartographie Web (WMS) pour les donn\\xe9es d'\\xe9l\\xe9vation\"" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms.identification.title" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "u\"Ressources naturelles Canada offre un acc\\xe8s aux donn\\xe9es d'\\xe9l\\xe9vation par le biais d'un service de cartographie Web commun\\xe9ment appel\\xe9 Web Mapping Service (WMS) dont les sp\\xe9cifications sont d\\xe9finies par l'Open Geospatial Consortium (OGC).\"" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms.identification.abstract" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['WMS-Elevation',\n", + " 'cdsm.color-shaded-relief',\n", + " 'cdsm.color-shaded-relief.legend',\n", + " 'cdem.color-shaded-relief',\n", + " 'cdem.color-shaded-relief.legend']" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "list(wms.contents)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Propriétés d'une couche du service web WMS" + ] + }, + { + "cell_type": "code", + "execution_count": 72, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "u\"Service de cartographie Web (WMS) pour les donn\\xe9es d'\\xe9l\\xe9vation\"" + ] + }, + "execution_count": 72, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms['WMS-Elevation'].title" + ] + }, + { + "cell_type": "code", + "execution_count": 73, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(-180.0, -90.0, 180.0, 90.0)" + ] + }, + "execution_count": 73, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms['WMS-Elevation'].boundingBoxWGS84" + ] + }, + { + "cell_type": "code", + "execution_count": 74, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['EPSG:3857',\n", + " 'EPSG:53016',\n", + " 'EPSG:32186',\n", + " 'EPSG:26707',\n", + " 'EPSG:2295',\n", + " 'EPSG:2294',\n", + " 'EPSG:26708',\n", + " 'EPSG:26709',\n", + " 'EPSG:26908',\n", + " 'EPSG:26909',\n", + " 'EPSG:26907',\n", + " 'EPSG:32192',\n", + " 'EPSG:32193',\n", + " 'EPSG:32190',\n", + " 'EPSG:32191',\n", + " 'EPSG:32196',\n", + " 'EPSG:32197',\n", + " 'EPSG:32194',\n", + " 'EPSG:32195',\n", + " 'EPSG:32198',\n", + " 'EPSG:104306',\n", + " 'EPSG:26715',\n", + " 'EPSG:26714',\n", + " 'EPSG:26717',\n", + " 'EPSG:26716',\n", + " 'EPSG:26711',\n", + " 'EPSG:26710',\n", + " 'EPSG:26713',\n", + " 'EPSG:26712',\n", + " 'EPSG:26719',\n", + " 'EPSG:26718',\n", + " 'EPSG:4269',\n", + " 'EPSG:26919',\n", + " 'EPSG:26918',\n", + " 'EPSG:26917',\n", + " 'EPSG:26916',\n", + " 'EPSG:26915',\n", + " 'EPSG:26914',\n", + " 'EPSG:26913',\n", + " 'EPSG:26912',\n", + " 'EPSG:26911',\n", + " 'EPSG:26910',\n", + " 'EPSG:32181',\n", + " 'EPSG:3979',\n", + " 'EPSG:32183',\n", + " 'EPSG:32182',\n", + " 'EPSG:32185',\n", + " 'EPSG:32184',\n", + " 'EPSG:32187',\n", + " 'EPSG:3978',\n", + " 'EPSG:32189',\n", + " 'EPSG:32188',\n", + " 'EPSG:26720',\n", + " 'EPSG:26721',\n", + " 'EPSG:26722',\n", + " 'EPSG:900913',\n", + " 'EPSG:41001',\n", + " 'EPSG:4617',\n", + " 'EPSG:102184',\n", + " 'EPSG:102185',\n", + " 'EPSG:3579',\n", + " 'EPSG:3578',\n", + " 'EPSG:3575',\n", + " 'EPSG:3574',\n", + " 'EPSG:3576',\n", + " 'EPSG:3571',\n", + " 'EPSG:3573',\n", + " 'EPSG:3572',\n", + " 'EPSG:54030',\n", + " 'EPSG:102100',\n", + " 'EPSG:102002',\n", + " 'EPSG:102009',\n", + " 'EPSG:102008',\n", + " 'EPSG:3401',\n", + " 'EPSG:3799',\n", + " 'EPSG:3395',\n", + " 'EPSG:3400',\n", + " 'EPSG:54008',\n", + " 'EPSG:54009',\n", + " 'EPSG:54004',\n", + " 'EPSG:54003',\n", + " 'EPSG:102016',\n", + " 'EPSG:102017',\n", + " 'EPSG:102018',\n", + " 'EPSG:2019',\n", + " 'EPSG:4326',\n", + " 'EPSG:54016',\n", + " 'EPSG:42101',\n", + " 'EPSG:2952',\n", + " 'EPSG:42304',\n", + " 'EPSG:26922',\n", + " 'EPSG:26920',\n", + " 'EPSG:26921']" + ] + }, + "execution_count": 74, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms['WMS-Elevation'].crsOptions" + ] + }, + { + "cell_type": "code", + "execution_count": 75, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{}" + ] + }, + "execution_count": 75, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms['WMS-Elevation'].styles" + ] + }, + { + "cell_type": "code", + "execution_count": 76, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['GetCapabilities', 'GetMap', 'GetFeatureInfo', 'GetLegendGraphic']" + ] + }, + "execution_count": 76, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[op.name for op in wms.operations]" + ] + }, + { + "cell_type": "code", + "execution_count": 79, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['image/png', 'image/gif', 'image/jpeg', 'image/png; mode=8bit', 'image/tiff']" + ] + }, + "execution_count": 79, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "wms.getOperationByName('GetMap').formatOptions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exemple de requête" + ] + }, + { + "cell_type": "code", + "execution_count": 80, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "img = wms.getmap(layers=['WMS-Elevation'],\n", + " srs='EPSG:4269',\n", + " bbox=(-72.25,-71.25,46.25,47.25),\n", + " size=(450,450),\n", + " format='image/png',\n", + " transparent=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 81, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "out = open('canada-wms.png', 'wb')\n", + "out.write(img.read())\n", + "out.close()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![](canada-cdsm.png)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + }, + "widgets": { + "state": { + "bc6d60e3e9e349c2befeef1fbd33b91d": { + "views": [ + { + "cell_index": 16 + } + ] + } + }, + "version": "1.2.0" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +}