From 7ade95deb5df72301f8515c0db727998f08f8ebf Mon Sep 17 00:00:00 2001 From: corsaronero Date: Sun, 26 Feb 2023 15:24:41 +0000 Subject: [PATCH] finished function for dict import, started function to check for existing entities, already running for ishuman (q5) --- .main.py.kate-swp | Bin 68 -> 0 bytes main.py | 2 ++ q5.txt | 33 ++++++++++++++++++ wikidata/.wdPEP.py.kate-swp | Bin 0 -> 166 bytes wikidata/__pycache__/wdPEP.cpython-310.pyc | Bin 1130 -> 1841 bytes wikidata/wdPEP.py | 37 +++++++++++++++++++-- 6 files changed, 70 insertions(+), 2 deletions(-) delete mode 100644 .main.py.kate-swp create mode 100644 q5.txt create mode 100644 wikidata/.wdPEP.py.kate-swp diff --git a/.main.py.kate-swp b/.main.py.kate-swp deleted file mode 100644 index 89bc9e95da9c62812310e10dbc54295f44da42d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn>1BAayPD%liOO}m_(|?!3wQsS93LDG Pl#vEv23Igs2FwHim(&rM diff --git a/main.py b/main.py index 8d00e8b..3924fd0 100644 --- a/main.py +++ b/main.py @@ -25,3 +25,5 @@ listOfCountries = ['nicaragua'] wikidataPEP = WikidataPEP(config) wikidataPEP.importMembersOfParliamentDict(listOfCountries) + +wikidataPEP.checkForEntityIds(listOfCountries) diff --git a/q5.txt b/q5.txt new file mode 100644 index 0000000..dacbb16 --- /dev/null +++ b/q5.txt @@ -0,0 +1,33 @@ +started to parse data of members of nicaragua .. +Q107326760 +--------- +Ángela Espinoza Tórrez +is a human +Q475730 +--------- +Carlos Humberto Ruíz +is a human +Q107316535 +--------- +Iris Marina Montenegro Blandón +is a human +Q107332750 +--------- +Iris Marina Montenegro Blandón +is a human +Q107320919 +--------- +Iris Marina Montenegro Blandón +is a human +Q63794924 +--------- +Loria Raquel Dixon Brautigam +is a human +Q107406987 +--------- +María Haydee Osuna Ruíz +is a human +Q106514750 +--------- +Shaira Natasha Downs Morgan +is a human diff --git a/wikidata/.wdPEP.py.kate-swp b/wikidata/.wdPEP.py.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..a625c467f70dbe3c0f95364e194a4a9e00ff2161 GIT binary patch literal 166 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?VnNsn5*L_p}&eD1TS5_C?@ZC%aJkQ*EX qlyL!K5D@VM5-^T{0vd2dQ7eF~mIqm>Yj8N!7#@%sS0DxfR5butKN%VT literal 0 HcmV?d00001 diff --git a/wikidata/__pycache__/wdPEP.cpython-310.pyc b/wikidata/__pycache__/wdPEP.cpython-310.pyc index 75dc1851ea71005c4d8f02161c7dd92fdd9b178e..f17702db786f2f4a674a1696a99dbc9a668782dd 100644 GIT binary patch delta 829 zcmZWnO=}ZD7@nE^noV}o4=OZDv5JCetso*Ed(a9IDYYJi6$#tS&}@?3n3=7$VU`H> z>Y=RHN_+F-p?|@P|6vdQ0Kub3DTwbRu{}7;^StxEGyBZ*&h8I-QmOQOzl2~sczf17 zqz9D*-#Ew?JZ8T~fyJEXs76mdeZlxi{*=^RhM-`r4{qe2$yF@#Z)61*`7d%v%+vg% zu{>-NEjAfGL>urBAio1K%t#l-I3rlk4VaV6z(}FCk(mlVLa$zCmNJ!9MMvf_f_yWx z$GNhrh?!NCIm&2T%3;vX8Qo8kX92+fgpFVX>^rNAwsm=Ui+l^OVPE zhluE6O?e=U0WP2fC z`y%Q@TcPCjB<0&8OnU;V<=w5Q(c<0LT*$&q!kE`^;7cBgW~(7n5hdGDaCwqO>0TpZ zf!*weQ7i*vSMa;KZhfR0?kay%aIU}d$pTUCu oJo>