forked from ONSdigital/sdg-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_data.yml
112 lines (101 loc) · 4.6 KB
/
config_data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# This config file is for use with the `build_data` and `check_data` functions,
# which are helpers for implementations of Open SDG. This file allows easy use
# of those functions without altering Python code.
# Languages
# ---------
# This tells sdg-build to perform "translated builds" for each of the specified
# languages. Each build is in its own subfolder - one for each language.
languages:
- en
# Destination directory
# ---------------------
# This identifies a directory to hold the "built" files. The default is '_site'.
site_dir: _site
# Schema file
# -----------
# This identifies a file containing the schema (possible fields) for metadata.
# Currently this needs to be a prose.io config, and defaults to '_prose.yml'.
schema_file: _prose.yml
# Source directory
# ----------------
# This identifies the directory that holds the 'data' and 'meta' folders.
# The default, '', points to the root of this repository.
src_dir: ''
inputs:
- class: InputCsvData
# This describes the data files, relative to the "src_dir" indicated above.
path_pattern: data/*-*.csv
- class: InputYamlMdMeta
# This describes the meta files, relative to the "src_dir" indicated above.
path_pattern: meta/*-*.md
# This specifies whether or not to use Git to calculate the "last updated"
# dates for data files.
git: true
# This specifies an alternate folder to look in for Git-versioned data files,
# when calculating the "last updated" dates for data files. This defaults to
# "data" (the folder where the data files actually exist.) Most sites will not
# need to change this setting. It is intended for sites where the data needs
# to be "built" before being processed by sdg-build.
git_data_dir: data
- class: InputYamlMeta
path_pattern: indicator-config/*-*.yml
git: false
# Translation repositories
# ------------------------
# This tells sdg-build to import translations from Git repositories. Specific
# tags or branches should be indicated after an "@" symbol. The default is the
# GitHub repository 'sdg-translations'.
translations:
- class: TranslationInputSdgTranslations
source: https://github.com/open-sdg/sdg-translations.git
branch: 1.4.0-dev
# Reporting status extra fields
# -----------------------------
# This allows the build to generate stats for reporting status by additional
# fields, beyond the default "status by goal" report.
reporting_status_extra_fields: []
# Map layers
# ----------
# This allows the build to generate one or more GeoJSON files to be used by
# Open SDG maps. The parameters available correspond to the OutputGeoJson class.
# See sdg/outputs/OutputGeoJson.py for more information. Uncomment the map_layers
# below and adjust if you would like to use the Open SDG mapping functionality.
# Note that the GeoJSON files can either be remote (as in the example below) or
# local, relative to the src_dir specified above.
map_layers:
#Country (https://geoportal.statistics.gov.uk/datasets/countries-december-2019-boundaries-uk-buc)
- geojson_file: https://opendata.arcgis.com/datasets/92ebeaf3caa8458ea467ec164baeefa4_0.geojson
name_property: ctry19nm
id_property: ctry19cd
output_subfolder: country
filename_prefix: indicator_
#Region (link: https://hub.arcgis.com/datasets/4fcca2a47fed4bfaa1793015a18537ac_4)
- geojson_file: https://geoportal1-ons.opendata.arcgis.com/datasets/4fcca2a47fed4bfaa1793015a18537ac_4.geojson
name_property: rgn17nm
id_property: rgn17cd
output_subfolder: regions
filename_prefix: indicator_
#Local Authority (link: https://hub.arcgis.com/datasets/686603e943f948acaa13fb5d2b0f1275_4)
- geojson_file: https://geoportal1-ons.opendata.arcgis.com/datasets/686603e943f948acaa13fb5d2b0f1275_4.geojson
name_property: lad16nm
id_property: lad16cd
output_subfolder: local_authorities
filename_prefix: indicator_
# Git
# ---
# This specifies whether or not to use Git dates to calculate the "last updated"
# date for data files.
git: true
# Git Data Director
# -----------------
# This specifies an alternate folder to look in for Git-versioned data files,
# when calculating the "last updated" dates for data files. This defaults to
# "data" (the folder where the data files actually exist.) Most sites will not
# need to change this setting. It is intended for sites where the data needs
# to be converted/processed/etc in some way before being processed by sdg-build.
git_data_dir: data
docs_branding: UK SDG data service
docs_intro: This is a list of outputs that are
available on this service. Click each of the links below for more information
on the available output.
docs_indicator_url: https://sdgdata.gov.uk/[id]