Skip to content

Instantly share code, notes, and snippets.

@pachevalier
Last active January 8, 2019 13:32
Show Gist options
  • Save pachevalier/611aa91b42c051647c07902eb4403dd1 to your computer and use it in GitHub Desktop.
Save pachevalier/611aa91b42c051647c07902eb4403dd1 to your computer and use it in GitHub Desktop.

10 infos qu'on apprend en reliant le catalogue des organisations de datagouv à Wikidata.

  1. On ne sait pas combien il y a de communes, de ministères, d'associations, d'entreprises, de départements, etc.

La propriété nature de de Wikidata nous renseigne sur la nature de l'entité. On peut ainsi savoir combien d'associations, de services déconcentrées, de communes sont sur data.gouv.fr.

  1. Le fichier des organisations de data.gouv ne contient pas la hiérarchie entre les organisations.

  2. Récupérer les alias des organisations

  3. Récupérer des identifiants, Twitter, etc.

https://tools.wmflabs.org/mix-n-match/#/list/1197/unmatched/1

SELECT (COUNT(?item) AS ?count) WHERE { ?item wdt:P3206 ?datagouvid . }

SELECT ?item ?itemLabel ?datagouvid WHERE { ?item wdt:P3206 ?datagouvid . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr" } }

SELECT ?item ?itemLabel ?datagouvid ?p361 ?p361Label WHERE { ?item wdt:P3206 ?datagouvid . ?item wdt:P361 ?p361 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr" } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment