{"id":13549663,"url":"https://github.com/datasets/publicbodies","last_synced_at":"2025-04-12T02:37:43.892Z","repository":{"id":875781,"uuid":"2630235","full_name":"datasets/publicbodies","owner":"datasets","description":"A database of public bodies such as government departments, ministries etc.","archived":false,"fork":false,"pushed_at":"2025-01-13T00:15:40.000Z","size":14143,"stargazers_count":67,"open_issues_count":39,"forks_count":28,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-04-12T02:37:36.787Z","etag":null,"topics":["department","fire","ministries","open-data","open-government","open-knowledge-international","police"],"latest_commit_sha":null,"homepage":"http://publicbodies.org","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datasets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-10-23T10:36:59.000Z","updated_at":"2025-03-27T17:27:58.000Z","dependencies_parsed_at":"2023-07-12T12:46:35.376Z","dependency_job_id":null,"html_url":"https://github.com/datasets/publicbodies","commit_stats":null,"previous_names":["rufuspollock-okfn/publicbodies","okfn/publicbodies","datasets/publicbodies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fpublicbodies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fpublicbodies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fpublicbodies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fpublicbodies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datasets","download_url":"https://codeload.github.com/datasets/publicbodies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507054,"owners_count":21115528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["department","fire","ministries","open-data","open-government","open-knowledge-international","police"],"created_at":"2024-08-01T12:01:24.200Z","updated_at":"2025-04-12T02:37:43.859Z","avatar_url":"https://github.com/datasets.png","language":"Less","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"\u003ca className=\"gh-badge\" href=\"https://datahub.io/core/publicbodies\"\u003e\u003cimg src=\"https://badgen.net/badge/icon/View%20on%20datahub.io/orange?icon=https://datahub.io/datahub-cube-badge-icon.svg\u0026label\u0026scale=1.25\" alt=\"badge\" /\u003e\u003c/a\u003e\n\n[![Data](https://github.com/okfn/publicbodies/actions/workflows/frictionless.yaml/badge.svg)](https://repository.frictionlessdata.io/report?user=okfn\u0026repo=publicbodies\u0026flow=publicbodies)\n\nA database of public bodies (or organizations):\n\n\u003e Government-run or controlled organizations or entities which may or may not\n\u003e have distinct corporate existence\n\nExamples are:\n\n* Government Ministries or Departments\n* State-run Health organizations\n* Police and fire departments\n\nVisit the site: https://publicbodies.org/\n\n## Data\n\nData is stored in CSVs partitioned by country or region (e.g. EU) in the\n[data](data) folder. Files are named by two-letter ISO code.  \n\n## Contribute data\n\nPlease just add a CSV file and submit a pull request or\n[open an issue](https://github.com/okfn/publicbodies/issues).\n\nThe set of fields required in the CSV file can be seen in the field list on:\n[public-body-schema.json](public-body-schema.json). You can also check out \nthe existing data in `data/` for hints. To learn more about Data\nPackages, visit https://specs.frictionlessdata.io/.\n\nIf you can, [developing a bot](#for-developers-of-data-collector-bots)\nto automatically and periodically collect the data is even better.\n\n## For developers of the website\n\nThe website is a Jekyll site. To get it running locally:\n\n1. Install [Docker](https://docs.docker.com/get-docker/).\n\n2. Get the code\n\n    ```bash\n    git clone https://github.com/okfn/publicbodies\n    cd publicbodies\n    ```\n\n3. Run Jekyll\n\n    ```bash\n    cd website\n    export JEKYLL_VERSION=4.2.0\n    docker run --rm --volume=\"$PWD:/srv/jekyll\" -it jekyll/minimal:$JEKYLL_VERSION jekyll build --baseurl $PWD/_site/ --watch\n    ```\n\n    The built website will appear on the `website/_site` folder.\n\nThe list of outstanding issues is at: \u003chttps://github.com/okfn/publicbodies/issues\u003e\n\n## For developers of data collector bots\n\nData is kept automatically up-to-date by bots that collect and update\ndata once a week. The scripts are kept on the\n[scripts/import](scripts/import) directory, followed by the international\nplace code (e.g. `br` for Brazil, `it` for Italy).\n\nThe script MUST be runnable from a command line interface. It should\ndisplay the available options if run with the `--help` parameter, and\noutput data to the file chosen by the `--output` parameter. For example:\n\n```bash\npython3 scripts/import/br/import_br.py --help\n```\n```\nusage: import_br.py [-h] [--output file_name]\n\nImports Brazilian public body data from the official source and complements it\nwith data from several auxiliary sources. Official source: [SIORG's open data\nAPI](https://dados.gov.br/dataset/siorg)\n\noptional arguments:\n  -h, --help          show this help message and exit\n  --output file_name  filename for the data output as CSV\n```\n\nWhen making requests, bots MUST use the Public Bodies Bot user agent string\nto identify themselves to servers:\n\n```\nPublicBodiesBot (https://github.com/okfn/publicbodies)\n```\n\nIf using Python, use the same libraries already defined in\n[scrips/requirements.txt](scripts/requirements.txt), in order to keep\nthe project dependencies tidy, and only add new ones if strictly\nnecessary.\n\nAfter creating a new bot, make sure to add it to the\n[update data workflow](.github/workflows/update_data.yml) so that it runs\nregularly and keeps the data up-to-date.\n\n----\n\n## Original preparation\n\nDetails of the automated data extraction to build the original database.\n\nData sources:\n\n* Brazil\n  * Brazilian Government's SIORG – https://dados.gov.br/dataset/siorg\n* European Union\n  * [AskTheEU.org](https://www.asktheeu.org/)\n* Italy\n  * Opendata IPA\n    ([amministrazioni](https://indicepa.gov.it/ipa-dati/dataset/amministrazioni)\n    / [enti](https://indicepa.gov.it/ipa-dati/dataset/enti))\n* Germany\n  * FragDenStaat.de – (private GoogleDoc)\n  * Bund.de – https://www.bund.de/Content/DE/Behoerden/Suche/Formular.html\n* United Kingdom\n  * WhatDoTheyKnow.com – https://www.whatdotheyknow.com/body/all-authorities.csv\n* United States of America\n  * A-Z Index of U.S. Government Departments and Agencies – https://www.usa.gov/federal-agencies/a\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fpublicbodies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatasets%2Fpublicbodies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fpublicbodies/lists"}