From f74a5085fd4a2ab58c82f1b18f0fa67a991d3169 Mon Sep 17 00:00:00 2001 From: DanielGevaZA Date: Tue, 1 Oct 2024 08:25:01 +0200 Subject: [PATCH 1/3] Update query_verbs.sparql --- .../Hebrew/verbs/query_verbs.sparql | 68 ++++++++++++++++--- 1 file changed, 59 insertions(+), 9 deletions(-) diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql index 12a4cf47f..a7770cc9c 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql @@ -2,15 +2,65 @@ # All Hebrew (Q9288) verbs. # Enter this query at https://query.wikidata.org/. -SELECT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?verb +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) # Extracts the lexeme ID from the URL + ?infinitive + ?pastFPS ?pastSPS ?pastTPS + ?pastFPP ?pastSPP ?pastTPP + ?presMasculine ?presFeminine ?presPlural WHERE { - ?lexeme dct:language wd:Q9288 ; - wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?verb . + ?lexeme dct:language wd:he ; # Filters for Hebrew verbs + wikibase:lexicalCategory wd:Q24905 . # Specifies the lexical category for verbs - BIND(lang(?verb) as ?language) - FILTER(?language = "he") -} + # Infinitive (required) + ?lexeme ontolex:lexicalForm ?infinitiveForm . + ?infinitiveForm ontolex:representation ?infinitive ; + wikibase:grammaticalFeature wd:Q179230 . # Infinitive grammatical feature + + # Past Tense Conjugations (optional) + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastFPSForm . + ?pastFPSForm ontolex:representation ?pastFPS ; + wikibase:grammaticalFeature wd:Q21714344 ; # 1st person singular past + wikibase:grammaticalFeature wd:Q110786 ; # Past tense + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + wikibase:grammaticalFeature wd:Q1994301 ; # Masculine gender + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPSForm . + ?pastSPSForm ontolex:representation ?pastSPS ; + wikibase:grammaticalFeature wd:Q51929049 ; # 3rd person singular past + wikibase:grammaticalFeature wd:Q110786 ; # Past tense + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + wikibase:grammaticalFeature wd:Q499327 ; # Masculine gender + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPSForm . + ?pastTPSForm ontolex:representation ?pastTPS ; + wikibase:grammaticalFeature wd:Q51929074 ; # 3rd person plural past + wikibase:grammaticalFeature wd:Q110786 ; # Past tense + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastFPPForm . + ?pastFPPForm ontolex:representation ?pastFPP ; + wikibase:grammaticalFeature wd:Q21714344 ; # 1st person singular past + wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPPForm . + ?pastSPPForm ontolex:representation ?pastSPP ; + wikibase:grammaticalFeature wd:Q51929049 ; # 3rd person singular past + wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPPForm . + ?pastTPPForm ontolex:representation ?pastTPP ; + wikibase:grammaticalFeature wd:Q51929074 ; # 3rd person plural past + wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . +} \ No newline at end of file From c5009fa0b60ed97a9a218dd98a040efbe133b4d5 Mon Sep 17 00:00:00 2001 From: DanielGevaZA Date: Tue, 1 Oct 2024 09:11:31 +0200 Subject: [PATCH 2/3] Completed HebrewQueries --- .../language_data_extraction/Hebrew/verbs/query_verbs.sparql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql index a7770cc9c..6dbdf9cd4 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) verbs. +# All Hebrew (he) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. SELECT DISTINCT From 258e5aa57119b08b2fe54c5002675fd138946fc7 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Wed, 2 Oct 2024 09:58:01 +0200 Subject: [PATCH 3/3] Add marks to all queries and update he verb query --- .../Arabic/nouns/query_nouns.sparql | 6 +- .../Arabic/verbs/query_verbs_1.sparql | 3 +- .../Arabic/verbs/query_verbs_2.sparql | 3 +- .../Arabic/verbs/query_verbs_3.sparql | 3 +- .../Basque/nouns/query_nouns.sparql | 6 +- .../Bengali/nouns/query_nouns.sparql | 12 +- .../prepositions/query_prepositions.sparql | 3 +- .../Bokm\303\245l/nouns/query_nouns.sparql" | 12 +- .../Bokm\303\245l/verbs/query_verbs.sparql" | 3 +- .../Czech/nouns/query_nouns.sparql | 9 +- .../prepositions/query_prepositions.sparql | 3 +- .../Czech/verbs/query_verbs.sparql | 3 +- .../Danish/nouns/query_nouns.sparql | 6 +- .../Danish/verbs/query_verbs.sparql | 3 +- .../English/nouns/query_nouns.sparql | 3 +- .../English/verbs/query_verbs.sparql | 13 +- .../Esperanto/nouns/query_nouns.sparql | 9 +- .../Estonian/nouns/query_nouns.sparql | 3 +- .../prepositions/query_prepositions.sparql | 3 +- .../Estonian/verbs/query_verbs.sparql | 3 +- .../Finnish/nouns/query_nouns.sparql | 3 +- .../French/nouns/query_nouns.sparql | 6 +- .../French/verbs/query_verbs_1.sparql | 17 ++- .../French/verbs/query_verbs_2.sparql | 17 ++- .../German/nouns/query_nouns.sparql | 6 +- .../prepositions/query_prepositions.sparql | 3 +- .../German/verbs/query_verbs_1.sparql | 6 +- .../German/verbs/query_verbs_2.sparql | 11 +- .../Greek/nouns/query_nouns.sparql | 6 +- .../Greek/verbs/query_verbs.sparql | 5 +- .../Hausa/nouns/query_nouns.sparql | 6 +- .../Hebrew/nouns/query_nouns.sparql | 6 +- .../Hebrew/verbs/query_verbs.sparql | 66 ---------- .../Hebrew/verbs/query_verbs_1.sparql | 55 +++++++++ .../Hebrew/verbs/query_verbs_2.sparql | 55 +++++++++ .../Hebrew/verbs/query_verbs_3.sparql | 113 ++++++++++++++++++ .../Hebrew/verbs/query_verbs_4.sparql | 113 ++++++++++++++++++ .../Hindi/nouns/query_nouns.sparql | 6 +- .../Italian/nouns/query_nouns.sparql | 6 +- .../Italian/verbs/query_verbs_1.sparql | 4 +- .../Italian/verbs/query_verbs_2.sparql | 2 +- .../Kurmanji/nouns/query_nouns.sparql | 3 +- .../Latin/nouns/query_nouns.sparql | 3 +- .../Malayalam/nouns/query_nouns.sparql | 3 +- .../Nynorsk/nouns/query_nouns.sparql | 12 +- .../Nynorsk/verbs/query_verbs.sparql | 3 +- .../Polish/nouns/query_nouns.sparql | 9 +- .../Polish/verbs/query_verbs.sparql | 3 +- .../Portuguese/nouns/query_nouns.sparql | 6 +- .../Portuguese/verbs/query_verbs.sparql | 59 ++++++++- .../Russian/nouns/query_nouns.sparql | 9 +- .../prepositions/query_prepositions.sparql | 3 +- .../Russian/verbs/query_verbs.sparql | 29 ++++- .../Slovak/nouns/query_nouns.sparql | 6 +- .../prepositions/query_prepositions.sparql | 3 +- .../Slovak/verbs/query_verbs.sparql | 3 +- .../Spanish/nouns/query_nouns.sparql | 10 +- .../Spanish/verbs/query_verbs_1.sparql | 4 +- .../Spanish/verbs/query_verbs_2.sparql | 4 +- .../Spanish/verbs/query_verbs_3.sparql | 4 +- .../Swedish/nouns/query_nouns.sparql | 9 +- .../Swedish/verbs/query_verbs.sparql | 6 +- .../Tamil/nouns/query_nouns.sparql | 6 +- .../Ukranian/nouns/query_nouns.sparql | 6 +- .../prepositions/query_prepositions.sparql | 3 +- .../Ukranian/verbs/query_verbs.sparql | 3 +- .../Urdu/nouns/query_nouns.sparql | 6 +- 67 files changed, 643 insertions(+), 193 deletions(-) delete mode 100644 src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql create mode 100644 src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql create mode 100644 src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql create mode 100644 src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql create mode 100644 src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql diff --git a/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql index c58d90459..cd479d76c 100644 --- a/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql @@ -15,7 +15,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of indefinite plural forms. + # MARK: Indefinte Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; @@ -23,7 +24,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of indefinite dual form. + # MARK: Indefinte Dual + OPTIONAL { ?lexeme ontolex:lexicalForm ?dualForm . ?dualForm ontolex:representation ?dual ; diff --git a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql index c2ed73001..5eebe5578 100644 --- a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # Indicative Present + # MARK: Present + OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPSForm . ?presFPSForm ontolex:representation ?presFPS ; diff --git a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql index dbee4fa97..83d6455d6 100644 --- a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # Performative Past + # MARK: Performative Past + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastFPSForm . ?pastFPSForm ontolex:representation ?pastFPS ; diff --git a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql index 8820d8899..0be3daa9c 100644 --- a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql @@ -13,7 +13,8 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # Imperative + # MARK: Imperative + OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPSMForm . ?impSPSMForm ontolex:representation ?impSPSM ; diff --git a/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql index c8828467e..c3ebc9e6a 100644 --- a/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql @@ -15,7 +15,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?absIndefinite . - # Optional selection of absolutive singular forms. + # MARK: Absolutive Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ?absSingularForm . ?absSingularForm ontolex:representation ?absSingular ; @@ -23,7 +24,8 @@ WHERE { wikibase:grammaticalFeature wd:Q110786 ; } . - # Optional selection of absolutive plural forms. + # MARK: Absolutive Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?absPluralForm . ?absPluralForm ontolex:representation ?absPlural ; diff --git a/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql index 313855760..d19f6f180 100644 --- a/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql @@ -15,28 +15,32 @@ WHERE { ?lexeme dct:language wd:Q9610 ; wikibase:lexicalCategory ?nounTypes ; - # Optional selection of nominative form. + # MARK: Nminative + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomForm . ?nomForm ontolex:representation ?nominative ; wikibase:grammaticalFeature wd:Q131105 ; } . - # Optional selection of genitive form. + # MARK: Genitive + OPTIONAL { ?lexeme ontolex:lexicalForm ?genForm . ?genForm ontolex:representation ?genitive ; wikibase:grammaticalFeature wd:Q146233 ; } . - # Optional selection of accusative form. + # MARK: Accusative + OPTIONAL { ?lexeme ontolex:lexicalForm ?accForm . ?accForm ontolex:representation ?accusative ; wikibase:grammaticalFeature wd:Q146078 ; } . - # Optional selection of locative form. + # MARK: Locative + OPTIONAL { ?lexeme ontolex:lexicalForm ?locForm . ?locForm ontolex:representation ?locative ; diff --git a/src/scribe_data/language_data_extraction/Bengali/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Bengali/prepositions/query_prepositions.sparql index 8f8c47019..56762fe96 100644 --- a/src/scribe_data/language_data_extraction/Bengali/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/prepositions/query_prepositions.sparql @@ -16,7 +16,8 @@ WHERE { wikibase:lexicalCategory ?prePostPositions ; wikibase:lemma ?preposition . - # Optional selection of corresponding cases. + # MARK: Corresponding Case + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git "a/src/scribe_data/language_data_extraction/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/language_data_extraction/Bokm\303\245l/nouns/query_nouns.sparql" index 8b8168ef2..544a2ba4b 100644 --- "a/src/scribe_data/language_data_extraction/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/language_data_extraction/Bokm\303\245l/nouns/query_nouns.sparql" @@ -18,7 +18,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?indefSingular . - # Optional selection of definite singular forms. + # MARK: Definite Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ? ?defSingularForm . ?defSingularForm ontolex:representation ?defSingular ; @@ -26,7 +27,8 @@ WHERE { wikibase:grammaticalFeature wd:Q53997851 ; } . - # Optional selection of indefinite plural forms. + # MARK: Indefinite Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?indefPluralForm . ?indefPluralForm ontolex:representation ?indefPlural ; @@ -34,7 +36,8 @@ WHERE { wikibase:grammaticalFeature wd:Q53997857 ; } . - # Optional selection of definite plural forms. + # MARK: Definite Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?defPluralForm . ?defPluralForm ontolex:representation ?defPlural ; @@ -42,7 +45,8 @@ WHERE { wikibase:grammaticalFeature wd:Q53997851 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git "a/src/scribe_data/language_data_extraction/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/language_data_extraction/Bokm\303\245l/verbs/query_verbs.sparql" index 8511c70d0..020dfa849 100644 --- "a/src/scribe_data/language_data_extraction/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/language_data_extraction/Bokm\303\245l/verbs/query_verbs.sparql" @@ -11,7 +11,8 @@ WHERE { ?lexeme dct:language wd:Q25167 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql index 674e45c61..6091d541d 100644 --- a/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { ?lexeme dct:language wd:Q9056 ; wikibase:lexicalCategory ?nounTypes . - # Optional selection of nominative singular forms. + # MARK: Nominative Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomSingularForm . ?nomSingularForm ontolex:representation ?nomSingular ; @@ -22,7 +23,8 @@ WHERE { wikibase:grammaticalFeature wd:Q110786 ; } . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -30,7 +32,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Czech/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Czech/prepositions/query_prepositions.sparql index ae04470ff..6d931f371 100644 --- a/src/scribe_data/language_data_extraction/Czech/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Czech/prepositions/query_prepositions.sparql @@ -12,7 +12,8 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # Optional selection of corresponding cases. + # MARK: Corresponding Cases + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql index e4ca02b7a..34a917b2b 100644 --- a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql @@ -10,7 +10,8 @@ WHERE { ?lexeme dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Danish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Danish/nouns/query_nouns.sparql index 3a2267a04..6724a0bf1 100644 --- a/src/scribe_data/language_data_extraction/Danish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Danish/nouns/query_nouns.sparql @@ -15,14 +15,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql index 01bedabb3..0132ecd3c 100644 --- a/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql @@ -10,7 +10,8 @@ WHERE { ?lexeme dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/English/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/English/nouns/query_nouns.sparql index c81336300..08e10b60b 100644 --- a/src/scribe_data/language_data_extraction/English/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/English/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; diff --git a/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql index eae732d10..cb17e332e 100644 --- a/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql @@ -12,12 +12,13 @@ SELECT DISTINCT ?pastPart WHERE { - # Infinitive (required) + # MARK: Infinitive + ?lexeme dct:language wd:Q1860 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - # Simple Present + # MARK: Simple Present OPTIONAL { ?lexeme ontolex:lexicalForm ?presSimpForm . ?presSimpForm ontolex:representation ?presSimp ; @@ -28,7 +29,7 @@ WHERE { FILTER(LANG(?presSimp) = "en") . } . - # Third-person Singular + # MARK: Third-person Singular OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPSForm . ?presTPSForm ontolex:representation ?presTPS ; @@ -40,7 +41,7 @@ WHERE { FILTER(LANG(?presTPS) = "en") . } . - # Present Participle + # MARK: Present Participle OPTIONAL { ?lexeme ontolex:lexicalForm ?presPartForm . ?presPartForm ontolex:representation ?presPart ; @@ -50,7 +51,7 @@ WHERE { FILTER(LANG(?presPart) = "en") . } . - # Simple Past + # MARK: Simple Past OPTIONAL { ?lexeme ontolex:lexicalForm ?pastSimpForm . ?pastSimpForm ontolex:representation ?pastSimp ; @@ -60,7 +61,7 @@ WHERE { FILTER(LANG(?pastSimp) = "en") . } . - # Past Participle + # MARK: Past Participle OPTIONAL { ?lexeme ontolex:lexicalForm ?pastPartForm . ?pastPartForm ontolex:representation ?pastPart ; diff --git a/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql index 759c0a74f..6dea87871 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql @@ -16,7 +16,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?nomSingular . - # Optional selection of accusative singular forms. + # MARK: Accusative Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ?accSingularForm . ?accSingularForm ontolex:representation ?accSingular ; @@ -24,7 +25,8 @@ WHERE { wikibase:grammaticalFeature wd:Q110786 ; } . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -32,7 +34,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of accusative plural forms. + # MARK: Accusative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?accPluralForm . ?accPluralForm ontolex:representation ?accPlural ; diff --git a/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql index 067c60891..3ddab93d8 100644 --- a/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; diff --git a/src/scribe_data/language_data_extraction/Estonian/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Estonian/prepositions/query_prepositions.sparql index ab6d4b022..db855ca41 100644 --- a/src/scribe_data/language_data_extraction/Estonian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/prepositions/query_prepositions.sparql @@ -16,7 +16,8 @@ WHERE { wikibase:lexicalCategory ?prePostPositions ; wikibase:lemma ?preposition . - # Optional selection of corresponding cases. + # MARK: Corresponding Case + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git a/src/scribe_data/language_data_extraction/Estonian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Estonian/verbs/query_verbs.sparql index 02b5b3779..0c89d28a0 100644 --- a/src/scribe_data/language_data_extraction/Estonian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/verbs/query_verbs.sparql @@ -10,7 +10,8 @@ WHERE { ?lexeme dct:language wd:Q9072 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql index 8882b74d1..4a31ef9c4 100644 --- a/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?nomSingular . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; diff --git a/src/scribe_data/language_data_extraction/French/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/French/nouns/query_nouns.sparql index 29f5a6fe2..3c7b2f098 100644 --- a/src/scribe_data/language_data_extraction/French/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/French/nouns/query_nouns.sparql @@ -15,14 +15,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql index 1ea4e2ea6..09262e02b 100644 --- a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql @@ -14,12 +14,13 @@ WHERE { ?lexeme dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # Indicative Present + # MARK: Indicative Present # FPS OPTIONAL { @@ -30,6 +31,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPSForm . @@ -39,6 +41,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPSForm . @@ -48,6 +51,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPPForm . @@ -57,6 +61,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPPForm . @@ -66,6 +71,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPPForm . @@ -76,7 +82,7 @@ WHERE { wikibase:grammaticalFeature wd:Q192613 ; } . - # Indicative Preterite + # MARK: Indicative Preterite # FPS OPTIONAL { @@ -87,6 +93,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q442485 ; } . + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?pretSPSForm . @@ -96,6 +103,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q442485 ; } . + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?pretTPSForm . @@ -105,6 +113,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q442485 ; } . + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?pretFPPForm . @@ -114,6 +123,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q442485 ; } . + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?pretSPPForm . @@ -123,6 +133,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q442485 ; } . + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?pretTPPForm . diff --git a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql index 2a93474af..6c18e7112 100644 --- a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql @@ -14,12 +14,13 @@ WHERE { ?lexeme dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # Imperfect + # MARK: Imperfect # FPS OPTIONAL { @@ -30,6 +31,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q108524486 ; } . + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPSForm . @@ -39,6 +41,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q108524486 ; } . + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impTPSForm . @@ -48,6 +51,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q108524486 ; } . + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impFPPForm . @@ -57,6 +61,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q108524486 ; } . + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPPForm . @@ -66,6 +71,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q108524486 ; } . + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impTPPForm . @@ -76,7 +82,7 @@ WHERE { wikibase:grammaticalFeature wd:Q108524486 ; } . - # Future + # MARK: Future # FPS OPTIONAL { @@ -87,6 +93,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q1475560 ; } . + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?futSPSForm . @@ -96,6 +103,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q1475560 ; } . + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?futTPSForm . @@ -105,6 +113,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q1475560 ; } . + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?futFPPForm . @@ -114,6 +123,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q1475560 ; } . + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?futSPPForm . @@ -123,6 +133,7 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q1475560 ; } . + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?futTPPForm . diff --git a/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql index ebb74de87..bc25f0706 100644 --- a/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql @@ -15,7 +15,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?nomSingular . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -23,7 +24,8 @@ WHERE { wikibase:grammaticalFeature wd:Q131105 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/German/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/German/prepositions/query_prepositions.sparql index 388e42cd6..b96332c90 100644 --- a/src/scribe_data/language_data_extraction/German/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/German/prepositions/query_prepositions.sparql @@ -12,7 +12,8 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # Optional selection of corresponding cases. + # MARK: Corresponding Case + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql index 3c4dcd29b..c8b64df6b 100644 --- a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql @@ -13,12 +13,14 @@ WHERE { ?lexeme dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required), past participle and the auxiliary verb(s) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 . - # Indicative Present + # MARK: Indicative Present + OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPSForm . ?presFPSForm ontolex:representation ?presFPS ; diff --git a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql index 6496e33a4..98d6b718b 100644 --- a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql @@ -13,23 +13,28 @@ WHERE { ?lexeme dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required), past participle and the auxiliary verb(s) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 . + # MARK: Past Participle + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastParticipleForm . ?pastParticipleForm ontolex:representation ?pastParticiple ; wikibase:grammaticalFeature wd:Q12717679 ; } . - # WIP: select select only auxiliary or both sein and haben and convert to labels + # MARK: Auxiliary Verb(s) + OPTIONAL { ?lexeme wdt:P5401 ?auxiliaryVerbFrom ; } . - # Indicative Preterite + # MARK: Indicative Preterite + OPTIONAL { ?lexeme ontolex:lexicalForm ?pretFPSForm . ?pretFPSForm ontolex:representation ?pretFPS ; diff --git a/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql index fc90cdcc0..98381e2d0 100644 --- a/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql @@ -15,7 +15,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; @@ -23,7 +24,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql index d4c074a86..51811421a 100644 --- a/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql @@ -14,12 +14,13 @@ WHERE { ?lexeme dct:language wd:Q36510 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # Present + # MARK: Present OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPSForm . ?presFPSForm ontolex:representation ?presFPS ; diff --git a/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql index 332d713bb..7fce9e8e9 100644 --- a/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql @@ -15,14 +15,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql index 26f0a509e..968d3aa28 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql @@ -15,14 +15,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?noun . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql deleted file mode 100644 index 6dbdf9cd4..000000000 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql +++ /dev/null @@ -1,66 +0,0 @@ -# tool: scribe-data -# All Hebrew (he) verbs and the currently implemented tenses for each. -# Enter this query at https://query.wikidata.org/. - -SELECT DISTINCT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) # Extracts the lexeme ID from the URL - ?infinitive - ?pastFPS ?pastSPS ?pastTPS - ?pastFPP ?pastSPP ?pastTPP - ?presMasculine ?presFeminine ?presPlural - -WHERE { - ?lexeme dct:language wd:he ; # Filters for Hebrew verbs - wikibase:lexicalCategory wd:Q24905 . # Specifies the lexical category for verbs - - # Infinitive (required) - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 . # Infinitive grammatical feature - - # Past Tense Conjugations (optional) - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFPSForm . - ?pastFPSForm ontolex:representation ?pastFPS ; - wikibase:grammaticalFeature wd:Q21714344 ; # 1st person singular past - wikibase:grammaticalFeature wd:Q110786 ; # Past tense - wikibase:grammaticalFeature wd:Q682111 ; # Singular number - wikibase:grammaticalFeature wd:Q1994301 ; # Masculine gender - } . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPSForm . - ?pastSPSForm ontolex:representation ?pastSPS ; - wikibase:grammaticalFeature wd:Q51929049 ; # 3rd person singular past - wikibase:grammaticalFeature wd:Q110786 ; # Past tense - wikibase:grammaticalFeature wd:Q682111 ; # Singular number - wikibase:grammaticalFeature wd:Q499327 ; # Masculine gender - } . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPSForm . - ?pastTPSForm ontolex:representation ?pastTPS ; - wikibase:grammaticalFeature wd:Q51929074 ; # 3rd person plural past - wikibase:grammaticalFeature wd:Q110786 ; # Past tense - wikibase:grammaticalFeature wd:Q682111 ; # Singular number - } . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFPPForm . - ?pastFPPForm ontolex:representation ?pastFPP ; - wikibase:grammaticalFeature wd:Q21714344 ; # 1st person singular past - wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender - wikibase:grammaticalFeature wd:Q682111 ; # Singular number - } . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPPForm . - ?pastSPPForm ontolex:representation ?pastSPP ; - wikibase:grammaticalFeature wd:Q51929049 ; # 3rd person singular past - wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender - wikibase:grammaticalFeature wd:Q682111 ; # Singular number - } . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPPForm . - ?pastTPPForm ontolex:representation ?pastTPP ; - wikibase:grammaticalFeature wd:Q51929074 ; # 3rd person plural past - wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender - wikibase:grammaticalFeature wd:Q682111 ; # Singular number - } . -} \ No newline at end of file diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql new file mode 100644 index 000000000..a1ea34b32 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql @@ -0,0 +1,55 @@ +# tool: scribe-data +# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# Enter this query at https://query.wikidata.org/. + +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?presSF ?presSM ?presPF ?presPM + +WHERE { + ?lexeme dct:language wd:Q9288 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . + + BIND(lang(?infinitive) as ?language) + FILTER(?language = "he") + + # MARK: Present + + # Singular Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presSFForm . + ?presSFForm ontolex:representation ?presSF ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q192613 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # Singular Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presSMForm . + ?presSMForm ontolex:representation ?presSM ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q192613 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # Plural Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presPFForm . + ?presPFForm ontolex:representation ?presPF ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q192613 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # Plural Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presPMForm . + ?presPMForm ontolex:representation ?presPM ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q192613 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql new file mode 100644 index 000000000..9fe420e37 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql @@ -0,0 +1,55 @@ +# tool: scribe-data +# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# Enter this query at https://query.wikidata.org/. + +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?impSPSF ?impSPSM ?impSPPF ?impSPPM + +WHERE { + ?lexeme dct:language wd:Q9288 ; + wikibase:lexicalCategory wd:Q24905 . + + # MARK: Imerpative + + # TPS Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?impSPSMForm . + ?impSPSMForm ontolex:representation ?impSPSM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q22716 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPS Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?impSPSMForm . + ?impSPSMForm ontolex:representation ?impSPSM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q22716 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPP Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?impSPPFForm . + ?impSPPFForm ontolex:representation ?impSPPF ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q22716 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPP Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?impSPPMForm . + ?impSPPMForm ontolex:representation ?impSPPM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q22716 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql new file mode 100644 index 000000000..d027de55a --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql @@ -0,0 +1,113 @@ +# tool: scribe-data +# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# Enter this query at https://query.wikidata.org/. + +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?pastFPS ?pastSPSF ?pastSPSM ?pastTPSF ?pastTPSM + ?pastFPP ?pastSPPF ?pastSPPM ?pastTPPF ?pastTPPM + +WHERE { + ?lexeme dct:language wd:Q9288 ; + wikibase:lexicalCategory wd:Q24905 . + + # MARK: Past + + # FPS + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPPForm . + ?pastTPPForm ontolex:representation ?pastTPP ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + } . + + # SPS Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPSFForm . + ?pastSPSFForm ontolex:representation ?pastSPSF ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # SPS Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPSMForm . + ?pastSPSMForm ontolex:representation ?pastSPSM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # TPS Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPSFForm . + ?pastTPSFForm ontolex:representation ?pastTPSF ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPS Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPSMForm . + ?pastTPSMForm ontolex:representation ?pastTPSM ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # FPP + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastFPPForm . + ?pastFPPForm ontolex:representation ?pastFPP ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + } . + + # SPP Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPPFForm . + ?pastSPPFForm ontolex:representation ?pastSPPF ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # SPP Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPPMForm . + ?pastSPPMForm ontolex:representation ?pastSPPM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # TPP Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPPFForm . + ?pastTPPFForm ontolex:representation ?pastTPPF ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPP Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPPMForm . + ?pastTPPMForm ontolex:representation ?pastTPPM ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q1994301 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql new file mode 100644 index 000000000..a9ef0fe71 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql @@ -0,0 +1,113 @@ +# tool: scribe-data +# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# Enter this query at https://query.wikidata.org/. + +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?futFPS ?futSPSF ?futSPSM ?futTPSF ?futTPSM + ?futFPP ?futSPPF ?futSPPM ?futTPPF ?futTPPM + +WHERE { + ?lexeme dct:language wd:Q9288 ; + wikibase:lexicalCategory wd:Q24905 . + + # MARK: Future + + # FPS + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futFPSForm . + ?futFPSForm ontolex:representation ?futFPS ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q501405 ; + } . + + # SPS Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futSPSFForm . + ?futSPSFForm ontolex:representation ?futSPSF ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # SPS Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futSPSMForm . + ?futSPSMForm ontolex:representation ?futSPSM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # TPS Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futTPSFForm . + ?futTPSFForm ontolex:representation ?futTPSF ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPS Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futTPSMForm . + ?futTPSMForm ontolex:representation ?futTPSM ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # FPP + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futFPPForm . + ?futFPPForm ontolex:representation ?futFPP ; + wikibase:grammaticalFeature wd:Q21714344 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q501405 ; + } . + + # SPP Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futSPPFForm . + ?futSPPFForm ontolex:representation ?futSPPF ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # SPP Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futSPPMForm . + ?futSPPMForm ontolex:representation ?futSPPM ; + wikibase:grammaticalFeature wd:Q51929049 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . + + # TPP Feminine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futTPPFForm . + ?futTPPFForm ontolex:representation ?futTPPF ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q1775415 ; + } . + + # TPP Masculine + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futTPPMForm . + ?futTPPMForm ontolex:representation ?futTPPM ; + wikibase:grammaticalFeature wd:Q51929074 ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q501405 ; + wikibase:grammaticalFeature wd:Q499327 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Hindi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hindi/nouns/query_nouns.sparql index 4a924d713..41a63417f 100644 --- a/src/scribe_data/language_data_extraction/Hindi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindi/nouns/query_nouns.sparql @@ -16,14 +16,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Italian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Italian/nouns/query_nouns.sparql index 1af38ffa8..c821cc26e 100644 --- a/src/scribe_data/language_data_extraction/Italian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Italian/nouns/query_nouns.sparql @@ -14,14 +14,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { 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 ee6a1edde..aefadd191 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 @@ -15,7 +15,7 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - # Present + # MARK: Present # FPS OPTIONAL { @@ -65,7 +65,7 @@ WHERE { wikibase:grammaticalFeature wd:Q51929517 ; } . - # Preterite + # MARK: Preterite # FPS OPTIONAL { 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 5725f34ea..c3cb46af6 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 @@ -13,7 +13,7 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - # Imperfect + # MARK: Imperfect # FPS OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Kurmanji/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Kurmanji/nouns/query_nouns.sparql index dbb400bf5..3b3df8c9c 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?directDefSingular . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns.sparql index e9ddd47c5..49b420bec 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?nomSingular . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql index 9dafe8831..666ded0e2 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?nomSingular . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Nynorsk/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Nynorsk/nouns/query_nouns.sparql index 0f787b089..75606a66e 100644 --- a/src/scribe_data/language_data_extraction/Nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Nynorsk/nouns/query_nouns.sparql @@ -18,7 +18,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?indefSingular . - # Optional selection of definite singular forms. + # MARK: Definite Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ? ?defSingularForm . ?defSingularForm ontolex:representation ?defSingular ; @@ -26,7 +27,8 @@ WHERE { wikibase:grammaticalFeature wd:Q53997851 ; } . - # Optional selection of indefinite plural forms. + # MARK: Indefinite Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?indefPluralForm . ?indefPluralForm ontolex:representation ?indefPlural ; @@ -34,7 +36,8 @@ WHERE { wikibase:grammaticalFeature wd:Q53997857 ; } . - # Optional selection of definite plural forms. + # MARK: Definite Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?defPluralForm . ?defPluralForm ontolex:representation ?defPlural ; @@ -42,7 +45,8 @@ WHERE { wikibase:grammaticalFeature wd:Q53997851 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Nynorsk/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Nynorsk/verbs/query_verbs.sparql index 1dd43c971..e39d943b0 100644 --- a/src/scribe_data/language_data_extraction/Nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Nynorsk/verbs/query_verbs.sparql @@ -11,7 +11,8 @@ WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql index 6b741d707..2399d462c 100644 --- a/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { ?lexeme dct:language wd:Q809 ; wikibase:lexicalCategory ?nounTypes . - # Optional selection of nominative singular forms. + # MARK: Nominative Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomSingularForm . ?nomSingularForm ontolex:representation ?nomSingular ; @@ -22,7 +23,8 @@ WHERE { wikibase:grammaticalFeature wd:Q110786 ; } . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -30,7 +32,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql index da2398f15..461b5fb7c 100644 --- a/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql @@ -10,7 +10,8 @@ WHERE { ?lexeme dct:language wd:Q809 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Portuguese/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Portuguese/nouns/query_nouns.sparql index 87ea75070..fe164833c 100644 --- a/src/scribe_data/language_data_extraction/Portuguese/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Portuguese/nouns/query_nouns.sparql @@ -15,14 +15,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql index edf6ddea8..7ce7c48d9 100644 --- a/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql @@ -18,7 +18,8 @@ WHERE { ?lexeme dct:language wd:Q5146 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + VALUES ?infTypes { wd:Q179230 wd:Q64003131 } ?lexeme ontolex:lexicalForm ?infinitiveForm . @@ -27,7 +28,9 @@ WHERE { VALUES ?perfectTypes { wd:Q23663136 wd:Q64005357 } - # Present + # MARK: Present + + # FPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPSForm . ?presFPSForm ontolex:representation ?presFPS ; @@ -36,6 +39,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPSForm . ?presSPSForm ontolex:representation ?presSPS ; @@ -44,6 +49,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPSForm . ?presTPSForm ontolex:representation ?presTPS ; @@ -52,6 +59,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPPForm . ?presFPPForm ontolex:representation ?presFPP ; @@ -60,6 +69,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPPForm . ?presSPPForm ontolex:representation ?presSPP ; @@ -68,6 +79,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPPForm . ?presTPPForm ontolex:representation ?presTPP ; @@ -77,7 +90,9 @@ WHERE { wikibase:grammaticalFeature wd:Q192613 ; } . - # Past Perfect + # MARK: Past Perfect + + # FPS OPTIONAL { ?lexeme ontolex:lexicalForm ?perfFPSForm . ?perfFPSForm ontolex:representation ?perfFPS ; @@ -86,6 +101,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q64005357 ; } . + + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?perfSPSForm . ?perfSPSForm ontolex:representation ?perfSPS ; @@ -94,6 +111,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q64005357 ; } . + + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?perfTPSForm . ?perfTPSForm ontolex:representation ?perfTPS ; @@ -102,6 +121,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q64005357 ; } . + + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?perfFPPForm . ?perfFPPForm ontolex:representation ?perfFPP ; @@ -110,6 +131,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q64005357 ; } . + + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?perfSPPForm . ?perfSPPForm ontolex:representation ?perfSPP ; @@ -118,6 +141,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q64005357 ; } . + + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?perfTPPForm . ?perfTPPForm ontolex:representation ?perfTPP ; @@ -127,7 +152,9 @@ WHERE { wikibase:grammaticalFeature wd:Q64005357 ; } . - # Past Imperfect + # MARK: Past Imperfect + + # FPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impFPSForm . ?impFPSForm ontolex:representation ?impFPS ; @@ -136,6 +163,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q12547192 ; } . + + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPSForm . ?impSPSForm ontolex:representation ?impSPS ; @@ -144,6 +173,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q12547192 ; } . + + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?impTPSForm . ?impTPSForm ontolex:representation ?impTPS ; @@ -152,6 +183,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q12547192 ; } . + + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impFPPForm . ?impFPPForm ontolex:representation ?impFPP ; @@ -160,6 +193,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q12547192 ; } . + + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impSPPForm . ?impSPPForm ontolex:representation ?impSPP ; @@ -168,6 +203,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q12547192 ; } . + + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?impTPPForm . ?impTPPForm ontolex:representation ?impTPP ; @@ -177,7 +214,9 @@ WHERE { wikibase:grammaticalFeature wd:Q12547192 ; } . - # Future Simple + # MARK: Future Simple + + # FPS OPTIONAL { ?lexeme ontolex:lexicalForm ?fSimpFPSForm . ?fSimpFPSForm ontolex:representation ?fSimpFPS ; @@ -186,6 +225,8 @@ WHERE { wikibase:grammaticalFeature wd:Q623742 ; wikibase:grammaticalFeature wd:Q682111 ; } . + + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?fSimpSPSForm . ?fSimpSPSForm ontolex:representation ?fSimpSPS ; @@ -194,6 +235,8 @@ WHERE { wikibase:grammaticalFeature wd:Q623742 ; wikibase:grammaticalFeature wd:Q682111 ; } . + + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?fSimpTPSForm . ?fSimpTPSForm ontolex:representation ?fSimpTPS ; @@ -202,6 +245,8 @@ WHERE { wikibase:grammaticalFeature wd:Q623742 ; wikibase:grammaticalFeature wd:Q682111 ; } . + + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?fSimpFPPForm . ?fSimpFPPForm ontolex:representation ?fSimpFPP ; @@ -210,6 +255,8 @@ WHERE { wikibase:grammaticalFeature wd:Q623742 ; wikibase:grammaticalFeature wd:Q682111 ; } . + + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?fSimpSPPForm . ?fSimpSPPForm ontolex:representation ?fSimpSPP ; @@ -218,6 +265,8 @@ WHERE { wikibase:grammaticalFeature wd:Q623742 ; wikibase:grammaticalFeature wd:Q682111 ; } . + + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?fSimpTPPForm . ?fSimpTPPForm ontolex:representation ?fSimpTPP ; diff --git a/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql index 710b8daae..fc3359f24 100644 --- a/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql @@ -14,7 +14,8 @@ WHERE { ?lexeme dct:language wd:Q7737 ; wikibase:lexicalCategory ?nounTypes . - # Optional selection of nominative singular forms. + # MARK: Nominative Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomSingularForm . ?nomSingularForm ontolex:representation ?nomSingular ; @@ -22,7 +23,8 @@ WHERE { wikibase:grammaticalFeature wd:Q110786 ; } . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -30,7 +32,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Russian/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Russian/prepositions/query_prepositions.sparql index 41e2eacfa..f9fcf1124 100644 --- a/src/scribe_data/language_data_extraction/Russian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Russian/prepositions/query_prepositions.sparql @@ -12,7 +12,8 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # Optional selection of corresponding cases. + # MARK: Corresponding Case + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git a/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql index 46411b8d3..7b7aaf4fa 100644 --- a/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql @@ -13,12 +13,15 @@ WHERE { ?lexeme dct:language wd:Q7737 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 . - # Present + # MARK: Present + + # FPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPSForm . ?presFPSForm ontolex:representation ?presFPS ; @@ -27,6 +30,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # SPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPSForm . ?presSPSForm ontolex:representation ?presSPS ; @@ -35,6 +40,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # TPS OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPSForm . ?presTPSForm ontolex:representation ?presTPS ; @@ -43,6 +50,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # FPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presFPPForm . ?presFPPForm ontolex:representation ?presFPP ; @@ -51,6 +60,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # SPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presSPPForm . ?presSPPForm ontolex:representation ?presSPP ; @@ -59,6 +70,8 @@ WHERE { wikibase:grammaticalFeature wd:Q682111 ; wikibase:grammaticalFeature wd:Q192613 ; } . + + # TPP OPTIONAL { ?lexeme ontolex:lexicalForm ?presTPPForm . ?presTPPForm ontolex:representation ?presTPP ; @@ -68,7 +81,8 @@ WHERE { wikibase:grammaticalFeature wd:Q192613 ; } . - # Past Feminine + # MARK: Past Feminine + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastFeminineForm . ?pastFeminineForm ontolex:representation ?pastFeminine ; @@ -77,7 +91,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415 ; } . - # Past Masculine + # MARK: Past Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastMasculineForm . ?pastMasculineForm ontolex:representation ?pastMasculine ; @@ -86,7 +101,8 @@ WHERE { wikibase:grammaticalFeature wd:Q499327 ; } . - # Past Neutral + # MARK: Past Neutral + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastNeutralForm . ?pastNeutralForm ontolex:representation ?pastNeutral ; @@ -95,7 +111,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775461 ; } . - # Past Plural + # MARK: Past Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastPluralForm . ?pastPluralForm ontolex:representation ?pastPlural ; diff --git a/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql index 0dab9cc0b..baea4c235 100644 --- a/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql @@ -15,7 +15,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes . wikibase:lemma ?nomSingular . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -23,7 +24,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Slovak/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Slovak/prepositions/query_prepositions.sparql index bbcfd1272..d8337322b 100644 --- a/src/scribe_data/language_data_extraction/Slovak/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/prepositions/query_prepositions.sparql @@ -11,7 +11,8 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # Optional selection of corresponding cases. + # MARK: Corresponding Case + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git a/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql index 2319473d9..51af05839 100644 --- a/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql @@ -10,7 +10,8 @@ WHERE { ?lexeme dct:language wd:Q9058 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql index 4855a05a6..e03127193 100644 --- a/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql @@ -20,14 +20,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { @@ -37,7 +39,7 @@ WHERE { # Spansih sometimes has masculine and feminine versions on a single lexeme. - # Optional selection of masculine singular and plural forms. + # MARK: masculine singular and plural forms. OPTIONAL { ?lexeme ontolex:lexicalForm ?masSingularForm . ?masSingularForm ontolex:representation ?masSingular ; @@ -52,7 +54,7 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of feminine singular and plural forms. + # MARK: feminine singular and plural forms. OPTIONAL { ?lexeme ontolex:lexicalForm ?femSingularForm . ?femSingularForm ontolex:representation ?femSingular ; diff --git a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql index 66fb79758..37f9d82ed 100644 --- a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql @@ -13,12 +13,12 @@ WHERE { ?lexeme dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # Present + # MARK: Present # FPS OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql index 5bf87af58..107c3eb2b 100644 --- a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql @@ -12,12 +12,12 @@ WHERE { ?lexeme dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # Preterite + # MARK: Preterite # FPS OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql index 8bb8579f0..8ccfa4bec 100644 --- a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql @@ -12,12 +12,12 @@ WHERE { ?lexeme dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # Imperfect + # MARK: Imperfect # FPS OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql index 286b85c7f..f7a147535 100644 --- a/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql @@ -20,7 +20,8 @@ WHERE { ?lexeme dct:language wd:Q9027 ; wikibase:lexicalCategory ?nounTypes . - # Indefinite forms in both nominative and genitive. + # MARK: Indefinite + OPTIONAL { # Nominative Singular ?lexeme ontolex:lexicalForm ?nomIndefSingularForm . @@ -51,7 +52,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 . } . - # Definite forms in both nominative and genitive. + # MARK: Definite + OPTIONAL { # Nominative Singular ?lexeme ontolex:lexicalForm ?nomDefSingularForm . @@ -82,7 +84,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 . } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql index db04b23c3..f4c1db3e1 100644 --- a/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql @@ -13,9 +13,9 @@ WHERE { ?lexeme dct:language wd:Q9027 ; wikibase:lexicalCategory wd:Q24905 . - # Active Voice + # MARK: Active Voice - # Infinitive (required) + # Infinitive ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; wikibase:grammaticalFeature wd:Q1317831 ; @@ -52,7 +52,7 @@ WHERE { wikibase:grammaticalFeature wd:Q442485 ; } . - # Passive Voice + # MARK: Passive Voice # Infinitive OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql index fc57b4ee0..89b22282f 100644 --- a/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql @@ -13,7 +13,8 @@ WHERE { ?lexeme dct:language wd:Q5885 ; wikibase:lexicalCategory ?nounTypes . - # Optional selection of nominative singular forms. + # MARK: Nominative Singular + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomSingularForm . ?nomSingularForm ontolex:representation ?nomSingular ; @@ -21,7 +22,8 @@ WHERE { wikibase:grammaticalFeature wd:Q110786 ; } . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; diff --git a/src/scribe_data/language_data_extraction/Ukranian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Ukranian/nouns/query_nouns.sparql index 4128dd03e..b71e5118e 100644 --- a/src/scribe_data/language_data_extraction/Ukranian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Ukranian/nouns/query_nouns.sparql @@ -15,7 +15,8 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?nomSingular . - # Optional selection of nominative plural forms. + # MARK: Nominative Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?nomPluralForm . ?nomPluralForm ontolex:representation ?nomPlural ; @@ -23,7 +24,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS { diff --git a/src/scribe_data/language_data_extraction/Ukranian/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Ukranian/prepositions/query_prepositions.sparql index cf12cc6bb..45802be77 100644 --- a/src/scribe_data/language_data_extraction/Ukranian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Ukranian/prepositions/query_prepositions.sparql @@ -13,7 +13,8 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # Optional selection of corresponding cases. + # MARK: Corresponding Case + OPTIONAL { ?lexeme wdt:P5713 ?caseForm . } . diff --git a/src/scribe_data/language_data_extraction/Ukranian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Ukranian/verbs/query_verbs.sparql index 0d07220d0..87dedb6e7 100644 --- a/src/scribe_data/language_data_extraction/Ukranian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Ukranian/verbs/query_verbs.sparql @@ -10,7 +10,8 @@ WHERE { ?lexeme dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q24905 . - # Infinitive (required) + # MARK: Infinitive + ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; diff --git a/src/scribe_data/language_data_extraction/Urdu/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Urdu/nouns/query_nouns.sparql index 6ed67430b..96b23fb7b 100644 --- a/src/scribe_data/language_data_extraction/Urdu/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Urdu/nouns/query_nouns.sparql @@ -16,14 +16,16 @@ WHERE { wikibase:lexicalCategory ?nounTypes ; wikibase:lemma ?singular . - # Optional selection of plural forms. + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 ; } . - # Optional selection of genders. + # MARK: Gender(s) + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . FILTER NOT EXISTS {