From 87575fa81f69b444ebef3ea092a566fbd241a38c Mon Sep 17 00:00:00 2001 From: godwin Date: Wed, 16 Oct 2024 21:03:12 +0100 Subject: [PATCH] Fix: Expanded Italian verbs query to align with the new standard of separate grammatical number and person --- .../Italian/verbs/query_verbs_1.sparql | 71 +++++------------- .../Italian/verbs/query_verbs_2.sparql | 24 +++++-- .../Italian/verbs/query_verbs_3.sparql | 72 +++++++++++++++++++ 3 files changed, 109 insertions(+), 58 deletions(-) create mode 100644 src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql diff --git a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql index 6f220dde8..3907d909f 100644 --- a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql @@ -7,8 +7,7 @@ SELECT ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP - ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP + WHERE { ?lexeme dct:language wd:Q652 ; @@ -21,85 +20,53 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPSForm . ?presFPSForm ontolex:representation ?presFPS ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929218 ; + wikibase:grammaticalFeature wd:Q56682909 ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q110786 ; } . # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPSForm . ?presSPSForm ontolex:representation ?presSPS ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929369 ; + wikibase:grammaticalFeature wd:Q56682909 ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; } . # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPSForm . ?presTPSForm ontolex:representation ?presTPS ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929447 ; + wikibase:grammaticalFeature wd:Q56682909 ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; } . # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPPForm . ?presFPPForm ontolex:representation ?presFPP ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929290 ; + wikibase:grammaticalFeature wd:Q56682909 ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q146786 ; } . # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPPForm . ?presSPPForm ontolex:representation ?presSPP ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929403 ; + wikibase:grammaticalFeature wd:Q56682909 ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; } . # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPPForm . ?presTPPForm ontolex:representation ?presTPP ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929517 ; - } . - - # MARK: Preterite - - # FPS - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPSForm . - ?pretFPSForm ontolex:representation ?pretFPS ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929218 ; - } . - - # SPS - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPSForm . - ?pretSPSForm ontolex:representation ?pretSPS ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929369 ; - } . - - # TPS - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPSForm . - ?pretTPSForm ontolex:representation ?pretTPS ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929447 ; - } . - - # FPP - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPPForm . - ?pretFPPForm ontolex:representation ?pretFPP ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929290 ; - } . - - # SPP - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPPForm . - ?pretSPPForm ontolex:representation ?pretSPP ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929403 ; - } . - - # TPP - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPPForm . - ?pretTPPForm ontolex:representation ?pretTPP ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929517 ; + wikibase:grammaticalFeature wd:Q56682909 ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; } . } diff --git a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql index ba306e219..69db4579f 100644 --- a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql @@ -19,41 +19,53 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?impFPSForm . ?impFPSForm ontolex:representation ?impFPS ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929218 ; + wikibase:grammaticalFeature wd:Q12547192 ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q110786 ; } . # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPSForm . ?impSPSForm ontolex:representation ?impSPS ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929369 ; + wikibase:grammaticalFeature wd:Q12547192 ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; } . # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impTPSForm . ?impTPSForm ontolex:representation ?impTPS ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929447 ; + wikibase:grammaticalFeature wd:Q12547192 ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; } . # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impFPPForm . ?impFPPForm ontolex:representation ?impFPP ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929290 ; + wikibase:grammaticalFeature wd:Q12547192 ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q146786 ; } . # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPPForm . ?impSPPForm ontolex:representation ?impSPP ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929403 ; + wikibase:grammaticalFeature wd:Q12547192 ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; } . # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impTPPForm . ?impTPPForm ontolex:representation ?impTPP ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929517 ; + wikibase:grammaticalFeature wd:Q12547192 ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; } . } diff --git a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql new file mode 100644 index 000000000..c9ef0cea8 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql @@ -0,0 +1,72 @@ + +# tool: scribe-data +# All Italian (Q652) verbs and the currently implemented tenses for each. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?pretFPS ?pretSPS ?pretTPS + ?pretFPP ?pretSPP ?pretTPP + +WHERE { + ?lexeme dct:language wd:Q652 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . + + # MARK: Preterite + + # FPS + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pretFPSForm . + ?pretFPSForm ontolex:representation ?pretFPS ; + wikibase:grammaticalFeature wd:Q442485 ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q110786 ; + } . + + # SPS + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pretSPSForm . + ?pretSPSForm ontolex:representation ?pretSPS ; + wikibase:grammaticalFeature wd:Q442485 ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + } . + + # TPS + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pretTPSForm . + ?pretTPSForm ontolex:representation ?pretTPS ; + wikibase:grammaticalFeature wd:Q442485 ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; + } . + + # FPP + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pretFPPForm . + ?pretFPPForm ontolex:representation ?pretFPP ; + wikibase:grammaticalFeature wd:Q442485 ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # SPP + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pretSPPForm . + ?pretSPPForm ontolex:representation ?pretSPP ; + wikibase:grammaticalFeature wd:Q442485 ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # TPP + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pretTPPForm . + ?pretTPPForm ontolex:representation ?pretTPP ; + wikibase:grammaticalFeature wd:Q442485 ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . +}