-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mvp-tema-i18n (#9): _systema/programma/download-hxl-datum.sh
- Loading branch information
Showing
5 changed files
with
105 additions
and
9 deletions.
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
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#item+code,#item+l10n+i_lat,#item+l10n+i_eng,#item+l10n+i_por | ||
l10n_API,API,API,API | ||
l10n_API_UN,API UN 🇺🇳,API UN 🇺🇳,API UN 🇺🇳 | ||
l10n_openapi_filum,OpenAPI Fīlum,OpenAPI file,Arquivo OpenAPI | ||
l10n_vicipaediam,Vicipaediam,Wikipedia,Wikipédia | ||
#item+code,#item+l10n+i_lat,#item+l10n+i_eng,#item+l10n+i_por | ||
L10n_API,API,API,API | ||
L10n_API_UN,API UN 🇺🇳,API UN 🇺🇳,API UN 🇺🇳 | ||
L10n_API_XZ,API XZ 🌐,API XZ 🌐,API XZ 🌐 | ||
L10n_API_BR,API BR 🇧🇷,API BR 🇧🇷,API BR 🇧🇷 | ||
L10n_schema,Schēmam,Schema,Schema | ||
L10n_openapi_filum,OpenAPI Fīlum,OpenAPI file,Arquivo OpenAPI | ||
L10n_vicipaediam,Vicipaediam,Wikipedia,Wikipédia |
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,27 @@ | ||
# _data | ||
|
||
> - [documentum/README.md](documentum/README.md) | ||
> - [_data/README.md](_data/README.md) | ||
> - [GSheets: HXL-CPLP-Vocab_Auxilium-Humanitarium-API_L10n](https://docs.google.com/spreadsheets/d/1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4/edit#gid=1181688279) | ||
## Note to maintainers in English | ||
|
||
- <https://translate.google.com/translate?sl=pt&tl=en&u=https://github.com/HXL-CPLP/Auxilium-Humanitarium-API/blob/main/_data/README.md> | ||
|
||
## Notas aos mantenedores em português | ||
|
||
### `_data/L10n.hxl.csv` | ||
- Automação | ||
- Script: [_systema/programma/download-hxl-datum.sh](_systema/programma/download-hxl-datum.sh) | ||
- GitHub action: [.github/workflows/05-deploy-github-pages.yml](.github/workflows/05-deploy-github-pages.yml) | ||
- Arquivo: [_data/L10n.hxl.csv](_data/L10n.hxl.csv) | ||
- GSheets: HXL-CPLP-Vocab_Auxilium-Humanitarium-API_L10n | ||
- https://docs.google.com/spreadsheets/d/1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4/edit#gid=1181688279 | ||
|
||
O arquivo `_data/L10n.hxl.csv` é obtido automaticamente antes da publicação no | ||
GitHub pages com ajuda do script `_systema/programma/download-hxl-datum.sh`. | ||
|
||
É possivel usar uma versão antiga desse arquivo ao testar com Jekyll localmente, | ||
porém qualquer customização, mesmo que commitada neste repositório, caso | ||
não esteja também em _GSheets: HXL-CPLP-Vocab_Auxilium-Humanitarium-API_L10n_ | ||
sera completamente ignorada. |
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,50 @@ | ||
#!/bin/sh | ||
#=============================================================================== | ||
# | ||
# FILE: download-hxl-datum.sh | ||
# | ||
# USAGE: ./_systema/programma/download-hxl-datum.sh | ||
# | ||
# DESCRIPTION: Download data from Google Spreadsheets via HXL-Proxy | ||
# | ||
# OPTIONS: --- | ||
# | ||
# REQUIREMENTS: --- | ||
# BUGS: --- | ||
# NOTES: --- | ||
# AUTHOR: Emerson Rocha <rocha[at]ieee.org> | ||
# COMPANY: EticaAI | ||
# LICENSE: Public Domain dedication | ||
# SPDX-License-Identifier: Unlicense | ||
# VERSION: v1.0 | ||
# CREATED: 2021-05-13 20:16 UTC started, based on EticaAI/ | ||
# HXL-Data-Science-file-formats/prepare-hxlm-relsease.sh | ||
# REVISION: --- | ||
#=============================================================================== | ||
|
||
# Trivia: | ||
# - "download" | ||
# - Note: no idea what word use for 'download' not even in New Latin | ||
# - https://en.wiktionary.org/wiki/download | ||
# - "hxl" | ||
# - https://hxlstandard.org/ | ||
# - "datum" | ||
# - https://en.wiktionary.org/wiki/datum#Latin | ||
|
||
#### Customizations, ___________________________________________________________ | ||
|
||
### Data pull configurations --------------------------------------------------- | ||
|
||
# @see https://docs.google.com/spreadsheets/d/1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4/edit#gid=1181688279 | ||
HAPI_L10N="https://proxy.hxlstandard.org/data/download/L10n_hxl_csv.csv?dest=data_edit&strip-headers=on&force=on&url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4%2Fedit%23gid%3D1181688279" | ||
|
||
ROOTDIR="$(pwd)" | ||
|
||
#### DATA PULL _________________________________________________________________ | ||
|
||
# TODO: check first if remote resources are online (or if do exist network) | ||
# instead of save to disk. These " if true;" are placeholders | ||
|
||
if true ; then | ||
wget -qO- "$HAPI_L10N" > "${ROOTDIR}/_data/L10n.hxl.csv" | ||
fi |
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