{"id":16744948,"url":"https://github.com/ONSdigital/sdg-data","last_synced_at":"2025-11-01T08:30:28.051Z","repository":{"id":37404904,"uuid":"133052460","full_name":"ONSdigital/sdg-data","owner":"ONSdigital","description":"Data repository for SDGs","archived":false,"fork":false,"pushed_at":"2024-07-10T10:43:25.000Z","size":426445,"stargazers_count":19,"open_issues_count":3,"forks_count":61,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-12-16T14:29:13.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ONSdigital.github.io/sdg-data","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ONSdigital.png","metadata":{"files":{"readme":"README.md","changelog":"changed_indicators.csv","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-11T14:48:42.000Z","updated_at":"2024-09-15T04:13:35.000Z","dependencies_parsed_at":"2024-02-07T14:46:32.941Z","dependency_job_id":"08ab0d1e-d3d9-460e-8475-ad699119fe7c","html_url":"https://github.com/ONSdigital/sdg-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fsdg-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fsdg-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fsdg-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fsdg-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ONSdigital","download_url":"https://codeload.github.com/ONSdigital/sdg-data/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239265831,"owners_count":19610240,"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":[],"created_at":"2024-10-13T01:44:19.997Z","updated_at":"2025-11-01T08:30:28.012Z","avatar_url":"https://github.com/ONSdigital.png","language":"Python","funding_links":[],"categories":["Other Sustainability Data"],"sub_categories":["Financial Literacy"],"readme":"# SDG Data Repository   \n\n\n\n\n[![Build Status](https://travis-ci.org/ONSdigital/sdg-data.svg?branch=develop)](https://travis-ci.org/ONSdigital/sdg-data)\n [![LICENSE.](https://img.shields.io/badge/license-OGL--3-brightgreen.svg?style=flat)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/)\n\nThis repository holds the UK data for SDG reporting. The data is served via a static http server.\n\n# Servers\n\nThe develop branch serves from the `gh-pages` branch on this repository. This is for staging.\n\nThe master branch serves from the main deployment org and is for prod.\n\n# Routes:\n\nLoosely speaking with have: `/\u003cdatatype\u003e/\u003cid\u003e.\u003cformat\u003e` and support csv and json file formats. You can also look at the file structure at https://github.com/ONSdigital/sdg-data/tree/gh-pages and it shows how it's all laid out.\n\n## Versions\n\nWe don't currently support API versioning.\n\n## Data\n\nThe main data set, the raw data lives in `/data/` in the repo.\n\n```\n/data/\u003cid\u003e.\u003cformat\u003e\n\n/data/1-2-1.csv\n/data/1-2-1.json\n```\ne.g. https://ONSdigital.github.io/sdg-data/data/1-2-1.json\n\n### Edges\n\n```\n/edges/1-2-1.csv\n\n/edges/1-2-1.json\n```\n\n### Combined data and edges\n\n```\n/comb/1-2-1.csv\n/comb/1-2-1.json\n```\n\n## Metadata\n\n```\n/meta/\u003cid\u003e.json\n```\n\n## Statistics\n\nStatistics generated from the data and metadata. Currently just the reporting status statistics.\n\n```\n/stats/reporting.json\n```\n\n## Build time routes\n\nAt build time you'll need everything. Rather than making you download each indicator separately we have an ID of `all` which you can use.\n\n### Headline data\n\nHeadlines json comes formatted as records, instead of in list format.\n\n```\n/headline/\u003cid\u003e.\u003cformat\u003e\n/headline/all.json\n```\n\n\n### Metadata\n\nThe following is all metadata for all indicators in one blob for the build.\n\n```\n/meta/all.json\n```\n\nIt's a JSON object with `{\u003cid\u003e: \u003cmeta\u003e}` pairs.\n\nScripts:\n\n* `check_data.py`: Runs data and metadata checks and will prevent deployment if fails.\n* `build_data.py`: Builds main data, headline, and edges output in csv, and json.\n\nPackages:\n\nThis uses the `sdg` package from the `sdg-build` repository during the build.\n\n## License\n\nData (`data/` and `meta/`) is under [open government license v3](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).\n\nCode (`scripts/` and top level) is MIT © Office for National Statistics\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FONSdigital%2Fsdg-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FONSdigital%2Fsdg-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FONSdigital%2Fsdg-data/lists"}