Skip to content

Commit

Permalink
1603:45:16 #2: draft of compiled globa codes
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Jan 10, 2022
1 parent 6673f1b commit 3b87c2b
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 22 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CHANGELOG

<!--
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-->


## [Unreleased]
### Added
- TODO

## [1.0.0-rc] - 2021-01-09
### Added
### Changed
- Project started on https://github.com/EticaAI/multilingual-lexicography-automation

## [0.1.0] - 2021-01-03

<!-- https://github.com/EticaAI/n-data/commits/main?after=b49e54b59fc824ebc9a9632f0f580983278ef3ad+34&branch=main -->
### Added
- Project started on https://github.com/EticaAI/n-data


<!--
### Added
### Changed
### Removed
### Fixed
>
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ More about on:
- https://github.com/EticaAI/numerordinatio/issues/5
- https://numerordinatio.etica.ai/

<!--
## https://stackoverflow.com/questions/2317652/nested-git-repositories-without-submodules
# cd /workspace/git/EticaAI
# ln -s /workspace/git/EticaAI/multilingual-lexicography-automation/officinam /workspace/git/EticaAI/n-data
cd /workspace/git/EticaAI/n-data-pseudobase
git --git-dir /workspace/git/EticaAI/n-data.git-metadata --work-tree /workspace/git/EticaAI/multilingual-lexicography-automation/officinam status
git --git-dir /workspace/git/EticaAI/n-data.git-metadata --work-tree /workspace/git/EticaAI/multilingual-lexicography-automation/officinam gui
-->

## License

Expand All @@ -27,4 +18,7 @@ git --git-dir /workspace/git/EticaAI/n-data.git-metadata --work-tree /workspace/
- https://github.com/LeMyst/WikibaseIntegrator
- https://github.com/maxlath/wikibase-cli
- TODO: maybe create some namespace
- https://en.wikipedia.org/wiki/List_of_libraries_in_the_ancient_world
-->
6 changes: 5 additions & 1 deletion officinam/999999999/0_9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ deploy_0_9_commit() {
--git-dir /workspace/git/EticaAI/n-data.git-metadata \
--work-tree /workspace/git/EticaAI/multilingual-lexicography-automation/officinam \
push
return 0
# return 0
exit 0
}

deploy_0_9_exit() {
Expand All @@ -86,3 +87,6 @@ done

# cd /workspace/git/EticaAI/n-data-pseudobase
# git --git-dir /workspace/git/EticaAI/n-data.git-metadata --work-tree /workspace/git/EticaAI/multilingual-lexicography-automation/officinam gui

# GIT_DIR="/workspace/git/EticaAI/n-data.git-metadata" GIT_WORK_TREE="/workspace/git/EticaAI/n-data-pseudobase" code /workspace/git/EticaAI/multilingual-lexicography-automation/officinam

48 changes: 36 additions & 12 deletions officinam/999999999/1603_45_16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,25 +232,49 @@ deploy_1603_45_16_prepare_directories() {
# 1603/45/16/1/1603_45_16_1.no1.tm.hxl.csv
#######################################
deploy_1603_45_16_global_adm0() {
# fontem_archivum="${ROOTDIR}/999999/1603/47/639/3/1603_47_639_3.hxl.csv"
# objectivum_archivum="${ROOTDIR}/999999/999999/1603_45_49.tsv"
# objectivum_archivum_temp="${ROOTDIR}/999999/999999/1603_45_49.TEMP.tsv"
fontem_semitam="${ROOTDIR}/999999/1603/45/16/hxl"
objectivum_archivum="${ROOTDIR}/1603/45/16/1/1603_45_16_1_0.hxl.csv"
objectivum_archivum_temporarium="${ROOTDIR}/1603/45/16/1/1603_45_16_1_0.TEMP.hxl.csv"

# if [ -z "$(changed_recently "$fontem_archivum")" ]; then return 0; fi
# if [ -z "$(changed_recently "$fontem_semitam")" ]; then return 0; fi

# echo "${FUNCNAME[0]} sources changed_recently. Reloading..."
echo "${FUNCNAME[0]} sources changed_recently. Reloading..."

echo "TODO deploy_1603_45_16_global_adm0"
# echo "#item+conceptum+numerordinatio,#item+conceptum+codicem,#item+rem+i_zxx+is_zmth+ix_unm49,#item+rem+i_zxx+is_zmth+ix_admlevel" \
# >"${ROOTDIR}/1603/45/16/1/1603_45_16_1.no1.tm.hxl.csv"
echo "#adm0+code+pcode,#date,#date+valid_on,#date+valid_to" \
> "${objectivum_archivum_temporarium}"

echo "#item+conceptum+numerordinatio,#item+conceptum+codicem,#item+rem+i_zxx+is_zmth+ix_unm49,#item+rem+i_zxx+is_zmth+ix_admlevel" \
>"${ROOTDIR}/1603/45/16/1/1603_45_16_1.no1.tm.hxl.csv"
# ls "${ROOTDIR}/999999/1603/45/16/hxl"

# find 999999/1603/45/16/hxl -name *_0.hxl.csv | hxlcut --include="#adm0+code+pcode"

# find 999999/1603/45/16/hxl -name *_0.hxl.csv
for archivum in "${ROOTDIR}"/999999/1603/45/16/hxl/*_0.hxl.csv; do
# echo "$archivum"
# archivum_nomen=$(basename -- "$archivum")
# hxlcut --include="#adm0+code+pcode,#date,#date+valid_on,#date+valid_to,#meta+archivum" \
hxlcut --include="#adm0+code+pcode,#date,#date+valid_on,#date+valid_to" \
"$archivum" \
| tail -n +3 \
>> "${objectivum_archivum_temporarium}"
done

# TODO: maybe create a deploy script
if [ -f "$objectivum_archivum" ]; then
rm "$objectivum_archivum"
fi

mv "${objectivum_archivum_temporarium}" "$objectivum_archivum"
}

bootstrap_999999_1603_45_16_fetch_data
bootstrap_999999_1603_45_16
bootstrap_999999_1603_45_16_metadata_pre_deploy
# bootstrap_999999_1603_45_16_fetch_data
# bootstrap_999999_1603_45_16
# bootstrap_999999_1603_45_16_metadata_pre_deploy

# deploy_1603_45_16_prepare_directories


deploy_1603_45_16_prepare_directories
deploy_1603_45_16_global_adm0

set +x

0 comments on commit 3b87c2b

Please sign in to comment.