diff --git a/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql index fd0e78859..3ddb294b6 100644 --- a/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Arabic (Q13955) adjectives. +# All Arabic (Q13955) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Arabic/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Arabic/adverbs/query_adverbs.sparql index fb6bb4246..9d5339d16 100644 --- a/src/scribe_data/language_data_extraction/Arabic/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Arabic (Q13955) adverbs. +# All Arabic (Q13955) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 dda8f26bf..6c51008f8 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Arabic (Q13955) nouns. +# All Arabic (Q13955) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -35,10 +35,8 @@ SELECT ?masPluralPausalIndef WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q13955 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . # MARK: Nominative diff --git a/src/scribe_data/language_data_extraction/Arabic/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Arabic/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..28719aede --- /dev/null +++ b/src/scribe_data/language_data_extraction/Arabic/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Arabic (Q13955) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q13955 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} 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 a547e9dd5..f22af8d28 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Arabic (Q13955) verbs and a portion of the currently implemented tenses for each. +# All Arabic (Q13955) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 6c00b9313..21510add6 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Arabic (Q13955) verbs and a portion of the currently implemented tenses for each. +# All Arabic (Q13955) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 9496f6175..1a077d146 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Arabic (Q13955) verbs and a portion of the currently implemented tenses for each. +# All Arabic (Q13955) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Basque/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Basque/adjectives/query_adjectives.sparql index 9b8c0342a..c2f99cde9 100644 --- a/src/scribe_data/language_data_extraction/Basque/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Basque/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Basque (Q8752) adjectives. +# All Basque (Q8752) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Basque/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Basque/adverbs/query_adverbs.sparql index 1cc1a63c9..96095cb26 100644 --- a/src/scribe_data/language_data_extraction/Basque/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Basque/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Basque (Q8752) adverbs. +# All Basque (Q8752) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 fffe5c3f5..9903acae5 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Basque (Q8752) nouns and all implemented singular and plural forms. +# All Basque (Q8752) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?absPlural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q8752 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?absIndefinite . # MARK: Absolutive Singular diff --git a/src/scribe_data/language_data_extraction/Basque/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Basque/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..0bec04f3e --- /dev/null +++ b/src/scribe_data/language_data_extraction/Basque/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Basque (Q8752) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q8752 ; + wikibase:lexicalCategory wd:Q147276; + wikibase:lemma ?properNoun . +} diff --git a/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql index 4bb8792b2..5a1460839 100644 --- a/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Basque (Q8752) verbs and the currently implemented tenses for each. +# All Basque (Q8752) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Bengali/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Bengali/adjectives/query_adjectives.sparql index 96600ddcf..b400d0c92 100644 --- a/src/scribe_data/language_data_extraction/Bengali/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Bengali (Bangla Q9610) adjectives. +# All Bengali (Bangla Q9610) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Bengali/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Bengali/adverbs/query_adverbs.sparql index 13e4b8b54..d42ebf38a 100644 --- a/src/scribe_data/language_data_extraction/Bengali/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Bengali (Bangla Q9610) adverbs. +# All Bengali (Bangla Q9610) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 dc36759e7..904b547ff 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Bengali (Bangla Q9610) nouns and their forms in the various cases. +# All Bengali (Bangla Q9610) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -10,10 +10,8 @@ SELECT ?locative WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9610 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; # MARK: Nminative diff --git a/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql new file mode 100644 index 000000000..5a6c7cfa3 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql @@ -0,0 +1,26 @@ +# tool: scribe-data +# All Bengali (Bangla Q9610) postpositions and the given forms. +# Enter this query at https://query.wikidata.org/. + + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?preposition + ?case + +WHERE { + ?lexeme dct:language wd:Q9610 ; + wikibase:lexicalCategory wd:Q161873 ; + wikibase:lemma ?preposition . + + # MARK: Corresponding Case + + OPTIONAL { + ?lexeme wdt:P5713 ?caseForm . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?caseForm rdfs:label ?case . + } +} 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 65204cb1b..ec359a631 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 @@ -1,7 +1,6 @@ # tool: scribe-data -# All Bengali (Bangla Q9610) prepositions and their corresponding cases. +# All Bengali (Bangla Q9610) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. -# Note: This query includes postpositions that are also used in Bengali. SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) @@ -9,11 +8,8 @@ SELECT ?case WHERE { - # Prepositions and postpositions. - VALUES ?prePostPositions { wd:Q4833830 wd:Q161873 } - ?lexeme dct:language wd:Q9610 ; - wikibase:lexicalCategory ?prePostPositions ; + wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?preposition . # MARK: Corresponding Case diff --git a/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..a04f43d26 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,47 @@ +# tool: scribe-data +# All Bengali (Bangla Q9610) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nominative + ?genitive + ?accusative + ?locative + +WHERE { + ?lexeme dct:language wd:Q9610 ; + wikibase:lexicalCategory wd:Q147276 ; + + # MARK: Nminative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomForm . + ?nomForm ontolex:representation ?nominative ; + wikibase:grammaticalFeature wd:Q131105 ; + } . + + # MARK: Genitive + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genForm . + ?genForm ontolex:representation ?genitive ; + wikibase:grammaticalFeature wd:Q146233 ; + } . + + # MARK: Accusative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accForm . + ?accForm ontolex:representation ?accusative ; + wikibase:grammaticalFeature wd:Q146078 ; + } . + + # MARK: Locative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?locForm . + ?locForm ontolex:representation ?locative ; + wikibase:grammaticalFeature wd:Q202142 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Bengali/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Bengali/verbs/query_verbs.sparql index 13e161d9c..e33a941fc 100644 --- a/src/scribe_data/language_data_extraction/Bengali/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Bengali (Bangla Q9610) verbs. +# All Bengali (Bangla Q9610) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/adjectives/query_adjectives.sparql index 75f5f6df3..4f94fd30f 100644 --- a/src/scribe_data/language_data_extraction/Chinese/Mandarin/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Mandarin Chinese (Q727694) adjectives. +# All Mandarin Chinese (Q727694) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql index 8633280f4..a71b23ede 100644 --- a/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Standard Mandarin Chinese (Q727694) adverbs. +# All Standard Mandarin Chinese (Q727694) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/nouns/query_nouns.sparql index f3badc28e..3c66d60d3 100644 --- a/src/scribe_data/language_data_extraction/Chinese/Mandarin/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Standard Mandarin Chinese (Q727694) nouns. +# All Standard Mandarin Chinese (Q727694) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,9 +7,7 @@ SELECT ?noun WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q727694 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . } diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/prepositions/query_prepositions.sparql index 4757b637f..4188f305e 100644 --- a/src/scribe_data/language_data_extraction/Chinese/Mandarin/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Standard Mandarin Chinese (Q727694) prepositions. +# All Standard Mandarin Chinese (Q727694) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..4d666aeb9 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Standard Mandarin Chinese (Q727694) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q727694 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/verbs/query_verbs.sparql index b0b80569f..a40491879 100644 --- a/src/scribe_data/language_data_extraction/Chinese/Mandarin/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Mandarin Chinese (Q727694) verbs. +# All Mandarin Chinese (Q727694) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_1.sparql index 1eba99f95..2c1290e85 100644 --- a/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) adjectives in the given cases. +# All Czech (Q9056) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_2.sparql index 0b08d5ff6..a59895c75 100644 --- a/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) adjectives in the given cases. +# All Czech (Q9056) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_3.sparql index 3be851852..bb2cb63f3 100644 --- a/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/language_data_extraction/Czech/adjectives/query_adjectives_3.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) adjectives in the given cases. +# All Czech (Q9056) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Czech/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Czech/adverbs/query_adverbs.sparql index 2005dedeb..3e92a8731 100644 --- a/src/scribe_data/language_data_extraction/Czech/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Czech/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) adverbs in the given cases. +# All Czech (Q9056) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 bd290458e..0711a4da4 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czeck (Q9056) nouns, their plurals and their genders. +# All Czeck (Q9056) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9056 ; - wikibase:lexicalCategory ?nounTypes . + wikibase:lexicalCategory wd:Q1084 . # MARK: Nominative Singular @@ -34,9 +32,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { 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 6d931f371..037b9b3f2 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) prepositions and their corresponding cases. +# All Czech (Q9056) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..50523ec36 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,35 @@ +# tool: scribe-data +# All Czeck (Q9056) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + ?nomPlural + ?gender + +WHERE { + ?lexeme dct:language wd:Q9056 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql index a52fcd2bd..feffed91c 100644 --- a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) verbs and a portion of the currently implemented tenses for each. +# All Czech (Q9056) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql index c9aa157be..165a9c0aa 100644 --- a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Czech (Q9056) verbs and a portion of the currently implemented tenses for each. +# All Czech (Q9056) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql index a1d0c659f..edec9800f 100644 --- a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Danish (Q9035) adjectives and some of the available forms. +# All Danish (Q9035) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql index 42aa720b0..a2b8ecf71 100644 --- a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Danish (Q9035) adjectives and some of the available forms. +# All Danish (Q9035) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql index 59a0e7865..a95714543 100644 --- a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Danish (Q9035) adjectives and some of the available forms. +# All Danish (Q9035) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Danish/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Danish/adverbs/query_adverbs.sparql index 177735c7a..dceef3ad4 100644 --- a/src/scribe_data/language_data_extraction/Danish/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Danish (Q9035) adverbs. +# All Danish (Q9035) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 dae3b9b66..22f09b959 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Danish (Q9035) nouns, their plurals and their genders. +# All Danish (Q9035) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9035 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..20feeaf9f --- /dev/null +++ b/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All Danish (Q9035) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?gender + +WHERE { + ?lexeme dct:language wd:Q9035 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 818d7b2dd..6b33c5989 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Danish (Q9035) verbs and the currently implemented tenses for each. +# All Danish (Q9035) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/English/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/English/adjectives/query_adjectives.sparql index 8c9ab0bd6..3462d262f 100644 --- a/src/scribe_data/language_data_extraction/English/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/English/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All English (Q1860) adjectives. +# All English (Q1860) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/English/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/English/adverbs/query_adverbs.sparql index cf29f5aef..fe3449905 100644 --- a/src/scribe_data/language_data_extraction/English/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/English/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All English (Q1860) adverbs. +# All English (Q1860) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT DISTINCT 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 e60883fbe..7b8b4c125 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All English (Q1860) nouns and their plural. +# All English (Q1860) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -8,10 +8,8 @@ SELECT ?plural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q1860 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural diff --git a/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..cddef65b8 --- /dev/null +++ b/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,22 @@ +# tool: scribe-data +# All English (Q1860) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + +WHERE { + ?lexeme dct:language wd:Q1860 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + } . +} 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 ee09c6f00..b0132c20e 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All English (Q1860) verbs and the currently implemented tenses for each. +# All English (Q1860) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql index e85a304cb..3bfc134fe 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Esperanto (Q143) adjectives. +# All Esperanto (Q143) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql index 41367afa6..1f694b248 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Esperanto (Q143) adverbs. +# All Esperanto (Q143) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,7 +7,6 @@ SELECT ?adverb WHERE { - ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . 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 725d1e712..c0eb6dd7c 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Esperanto (Q143) nouns and their plurals for the given cases. +# All Esperanto (Q143) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -10,10 +10,8 @@ SELECT ?accPlural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q143 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nomSingular . # MARK: Accusative Singular diff --git a/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql b/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql index e4d9281f7..e86e44e74 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Esperanto (Q143) personal pronouns. +# All Esperanto (Q143) personal pronouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_nouns.sparql new file mode 100644 index 000000000..471173770 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_nouns.sparql @@ -0,0 +1,43 @@ +# tool: scribe-data +# All Esperanto (Q143) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?accSingular + ?nomPlural + ?accPlural + +WHERE { + ?lexeme dct:language wd:Q143 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?nomSingular . + + # MARK: Accusative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accSingularForm . + ?accSingularForm ontolex:representation ?accSingular ; + wikibase:grammaticalFeature wd:Q146078 ; + wikibase:grammaticalFeature wd:Q110786 ; + } . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # MARK: Accusative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accPluralForm . + ?accPluralForm ontolex:representation ?accPlural ; + wikibase:grammaticalFeature wd:Q146078 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql index 074006a84..a03c5f858 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Esperanto (Q143) verbs and the currently implemented tenses for each. +# All Esperanto (Q143) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql index 63f9a91ef..1619028ff 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q9072) adjectives in the given cases. +# All Estonian (Q9072) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql index 986fd44cf..1396e0e47 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q9072) adjectives in the given cases. +# All Estonian (Q9072) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql index 47a110802..ca4b47f31 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q9072) adjectives in the given cases. +# All Estonian (Q9072) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql index b5a2eeab3..65427acd1 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q9072) adjectives in the given cases. +# All Estonian (Q9072) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_1.sparql b/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_1.sparql index ba9a1d30d..1aff830c5 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q380057) adverbs and the corresponding forms per case. +# All Estonian (Q380057) adverbs and the given forms. # Enter this query at https://query.wikidata.org/ SELECT diff --git a/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_2.sparql b/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_2.sparql index 1726f1eb0..d62a16180 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adverbs/query_adverbs_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q380057) adverbs and the corresponding forms per case. +# All Estonian (Q380057) adverbs and the given forms. # Enter this query at https://query.wikidata.org/ SELECT 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 a64dc7188..54aa66a8b 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q9072) nouns and their plural. +# All Estonian (Q9072) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -8,10 +8,8 @@ SELECT ?plural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9072 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural diff --git a/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql new file mode 100644 index 000000000..88df4edaf --- /dev/null +++ b/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All Estonian (Q9072) postpositions and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?preposition + ?case + +WHERE { + ?lexeme dct:language wd:Q9072 ; + wikibase:lexicalCategory wd:Q161873 ; + wikibase:lemma ?preposition . + + # MARK: Corresponding Case + + OPTIONAL { + ?lexeme wdt:P5713 ?caseForm . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?caseForm rdfs:label ?case . + } +} 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 db855ca41..388931800 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 @@ -1,7 +1,6 @@ # tool: scribe-data -# All Estonian (Q9072) prepositions, postpositions, and their corresponding cases. +# All Estonian (Q9072) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. -# Note: This query includes postpositions that are also used in Estonian. SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) @@ -9,11 +8,8 @@ SELECT ?case WHERE { - # Prepositions and postpositions. - VALUES ?prePostPositions { wd:Q4833830 wd:Q161873 } - ?lexeme dct:language wd:Q9072 ; - wikibase:lexicalCategory ?prePostPositions ; + wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?preposition . # MARK: Corresponding Case diff --git a/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..9c1e9c36f --- /dev/null +++ b/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,23 @@ +# tool: scribe-data +# All Estonian (Q9072) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + +WHERE { + ?lexeme dct:language wd:Q9072 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . +} 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 933685fc2..4d9422b15 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Estonian (Q9072) verbs and the currently implemented tenses for each. +# All Estonian (Q9072) verbs and the given forms. # Enter this query at https://query.wikidata.org/ SELECT diff --git a/src/scribe_data/language_data_extraction/Finnish/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Finnish/adjectives/query_adjectives.sparql index 408387572..91333c6a1 100644 --- a/src/scribe_data/language_data_extraction/Finnish/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Finnish (Q1412) adjectives. +# All Finnish (Q1412) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Finnish/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Finnish/adverbs/query_adverbs.sparql index d8fbb50dc..4030a9c41 100644 --- a/src/scribe_data/language_data_extraction/Finnish/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Finnish (Q1412) adverbs. +# All Finnish (Q1412) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 fe16757c8..78973f061 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Finnish (Q1412) nouns and their plural for the given cases. +# All Finnish (Q1412) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -8,10 +8,8 @@ SELECT ?nomPlural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q1412 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nomSingular . # MARK: Nominative Plural diff --git a/src/scribe_data/language_data_extraction/Finnish/prepositions/query_preposition.sparql b/src/scribe_data/language_data_extraction/Finnish/prepositions/query_preposition.sparql index 87ecdc76d..9111e55cc 100644 --- a/src/scribe_data/language_data_extraction/Finnish/prepositions/query_preposition.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/prepositions/query_preposition.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Finnish (Q1412) prepositions. +# All Finnish (Q1412) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..21a5345a3 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,23 @@ +# tool: scribe-data +# All Finnish (Q1412) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?nomPlural + +WHERE { + ?lexeme dct:language wd:Q1412 ; + wikibase:lexicalCategory wd:Q147276; + wikibase:lemma ?nomSingular . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql index cb385d91a..949500ea2 100644 --- a/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Finnish (Q1412) verbs. +# All Finnish (Q1412) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/French/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/French/adjectives/query_adjectives.sparql index fd71bb24d..2ec30b0e3 100644 --- a/src/scribe_data/language_data_extraction/French/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/French/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All French (Q150) adjectives. +# All French (Q150) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/French/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/French/adverbs/query_adverbs.sparql index ccca5e4a8..671c10dd0 100644 --- a/src/scribe_data/language_data_extraction/French/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/French/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All French (Q150) adverbs. +# All French (Q150) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 32653659a..3b7b24a5b 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All French (Q150) nouns, their plurals and their genders. +# All French (Q150) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q150 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/French/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/French/prepositions/query_prepositions.sparql index e555a0cac..839bfd408 100644 --- a/src/scribe_data/language_data_extraction/French/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/French/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All French (Q150) prepositions. +# All French (Q150) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..4e655b1d2 --- /dev/null +++ b/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All French (Q150) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?gender + +WHERE { + ?lexeme dct:language wd:Q150 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 3e4a4530b..bb839a50b 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All French (Q150) verbs and a portion of the currently implemented tenses for each. +# All French (Q150) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 69f7915e3..420ac3047 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All French (Q150) verbs and a portion of the currently implemented tenses for each. +# All French (Q150) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/German/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/German/adjectives/query_adjectives.sparql index 8ffd95671..018a0ce68 100644 --- a/src/scribe_data/language_data_extraction/German/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/German/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All German (Q188) adjectives. +# All German (Q188) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/German/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/German/adverbs/query_adverbs.sparql index 385b2c27f..fc1f7ffcf 100644 --- a/src/scribe_data/language_data_extraction/German/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/German/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All German (Q188) adverbs. +# All German (Q188) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 81c17c0ea..e3d19895f 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All German (Q188) nouns, their plurals and their genders in the given cases. +# All German (Q188) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q188 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nomSingular . # MARK: Nominative Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { 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 b96332c90..0d57d980c 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All German (Q188) prepositions and their corresponding cases. +# All German (Q188) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..50da63f9a --- /dev/null +++ b/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All German (Q188) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?gender + +WHERE { + ?lexeme dct:language wd:Q188 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?nomSingular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 9e8db2d5e..c74ae10b7 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All German (Q188) verbs and a portion of the currently implemented tenses for each. +# All German (Q188) verbs and the given forms. # Enter this query at https://query.wikidata.org/. # Not SELECT as we want to get verbs with both sein and haben as auxiliaries 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 b9761eab8..a09547f77 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All German (Q188) verbs and a portion of the currently implemented tenses for each. +# All German (Q188) verbs and the given forms. # Enter this query at https://query.wikidata.org/. # Not SELECT as we want to get verbs with both sein and haben as auxiliaries 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 daf293748..ae4f8b229 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Greek (Q36510) nouns, their plurals and their genders. +# All Greek (Q36510) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q36510; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural diff --git a/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..cfb888f37 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,28 @@ +# tool: scribe-data +# All Greek (Q36510) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?gender + +WHERE { + ?lexeme dct:language wd:Q36510; + wikibase:lexicalCategory wd:Q147276; + wikibase:lemma ?singular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + FILTER NOT EXISTS { + ?lexeme wdt:P31 wd:Q202444 + } + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 881484cb8..3c3b681a5 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Greek (Q36510) verb snd the currently implemented tenses for each. +# All Greek (Q36510) verb snd the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 84800a22e..9f291a29c 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hausa (Q56475) nouns and their gender. +# All Hausa (Q56475) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q56475 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . FILTER(lang(?singular) = "ha") # FILTER(lang(?singular) = "ha-arabic") @@ -31,9 +29,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..acdc264b3 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,27 @@ +# tool: scribe-data +# All Hausa (Q56475) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?gender + +WHERE { + ?lexeme dct:language wd:Q56475 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "ha") + # FILTER(lang(?singular) = "ha-arabic") + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Hausa/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hausa/verbs/query_verbs.sparql index f7fb31f33..c81478724 100644 --- a/src/scribe_data/language_data_extraction/Hausa/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Hausa/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hausa (Q56475) verbs. +# All Hausa (Q56475) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql index 07de5f58e..025103003 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) adjectives. +# All Hebrew (Q9288) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Hebrew/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Hebrew/adverbs/query_adverbs.sparql index 9ea383549..9953bfc8e 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) adverbs. +# All Hebrew (Q9288) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 093cea32a..017f2e3b3 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) nouns, their plurals and their genders. +# All Hebrew (Q9288) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9288 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . FILTER(lang(?noun) = "he") @@ -29,9 +27,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..e90b0014e --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,26 @@ +# tool: scribe-data +# All Hebrew (Q9288) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?noun + ?gender + +WHERE { + ?lexeme dct:language wd:Q9288 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?noun . + FILTER(lang(?noun) = "he") + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 index abaf481b2..55b1328ae 100644 --- 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# All Hebrew (Q9288) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 index 1eb7b1c1b..2d55c6293 100644 --- 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# All Hebrew (Q9288) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 index 240046505..877cad551 100644 --- 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# All Hebrew (Q9288) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 index e8b305ff1..eee11434d 100644 --- 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hebrew (Q9288) verbs and the currently implemented tenses for each. +# All Hebrew (Q9288) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/adverbs/query_adverbs.sparql index 7e8ec4c66..1b7577036 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hindi (from Hindustani Q11051) adverbs. +# All Hindi (from Hindustani Q11051) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "hi" to remove Urdu (ur) words. diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql index 5d315392b..6b7ac0b01 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hindi (from Hindustani Q11051) nouns and their gender. +# All Hindi (from Hindustani Q11051) nouns and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "hi" to remove Urdu (ur) words. @@ -11,10 +11,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q11051 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . FILTER(lang(?singular) = "hi") @@ -31,9 +29,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/postpositions/query_postpositions.sparql index e026332f1..4cecb8f8a 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/postpositions/query_postpositions.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/postpositions/query_postpositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hindi (from Hindustani Q11051) postpositions. +# All Hindi (from Hindustani Q11051) postpositions and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "hi" to remove Urdu (ur) words. diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/prepositions/query_prepositions.sparql index d0e47bb32..33df94210 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hindi (from Hindustani Q11051) prepositions. +# All Hindi (from Hindustani Q11051) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "hi" to remove Urdu (ur) words. diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..b376dda77 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,38 @@ +# tool: scribe-data +# All Hindi (from Hindustani Q11051) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +# Note: We need to filter for "hi" to remove Urdu (ur) words. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + +WHERE { + ?lexeme dct:language wd:Q11051 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "hi") + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + FILTER(lang(?plural) = "hi") + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/adverbs/query_adverbs.sparql index 53c4bdfc9..483dcf838 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Urdu (from Hindustani Q11051) adverbs. +# All Urdu (from Hindustani Q11051) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "ur" to remove Hindi (hi) words. diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql index 66efb97c6..1fd8ce5ba 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Urdu (from Hindustani Q11051) nouns and their gender. +# All Urdu (from Hindustani Q11051) nouns and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "ur" to remove Hindi (hi) words. @@ -11,10 +11,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q11051 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084; wikibase:lemma ?singular . FILTER(lang(?singular) = "ur") @@ -31,9 +29,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/postpositions/query_postpositions.sparql index 10c9a36f7..3dfe96fe0 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/postpositions/query_postpositions.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/postpositions/query_postpositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Urdu (from Hindustani Q11051) postpositions. +# All Urdu (from Hindustani Q11051) postpositions and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "ur" to remove Hindi (hi) words. diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/prepositions/query_prepositions.sparql index 6feddaa71..1c69b96a6 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Urdu (from Hindustani Q11051) prepositions. +# All Urdu (from Hindustani Q11051) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "ur" to remove Hindi (hi) words. diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..bb11078c3 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,38 @@ +# tool: scribe-data +# All Urdu (from Hindustani Q11051) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +# Note: We need to filter for "ur" to remove Hindi (hi) words. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + +WHERE { + ?lexeme dct:language wd:Q11051 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "ur") + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + FILTER(lang(?plural) = "ur") + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Indonesian/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Indonesian/adverbs/query_adverbs.sparql index 1747d1c36..15c017a2b 100644 --- a/src/scribe_data/language_data_extraction/Indonesian/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Indonesian/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Indonesian (Q9240) adverbs. +# All Indonesian (Q9240) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Indonesian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Indonesian/nouns/query_nouns.sparql index b26a0059d..ad7ae6645 100644 --- a/src/scribe_data/language_data_extraction/Indonesian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Indonesian/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Indonesian (Q9240) nouns. +# All Indonesian (Q9240) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,9 +7,7 @@ SELECT ?noun WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9240 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . } diff --git a/src/scribe_data/language_data_extraction/Indonesian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Indonesian/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..1a45e057f --- /dev/null +++ b/src/scribe_data/language_data_extraction/Indonesian/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Indonesian (Q9240) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q9240 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} diff --git a/src/scribe_data/language_data_extraction/Indonesian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Indonesian/verbs/query_verbs.sparql index 38fcf4457..f95754a1e 100644 --- a/src/scribe_data/language_data_extraction/Indonesian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Indonesian/verbs/query_verbs.sparql @@ -1,6 +1,6 @@ # tool: scribe-data # tool: scribe-data -# All Indonesian (Q9240) verbs. +# All Indonesian (Q9240) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Italian/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Italian/adjectives/query_adjectives.sparql index 31e318814..7be3901ac 100644 --- a/src/scribe_data/language_data_extraction/Italian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Italian/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Italian (Q652) adjectives. +# All Italian (Q652) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Italian/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Italian/adverbs/query_adverbs.sparql index 354dcd444..df7a8b7f8 100644 --- a/src/scribe_data/language_data_extraction/Italian/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Italian/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Italian (Q652) adverbs. +# All Italian (Q652) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 fbbd08aaa..8b30e93e4 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Italian (Q652) nouns, their plurals and their genders. +# All Italian (Q652) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,9 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns ?lexeme dct:language wd:Q652 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural @@ -26,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Italian/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Italian/prepositions/query_prepositions.sparql index 1a381c43d..44a365a9c 100644 --- a/src/scribe_data/language_data_extraction/Italian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Italian/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Italian (Q652) prepositions. +# All Italian (Q652) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..d73f9403f --- /dev/null +++ b/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,26 @@ +# tool: scribe-data +# All Italian (Q652) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + +WHERE { + ?lexeme dct:language wd:Q652 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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..88f5e1c49 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Italian (Q652) verbs and the currently implemented tenses for each. +# All Italian (Q652) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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..fb744e5bc 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Italian (Q652) verbs and the currently implemented tenses for each. +# All Italian (Q652) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Japanese/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Japanese/adjectives/query_adjectives.sparql index a568dce30..051583561 100644 --- a/src/scribe_data/language_data_extraction/Japanese/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Japanese/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Japanese (Q5287) adjectives. +# All Japanese (Q5287) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Japanese/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Japanese/adverbs/query_adverbs.sparql index ccc02075b..fa7bcef67 100644 --- a/src/scribe_data/language_data_extraction/Japanese/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Japanese/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Japanese (Q5287) adverbs. +# All Japanese (Q5287) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Japanese/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Japanese/nouns/query_nouns.sparql index 098661648..fe65491ab 100644 --- a/src/scribe_data/language_data_extraction/Japanese/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Japanese/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Japanese (Q5287) nouns. +# All Japanese (Q5287) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,11 +7,8 @@ SELECT ?noun WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q5287 ; - wikibase:lexicalCategory ?nounType ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . - FILTER (?nounType = ?nounTypes) FILTER(lang(?noun) = "ja-hira") } diff --git a/src/scribe_data/language_data_extraction/Japanese/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Japanese/prepositions/query_prepositions.sparql index a99599c00..060e40031 100644 --- a/src/scribe_data/language_data_extraction/Japanese/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Japanese/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Japanese (Q5287) prepositions. +# All Japanese (Q5287) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Japanese/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Japanese/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..cab70a75d --- /dev/null +++ b/src/scribe_data/language_data_extraction/Japanese/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,14 @@ +# tool: scribe-data +# All Japanese (Q5287) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q5287 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . + FILTER(lang(?properNoun) = "ja-hira") +} diff --git a/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql index 3c371603d..5d95802f3 100644 --- a/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Japanese (Q5287) verbs. +# All Japanese (Q5287) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Korean/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Korean/adverbs/query_adverbs.sparql index a76b657f0..781d3a345 100644 --- a/src/scribe_data/language_data_extraction/Korean/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Korean/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Korean (Q9176) adverbs. +# All Korean (Q9176) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Korean/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Korean/postpositions/query_postpositions.sparql index 5a6cb2d44..a0580c6f0 100644 --- a/src/scribe_data/language_data_extraction/Korean/postpositions/query_postpositions.sparql +++ b/src/scribe_data/language_data_extraction/Korean/postpositions/query_postpositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Korean (Q9176) postpositions. +# All Korean (Q9176) postpositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Korean/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Korean/verbs/query_verbs.sparql index e8b524076..d000fb379 100644 --- a/src/scribe_data/language_data_extraction/Korean/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Korean/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Korean (Q9176) verbs. +# All Korean (Q9176) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjective.sparql b/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjective.sparql index d9f9bd173..0ee43d3f9 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjective.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjective.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Kurmanji (Q36163) adjectives. +# All Kurmanji (Q36163) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverb.sparql b/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverb.sparql index 0f2e93392..98fc73bee 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverb.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverb.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Kurmanji (Q36163) adverbs. +# All Kurmanji (Q36163) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 a6839c2e0..7e2e05c2f 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Kurmanji (Q36163) nouns and their gender. +# All Kurmanji (Q36163) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -8,19 +8,14 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q36163 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?directDefSingular . # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_preposition.sparql b/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_preposition.sparql index d3a2b6943..8e2566861 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_preposition.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_preposition.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Kurmanji (Q36163) prepositions. +# All Kurmanji (Q36163) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..e18eced26 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All Kurmanji (Q36163) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?directDefSingular + ?gender + +WHERE { + ?lexeme dct:language wd:Q36163 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?directDefSingular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index 134a7e59e..3a786ed39 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Kurmanji (Q36163) verbs and the currently implemented tenses for each. +# All Kurmanji (Q36163) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql index cea9b3708..d7dbeee21 100644 --- a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Latin (Q397) adjectives in the given cases. +# All Latin (Q397) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql index a1bbd8b93..8344b51ec 100644 --- a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Latin (Q397) adjectives in the given cases. +# All Latin (Q397) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql index b0af32bc4..51cfa6873 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Latin (Q397) nouns in the given cases. +# All Latin (Q397) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql index af44cc07e..2fa86008b 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Latin (Q397) nouns in the given cases. +# All Latin (Q397) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql index 0a8c01956..a1586015f 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Latin (Q397) nouns in the given cases. +# All Latin (Q397) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql index f58d24431..18129bcb4 100644 --- a/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Latin (Q397) verbs. +# All Latin (Q397) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Malay/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Malay/nouns/query_nouns.sparql index 1da57f106..9abddc52a 100644 --- a/src/scribe_data/language_data_extraction/Malay/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Malay/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malay (Q9237) nouns. +# All Malay (Q9237) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,10 +7,8 @@ SELECT ?noun WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9237 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . FILTER(lang(?noun) = "ms") } diff --git a/src/scribe_data/language_data_extraction/Malay/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Malay/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..7ffb2dbb0 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Malay/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,14 @@ +# tool: scribe-data +# All Malay (Q9237) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q9237 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . + FILTER(lang(?properNoun) = "ms") +} diff --git a/src/scribe_data/language_data_extraction/Malay/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Malay/verbs/query_verbs.sparql index 064d0f209..27013bf3e 100644 --- a/src/scribe_data/language_data_extraction/Malay/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Malay/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malay (Q9237) verbs. +# All Malay (Q9237) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Malayalam/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Malayalam/adjectives/query_adjectives.sparql index 2bff79f3c..8dc12c197 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malayalam (Q36236) adjectives. +# All Malayalam (Q36236) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Malayalam/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Malayalam/adverbs/query_adverbs.sparql index e1a0af8d5..5c58241ea 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malayalam (Q36236) adverbs. +# All Malayalam (Q36236) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 d1402399b..ae1bd5108 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malayalam (Q36236) nouns and their plurals in the given cases. +# All Malayalam (Q36236) nouns and the given forms and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -8,19 +8,14 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q36236 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nomSingular . # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Malayalam/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Malayalam/postpositions/query_postpositions.sparql index 5ec6ef6d0..89c50afb5 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/postpositions/query_postpositions.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/postpositions/query_postpositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malayalam (Q36236) postpositions. +# All Malayalam (Q36236) postpositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Malayalam/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Malayalam/prepositions/query_prepositions.sparql index 59b1c4075..eddd8b5b6 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malayalam (Q36236) prepositions. +# All Malayalam (Q36236) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..9d1c42ef3 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All Malayalam (Q36236) nouns and the given forms and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?gender + +WHERE { + ?lexeme dct:language wd:Q36236 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?nomSingular . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql index 0db34c67c..013876607 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Malayalam (Q36236) verbs and the currently implemented tenses for each. +# All Malayalam (Q36236) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" index bb7711224..48c68578b 100644 --- "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" @@ -1,5 +1,5 @@ # tool: scribe-data -# All Bokmål Norwegian (Q9043) nouns, their plurals and their genders. +# All Bokmål Norwegian (Q9043) nouns and the given forms. # Enter this query at https://query.wikidata.org/. # Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164). @@ -13,10 +13,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q25167 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?indefSingular . # MARK: Definite Singular @@ -47,9 +45,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/proper_nouns/query_proper_nouns.sparql" "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/proper_nouns/query_proper_nouns.sparql" new file mode 100644 index 000000000..35f05562c --- /dev/null +++ "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/proper_nouns/query_proper_nouns.sparql" @@ -0,0 +1,15 @@ +# tool: scribe-data +# All Bokmål Norwegian (Q9043) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +# Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164). + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q25167 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} diff --git "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" index de2a738e9..475154754 100644 --- "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" @@ -1,5 +1,5 @@ # tool: scribe-data -# All Norwegian Bokmål (Q9043) verbs and the currently implemented tenses for each. +# All Norwegian Bokmål (Q9043) verbs and the given forms. # Enter this query at https://query.wikidata.org/. # Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164). diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql index 84ff8e01f..0e8697003 100644 --- a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Nynorsk Norwegian (Q25164) nouns, their plurals and their genders. +# All Nynorsk Norwegian (Q25164) nouns and the given forms. # Enter this query at https://query.wikidata.org/. # Note: This query is for Nynorsk (Q25164) rather than Bokmål (Q25167). @@ -13,10 +13,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and and proper nouns - ?lexeme dct:language wd:Q25164 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?indefSingular . # MARK: Definite Singular @@ -47,9 +45,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..1f64adf08 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,57 @@ +# tool: scribe-data +# All Nynorsk Norwegian (Q25164) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +# Note: This query is for Nynorsk (Q25164) rather than Bokmål (Q25167). + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?indefSingular + ?defSingular + ?indefPlural + ?defPlural + ?gender + +WHERE { + ?lexeme dct:language wd:Q25164 ; + wikibase:lexicalCategory wd:Q147276; + wikibase:lemma ?indefSingular . + + # MARK: Definite Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ? ?defSingularForm . + ?defSingularForm ontolex:representation ?defSingular ; + wikibase:grammaticalFeature wd:Q110786 ; + wikibase:grammaticalFeature wd:Q53997851 ; + } . + + # MARK: Indefinite Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indefPluralForm . + ?indefPluralForm ontolex:representation ?indefPlural ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q53997857 ; + } . + + # MARK: Definite Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?defPluralForm . + ?defPluralForm ontolex:representation ?defPlural ; + wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q53997851 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql index 73469287f..dca4f6a2b 100644 --- a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Norwegian Nynorsk (Q25164) verbs and the currently implemented tenses for each. +# All Norwegian Nynorsk (Q25164) verbs and the given forms. # Enter this query at https://query.wikidata.org/. # Note: This query is for Nynorsk (Q25164) rather than Bokmål (Q25167). diff --git a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/adverbs/query_adverbs.sparql index be6e4810a..99d747439 100644 --- a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Nigerian Pidgin (Q33655) adverbs. +# All Nigerian Pidgin (Q33655) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/nouns/query_nouns.sparql index a22b1e059..5feca6d77 100644 --- a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/nouns/query_nouns.sparql @@ -1,19 +1,17 @@ # tool: scribe-data -# All Nigerian Pidgin (Q33655) nouns, their plurals and their genders. +# All Nigerian Pidgin (Q33655) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?singular + ?properNoun ?plural ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q33655 ; # Nigerian Pidgin - wikibase:lexicalCategory ?nounTypes ; - wikibase:lemma ?singular . + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?properNoun . # MARK: Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..929f3e75b --- /dev/null +++ b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Nigerian Pidgin (Q33655) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q33655 ; # Nigerian Pidgin + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} diff --git a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/verbs/query_verbs.sparql index 230fa20b7..00de54f99 100644 --- a/src/scribe_data/language_data_extraction/Pidgin/Nigerian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Pidgin/Nigerian/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Nigerian Pidgin (Q33655) verbs. +# All Nigerian Pidgin (Q33655) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 3af24210b..89239c167 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Polish (Q809) nouns, their plurals and their genders in the given cases. +# All Polish (Q809) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q809 ; - wikibase:lexicalCategory ?nounTypes . + wikibase:lexicalCategory wd:Q1084 . # MARK: Nominative Singular @@ -34,9 +32,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..742c8458f --- /dev/null +++ b/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,43 @@ +# tool: scribe-data +# All Polish (Q809) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?nomPlural + ?gender + +WHERE { + ?lexeme dct:language wd:Q809 ; + wikibase:lexicalCategory wd:Q147276 . + + # MARK: Nominative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomSingularForm . + ?nomSingularForm ontolex:representation ?nomSingular ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q110786 ; + } . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 c6a0166ae..2778b92d3 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Polish (Q809) verbs and the currently implemented tenses for each. +# All Polish (Q809) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 705ae0cb0..bdc75f5b5 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Portuguese (Q5146) nouns, their plurals and their genders. +# All Portuguese (Q5146) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q5146 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..be44cb1e1 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,34 @@ +# tool: scribe-data +# All Portuguese (Q5146) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + +WHERE { + ?lexeme dct:language wd:Q5146 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 ba45e4ff8..4a8585380 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Portuguese (Q5146) verbs and the currently implemented tenses for each. +# All Portuguese (Q5146) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql index 3fa164731..8883683db 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Gurmukhi (from Punjabi Q58635) nouns, their plurals and their genders. +# All Gurmukhi (from Punjabi Q58635) nouns and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "pa" to select Gurmukhi words. @@ -11,10 +11,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q58635 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . FILTER(lang(?singular) = "pa") @@ -31,9 +29,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..b4c0eb8a7 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,38 @@ +# tool: scribe-data +# All Gurmukhi (from Punjabi Q58635) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +# Note: We need to filter for "pa" to select Gurmukhi words. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + +WHERE { + ?lexeme dct:language wd:Q58635 ; + wikibase:lexicalCategory wd:Q147276; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "pa") + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + FILTER(lang(?plural) = "pa") + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/verbs/query_verbs.sparql index 99999e0b0..6718cc9be 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Gurmukhi (from Punjabi Q58635) verbs. +# All Gurmukhi (from Punjabi Q58635) verbs and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "pa" to select Gurmukhi words. diff --git a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql index a930fb16f..f93513ae4 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Shahmukhi (from Punjabi Q58635) nouns, their plurals and their genders. +# All Shahmukhi (from Punjabi Q58635) nouns and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "pnb" to select Shahmukhi words. @@ -12,10 +12,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q58635 ; # Punjabi (Q58635) - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . FILTER(lang(?singular) = "pnb") @@ -32,9 +30,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..407d15ba8 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,39 @@ +# tool: scribe-data +# All Shahmukhi (from Punjabi Q58635) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +# Note: We need to filter for "pnb" to select Shahmukhi words. + +SELECT + ?lexeme + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + +WHERE { + ?lexeme dct:language wd:Q58635 ; # Punjabi (Q58635) + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "pnb") + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + FILTER(lang(?plural) = "pnb") + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/verbs/query_verbs.sparql index 4d7de132f..7747810f8 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Shahmukhi (from Punjabi Q58635) verbs. +# All Shahmukhi (from Punjabi Q58635) verbs and the given forms. # Enter this query at https://query.wikidata.org/. # Note: We need to filter for "pnb" to select Shahmukhi words. diff --git a/src/scribe_data/language_data_extraction/Russian/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Russian/adverbs/query_adverbs.sparql index 7f9ccd674..a59fe2626 100644 --- a/src/scribe_data/language_data_extraction/Russian/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Russian/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Russian (Q7737) adverbs. +# All Russian (Q7737) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 e2c6b7b98..e89ae689d 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Russian (Q7737) nouns, their plurals and their genders in the given cases. +# All Russian (Q7737) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q7737 ; - wikibase:lexicalCategory ?nounTypes . + wikibase:lexicalCategory wd:Q1084 . # MARK: Nominative Singular @@ -34,9 +32,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { 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 f9fcf1124..47af504cb 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Russian (Q7737) prepositions and their corresponding cases. +# All Russian (Q7737) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..148e57585 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,43 @@ +# tool: scribe-data +# All Russian (Q7737) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?nomPlural + ?gender + +WHERE { + ?lexeme dct:language wd:Q7737 ; + wikibase:lexicalCategory wd:Q147276 . + + # MARK: Nominative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomSingularForm . + ?nomSingularForm ontolex:representation ?nomSingular ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q110786 ; + } . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 7ba7450f8..04b475c46 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Russian (Q7737) verbs and the currently implemented tenses for each. +# All Russian (Q7737) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives.sparql new file mode 100644 index 000000000..94b9a73fb --- /dev/null +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Slovak (Q9058) adjectives and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?adjective + +WHERE { + ?lexeme dct:language wd:Q9058 ; + wikibase:lexicalCategory wd:Q34698 ; + wikibase:lemma ?adjective . +} diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql index a2b92dbae..010505fd3 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adjectives in the given cases. +# All Slovak (Q9058) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql index 39d294eab..e3c8ebc04 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adjectives in the given cases. +# All Slovak (Q9058) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql index d18cf3bea..04f56c2e4 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adjectives in the given cases. +# All Slovak (Q9058) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql index 13d07e0dc..1ffb90f92 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adjectives in the given cases. +# All Slovak (Q9058) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql index 10bae4e4c..278de2670 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adjectives in the given cases. +# All Slovak (Q9058) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql index 68b50a4c6..ce0a3e5b5 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adjectives in the given cases. +# All Slovak (Q9058) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Slovak/adverbs/query_adverbs.sparql index e123b7cc9..41354d1d4 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) adverbs. +# All Slovak (Q9058) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 2e279a8eb..f98244342 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) nouns, their plurals and their genders for the given cases. +# All Slovak (Q9058) nouns, their plurals and the given forms.s for the given cases. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9058 ; - wikibase:lexicalCategory ?nounTypes . + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nomSingular . # MARK: Nominative Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { 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 d8337322b..1e9a68fe5 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) prepositions and their corresponding cases. +# All Slovak (Q9058) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..22125183e --- /dev/null +++ b/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,26 @@ +# tool: scribe-data +# All Slovak (Q9058) nouns, their plurals and the given forms.s for the given cases. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + ?nomPlural + ?gender + +WHERE { + ?lexeme dct:language wd:Q9058 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 51af05839..f23dc1d2b 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Slovak (Q9058) verbs and the currently implemented tenses for each. +# All Slovak (Q9058) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql index c0984a001..e7420962e 100644 --- a/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Spanish (Q1321) adjectives. +# All Spanish (Q1321) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Spanish/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Spanish/adverbs/query_adverbs.sparql index 860df3732..2abb5033f 100644 --- a/src/scribe_data/language_data_extraction/Spanish/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Spanish (Q1321) adverbs. +# All Spanish (Q1321) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 35d717705..f8cf5030f 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 @@ -1,7 +1,6 @@ # tool: scribe-data -# All Spanish (Q1321) nouns, their plurals and their genders. +# All Spanish (Q1321) nouns and the given forms. # Enter this query at https://query.wikidata.org/. -# Note: Spansih sometimes has masculine and feminine versions on a single lexeme. SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) @@ -14,10 +13,8 @@ SELECT ?femPlural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q1321 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?singular . # MARK: Plural @@ -32,9 +29,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . # Spansih sometimes has masculine and feminine versions on a single lexeme. diff --git a/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql index cb4225d00..9339cfed3 100644 --- a/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Spanish (Q1321) prepositions. +# All Spanish (Q1321) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..8369bd668 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,66 @@ +# tool: scribe-data +# All Spanish (Q1321) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + ?gender + ?masSingular + ?masPlural + ?femSingular + ?femPlural + +WHERE { + ?lexeme dct:language wd:Q1321 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?singular . + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + # Spansih sometimes has masculine and feminine versions on a single lexeme. + + # MARK: masculine singular and plural forms. + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masSingularForm . + ?masSingularForm ontolex:representation ?masSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786 ; + } . + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masPluralForm . + ?masPluralForm ontolex:representation ?masPlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786 ; + } . + + # MARK: feminine singular and plural forms. + OPTIONAL { + ?lexeme ontolex:lexicalForm ?femSingularForm . + ?femSingularForm ontolex:representation ?femSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 ; + } . + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?femPluralForm . + ?femPluralForm ontolex:representation ?femPlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 ; + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 67e3f2bb6..8af501db0 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Spanish (Q1321) verbs and a portion of the currently implemented tenses for each. +# All Spanish (Q1321) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 cfda604f6..a7c29372e 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Spanish (Q1321) verbs and a portion of the currently implemented tenses for each. +# All Spanish (Q1321) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 bb3757b7f..0418daa57 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Spanish (Q1321) verbs and a portion of the currently implemented tenses for each. +# All Spanish (Q1321) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Swahili/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Swahili/adjectives/query_adjectives.sparql index c59f2c88f..4e2073b48 100644 --- a/src/scribe_data/language_data_extraction/Swahili/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Swahili/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swahili (Q7838) adjectives. +# All Swahili (Q7838) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Swahili/adverbs/query_adverb.sparql b/src/scribe_data/language_data_extraction/Swahili/adverbs/query_adverb.sparql index 85792641e..eb554ba32 100644 --- a/src/scribe_data/language_data_extraction/Swahili/adverbs/query_adverb.sparql +++ b/src/scribe_data/language_data_extraction/Swahili/adverbs/query_adverb.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swahili (Q7838) adverbs. +# All Swahili (Q7838) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql index fb7055fb0..6ccd11890 100644 --- a/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swahili (Q7838) nouns and their plurals. +# All Swahili (Q7838) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Swahili/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Swahili/prepositions/query_prepositions.sparql index 561ae67cc..b34036b44 100644 --- a/src/scribe_data/language_data_extraction/Swahili/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Swahili/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swahili (Q7838) prepositions. +# All Swahili (Q7838) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Swahili/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Swahili/verbs/query_verbs.sparql index eaec7fcc6..417ebc89d 100644 --- a/src/scribe_data/language_data_extraction/Swahili/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Swahili/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swahili (Q7838) verbs. +# All Swahili (Q7838) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Swedish/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Swedish/adverbs/query_adverbs.sparql index b4e246d71..d7a11812d 100644 --- a/src/scribe_data/language_data_extraction/Swedish/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Swedish/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swedish (Q9027) adverbs. +# All Swedish (Q9027) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 6e9895b3b..0627b2b1c 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swedish (Q9027) nouns with their plural, gender and genitive forms. +# All Swedish (Q9027) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -15,10 +15,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9027 ; - wikibase:lexicalCategory ?nounTypes . + wikibase:lexicalCategory wd:Q1084 . # MARK: Indefinite @@ -72,9 +70,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..d2a2bfc88 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,25 @@ +# tool: scribe-data +# All Swedish (Q9027) proper nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + ?gender + +WHERE { + ?lexeme dct:language wd:Q9027 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} 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 c0f225b24..3e39928e5 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Swedish (Q9027) verbs and the currently implemented tenses for each. +# All Swedish (Q9027) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Tajik/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Tajik/adverbs/query_adverbs.sparql index b0d714b01..45a404ac0 100644 --- a/src/scribe_data/language_data_extraction/Tajik/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Tajik/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tajik (Q9260) adverbs. +# All Tajik (Q9260) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT DISTINCT diff --git a/src/scribe_data/language_data_extraction/Tajik/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Tajik/nouns/query_nouns.sparql index 44b5f0aae..27567056c 100644 --- a/src/scribe_data/language_data_extraction/Tajik/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Tajik/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tajik (Q9260) nouns. +# All Tajik (Q9260) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,9 +7,7 @@ SELECT ?noun WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q9260 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . } diff --git a/src/scribe_data/language_data_extraction/Tajik/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Tajik/prepositions/query_prepositions.sparql index e5313feec..78e3fb418 100644 --- a/src/scribe_data/language_data_extraction/Tajik/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Tajik/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tajik (Q9260) prepositions. +# All Tajik (Q9260) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Tajik/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Tajik/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..914dd2499 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Tajik/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Tajik (Q9260) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q9260 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} diff --git a/src/scribe_data/language_data_extraction/Tajik/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Tajik/verbs/query_verbs.sparql index f74e3536b..35edf030c 100644 --- a/src/scribe_data/language_data_extraction/Tajik/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Tajik/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tajik (Q9260) verbs. +# All Tajik (Q9260) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql index 059f1ce28..d88c6a95d 100644 --- a/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tamil (Q5885) adjectives. +# All Tamil (Q5885) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Tamil/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Tamil/adverbs/query_adverbs.sparql index 72e2a4a96..563b463a6 100644 --- a/src/scribe_data/language_data_extraction/Tamil/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tamil (Q5885) adverbs in the given case. +# All Tamil (Q5885) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT 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 587628104..28b14900e 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 @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tamil (Q5885) nouns and their plurals for the given cases. +# All Tamil (Q5885) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -8,10 +8,8 @@ SELECT ?nomPlural WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q5885 ; - wikibase:lexicalCategory ?nounTypes . + wikibase:lexicalCategory wd:Q1084 . # MARK: Nominative Singular diff --git a/src/scribe_data/language_data_extraction/Tamil/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Tamil/prepositions/query_prepositions.sparql index f7d9ad3d0..b667b252c 100644 --- a/src/scribe_data/language_data_extraction/Tamil/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tamil (Q5885) prepositions. +# All Tamil (Q5885) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..6c524fe7b --- /dev/null +++ b/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,23 @@ +# tool: scribe-data +# All Tamil (Q5885) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + ?nomPlural + +WHERE { + ?lexeme dct:language wd:Q5885 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 ; + wikibase:grammaticalFeature wd:Q146786 ; + } . +} diff --git a/src/scribe_data/language_data_extraction/Tamil/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Tamil/verbs/query_verbs.sparql index e0ff43fbf..530d176b2 100644 --- a/src/scribe_data/language_data_extraction/Tamil/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Tamil (Q5885) verbs. +# All Tamil (Q5885) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql index 05508ca96..7df0d9144 100644 --- a/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Ukrainian (Q8798) nouns, their plurals and their genders for the given cases. +# All Ukrainian (Q8798) nouns, their plurals and the given forms.s for the given cases. # Enter this query at https://query.wikidata.org/. SELECT @@ -9,10 +9,8 @@ SELECT ?gender WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q8798 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nomSingular . # MARK: Nominative Plural @@ -27,9 +25,6 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - FILTER NOT EXISTS { - ?lexeme wdt:P31 wd:Q202444 . # not for given names - } } . SERVICE wikibase:label { diff --git a/src/scribe_data/language_data_extraction/Ukrainian/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Ukrainian/prepositions/query_prepositions.sparql index 1434ccb76..eab5abb6e 100644 --- a/src/scribe_data/language_data_extraction/Ukrainian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Ukrainian/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Ukrainian (Q8798) prepositions and their corresponding cases. +# All Ukrainian (Q8798) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..460eb6182 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,34 @@ +# tool: scribe-data +# All Ukrainian (Q8798) nouns, their plurals and the given forms.s for the given cases. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?nomSingular + ?nomPlural + ?gender + +WHERE { + ?lexeme dct:language wd:Q8798 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?nomSingular . + + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nomPluralForm . + ?nomPluralForm ontolex:representation ?nomPlural ; + wikibase:grammaticalFeature wd:Q131105 , wd:Q146786 ; + } . + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?nounGender rdfs:label ?gender . + } +} diff --git a/src/scribe_data/language_data_extraction/Ukrainian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Ukrainian/verbs/query_verbs.sparql index 87dedb6e7..b69f32b15 100644 --- a/src/scribe_data/language_data_extraction/Ukrainian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Ukrainian/verbs/query_verbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Ukrainian (Q8798) verbs and the currently implemented tenses for each. +# All Ukrainian (Q8798) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Yoruba/adjectives/query_adjective.sparql b/src/scribe_data/language_data_extraction/Yoruba/adjectives/query_adjective.sparql index 4f64ba2c1..1fab20b8d 100644 --- a/src/scribe_data/language_data_extraction/Yoruba/adjectives/query_adjective.sparql +++ b/src/scribe_data/language_data_extraction/Yoruba/adjectives/query_adjective.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Yoruba (Q34311) adjectives. +# All Yoruba (Q34311) adjectives and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Yoruba/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Yoruba/adverbs/query_adverbs.sparql index ad6db4eff..634c76888 100644 --- a/src/scribe_data/language_data_extraction/Yoruba/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Yoruba/adverbs/query_adverbs.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Yoruba (Q34311) adverbs. +# All Yoruba (Q34311) adverbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Yoruba/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Yoruba/nouns/query_nouns.sparql index 44a8f48fa..d702bbbfd 100644 --- a/src/scribe_data/language_data_extraction/Yoruba/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Yoruba/nouns/query_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Yoruba (Q34311) nouns. +# All Yoruba (Q34311) nouns and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -7,9 +7,7 @@ SELECT ?noun WHERE { - VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and proper nouns - ?lexeme dct:language wd:Q34311 ; - wikibase:lexicalCategory ?nounTypes ; + wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . } diff --git a/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql index ea0e9b001..7ea1e0882 100644 --- a/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Yoruba (Q34311) prepositions. +# All Yoruba (Q34311) prepositions and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/src/scribe_data/language_data_extraction/Yoruba/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Yoruba/proper_nouns/query_proper_nouns.sparql new file mode 100644 index 000000000..4a55b488c --- /dev/null +++ b/src/scribe_data/language_data_extraction/Yoruba/proper_nouns/query_proper_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Yoruba (Q34311) nouns and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?properNoun + +WHERE { + ?lexeme dct:language wd:Q34311 ; + wikibase:lexicalCategory wd:Q147276 ; + wikibase:lemma ?properNoun . +} diff --git a/src/scribe_data/language_data_extraction/Yoruba/verbs/query_verb.sparql b/src/scribe_data/language_data_extraction/Yoruba/verbs/query_verb.sparql index 1c65d2f47..2e3b48604 100644 --- a/src/scribe_data/language_data_extraction/Yoruba/verbs/query_verb.sparql +++ b/src/scribe_data/language_data_extraction/Yoruba/verbs/query_verb.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Yoruba (Q34311) verbs. +# All Yoruba (Q34311) verbs and the given forms. # Enter this query at https://query.wikidata.org/. SELECT diff --git a/tests/cli/test_list.py b/tests/cli/test_list.py index def230511..03172e077 100644 --- a/tests/cli/test_list.py +++ b/tests/cli/test_list.py @@ -57,6 +57,7 @@ def test_list_languages(self, mock_print): @patch("builtins.print") def test_list_data_types_all_languages(self, mock_print): list_data_types() + print(mock_print.mock_calls) expected_calls = [ call(), call("Available data types: All languages"), @@ -66,6 +67,7 @@ def test_list_data_types_all_languages(self, mock_print): call("emoji-keywords"), call("nouns"), call("prepositions"), + call("proper-nouns"), call("verbs"), call("-----------------------------------"), call(), @@ -75,6 +77,7 @@ def test_list_data_types_all_languages(self, mock_print): @patch("builtins.print") def test_list_data_types_specific_language(self, mock_print): list_data_types("English") + expected_calls = [ call(), call("Available data types: English"), @@ -83,6 +86,7 @@ def test_list_data_types_specific_language(self, mock_print): call("adverbs"), call("emoji-keywords"), call("nouns"), + call("proper-nouns"), call("verbs"), call("-----------------------------"), call(),