From 70a430212907128200a3c4243f792f9a1856495a Mon Sep 17 00:00:00 2001 From: Emerson Rocha Date: Sun, 15 May 2022 16:08:19 -0300 Subject: [PATCH] (#40): now also testing with P4251, P6204 (bug), P6555, P9119 (bug) --- officinam/999999/1679/3/12/.gitkeep | 0 officinam/999999/1679/3/12/4251/.gitkeep | 0 officinam/999999/1679/3/12/6204/.gitkeep | 0 officinam/999999/1679/3/12/6555/.gitkeep | 0 officinam/999999/1679/3/12/9119/.gitkeep | 0 officinam/999999999/999999_1679.sh | 83 +++++++----------------- 6 files changed, 22 insertions(+), 61 deletions(-) create mode 100644 officinam/999999/1679/3/12/.gitkeep create mode 100644 officinam/999999/1679/3/12/4251/.gitkeep create mode 100644 officinam/999999/1679/3/12/6204/.gitkeep create mode 100644 officinam/999999/1679/3/12/6555/.gitkeep create mode 100644 officinam/999999/1679/3/12/9119/.gitkeep diff --git a/officinam/999999/1679/3/12/.gitkeep b/officinam/999999/1679/3/12/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/officinam/999999/1679/3/12/4251/.gitkeep b/officinam/999999/1679/3/12/4251/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/officinam/999999/1679/3/12/6204/.gitkeep b/officinam/999999/1679/3/12/6204/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/officinam/999999/1679/3/12/6555/.gitkeep b/officinam/999999/1679/3/12/6555/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/officinam/999999/1679/3/12/9119/.gitkeep b/officinam/999999/1679/3/12/9119/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/officinam/999999999/999999_1679.sh b/officinam/999999999/999999_1679.sh index 0eff82a..e88485c 100755 --- a/officinam/999999999/999999_1679.sh +++ b/officinam/999999999/999999_1679.sh @@ -83,8 +83,30 @@ ROOTDIR="$(pwd)" # sleep 10 # wikidata_p_ex_linguis "1679_45_16_76_2" "1" "1" "P1585" "4" "20" +### //Dicionários de bases de dados espaciais do Brasil//@por-Latn wikidata_p_ex_totalibus "1679_45_16_76_2" "1" "1" "P1585" "P402,P1566,P1937,P6555,P8119" +### P4251 //número da legenda no TSE//@por-Latn +wikidata_p_ex_interlinguis "1679_3_12_4251" "1" "1" "P4251" "" + +### P6204 //Cadastro Nacional da Pessoa Jurídica//@por-Latn +# wikidata_p_ex_interlinguis "1679_3_12_6204" "1" "1" "P6204" "" +# ValueError: invalid literal for int() with base 10: '00.317.929/0001-49' + +### P6555 //identificador de Unidade Eleitoral brasileira//@por-Latn +wikidata_p_ex_interlinguis "1679_3_12_6555" "1" "1" "P6555" "" + +### P9119 //Identificador LeXML Brasil//@por-Latn +# wikidata_p_ex_interlinguis "1679_3_12_9119" "1" "1" "P9119" "" +# ValueError: invalid literal for int() with base 10: 'urn:lex:br:advocacia.geral.uniao;procuradoria.geral.federal:portaria:2003-06-13;208' + +# @TODO criar funcao que "migre" resultado final arquivos selecionados; exemplo +# [1679_45_16_76_2] -> [1603_45_16_76_2] +# +# 1679_45_16_76_2.no1.tm.hxl.csv +# 1679_45_16_76_2.no11.tm.hxl.csv +# 1679_45_16_76_2.wikiq.tm.hxl.csv + # @see https://servicodados.ibge.gov.br/api/docs/localidades # @see https://github.com/search?o=desc&q=ibge&s=stars&type=Repositories # @see CNAE @@ -99,64 +121,3 @@ wikidata_p_ex_totalibus "1679_45_16_76_2" "1" "1" "P1585" "P402,P1566,P1937,P655 exit 1 - -# echo "--actionem-sparql --de=P --query --ex-interlinguis --cum-interlinguis=P402,P1566,P1937,P6555,P8119" -# printf "P1585\n" | ./999999999/0/1603_3_12.py \ -# --actionem-sparql --de=P --query --ex-interlinguis --cum-interlinguis=P402,P1566,P1937,P6555,P8119 \ -# | ./999999999/0/1603_3_12.py --actionem-sparql --csv --hxltm \ -# > 999999/0/P1585.tm.hxl.csv - -# sleep 5 -# echo "--actionem-sparql --de=P --query --lingua-divisioni=20 --lingua-paginae=1" -# printf "P1585\n" | ./999999999/0/1603_3_12.py \ -# --actionem-sparql --de=P --query --lingua-divisioni=20 --lingua-paginae=1 \ -# | ./999999999/0/1603_3_12.py --actionem-sparql --csv --hxltm \ -# > 999999/0/P1585.wikiq~1-20.hxl.csv - -# sleep 5 -# echo "--actionem-sparql --de=P --query --lingua-divisioni=20 --lingua-paginae=2" -# printf "P1585\n" | ./999999999/0/1603_3_12.py \ -# --actionem-sparql --de=P --query --lingua-divisioni=20 --lingua-paginae=2 \ -# | ./999999999/0/1603_3_12.py --actionem-sparql --csv --hxltm \ -# > 999999/0/P1585.wikiq~2-20.hxl.csv - -# sleep 5 -# echo "--actionem-sparql --de=P --query --lingua-divisioni=20 --lingua-paginae=3" -# printf "P1585\n" | ./999999999/0/1603_3_12.py \ -# --actionem-sparql --de=P --query --lingua-divisioni=20 --lingua-paginae=3 \ -# | ./999999999/0/1603_3_12.py --actionem-sparql --csv --hxltm \ -# > 999999/0/P1585.wikiq~3-20.hxl.csv - -# echo "hxlmerge..." -# hxlmerge --keys='#item+conceptum+codicem' \ -# --tags='#item+rem' \ -# --merge="999999/0/P1585.wikiq~2-20.hxl.csv" \ -# "999999/0/P1585.wikiq~1-20.hxl.csv" \ -# >"999999/0/P1585.wikiq~1+2-20.hxl.csv" - -# sed -i '1d' "999999/0/P1585.wikiq~1+2-20.hxl.csv" - -# hxlmerge --keys='#item+conceptum+codicem' \ -# --tags='#item+rem' \ -# --merge="999999/0/P1585.wikiq~3-20.hxl.csv" \ -# "999999/0/P1585.wikiq~1+2-20.hxl.csv" \ -# >"999999/0/P1585.wikiq~1+2+3-20.hxl.csv" - -# sed -i '1d' "999999/0/P1585.wikiq~1+2+3-20.hxl.csv" - -# hxlrename \ -# --rename='item+conceptum+codicem:#item+rem+i_qcc+is_zxxx+ix_wikiq' \ -# "999999/0/P1585.wikiq~1+2+3-20.hxl.csv" \ -# >"999999/0/P1585.wikiq~1+2+3-20~TEMP.hxl.csv" - -# sed -i '1d' "999999/0/P1585.wikiq~1+2+3-20~TEMP.hxl.csv" - -# hxlmerge --keys='#item+rem+i_qcc+is_zxxx+ix_wikiq' \ -# --tags='#item+rem' \ -# --merge="999999/0/P1585.wikiq~1+2+3-20~TEMP.hxl.csv" \ -# "999999/0/P1585.tm.hxl.csv" \ -# >"999999/0/1679_45_16_76_2.no11.hxl.csv" - -# sed -i '1d' "999999/0/1679_45_16_76_2.no11.hxl.csv" - -# file_hotfix_duplicated_merge_key "999999/0/1679_45_16_76_2.no11.hxl.csv" '#item+rem+i_qcc+is_zxxx+ix_wikiq'