-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dados] metadata #1340
Merged
Merged
[dados] metadata #1340
Changes from 160 commits
Commits
Show all changes
164 commits
Select commit
Hold shift + click to select a range
1f6a8b8
feat: init metadata
rdahis 93662f1
Merge branch 'master' into metadata
mergify[bot] ad779d6
Merge branch 'master' into metadata
mergify[bot] 4753c99
Merge branch 'master' into metadata
mergify[bot] 0abaf8f
Merge branch 'master' into metadata
mergify[bot] fc52ffa
Merge branch 'master' into metadata
mergify[bot] b40901f
Merge branch 'master' into metadata
mergify[bot] e469a52
Merge branch 'master' into metadata
mergify[bot] 28342e3
Merge branch 'master' into metadata
mergify[bot] 5c24585
Merge branch 'master' into metadata
mergify[bot] 2135673
Merge branch 'master' into metadata
mergify[bot] 7c1d301
Merge branch 'master' into metadata
mergify[bot] 4a1bf35
Merge branch 'master' into metadata
mergify[bot] 766bdec
Merge branch 'master' into metadata
mergify[bot] d60c0e0
Merge branch 'master' into metadata
mergify[bot] e45a733
Merge branch 'master' into metadata
mergify[bot] 20f6bb9
Merge branch 'master' into metadata
mergify[bot] 9f09637
Merge branch 'master' into metadata
mergify[bot] 9eba1e4
Merge branch 'master' into metadata
mergify[bot] 5fc55a9
Merge branch 'master' into metadata
mergify[bot] 90c3be7
Merge branch 'master' into metadata
mergify[bot] 4a8c99c
Merge branch 'master' into metadata
mergify[bot] 79b8c92
Merge branch 'master' into metadata
mergify[bot] de38a01
Merge branch 'master' into metadata
mergify[bot] 53bfbf8
Merge branch 'master' into metadata
mergify[bot] 7ddf320
Merge branch 'master' into metadata
mergify[bot] fa467b4
Merge branch 'master' into metadata
mergify[bot] 06fde4b
Merge branch 'master' into metadata
mergify[bot] 5eedd4f
Merge branch 'master' into metadata
mergify[bot] 770671d
Merge branch 'master' into metadata
mergify[bot] 61c4df6
Merge branch 'master' into metadata
mergify[bot] 3143839
Merge branch 'master' into metadata
mergify[bot] ca477d6
Merge branch 'master' into metadata
mergify[bot] 3b9a4ed
Merge branch 'master' into metadata
mergify[bot] 643a9ee
Merge branch 'master' into metadata
mergify[bot] d4e1fc2
Merge branch 'master' into metadata
mergify[bot] 77d216a
Merge branch 'master' into metadata
mergify[bot] 9e56d72
Merge branch 'master' into metadata
mergify[bot] d1bbd98
Merge branch 'master' into metadata
mergify[bot] 2267628
Merge branch 'master' into metadata
mergify[bot] 0759eaf
Merge branch 'master' into metadata
mergify[bot] 3c1b491
Merge branch 'master' into metadata
mergify[bot] ca17261
Merge branch 'master' into metadata
mergify[bot] 7f5c5f7
Merge branch 'master' into metadata
mergify[bot] 770511e
Merge branch 'master' into metadata
mergify[bot] 993a831
Merge branch 'master' into metadata
mergify[bot] a177d9b
Merge branch 'master' into metadata
mergify[bot] 6d940ce
Merge branch 'master' into metadata
mergify[bot] b13285c
Merge branch 'master' into metadata
mergify[bot] 6c01bce
Merge branch 'master' into metadata
mergify[bot] 42a4fb6
Merge branch 'master' into metadata
mergify[bot] be2e17d
Merge branch 'master' into metadata
mergify[bot] d2df321
Merge branch 'master' into metadata
mergify[bot] 99a8d46
Merge branch 'master' into metadata
mergify[bot] f6cec40
Merge branch 'master' into metadata
mergify[bot] ce95841
Merge branch 'master' into metadata
mergify[bot] 855c452
Merge branch 'master' into metadata
mergify[bot] 9ad4e61
Merge branch 'master' into metadata
mergify[bot] a60bc3b
Merge branch 'master' into metadata
mergify[bot] 7b698bc
Merge branch 'master' into metadata
mergify[bot] 404597e
Merge branch 'master' into metadata
mergify[bot] 094f02c
Merge branch 'master' into metadata
mergify[bot] 4122e77
Merge branch 'master' into metadata
mergify[bot] f260510
Merge branch 'master' into metadata
mergify[bot] eebfa18
Merge branch 'master' into metadata
mergify[bot] cb24225
Merge branch 'master' into metadata
mergify[bot] 0cc1904
Merge branch 'master' into metadata
mergify[bot] f3c91d5
Merge branch 'master' into metadata
mergify[bot] 37ff35b
Merge branch 'master' into metadata
mergify[bot] 05b668f
Merge branch 'master' into metadata
mergify[bot] bcadce9
Merge branch 'master' into metadata
mergify[bot] 27e158e
Merge branch 'master' into metadata
mergify[bot] cfe9865
Merge branch 'master' into metadata
mergify[bot] c8cea77
Merge branch 'master' into metadata
mergify[bot] 799ccbd
Merge branch 'master' into metadata
mergify[bot] 2db3fd6
Merge branch 'master' into metadata
mergify[bot] ef4e748
Merge branch 'master' into metadata
mergify[bot] 44e5c39
Merge branch 'master' into metadata
mergify[bot] 84b3278
Merge branch 'master' into metadata
mergify[bot] e5143af
Merge branch 'master' into metadata
mergify[bot] 52de18f
Merge branch 'master' into metadata
mergify[bot] a80a256
Merge branch 'master' into metadata
mergify[bot] fedf3c0
Merge branch 'master' into metadata
mergify[bot] 814b39a
Merge branch 'master' into metadata
mergify[bot] 12d899a
Merge branch 'master' into metadata
mergify[bot] 3e24915
Merge branch 'master' into metadata
mergify[bot] 6517ebd
Merge branch 'master' into metadata
mergify[bot] b73e81a
Merge branch 'master' into metadata
mergify[bot] e2747aa
Merge branch 'master' into metadata
mergify[bot] bf70949
Merge branch 'master' into metadata
mergify[bot] a64debe
Merge branch 'master' into metadata
mergify[bot] 4e19dec
Merge branch 'master' into metadata
mergify[bot] 3c76700
Merge branch 'master' into metadata
mergify[bot] e1897cb
Merge branch 'master' into metadata
mergify[bot] ed5ee8f
Merge branch 'master' into metadata
mergify[bot] 6fd10c9
Merge branch 'master' into metadata
mergify[bot] 08a1488
Merge branch 'master' into metadata
mergify[bot] 85a011e
Merge branch 'master' into metadata
mergify[bot] 4fedee3
Merge branch 'master' into metadata
mergify[bot] 0a6c19d
Merge branch 'master' into metadata
mergify[bot] f04b922
Merge branch 'master' into metadata
mergify[bot] 2595c1f
Merge branch 'master' into metadata
mergify[bot] 56f7b09
Merge branch 'master' into metadata
mergify[bot] caa2752
Merge branch 'master' into metadata
mergify[bot] 2323fa4
Merge branch 'master' into metadata
mergify[bot] 37875d7
Merge branch 'master' into metadata
mergify[bot] b2d6098
Merge branch 'master' into metadata
mergify[bot] 6f7e857
Merge branch 'master' into metadata
mergify[bot] 8ef4062
Merge branch 'master' into metadata
mergify[bot] 43c3849
Merge branch 'master' into metadata
mergify[bot] 7e0810f
Merge branch 'master' into metadata
mergify[bot] e37964d
Merge branch 'master' into metadata
mergify[bot] f54ff76
Merge branch 'master' into metadata
mergify[bot] 0ace056
Merge branch 'master' into metadata
mergify[bot] b205bbf
Merge branch 'master' into metadata
mergify[bot] 3674c88
Merge branch 'master' into metadata
mergify[bot] 68c462a
Merge branch 'master' into metadata
mergify[bot] 5f5337d
Merge branch 'master' into metadata
mergify[bot] 2f897ac
Merge branch 'master' into metadata
mergify[bot] b819824
Merge branch 'master' into metadata
mergify[bot] eee0549
Merge branch 'master' into metadata
mergify[bot] 6592205
Merge branch 'master' into metadata
mergify[bot] 1a91104
Merge branch 'master' into metadata
mergify[bot] 6218ca8
Merge branch 'master' into metadata
mergify[bot] 0701536
Merge branch 'master' into metadata
mergify[bot] 2f9377b
Merge branch 'master' into metadata
mergify[bot] d11269e
Merge branch 'master' into metadata
mergify[bot] 033d369
Merge branch 'master' into metadata
mergify[bot] b4b715e
Merge branch 'master' into metadata
mergify[bot] 2b098df
Merge branch 'master' into metadata
mergify[bot] 978331c
Merge branch 'master' into metadata
mergify[bot] c053214
Merge branch 'master' into metadata
mergify[bot] 481aabb
Merge branch 'master' into metadata
mergify[bot] ce65236
Merge branch 'master' into metadata
mergify[bot] 53219c4
Merge branch 'master' into metadata
mergify[bot] b1db82a
Merge branch 'master' into metadata
mergify[bot] 119ea37
Merge branch 'master' into metadata
mergify[bot] 1143a45
Merge branch 'master' into metadata
mergify[bot] 783c848
Merge branch 'master' into metadata
mergify[bot] aca6f71
Merge branch 'master' into metadata
mergify[bot] e3eb91a
Merge branch 'master' into metadata
mergify[bot] 2bf19fb
Merge branch 'master' into metadata
mergify[bot] 9f82f85
Merge branch 'master' into metadata
mergify[bot] e8fe84c
Merge branch 'master' into metadata
mergify[bot] 41d9715
Merge branch 'master' into metadata
mergify[bot] c78a936
Merge branch 'master' into metadata
mergify[bot] 6df76f4
Merge branch 'master' into metadata
mergify[bot] b625533
Merge branch 'master' into metadata
mergify[bot] 3d919e8
Merge branch 'master' into metadata
mergify[bot] 755f4db
Merge branch 'master' into metadata
mergify[bot] 99b6a3c
Merge branch 'master' into metadata
mergify[bot] 7225ba6
Merge branch 'master' into metadata
mergify[bot] 53ad9ea
Merge branch 'master' into metadata
mergify[bot] 0317b03
Merge branch 'master' into metadata
mergify[bot] bac4c50
preenchimento d
tricktx cc3fbe7
update dataset_config
tricktx 61ee3cd
update table_config columns
tricktx bc4f1d9
update
tricktx 3ade4d3
Merge branch 'master' into metadata
mergify[bot] 819f9b4
Merge branch 'master' into metadata
mergify[bot] 1e91807
update br_bd_metadados
tricktx 374d0db
final update
tricktx f9f8ac5
Merge branch 'master' into metadata
mergify[bot] c961cda
Merge branch 'master' into metadata
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Query para publicar a tabela. | ||
|
||
Esse é o lugar para: | ||
- modificar nomes, ordem e tipos de colunas | ||
- dar join com outras tabelas | ||
- criar colunas extras (e.g. logs, proporções, etc.) | ||
|
||
Qualquer coluna definida aqui deve também existir em `table_config.yaml`. | ||
|
||
# Além disso, sinta-se à vontade para alterar alguns nomes obscuros | ||
# para algo um pouco mais explícito. | ||
|
||
TIPOS: | ||
- Para modificar tipos de colunas, basta substituir STRING por outro tipo válido. | ||
- Exemplo: `SAFE_CAST(column_name AS NUMERIC) column_name` | ||
- Mais detalhes: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types | ||
*/ | ||
|
||
CREATE VIEW basedosdados-dev.br_bd_metadados.columns AS | ||
SELECT | ||
SAFE_CAST(table_id AS STRING) table_id, | ||
SAFE_CAST(name AS STRING) name, | ||
SAFE_CAST(bigquery_type AS STRING) bigquery_type, | ||
SAFE_CAST(description AS STRING) description, | ||
SAFE_CAST(temporal_coverage AS STRING) temporal_coverage, | ||
SAFE_CAST(covered_by_dictionary AS STRING) covered_by_dictionary, | ||
SAFE_CAST(directory_column AS STRING) directory_column, | ||
SAFE_CAST(measurement_unit AS STRING) measurement_unit, | ||
SAFE_CAST(has_sensitive_data AS STRING) has_sensitive_data, | ||
SAFE_CAST(observations AS STRING) observations, | ||
SAFE_CAST(is_in_staging AS STRING) is_in_staging, | ||
SAFE_CAST(is_partition AS STRING) is_partition | ||
FROM basedosdados-dev.br_bd_metadados_staging.columns AS t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"name": "table_id", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "name", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "bigquery_type", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "description", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "temporal_coverage", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "covered_by_dictionary", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "directory_column", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "measurement_unit", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "has_sensitive_data", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "observations", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "is_in_staging", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}, {"name": "is_partition", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING", "mode": "NULLABLE"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"name": "table_id", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "name", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "bigquery_type", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "description", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "temporal_coverage", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "covered_by_dictionary", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "directory_column", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "measurement_unit", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "has_sensitive_data", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "observations", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "is_in_staging", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}, {"name": "is_partition", "bigquery_type": "string", "description": null, "temporal_coverage": null, "covered_by_dictionary": null, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": null, "observations": null, "is_in_staging": null, "is_partition": null, "type": "STRING"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
# Igual ao dataset.name mas como lower case. | ||
# Exemplos: br_ibge_populacao, br_inep_censo_escolar | ||
dataset_id: br_bd_metadados | ||
|
||
table_id: columns | ||
|
||
# Título da tabela. | ||
title: Colunas na BD+ | ||
|
||
# Descreva a tabela. Essas são as primeiras frases que um usuário vai ver. | ||
# Você não precisa ser muito conciso. Sinta-se a vontade para dar exemplos de | ||
# como usar os dados. | ||
# Se souber, liste também aplicações: pesquisa, apps, etc. que usem os dados., | ||
description: Colunas na BD+ | ||
|
||
# As máximas unidades espaciais que a tabela cobre. | ||
# Exemplo: | ||
# - sa.br | ||
spatial_coverage: | ||
- world | ||
|
||
# Anos cobertos pela tabela. | ||
# Preencher como lista de intervalos. | ||
# Exemplos: ['1995(1)2019'], ['2002(2)2010', '2016', '2020']. | ||
temporal_coverage: 2022-03-13 | ||
|
||
# A unidade temporal com qual a tabela é atualizada. | ||
# Opções em 'https://basedosdados.org/api/3/action/bd_available_options' | ||
update_frequency: day | ||
|
||
# Nível de observação da tabela: o que representa cada linha. | ||
observation_level: | ||
- entity: other | ||
columns: | ||
- table_id | ||
|
||
last_updated: | ||
metadata: '2023-03-07' | ||
data: '2023-03-07 14:54:00' | ||
release: '2023-03-07 14:54:00' | ||
|
||
# Versão da tabela. Seguindo o padrão de semantic versioning. | ||
# Exemplo: v1.1.3 | ||
version: v1.0 | ||
|
||
# Quem está preenchendo esses metadados? | ||
published_by: | ||
name: Patrick Teixeira | ||
email: [email protected] | ||
github_user: tricktx | ||
ckan_user: patrickteixeira | ||
website: | ||
|
||
# Qual organização/departamento/pessoa tratou os dados? | ||
# As vezes há um ponto intermediário entre os dados originais e subir na Base dos Dados. | ||
# Se essa pessoa é você, preencha abaixo com suas informações. | ||
data_cleaned_by: | ||
name: Ricardo Dahis | ||
email: [email protected] | ||
github_user: rdahis | ||
ckan_user: rdahis | ||
website: www.ricardodahis.com | ||
|
||
# Se houve passos de tratamento, limpeza e manipulação de dados, descreva-os aqui. | ||
data_cleaning_description: | ||
|
||
# Url do código de limpeza dos dados. | ||
data_cleaning_code_url: | ||
|
||
# Organização que ajudou institucionalmente na disponibilização dos dados. | ||
partner_organization: | ||
name: | ||
organization_id: | ||
|
||
# Url dos dados originais no GCP Storage. | ||
raw_files_url: | ||
|
||
# Url dos arquivos auxiliares no GCP Storage. | ||
auxiliary_files_url: | ||
|
||
# Url da tabela de arquitetura no GCP Storage. | ||
architecture_url: | ||
|
||
source_bucket_name: basedosdados-dev | ||
|
||
project_id_prod: basedosdados-dev | ||
|
||
project_id_staging: basedosdados-dev | ||
|
||
# Liste as colunas da tabela que representam partições. | ||
# Não esqueça de deletar essas colunas nas tabelas .csv na hora de subir para o BigQuery. | ||
# Isso poupará muito tempo e dinheiro às pessoas utilizando essa tabela. | ||
# Se não houver partições, não modifique abaixo. | ||
partitions: | ||
|
||
# Quais são as colunas? Certifique-se de escrever uma boa descrição, as pessoas vão gostar | ||
# para saber sobre o que é a coluna. | ||
# Adicionar todas as colunas manualmente pode ser bastante cansativo, por isso, quando | ||
# inicializando este arquivo de configuração, você pode apontar a função para uma amostra de dados que | ||
# preencherá automaticamente as colunas. | ||
# Algumas colunas existirão apenas na tabela final, você as construirá em `publish.sql`. | ||
# Para esses, defina is_in_staging como False. | ||
# Além disso, você deve adicionar as colunas de partição aqui e definir is_partition como True. | ||
columns: | ||
- name: table_id | ||
bigquery_type: string | ||
description: Table ID | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: name | ||
bigquery_type: string | ||
description: Name | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: bigquery_type | ||
bigquery_type: string | ||
description: Bigquery Type | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: description | ||
bigquery_type: string | ||
description: Description | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: temporal_coverage | ||
bigquery_type: string | ||
description: Temporal Coverage | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: year | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: covered_by_dictionary | ||
bigquery_type: string | ||
description: Indicates if it is covered by dictionary | ||
temporal_coverage: (1) | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: directory_column | ||
bigquery_type: string | ||
description: Directory Column | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: measurement_unit | ||
bigquery_type: string | ||
description: Measurement Unit | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: has_sensitive_data | ||
bigquery_type: string | ||
description: Indicates if it has sensitive data | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: observations | ||
bigquery_type: string | ||
description: Observations | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: is_in_staging | ||
bigquery_type: string | ||
description: Is in staging | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
- name: is_partition | ||
bigquery_type: string | ||
description: Is Partition | ||
temporal_coverage: (1) | ||
covered_by_dictionary: no | ||
directory_column: | ||
dataset_id: | ||
table_id: | ||
column_name: | ||
measurement_unit: | ||
has_sensitive_data: no | ||
observations: | ||
is_in_staging: true | ||
is_partition: false | ||
|
||
number_rows: 14880 | ||
|
||
metadata_modified: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
None | ||
|
||
Para saber mais acesse: | ||
Website: | ||
Github: | ||
|
||
Ajude a manter o projeto :) | ||
Apoia-se: https://apoia.se/basedosdados | ||
|
||
Publicado por | ||
------------- | ||
Nome: None | ||
Código: | ||
Tratado por | ||
----------- | ||
Nome: None | ||
Código: | ||
|
||
|
||
|
||
|
||
|
||
|
||
Cobertura Temporal | ||
------------------ | ||
|
||
|
||
|
||
|
||
Cobertura Espacial | ||
------------------ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Frequencia de Atualização | ||
------------------------- | ||
day |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
# Nome (slug) do conjunto no CKAN | ||
# Exemplos: br-ibge-populacao, br-tse-eleicoes | ||
name: br-bd-metadados | ||
|
||
# Título do conjunto, a ser exibido no mecanismo de busca. | ||
# Exemplo: População brasileira | ||
title: Metadados na BD+ | ||
|
||
# Qual organização disponibiliza os dados originais? | ||
# Opções: escolher dessa lista -> https://basedosdados.org/api/3/action/organization_list | ||
# Exemplos: br-ibge, br-tse, br-rj-gov | ||
organization: br-bd | ||
|
||
# Descrição do conjunto | ||
notes: Informações compiladas sobre os metadados mantidos na plataforma BD+. | ||
|
||
# Quais temas caracterizam a base? | ||
# Opções: escolher dessa lista -> https://basedosdados.org/api/3/action/group_list | ||
# Importante: preencher com a chave, e não o valor. | ||
groups: | ||
- ciencia-tec-inov | ||
|
||
# Quais etiquetas caracterizam a base? | ||
# Opções: escolher dessa lista -> https://basedosdados.org/api/3/action/tag_list | ||
# Exemplos: fertilidade, preco, desmatamento. | ||
# Caso crie etiquetas novas, as regras são: | ||
# - letras minúsculas | ||
# - sem acentos | ||
# - sempre no singular | ||
# - não repita nomes de grupos (ex. educacao, saude, meio ambiente, economia, etc.) | ||
tags: | ||
- administracao | ||
- dados abertos | ||
|
||
# Não altere esse campo. | ||
# Data da última modificação dos metadados gerada automaticamente pelo CKAN. | ||
metadata_modified: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aqui é a coluna não a tabela
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O nome da coluna é table_id, meu bem.
![Screenshot_1](https://user-images.githubusercontent.com/105399231/224728512-e5b5e0cd-01ad-4896-a6af-afefb59d4c4b.png)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaa certo, mas mesmo assim não é o table_id que identifica unicamente a linha, precisamos de mais uma variavel, acho que pde ficar assim:
observation_level:
- entity: other
columns:
- table_id
- entity: other
columns:
- name