diff --git a/officinam/1603/1/51/1603_1_51.no1.tm.hxl.csv b/officinam/1603/1/51/1603_1_51.no1.tm.hxl.csv index 1eda3db..97432dc 100644 --- a/officinam/1603/1/51/1603_1_51.no1.tm.hxl.csv +++ b/officinam/1603/1/51/1603_1_51.no1.tm.hxl.csv @@ -66,10 +66,25 @@ 1603:1:51:151,151,60,19,kor-Hang,__i_kor__is_hang,+i_kor+is_hang,Lingua Coreana (Abecedarium Coreanum),Q9176,Q8222,ko,kore1280,kor, 1603:1:51:152,152,11,11,gsw-Latn,__i_gsw__is_latn,+i_gsw+is_latn,Dialecti Alemannicae (Abecedarium Latinum),Q131339,Q8229,gsw,swis1247,gsw, 1603:1:51:154,154,60,19,isl-Latn,__i_isl__is_latn,+i_isl+is_latn,Lingua Islandica,Q294,Q8229,is,icel1247,isl, -1603:1:51:155,155,,,,,,/Austrian German/ (Abecedarium Latinum),Q306626,,,,, 1603:1:51:156,156,40,19,min-Latn,__i_min__is_latn,+i_min+is_latn,/Minangkabau language/ (Abecedarium Latinum),Q13324,Q8229,min,mina1268,min, -1603:1:51:300,300,60,19,ina-Latn,__i_ina__is_latn,+i_ina+is_latn,Interlingua (Abecedarium Latinum),Q35934,Q8229,ia,inte1239,ina, -1603:1:51:301,301,60,19,ile-Latn,__i_ile__is_latn,+i_ile+is_latn,Lingua Occidental (Abecedarium Latinum),Q35850,Q8229,ie,inte1260,ile, +1603:1:51:157,157,60,19,roh-Latn,__i_roh__is_latn,+i_roh+is_latn,Lingua Rhaetica (Abecedarium Latinum),Q13199,Q8229,rm,roma1326,roh, +1603:1:51:159,159,60,19,vec-Latn,__i_vec__is_latn,+i_vec+is_latn,Lingua Veneta (Abecedarium Latinum),Q32724,Q8229,vec,vene1258,vec, +1603:1:51:160,160,60,19,pms-Latn,__i_pms__is_latn,+i_pms+is_latn,Lingua Pedemontana (Abecedarium Latinum),Q15085,Q8229,pms,piem1238,pms, +1603:1:51:161,161,60,19,scn-Latn,__i_scn__is_latn,+i_scn+is_latn,Lingua Sicula (Abecedarium Latinum),Q33973,Q8229,scn,sici1248,scn, +1603:1:51:162,162,60,19,srd-Latn,__i_srd__is_latn,+i_srd+is_latn,Macrolingua Sarda (Abecedarium Latinum),Q33976,Q8229,sc,,srd, +1603:1:51:163,163,60,19,gla-Latn,__i_gla__is_latn,+i_gla+is_latn,Lingua Scotica seu Scotica Gadelica (Abecedarium Latinum),Q9314,Q8229,gd,scot1245,gla, +1603:1:51:164,164,60,19,lim-Latn,__i_lim__is_latn,+i_lim+is_latn,Lingua Limburgica (Abecedarium Latinum),Q102172,Q8229,li,limb1263,lim, +1603:1:51:165,165,60,19,wln-Latn,__i_wln__is_latn,+i_wln+is_latn,Lingua Vallonica,Q34219,Q8229,wa,wall1255,wln, +1603:1:51:166,166,60,19,srp-Latn,__i_srp__is_latn,+i_srp+is_latn,/Serbian/ (Abecedarium Latinum),Q21161949,Q8229,sr-el,serb1264,srp, +1603:1:51:167,167,60,19,vls-Latn,__i_vls__is_latn,+i_vls+is_latn,/West Flemish/ (Abecedarium Latinum),Q100103,Q8229,vls,vlaa1240,vls, +1603:1:51:168,168,60,19,nap-Latn,__i_nap__is_latn,+i_nap+is_latn,Lingua Neapolitana (Abecedarium Latinum),Q33845,Q8229,nap,neap1235,nap, +1603:1:51:169,169,60,19,lij-Latn,__i_lij__is_latn,+i_lij+is_latn,Lingua Ligustica (Abecedarium Latinum),Q36106,Q8229,lij,ligu1248,lij, +1603:1:51:170,170,60,19,fur-Latn,__i_fur__is_latn,+i_fur+is_latn,Lingua Foroiuliensis (Abecedarium Latinum),Q33441,Q8229,fur,friu1240,fur, +1603:1:51:171,171,60,19,pcd-Latn,__i_pcd__is_latn,+i_pcd+is_latn,Lingua Picardica (Abecedarium Latinum),Q34024,Q8229,pcd,pica1241,pcd, +1603:1:51:172,172,60,19,wol-Latn,__i_wol__is_latn,+i_wol+is_latn,/Wolof language/ (Abecedarium Latinum),Q34257,Q8229,wo,nucl1347,wol, +1603:1:51:300,300,60,19,vol-Latn,__i_vol__is_latn,+i_vol+is_latn,Volapük (Abecedarium Latinum),Q36986,Q8229,vo,vola1234,vol, +1603:1:51:301,301,60,19,ina-Latn,__i_ina__is_latn,+i_ina+is_latn,Interlingua (Abecedarium Latinum),Q35934,Q8229,ia,inte1239,ina, +1603:1:51:302,302,60,19,ile-Latn,__i_ile__is_latn,+i_ile+is_latn,Lingua Occidental (Abecedarium Latinum),Q35850,Q8229,ie,inte1260,ile, 1603:1:51:399,399,60,19,zul-Latn,__i_zul__is_latn,+i_zul+is_latn,Lingua Zuluana (Abecedarium Latinum),Q10179,Q8229,zu,zulu1248,zul, 1603:1:51:400,400,25,11,mul-Zxxx,__i_mul__is_zxxx,+i_mul+is_zxxx,/multiple languages/ (?),Q20923490,,mul,,mul, 1603:1:51:401,401,25,11,und-Zxxx,__i_und__is_zxxx,+i_und+is_zxxx,/undetermined language/ (?),Q22282914,,und,,und, diff --git a/officinam/999999999/0/1603_3_12.py b/officinam/999999999/0/1603_3_12.py index 057ed5b..3b1c687 100755 --- a/officinam/999999999/0/1603_3_12.py +++ b/officinam/999999999/0/1603_3_12.py @@ -180,6 +180,11 @@ def _init_1613_1_51_datum(self): # print('conceptum', conceptum) int_clavem = int(conceptum['#item+conceptum+codicem']) datum[int_clavem] = {} + if conceptum['#item+conceptum+codicem'].startswith('0_'): + continue + if not conceptum['#item+rem+i_qcc+is_zxxx+ix_wikilngm']: + continue + for clavem, rem in conceptum.items(): if not clavem.startswith('#item+conceptum+codicem'): datum[int_clavem][clavem] = rem @@ -192,6 +197,9 @@ def _query_linguam(self): for clavem, rem in self.D1613_1_51.items(): # for clavem, rem in enumerate(self.D1613_1_51): # print('clavem rem', clavem, rem) + if '#item+rem+i_qcc+is_zxxx+ix_wikilngm' not in rem or \ + '#item+rem+i_qcc+is_zxxx+ix_csvsffxm' not in rem: + continue resultatum.append([ rem['#item+rem+i_qcc+is_zxxx+ix_wikilngm'], 'item__rem' + rem['#item+rem+i_qcc+is_zxxx+ix_csvsffxm'], @@ -241,7 +249,8 @@ def query(self): # select = '?item ' + " ".join(self._query_linguam()) # select = ['(?item AS ?item__conceptum__codicem)'] - select = ['(STRAFTER(STR(?item), "entity/") AS ?item__conceptum__codicem)'] + select = [ + '(STRAFTER(STR(?item), "entity/") AS ?item__conceptum__codicem)'] # select = [ # '(STRAFTER(STR(?item), "entity/") AS ?item__conceptum__codicem)', # '(STRAFTER(STR(?item), "entity/") AS ?item__rem__i_qcc__is_zxxx__ix_wikiq)' diff --git a/officinam/999999999/1603_0_1603.sh b/officinam/999999999/1603_0_1603.sh index 8b4a58f..d94af88 100755 --- a/officinam/999999999/1603_0_1603.sh +++ b/officinam/999999999/1603_0_1603.sh @@ -34,7 +34,7 @@ PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" " # PURGATORIA_CONCEPTUM+=( "1603_1_1" ) # PURGATORIA_CONCEPTUM+=( "1603_1_6" ) # PURGATORIA_CONCEPTUM+=( "1603_1_7" ) -PURGATORIA_CONCEPTUM+=( "1603_1_51" ) +# PURGATORIA_CONCEPTUM+=( "1603_1_51" ) # PURGATORIA_CONCEPTUM+=( "1603_1_101" ) # PURGATORIA_CONCEPTUM+=( "1603_3_12_6" ) diff --git a/officinam/999999999/999999999.lib.sh b/officinam/999999999/999999999.lib.sh index 5dd5b6e..9bf0fe5 100644 --- a/officinam/999999999/999999999.lib.sh +++ b/officinam/999999999/999999999.lib.sh @@ -553,11 +553,11 @@ file_translate_csv_de_numerordinatio_q() { objectivum_archivum_temporarium_b_u="${ROOTDIR}/999999/0/$_nomen.uniq.q.txt" objectivum_archivum_temporarium_b_u_wiki="${ROOTDIR}/999999/0/$_nomen.wikiq.tm.hxl.csv" - if [ -z "$(changed_recently "$fontem_archivum")" ]; then return 0; fi + # if [ -z "$(changed_recently "$fontem_archivum")" ]; then return 0; fi # echo "${FUNCNAME[0]} sources changed_recently. Reloading..." - if [ -z "$(stale_archive "$objectivum_archivum")" ]; then return 0; fi + # if [ -z "$(stale_archive "$objectivum_archivum")" ]; then return 0; fi echo "[ DOWNLOAD Wikidata ] ${FUNCNAME[0]} stale data on [$objectivum_archivum], refreshing..."