From db1380cd9aa793a45d8f6f5e1ddea0f8da31b152 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Tue, 19 Mar 2024 08:33:11 +0600 Subject: [PATCH 1/7] adding lexemes --- src/scribe_data/check_language_data.sparql | 4 +++- src/scribe_data/extract_transform/query_profanity.sparql | 4 +++- .../extract_transform/query_words_to_translate.sparql | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/scribe_data/check_language_data.sparql b/src/scribe_data/check_language_data.sparql index c60961766..a4563f5f2 100644 --- a/src/scribe_data/check_language_data.sparql +++ b/src/scribe_data/check_language_data.sparql @@ -1,7 +1,9 @@ # This query is to check the totals of a given language on Wikidata. # Enter this query at https://query.wikidata.org/ and change the language where directed. -SELECT ?wordCategory (COUNT(?wordCategory) as ?wordCategoryCounts) WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?wordCategory (COUNT(?wordCategory) as ?wordCategoryCounts) WHERE { # Enter language QID here. # You can find the QID of the language you want to check by searching for it on https://www.wikidata.org/. FILTER( ?language = wd:Q1860 ) diff --git a/src/scribe_data/extract_transform/query_profanity.sparql b/src/scribe_data/extract_transform/query_profanity.sparql index e53ec7ee5..55487302a 100644 --- a/src/scribe_data/extract_transform/query_profanity.sparql +++ b/src/scribe_data/extract_transform/query_profanity.sparql @@ -1,7 +1,9 @@ # Queries all profane words from a given language to be removed from autosuggest options. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lemma +SELECT DISTINCT + (REPLACE(STR(?lexemeId), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?lemma WHERE { ?lexemeId dct:language wd:LANGUAGE_QID; # replace language qid here wikibase:lemma ?lemma; diff --git a/src/scribe_data/extract_transform/query_words_to_translate.sparql b/src/scribe_data/extract_transform/query_words_to_translate.sparql index e5758ff4c..4783098e2 100644 --- a/src/scribe_data/extract_transform/query_words_to_translate.sparql +++ b/src/scribe_data/extract_transform/query_words_to_translate.sparql @@ -7,7 +7,9 @@ # Words with multiple translations could also prompt the keyboard to be replaced with the options. # For now words are querried and machine translated using 🤗 Transformers. -SELECT ?word WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?word WHERE { # We want nouns, proper nouns, pronouns, personal pronouns, verbs, adjectives, adverbs, prepositions, postpositions, conjunctions and articles. VALUES ?wordCategories { wd:Q1084 wd:Q147276 wd:Q36224 wd:Q468801 wd:Q24905 wd:Q34698 wd:Q380057 wd:Q4833830 wd:Q161873 wd:Q191536 wd:Q103184 } ?lexeme a ontolex:LexicalEntry ; From 6dc50aeb2624780b4e54b09e612f7c47b3cd4483 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Wed, 20 Mar 2024 07:33:09 +0600 Subject: [PATCH 2/7] update till danish --- src/scribe_data/check_language_data.sparql | 4 +--- .../languages/Arabic/nouns/query_nouns.sparql | 6 ++++-- .../languages/Arabic/verbs/query_verbs.sparql | 5 ++++- .../languages/Basque/nouns/query_nouns.sparql | 6 ++++-- .../languages/Basque/verbs/query_verbs.sparql | 5 ++++- .../languages/Bengali/nouns/query_nouns.sparql | 6 ++++-- .../languages/Bengali/verbs/query_verbs.sparql | 5 ++++- .../languages/Bokm\303\245l/nouns/query_nouns.sparql" | 5 ++++- .../languages/Bokm\303\245l/verbs/query_verbs.sparql" | 5 ++++- .../languages/Czech/nouns/query_nouns.sparql | 8 +++++--- .../Czech/prepositions/query_prepositions.sparql | 6 ++++-- .../languages/Czech/verbs/query_verbs.sparql | 4 +++- .../languages/Danish/nouns/query_nouns.sparql | 6 ++++-- .../languages/Danish/verbs/query_verbs.sparql | 4 +++- src/scribe_data/extract_transform/query_profanity.sparql | 4 +--- .../extract_transform/query_words_to_translate.sparql | 4 +--- 16 files changed, 54 insertions(+), 29 deletions(-) diff --git a/src/scribe_data/check_language_data.sparql b/src/scribe_data/check_language_data.sparql index a4563f5f2..c60961766 100644 --- a/src/scribe_data/check_language_data.sparql +++ b/src/scribe_data/check_language_data.sparql @@ -1,9 +1,7 @@ # This query is to check the totals of a given language on Wikidata. # Enter this query at https://query.wikidata.org/ and change the language where directed. -SELECT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?wordCategory (COUNT(?wordCategory) as ?wordCategoryCounts) WHERE { +SELECT ?wordCategory (COUNT(?wordCategory) as ?wordCategoryCounts) WHERE { # Enter language QID here. # You can find the QID of the language you want to check by searching for it on https://www.wikidata.org/. FILTER( ?language = wd:Q1860 ) diff --git a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql index 408ef4153..be2b2453a 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql @@ -1,8 +1,10 @@ # All Arabic (Q13955) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { - +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?lexeme ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql index 05fff0705..1c9996870 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Arabic (Q13955) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?lexeme ?verb +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q13955 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql index 416fc995a..2becbb9c9 100644 --- a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql @@ -1,8 +1,10 @@ # All Basque (Q8752) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun WHERE { - +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql index f9269f3fa..cf3693560 100644 --- a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Basque (Q8752) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?lexeme ?verb +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8752 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql index 1ab90f5c4..d47dac855 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql @@ -1,8 +1,10 @@ # All Bengali (Q9610) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { - +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql index 28e7c23ce..13f8f3910 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Bengali (Q9610) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?verb +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9610 ; wikibase:lexicalCategory wd:Q24905 ; diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" index 4aebd7dba..660232fad 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Bokmål (Q25167) rather than Nynorsk (Q25164). -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?singular ?plural ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" index bbe874f3c..2810a5a04 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Bokmål (Q25167) rather than Nynorsk (Q25164). -SELECT ?lexeme ?infinitive WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?infinitive +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q25167 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql index 72baa22b9..47aa328ed 100644 --- a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql @@ -1,8 +1,10 @@ -# All Czeck (Q9056) nouns, their plural and their gender. +# All Czech (Q9056) nouns, their plural, and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { - +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?singular ?plural ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql index 3f0c52438..8c02aaae9 100644 --- a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql @@ -1,8 +1,10 @@ # All Czech (Q9056) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?preposition ?case WHERE { - +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?preposition ?case +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q4833830 ; diff --git a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql index 9fa771e09..a0525fc64 100644 --- a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql @@ -1,7 +1,9 @@ # All Czech (Q9056) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?infinitive ?tenseLabel ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql index 8ff2cb9e1..5a10b1404 100644 --- a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql @@ -1,8 +1,10 @@ # All Danish (Q9035) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { - +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?singular ?plural ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql index c6a6e1749..958f6b872 100644 --- a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql @@ -1,7 +1,9 @@ # All Danish (Q9035) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/query_profanity.sparql b/src/scribe_data/extract_transform/query_profanity.sparql index 55487302a..e53ec7ee5 100644 --- a/src/scribe_data/extract_transform/query_profanity.sparql +++ b/src/scribe_data/extract_transform/query_profanity.sparql @@ -1,9 +1,7 @@ # Queries all profane words from a given language to be removed from autosuggest options. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT - (REPLACE(STR(?lexemeId), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?lemma +SELECT DISTINCT ?lemma WHERE { ?lexemeId dct:language wd:LANGUAGE_QID; # replace language qid here wikibase:lemma ?lemma; diff --git a/src/scribe_data/extract_transform/query_words_to_translate.sparql b/src/scribe_data/extract_transform/query_words_to_translate.sparql index 4783098e2..e5758ff4c 100644 --- a/src/scribe_data/extract_transform/query_words_to_translate.sparql +++ b/src/scribe_data/extract_transform/query_words_to_translate.sparql @@ -7,9 +7,7 @@ # Words with multiple translations could also prompt the keyboard to be replaced with the options. # For now words are querried and machine translated using 🤗 Transformers. -SELECT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?word WHERE { +SELECT ?word WHERE { # We want nouns, proper nouns, pronouns, personal pronouns, verbs, adjectives, adverbs, prepositions, postpositions, conjunctions and articles. VALUES ?wordCategories { wd:Q1084 wd:Q147276 wd:Q36224 wd:Q468801 wd:Q24905 wd:Q34698 wd:Q380057 wd:Q4833830 wd:Q161873 wd:Q191536 wd:Q103184 } ?lexeme a ontolex:LexicalEntry ; From 96ce930e0d48139bdd47acc20f228511a5eb11ed Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Wed, 20 Mar 2024 07:54:00 +0600 Subject: [PATCH 3/7] update the rest --- .../languages/English/nouns/query_nouns.sparql | 5 ++++- .../languages/English/verbs/query_verbs.sparql | 5 ++++- .../languages/Esperanto/nouns/query_nouns.sparql | 5 ++++- .../languages/Esperanto/verbs/query_verbs.sparql | 5 ++++- .../languages/Estonian/nouns/query_nouns.sparql | 5 ++++- .../Estonian/prepositions/query_prepositions.sparql | 5 ++++- .../languages/Estonian/verbs/query_verbs.sparql | 5 ++++- .../languages/Finnish/nouns/query_nouns.sparql | 5 ++++- .../languages/Finnish/verbs/query_verbs.sparql | 5 ++++- .../languages/French/nouns/query_nouns.sparql | 5 ++++- .../languages/French/verbs/query_verbs_1.sparql | 2 ++ .../languages/French/verbs/query_verbs_2.sparql | 2 ++ .../languages/German/nouns/query_nouns.sparql | 5 ++++- .../languages/German/prepositions/query_prepositions.sparql | 5 ++++- .../languages/German/verbs/query_verbs_1.sparql | 2 ++ .../languages/German/verbs/query_verbs_2.sparql | 2 ++ .../languages/Greek/nouns/query_nouns.sparql | 5 ++++- .../languages/Hausa/nouns/query_nouns.sparql | 5 ++++- .../languages/Hausa/verbs/query_verbs.sparql | 5 ++++- .../languages/Hebrew/nouns/query_nouns.sparql | 5 ++++- .../languages/Hebrew/verbs/query_verbs.sparql | 5 ++++- .../languages/Hindi/nouns/query_nouns.sparql | 5 ++++- .../languages/Hindi/verbs/query_verbs.sparql | 5 ++++- .../languages/Indonesian/nouns/query_nouns.sparql | 5 ++++- .../languages/Indonesian/verbs/query_verbs.sparql | 5 ++++- .../languages/Italian/nouns/query_nouns.sparql | 5 ++++- .../languages/Italian/verbs/query_verbs_1.sparql | 2 ++ .../languages/Italian/verbs/query_verbs_2.sparql | 2 ++ .../languages/Japanese/nouns/query_nouns.sparql | 5 ++++- .../languages/Japanese/verbs/query_verbs.sparql | 5 ++++- .../languages/Kurmanji/nouns/query_nouns.sparql | 5 ++++- .../languages/Kurmanji/verbs/query_verbs.sparql | 5 ++++- .../languages/Latin/nouns/query_nouns.sparql | 5 ++++- .../languages/Latin/verbs/query_verbs.sparql | 5 ++++- .../languages/Malay/nouns/query_nouns.sparql | 5 ++++- .../languages/Malay/verbs/query_verbs.sparql | 5 ++++- .../languages/Malayalam/nouns/query_nouns.sparql | 5 ++++- .../languages/Malayalam/verbs/query_verbs.sparql | 5 ++++- .../languages/Mandarin/nouns/query_nouns.sparql | 5 ++++- .../languages/Mandarin/verbs/query_verbs.sparql | 5 ++++- .../languages/Nynorsk/nouns/query_nouns.sparql | 5 ++++- .../languages/Nynorsk/verbs/query_verbs.sparql | 5 ++++- .../languages/Polish/nouns/query_nouns.sparql | 5 ++++- .../languages/Polish/verbs/query_verbs.sparql | 5 ++++- .../languages/Portuguese/nouns/query_nouns.sparql | 5 ++++- .../languages/Portuguese/verbs/query_verbs.sparql | 2 ++ .../languages/Russian/nouns/query_nouns.sparql | 5 ++++- .../languages/Russian/prepositions/query_prepositions.sparql | 5 ++++- .../languages/Russian/verbs/query_verbs.sparql | 2 ++ .../languages/Slovak/nouns/query_nouns.sparql | 5 ++++- .../languages/Slovak/prepositions/query_prepositions.sparql | 5 ++++- .../languages/Slovak/verbs/query_verbs.sparql | 5 ++++- .../languages/Spanish/nouns/query_nouns.sparql | 5 ++++- .../languages/Spanish/verbs/query_verbs_1.sparql | 2 ++ .../languages/Spanish/verbs/query_verbs_2.sparql | 2 ++ .../languages/Spanish/verbs/query_verbs_3.sparql | 2 ++ .../languages/Swedish/nouns/query_nouns.sparql | 2 ++ .../languages/Swedish/verbs/query_verbs.sparql | 2 ++ .../languages/Tajik/nouns/query_nouns.sparql | 5 ++++- .../languages/Tajik/verbs/query_verbs.sparql | 5 ++++- .../languages/Tamil/nouns/query_nouns.sparql | 5 ++++- .../languages/Tamil/verbs/query_verbs.sparql | 5 ++++- .../languages/Ukranian/nouns/query_nouns.sparql | 5 ++++- .../Ukranian/prepositions/query_prepositions.sparql | 5 ++++- .../languages/Ukranian/verbs/query_verbs.sparql | 5 ++++- .../languages/Urdu/nouns/query_nouns.sparql | 5 ++++- .../languages/Urdu/verbs/query_verbs.sparql | 5 ++++- 67 files changed, 242 insertions(+), 54 deletions(-) diff --git a/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql index e3c1396a8..791f35747 100644 --- a/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All English (Q1860) nouns and their plural. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql index 23796520b..383e90760 100644 --- a/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All English (Q1860) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC +?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE { # Infinitive (required) ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1860 ; diff --git a/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql index c76a0fb55..ffa9c5a80 100644 --- a/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Esperanto (Q143) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql index 8b6211154..f7921d7d3 100644 --- a/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Esperanto (Q143) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql index 6ae5ccc97..fdfd79c72 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Estonian (Q9072) nouns and their plural. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql index e7cce590c..06329b54f 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note that this query includes postpositions that are also used in Estonian. -SELECT ?lexeme ?preposition ?case WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?preposition ?case WHERE { # Prepositions and postpositions. VALUES ?PrePostPositions { wd:Q4833830 wd:Q161873 } diff --git a/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql index 1a7a5aea6..84bf44796 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Estonian (Q9072) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9072 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql index b63fe85fd..a8b1e7bd6 100644 --- a/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Finnish (Q1412) nouns and their plural. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?singular ?plural WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql index 2649a57fe..00daded71 100644 --- a/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Finnish (Q1412) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1412 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql index 08d76931a..3ae1e7bdb 100644 --- a/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All French (Q150) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql index 47d6e30ea..90de956b1 100644 --- a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql index 9299e8070..fc9cff8b9 100644 --- a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP diff --git a/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql index cae6e4a6a..45ec548c9 100644 --- a/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All German (Q188) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql index 679d60ded..5da7bb2c1 100644 --- a/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql @@ -1,7 +1,10 @@ # All German (Q188) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT ?preposition ?case WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q188 ; diff --git a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql index 18f10fa50..ebe2ca73b 100644 --- a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql @@ -3,6 +3,8 @@ # Not SELECT DISTINCT as we want to get verbs with both sein and haben as auxiliaries SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql index ece33eb03..ed43fdda5 100644 --- a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql @@ -3,6 +3,8 @@ # Not SELECT DISTINCT as we want to get verbs with both sein and haben as auxiliaries SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?pastParticiple ?auxiliaryVerb ?pretFPS ?pretSPS ?pretTPS ?pretFPP ?pretSPP ?pretTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql index b4b125ea9..11c91e9bb 100644 --- a/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Greek (Q36510) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql index 5a3388acd..f7e57e6ce 100644 --- a/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Hausa (Q56475) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql index 134de743a..6907ce6f0 100644 --- a/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Hausa (Q56475) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q56475 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql index fe2dcfdcc..61c09e4c9 100644 --- a/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Hebrew (Q9288) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql index 1c8606635..bec4671b4 100644 --- a/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Hebrew (Q9288) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9288 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql index 0d2261a3d..98636045a 100644 --- a/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "hi" to remove Urdu (ur) words. -SELECT DISTINCT ?noun ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql index 782abecf0..b6f8b9553 100644 --- a/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "hi" to remove Urdu (ur) words. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql index b4fd1e1f0..09d78f1f7 100644 --- a/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Indonesian (Q9240) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql index f07d40d77..9ec99e4c9 100644 --- a/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Indonesian (Q9240) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9240 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql index fe27a18b6..ee103fe5a 100644 --- a/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Italian (Q652) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql index d71deb170..ee395d92c 100644 --- a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql index 9f1ac77c6..e0b964849 100644 --- a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql index 263f58734..bb27f1ae4 100644 --- a/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Japanese (Q5287) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql index ab9ee1b7d..9d7e2b986 100644 --- a/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Japanese (Q5287) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5287 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql index 99563381d..62e8a97c7 100644 --- a/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Kurmanji (Q36163) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql index 63bad7664..4d2dc9c5e 100644 --- a/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Kurmanji (Q36163) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql index 6308bdeb5..85990d2ab 100644 --- a/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Latin (Q397) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql index 83ecb447a..3859741bd 100644 --- a/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Latin (Q397) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q397 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql index ff23ae32b..a1e0e01f8 100644 --- a/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Malay (Q9237) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql index 003c37088..b3abb3e4e 100644 --- a/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Malay (Q9237) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9237 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql index b8ff3913b..2f253ee32 100644 --- a/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Malayalam (Q36236) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql index ba73a383d..c2234c0d8 100644 --- a/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Malayalam (Q36236) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q36236 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql index 3741b6542..0f573a1e1 100644 --- a/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Mandarin Chinese (Q727694) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql index 312e29511..69a891a07 100644 --- a/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Mandarin Chinese (Q727694) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q727694 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql index 23c5452cd..a97e9f8b8 100644 --- a/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Nynorsk (Q25164) rather than Bokmål (Q25167). -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql index 89144d774..c7bc7ff13 100644 --- a/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Nynorsk (Q25164) rather than Bokmål (Q25167). -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql index 75baed0ae..9ac0b505b 100644 --- a/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Polish (Q809) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql index 0da9a918d..aad9d0974 100644 --- a/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Polish (Q809) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q809 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql index 2adf6c5fc..0c3ce650d 100644 --- a/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Portuguese (Q5146) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql index d765fa32d..7669fcc44 100644 --- a/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql index 53ec634e7..45abcf772 100644 --- a/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Russian (Q7737) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql index 1e1273176..5cb6a5879 100644 --- a/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql @@ -1,7 +1,10 @@ # All Russian (Q7737) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT ?preposition ?case WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q7737 ; diff --git a/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql index 9d822cded..06c53ef39 100644 --- a/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql index 544067836..8374d0044 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Slovak (Q9058) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql index 227be01c1..052ae1921 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql @@ -1,7 +1,10 @@ # All Slovak (Q9058) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?preposition ?case WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9058 ; diff --git a/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql index 768716cf6..3d6e73cc0 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Slovak (Q9058) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9058 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql index c992ed5bc..edfdc6687 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Spanish (Q1321) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql index a254da70b..31e9e263d 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql index 1fae618ac..3b3d6be11 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?pretFPS ?pretSPS ?pretTPS ?pretFPP ?pretSPP ?pretTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql index dc7a6e5b6..9ad48f5c1 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql index f3ea774f7..5c6935387 100644 --- a/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql @@ -4,6 +4,8 @@ # Note: does not include pronouns as the query wasn't running. SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?nominativeSingular ?nominativePlural ?genitiveSingular ?genitivePlural ?gender WHERE { diff --git a/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql index 678a955e5..9dba1aad1 100644 --- a/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql @@ -2,6 +2,8 @@ # Enter this query at https://query.wikidata.org/. SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?activeInfinitive ?imperative ?activeSupine ?activePresent ?activePreterite ?passiveInfinitive ?passiveSupine diff --git a/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql index 87678cc2c..9917cd455 100644 --- a/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Tajik (Q9260) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql index 9bf3460b5..ff847b9ce 100644 --- a/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Tajik (Q9260) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9260 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql index 67087a771..71c8e360c 100644 --- a/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Tamil (Q5885) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?lexeme ?noun WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql index 6eb904158..c42e5d986 100644 --- a/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Tamil (Q5885) verbs. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5885 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql index 109588cbb..bed1a8fae 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql @@ -1,7 +1,10 @@ # All Ukrainian (Q8798) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT ?singular ?plural ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql index fe9c6383e..d34a5e516 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql @@ -1,7 +1,10 @@ # All Ukrainian (Q8798) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT ?preposition ?case WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?preposition ?case WHERE { # All German prepositions. ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql index ecca19389..25039b5c2 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql @@ -1,7 +1,10 @@ # All Ukrainian (Q8798) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT ?lexeme ?infinitive WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql index d716eaa6b..85a474d3a 100644 --- a/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "ur" to remove Hindustani (hi) words. -SELECT DISTINCT ?noun ?gender WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun ?gender WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql index 82fe04a1d..567577b11 100644 --- a/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql @@ -2,7 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "ur" to remove Hindustani (hi) words. -SELECT ?lexeme ?verb WHERE { +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ; From c919f3d8b8e0549f52c31f2e030f54e05d95c743 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Wed, 20 Mar 2024 08:02:54 +0600 Subject: [PATCH 4/7] fix small details --- .../languages/Arabic/nouns/query_nouns.sparql | 5 +++-- .../languages/Arabic/verbs/query_verbs.sparql | 5 +++-- .../languages/Basque/nouns/query_nouns.sparql | 3 ++- .../languages/Basque/verbs/query_verbs.sparql | 5 +++-- .../languages/Bengali/nouns/query_nouns.sparql | 5 +++-- .../languages/Bengali/verbs/query_verbs.sparql | 6 +++--- .../languages/Bokm\303\245l/nouns/query_nouns.sparql" | 1 + .../languages/Bokm\303\245l/verbs/query_verbs.sparql" | 3 ++- .../languages/Czech/nouns/query_nouns.sparql | 3 ++- .../languages/Czech/prepositions/query_prepositions.sparql | 1 + .../languages/Czech/verbs/query_verbs.sparql | 3 ++- .../languages/Danish/nouns/query_nouns.sparql | 7 ++++--- .../languages/Danish/verbs/query_verbs.sparql | 3 ++- 13 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql index be2b2453a..c3eed2e38 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql @@ -3,8 +3,9 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?lexeme ?noun -WHERE { + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { + # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql index 1c9996870..bb3aa6511 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql @@ -1,9 +1,10 @@ # All Arabic (Q13955) verbs. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?lexeme ?verb + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q13955 ; diff --git a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql index 2becbb9c9..8d21382f9 100644 --- a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql @@ -1,8 +1,9 @@ # All Basque (Q8752) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql index cf3693560..8e22e4548 100644 --- a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql @@ -1,9 +1,10 @@ # All Basque (Q8752) verbs. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?lexeme ?verb + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8752 ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql index d47dac855..f3ce920da 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql @@ -3,8 +3,9 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun -WHERE { + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?noun WHERE { + # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql index 13f8f3910..7e75529c6 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql @@ -1,10 +1,10 @@ # All Bengali (Q9610) verbs. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb -WHERE { + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9610 ; wikibase:lexicalCategory wd:Q24905 ; diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" index 660232fad..cfaaada5a 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" @@ -4,6 +4,7 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" index 2810a5a04..4a742236d 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" @@ -4,7 +4,8 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q25167 ; diff --git a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql index 47aa328ed..16265a935 100644 --- a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql @@ -1,8 +1,9 @@ -# All Czech (Q9056) nouns, their plural, and their gender. +# All Czeck (Q9056) nouns, their plural, and their gender. # Enter this query at https://query.wikidata.org/. SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql index 8c02aaae9..5d386ed08 100644 --- a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql @@ -3,6 +3,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql index a0525fc64..295026bd1 100644 --- a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql @@ -3,7 +3,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive ?tenseLabel + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql index 5a10b1404..544e5f28f 100644 --- a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Danish (Q9035) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender -WHERE { + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?singular ?plural ?gender WHERE { + # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql index 958f6b872..8c643deb9 100644 --- a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql @@ -3,7 +3,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { + OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q24905 . From 4fbbd08310bfab828645e23e965e9414450df34f Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Wed, 20 Mar 2024 08:04:46 +0600 Subject: [PATCH 5/7] smaller fix --- .../languages/Basque/nouns/query_nouns.sparql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql index 8d21382f9..f68979255 100644 --- a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql @@ -1,11 +1,11 @@ # All Basque (Q8752) nouns. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC - ?noun -WHERE { + ?noun WHERE { + # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; From 9bf03d77636094fc2538b2aa28beebbc20b3d1d6 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Wed, 20 Mar 2024 08:11:31 +0600 Subject: [PATCH 6/7] smallest fix --- .../languages/Arabic/nouns/query_nouns.sparql | 1 - .../languages/Arabic/verbs/query_verbs.sparql | 1 - .../languages/Basque/nouns/query_nouns.sparql | 1 - .../languages/Basque/verbs/query_verbs.sparql | 1 - .../languages/Bengali/nouns/query_nouns.sparql | 1 - .../languages/Bengali/verbs/query_verbs.sparql | 1 - .../languages/Bokm\303\245l/nouns/query_nouns.sparql" | 1 - .../languages/Bokm\303\245l/verbs/query_verbs.sparql" | 1 - .../extract_transform/languages/Czech/nouns/query_nouns.sparql | 1 - .../languages/Czech/prepositions/query_prepositions.sparql | 1 - .../extract_transform/languages/Czech/verbs/query_verbs.sparql | 1 - .../languages/Danish/nouns/query_nouns.sparql | 1 - .../languages/Danish/verbs/query_verbs.sparql | 1 - .../languages/English/nouns/query_nouns.sparql | 1 - .../languages/English/verbs/query_verbs.sparql | 3 +-- .../languages/Esperanto/nouns/query_nouns.sparql | 3 +-- .../languages/Esperanto/verbs/query_verbs.sparql | 1 - .../languages/Estonian/nouns/query_nouns.sparql | 1 - .../languages/Estonian/prepositions/query_prepositions.sparql | 1 - .../languages/Estonian/verbs/query_verbs.sparql | 1 - .../languages/Finnish/nouns/query_nouns.sparql | 1 - .../languages/Finnish/verbs/query_verbs.sparql | 1 - .../languages/French/nouns/query_nouns.sparql | 1 - .../languages/French/verbs/query_verbs_1.sparql | 1 - .../languages/French/verbs/query_verbs_2.sparql | 1 - .../languages/German/nouns/query_nouns.sparql | 1 - .../languages/German/prepositions/query_prepositions.sparql | 1 - .../languages/German/verbs/query_verbs_1.sparql | 1 - .../languages/German/verbs/query_verbs_2.sparql | 1 - .../extract_transform/languages/Greek/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Hausa/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Hausa/verbs/query_verbs.sparql | 1 - .../languages/Hebrew/nouns/query_nouns.sparql | 1 - .../languages/Hebrew/verbs/query_verbs.sparql | 1 - .../extract_transform/languages/Hindi/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Hindi/verbs/query_verbs.sparql | 1 - .../languages/Indonesian/nouns/query_nouns.sparql | 1 - .../languages/Indonesian/verbs/query_verbs.sparql | 1 - .../languages/Italian/nouns/query_nouns.sparql | 1 - .../languages/Italian/verbs/query_verbs_1.sparql | 1 - .../languages/Italian/verbs/query_verbs_2.sparql | 1 - .../languages/Japanese/nouns/query_nouns.sparql | 1 - .../languages/Japanese/verbs/query_verbs.sparql | 1 - .../languages/Kurmanji/nouns/query_nouns.sparql | 1 - .../languages/Kurmanji/verbs/query_verbs.sparql | 1 - .../extract_transform/languages/Latin/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Latin/verbs/query_verbs.sparql | 1 - .../extract_transform/languages/Malay/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Malay/verbs/query_verbs.sparql | 1 - .../languages/Malayalam/nouns/query_nouns.sparql | 1 - .../languages/Malayalam/verbs/query_verbs.sparql | 1 - .../languages/Mandarin/nouns/query_nouns.sparql | 1 - .../languages/Mandarin/verbs/query_verbs.sparql | 1 - .../languages/Nynorsk/nouns/query_nouns.sparql | 1 - .../languages/Nynorsk/verbs/query_verbs.sparql | 1 - .../languages/Polish/nouns/query_nouns.sparql | 1 - .../languages/Polish/verbs/query_verbs.sparql | 1 - .../languages/Portuguese/nouns/query_nouns.sparql | 1 - .../languages/Portuguese/verbs/query_verbs.sparql | 1 - .../languages/Russian/nouns/query_nouns.sparql | 1 - .../languages/Russian/prepositions/query_prepositions.sparql | 1 - .../languages/Russian/verbs/query_verbs.sparql | 1 - .../languages/Slovak/nouns/query_nouns.sparql | 1 - .../languages/Slovak/prepositions/query_prepositions.sparql | 1 - .../languages/Slovak/verbs/query_verbs.sparql | 1 - .../languages/Spanish/nouns/query_nouns.sparql | 1 - .../languages/Spanish/verbs/query_verbs_1.sparql | 1 - .../languages/Spanish/verbs/query_verbs_2.sparql | 1 - .../languages/Spanish/verbs/query_verbs_3.sparql | 1 - .../languages/Swedish/nouns/query_nouns.sparql | 1 - .../languages/Swedish/verbs/query_verbs.sparql | 1 - .../extract_transform/languages/Tajik/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Tajik/verbs/query_verbs.sparql | 1 - .../extract_transform/languages/Tamil/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Tamil/verbs/query_verbs.sparql | 1 - .../languages/Ukranian/nouns/query_nouns.sparql | 1 - .../languages/Ukranian/prepositions/query_prepositions.sparql | 1 - .../languages/Ukranian/verbs/query_verbs.sparql | 1 - .../extract_transform/languages/Urdu/nouns/query_nouns.sparql | 1 - .../extract_transform/languages/Urdu/verbs/query_verbs.sparql | 1 - 80 files changed, 2 insertions(+), 82 deletions(-) diff --git a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql index c3eed2e38..b551dd877 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql index bb3aa6511..03e1e3696 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql index f68979255..ffc7aa0b1 100644 --- a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql index 8e22e4548..9bf0167f0 100644 --- a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql index f3ce920da..9bbf8ea0e 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql index 7e75529c6..0d160dfbc 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9610 ; diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" index cfaaada5a..660232fad 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" @@ -4,7 +4,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" index 4a742236d..6bd8ac966 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" @@ -4,7 +4,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql index 16265a935..4aed9ceff 100644 --- a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql index 5d386ed08..8c02aaae9 100644 --- a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql index 295026bd1..8ea432fc3 100644 --- a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9056 ; diff --git a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql index 544e5f28f..4041d63a5 100644 --- a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql index 8c643deb9..9bf4a4785 100644 --- a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9035 ; diff --git a/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql index 791f35747..a446f0e50 100644 --- a/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql index 383e90760..24c7de963 100644 --- a/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql @@ -3,8 +3,7 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC -?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE { + ?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE { # Infinitive (required) ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1860 ; diff --git a/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql index ffa9c5a80..110cbbc2a 100644 --- a/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql @@ -2,8 +2,7 @@ # Enter this query at https://query.wikidata.org/. SELECT DISTINCT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?singular ?plural WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql index f7921d7d3..3b1ff8d8d 100644 --- a/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q143 ; diff --git a/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql index fdfd79c72..271a65faa 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql index 06329b54f..df07b9887 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql @@ -4,7 +4,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { # Prepositions and postpositions. diff --git a/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql index 84bf44796..16a21ad39 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9072 ; diff --git a/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql index a8b1e7bd6..f7098fe9c 100644 --- a/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql index 00daded71..db8feb9aa 100644 --- a/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1412 ; diff --git a/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql index 3ae1e7bdb..5744ea30f 100644 --- a/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql index 90de956b1..de5b98209 100644 --- a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql index fc9cff8b9..355906c69 100644 --- a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP diff --git a/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql index 45ec548c9..827db3cb5 100644 --- a/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql index 5da7bb2c1..1eb8f4fc3 100644 --- a/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql index ebe2ca73b..44ffc7a28 100644 --- a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql @@ -4,7 +4,6 @@ # Not SELECT DISTINCT as we want to get verbs with both sein and haben as auxiliaries SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql index ed43fdda5..3bbc97a36 100644 --- a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql @@ -4,7 +4,6 @@ # Not SELECT DISTINCT as we want to get verbs with both sein and haben as auxiliaries SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?pastParticiple ?auxiliaryVerb ?pretFPS ?pretSPS ?pretTPS ?pretFPP ?pretSPP ?pretTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql index 11c91e9bb..91a4a6497 100644 --- a/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql index f7e57e6ce..c8279cb69 100644 --- a/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql index 6907ce6f0..2b2a0f2e9 100644 --- a/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q56475 ; diff --git a/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql index 61c09e4c9..5a9923800 100644 --- a/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql index bec4671b4..fe8f431fa 100644 --- a/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9288 ; diff --git a/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql index 98636045a..43c5c3d4a 100644 --- a/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql @@ -4,7 +4,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql index b6f8b9553..fa4a7e24d 100644 --- a/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql @@ -4,7 +4,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q11051 ; diff --git a/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql index 09d78f1f7..04f7aa695 100644 --- a/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql index 9ec99e4c9..47b515418 100644 --- a/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9240 ; diff --git a/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql index ee103fe5a..d2d6c3972 100644 --- a/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql index ee395d92c..97fa9718b 100644 --- a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql index e0b964849..18c182567 100644 --- a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql index bb27f1ae4..00bd58744 100644 --- a/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql index 9d7e2b986..fae2992cc 100644 --- a/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5287 ; diff --git a/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql index 62e8a97c7..13c35e1c3 100644 --- a/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql index 4d2dc9c5e..4431865c5 100644 --- a/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q36163 ; diff --git a/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql index 85990d2ab..829b5cae1 100644 --- a/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql index 3859741bd..353919cb7 100644 --- a/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q397 ; diff --git a/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql index a1e0e01f8..2e8509701 100644 --- a/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql index b3abb3e4e..d300d8cd0 100644 --- a/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9237 ; diff --git a/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql index 2f253ee32..360136d66 100644 --- a/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql index c2234c0d8..aad27e53b 100644 --- a/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q36236 ; diff --git a/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql index 0f573a1e1..44bee45cc 100644 --- a/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql index 69a891a07..308b382da 100644 --- a/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q727694 ; diff --git a/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql index a97e9f8b8..9a704235b 100644 --- a/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql @@ -4,7 +4,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql index c7bc7ff13..1cbbac503 100644 --- a/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql @@ -4,7 +4,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q25164 ; diff --git a/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql index 9ac0b505b..644c22060 100644 --- a/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql index aad9d0974..45e098a96 100644 --- a/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q809 ; diff --git a/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql index 0c3ce650d..43fe375c2 100644 --- a/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql index 7669fcc44..5250cd49c 100644 --- a/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql index 45abcf772..4227918f2 100644 --- a/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql index 5cb6a5879..ea13dce77 100644 --- a/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql index 06c53ef39..7cafcb93c 100644 --- a/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP diff --git a/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql index 8374d0044..25814c1d7 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql index 052ae1921..7dacf7b3a 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql index 3d6e73cc0..d30d49147 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9058 ; diff --git a/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql index edfdc6687..9c82e5570 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql index 31e9e263d..d3987956a 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql index 3b3d6be11..e078e1b64 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?pretFPS ?pretSPS ?pretTPS ?pretFPP ?pretSPP ?pretTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql index 9ad48f5c1..0602e9a14 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP WHERE { diff --git a/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql index 5c6935387..d17d6b5e0 100644 --- a/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql @@ -5,7 +5,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?nominativeSingular ?nominativePlural ?genitiveSingular ?genitivePlural ?gender WHERE { diff --git a/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql index 9dba1aad1..cfbd09ad5 100644 --- a/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?activeInfinitive ?imperative ?activeSupine ?activePresent ?activePreterite ?passiveInfinitive ?passiveSupine diff --git a/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql index 9917cd455..2e8bbd76f 100644 --- a/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql index ff847b9ce..e388fbf93 100644 --- a/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9260 ; diff --git a/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql index 71c8e360c..dee209413 100644 --- a/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql index c42e5d986..770a388f5 100644 --- a/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5885 ; diff --git a/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql index bed1a8fae..b8d48f26b 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql @@ -3,7 +3,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?singular ?plural ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql index d34a5e516..f9d35972a 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?preposition ?case WHERE { # All German prepositions. diff --git a/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql index 25039b5c2..40a50674e 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?infinitive WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8798 ; diff --git a/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql index 85a474d3a..da9918406 100644 --- a/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql @@ -4,7 +4,6 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?noun ?gender WHERE { # Nouns and pronouns. diff --git a/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql index 567577b11..c05f8e63f 100644 --- a/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql @@ -4,7 +4,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - OTHER_COLUMS_LIKE_NOUN_OR_VERB_ETC ?verb WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q11051 ; From bdf0bc2d44fa4537e8d9816ddfc90ebe2f91b9d6 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Wed, 20 Mar 2024 23:33:42 +0100 Subject: [PATCH 7/7] #101 sparql query formatting and adding Greek verbs --- .../languages/Arabic/nouns/query_nouns.sparql | 5 +++-- .../languages/Arabic/verbs/query_verbs.sparql | 5 +++-- .../languages/Basque/nouns/query_nouns.sparql | 5 +++-- .../languages/Basque/verbs/query_verbs.sparql | 5 +++-- .../languages/Bengali/nouns/query_nouns.sparql | 5 +++-- .../languages/Bengali/verbs/query_verbs.sparql | 6 ++++-- .../Bokm\303\245l/nouns/query_nouns.sparql" | 7 +++++-- .../Bokm\303\245l/verbs/query_verbs.sparql" | 5 +++-- .../languages/Czech/nouns/query_nouns.sparql | 7 +++++-- .../Czech/prepositions/query_prepositions.sparql | 6 ++++-- .../languages/Czech/verbs/query_verbs.sparql | 6 ++++-- .../languages/Danish/nouns/query_nouns.sparql | 7 +++++-- .../languages/Danish/verbs/query_verbs.sparql | 6 ++++-- .../languages/English/nouns/query_nouns.sparql | 6 ++++-- .../languages/English/verbs/query_verbs.sparql | 10 ++++++++-- .../languages/Esperanto/nouns/query_nouns.sparql | 8 +++++--- .../languages/Esperanto/verbs/query_verbs.sparql | 6 ++++-- .../languages/Estonian/nouns/query_nouns.sparql | 6 ++++-- .../Estonian/prepositions/query_prepositions.sparql | 6 ++++-- .../languages/Estonian/verbs/query_verbs.sparql | 6 ++++-- .../languages/Finnish/nouns/query_nouns.sparql | 6 ++++-- .../languages/Finnish/verbs/query_verbs.sparql | 6 ++++-- .../languages/French/nouns/query_nouns.sparql | 7 +++++-- .../languages/French/verbs/query_verbs_1.sparql | 3 ++- .../languages/French/verbs/query_verbs_2.sparql | 3 ++- .../languages/German/nouns/query_nouns.sparql | 7 +++++-- .../German/prepositions/query_prepositions.sparql | 6 ++++-- .../languages/German/verbs/query_verbs_1.sparql | 3 ++- .../languages/German/verbs/query_verbs_2.sparql | 3 ++- .../languages/Greek/nouns/query_nouns.sparql | 7 +++++-- .../languages/Greek/verbs/query_verbs.sparql | 13 +++++++++++++ .../languages/Hausa/nouns/query_nouns.sparql | 6 ++++-- .../languages/Hausa/verbs/query_verbs.sparql | 6 ++++-- .../languages/Hebrew/nouns/query_nouns.sparql | 6 ++++-- .../languages/Hebrew/verbs/query_verbs.sparql | 6 ++++-- .../languages/Hindi/nouns/query_nouns.sparql | 6 ++++-- .../languages/Hindi/verbs/query_verbs.sparql | 6 ++++-- .../languages/Indonesian/nouns/query_nouns.sparql | 5 +++-- .../languages/Indonesian/verbs/query_verbs.sparql | 6 ++++-- .../languages/Italian/nouns/query_nouns.sparql | 7 +++++-- .../languages/Italian/verbs/query_verbs_1.sparql | 3 ++- .../languages/Italian/verbs/query_verbs_2.sparql | 3 ++- .../languages/Japanese/nouns/query_nouns.sparql | 5 +++-- .../languages/Japanese/verbs/query_verbs.sparql | 6 ++++-- .../languages/Kurmanji/nouns/query_nouns.sparql | 6 ++++-- .../languages/Kurmanji/verbs/query_verbs.sparql | 6 ++++-- .../languages/Latin/nouns/query_nouns.sparql | 6 ++++-- .../languages/Latin/verbs/query_verbs.sparql | 6 ++++-- .../languages/Malay/nouns/query_nouns.sparql | 5 +++-- .../languages/Malay/verbs/query_verbs.sparql | 6 ++++-- .../languages/Malayalam/nouns/query_nouns.sparql | 5 +++-- .../languages/Malayalam/verbs/query_verbs.sparql | 6 ++++-- .../languages/Mandarin/nouns/query_nouns.sparql | 5 +++-- .../languages/Mandarin/verbs/query_verbs.sparql | 6 ++++-- .../languages/Nynorsk/nouns/query_nouns.sparql | 7 +++++-- .../languages/Nynorsk/verbs/query_verbs.sparql | 6 ++++-- .../languages/Polish/nouns/query_nouns.sparql | 7 +++++-- .../languages/Polish/verbs/query_verbs.sparql | 6 ++++-- .../languages/Portuguese/nouns/query_nouns.sparql | 7 +++++-- .../languages/Portuguese/verbs/query_verbs.sparql | 3 ++- .../languages/Russian/nouns/query_nouns.sparql | 7 +++++-- .../Russian/prepositions/query_prepositions.sparql | 6 ++++-- .../languages/Russian/verbs/query_verbs.sparql | 3 ++- .../languages/Slovak/nouns/query_nouns.sparql | 5 +++-- .../Slovak/prepositions/query_prepositions.sparql | 5 +++-- .../languages/Slovak/verbs/query_verbs.sparql | 6 ++++-- .../languages/Spanish/nouns/query_nouns.sparql | 7 +++++-- .../languages/Spanish/verbs/query_verbs_1.sparql | 4 +++- .../languages/Spanish/verbs/query_verbs_2.sparql | 3 ++- .../languages/Spanish/verbs/query_verbs_3.sparql | 3 ++- .../languages/Swedish/nouns/query_nouns.sparql | 3 ++- .../languages/Swedish/verbs/query_verbs.sparql | 3 ++- .../languages/Tajik/nouns/query_nouns.sparql | 5 +++-- .../languages/Tajik/verbs/query_verbs.sparql | 6 ++++-- .../languages/Tamil/nouns/query_nouns.sparql | 5 +++-- .../languages/Tamil/verbs/query_verbs.sparql | 6 ++++-- .../languages/Ukranian/nouns/query_nouns.sparql | 7 +++++-- .../Ukranian/prepositions/query_prepositions.sparql | 6 ++++-- .../languages/Ukranian/verbs/query_verbs.sparql | 6 ++++-- .../languages/Urdu/nouns/query_nouns.sparql | 6 ++++-- .../languages/Urdu/verbs/query_verbs.sparql | 6 ++++-- 81 files changed, 311 insertions(+), 148 deletions(-) create mode 100644 src/scribe_data/extract_transform/languages/Greek/verbs/query_verbs.sparql diff --git a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql index b551dd877..04670b010 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Arabic (Q13955) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql index 03e1e3696..ad46f390b 100644 --- a/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Arabic/verbs/query_verbs.sparql @@ -1,9 +1,10 @@ # All Arabic (Q13955) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb + ?verb + WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q13955 ; diff --git a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql index ffc7aa0b1..9c5839ad4 100644 --- a/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Basque (Q8752) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql index 9bf0167f0..e01d99b53 100644 --- a/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Basque/verbs/query_verbs.sparql @@ -1,9 +1,10 @@ # All Basque (Q8752) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb + ?verb + WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8752 ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql index 9bbf8ea0e..083e75821 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Bengali (Q9610) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql index 0d160dfbc..837e87dde 100644 --- a/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Bengali/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Bengali (Q9610) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9610 ; wikibase:lexicalCategory wd:Q24905 ; diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" index 660232fad..a1ffc4f78 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/nouns/query_nouns.sparql" @@ -2,9 +2,12 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Bokmål (Q25167) rather than Nynorsk (Q25164). -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender + ?singular + ?plural + ?gender + WHERE { # Nouns and pronouns. diff --git "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" index 6bd8ac966..087cfe078 100644 --- "a/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/extract_transform/languages/Bokm\303\245l/verbs/query_verbs.sparql" @@ -2,9 +2,10 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Bokmål (Q25167) rather than Nynorsk (Q25164). -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive + ?infinitive + WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q25167 ; diff --git a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql index 4aed9ceff..7247d3992 100644 --- a/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/nouns/query_nouns.sparql @@ -1,9 +1,12 @@ # All Czeck (Q9056) nouns, their plural, and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender + ?singular + ?plural + ?gender + WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } diff --git a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql index 8c02aaae9..f93098bca 100644 --- a/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/prepositions/query_prepositions.sparql @@ -1,9 +1,11 @@ # All Czech (Q9056) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?preposition ?case + ?preposition + ?case + WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9056 ; diff --git a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql index 8ea432fc3..bba56d961 100644 --- a/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Czech/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Czech (Q9056) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql index 4041d63a5..607694a39 100644 --- a/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Danish (Q9035) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql index 9bf4a4785..50e76ddc9 100644 --- a/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Danish/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Danish (Q9035) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql index a446f0e50..eb9115ff2 100644 --- a/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/English/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All English (Q1860) nouns and their plural. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural WHERE { + ?singular + ?plural +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql index 24c7de963..830defd95 100644 --- a/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/English/verbs/query_verbs.sparql @@ -1,9 +1,15 @@ # All English (Q1860) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE { + ?infinitive + ?presFPS + ?presTPS + ?simpPast + ?pastPart + +WHERE { # Infinitive (required) ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1860 ; diff --git a/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql index 110cbbc2a..e503ebb58 100644 --- a/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Esperanto/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Esperanto (Q143) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural WHERE { +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?singular + ?plural +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql index 3b1ff8d8d..d63dc86f0 100644 --- a/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Esperanto/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Esperanto (Q143) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql index 271a65faa..154815f2a 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Estonian (Q9072) nouns and their plural. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural WHERE { + ?singular + ?plural +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql index df07b9887..7e6e9ddf4 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/prepositions/query_prepositions.sparql @@ -2,10 +2,12 @@ # Enter this query at https://query.wikidata.org/. # Note that this query includes postpositions that are also used in Estonian. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?preposition ?case WHERE { + ?preposition + ?case +WHERE { # Prepositions and postpositions. VALUES ?PrePostPositions { wd:Q4833830 wd:Q161873 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql index 16a21ad39..877ed0fa0 100644 --- a/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Estonian/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Estonian (Q9072) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9072 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql index f7098fe9c..acdab8787 100644 --- a/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Finnish/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Finnish (Q1412) nouns and their plural. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural WHERE { + ?singular + ?plural +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql index db8feb9aa..31702a9ea 100644 --- a/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Finnish/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Finnish (Q1412) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1412 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql index 5744ea30f..49fdba90d 100644 --- a/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/French/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All French (Q150) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql index de5b98209..fbd44fc1d 100644 --- a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_1.sparql @@ -7,8 +7,9 @@ SELECT ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP WHERE { + ?pretFPP ?pretSPP ?pretTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql index 355906c69..245ced3f0 100644 --- a/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/French/verbs/query_verbs_2.sparql @@ -7,8 +7,9 @@ SELECT ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP ?futFPS ?futSPS ?futTPS - ?futFPP ?futSPP ?futTPP WHERE { + ?futFPP ?futSPP ?futTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql index 827db3cb5..b9a081f55 100644 --- a/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/German/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All German (Q188) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql index 1eb8f4fc3..10a16d60e 100644 --- a/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/German/prepositions/query_prepositions.sparql @@ -1,10 +1,12 @@ # All German (Q188) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?preposition ?case WHERE { + ?preposition + ?case +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q4833830 ; diff --git a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql index 44ffc7a28..54d2fb581 100644 --- a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_1.sparql @@ -6,8 +6,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?infinitive ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP WHERE { + ?presFPP ?presSPP ?presTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql index 3bbc97a36..23e96c539 100644 --- a/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/German/verbs/query_verbs_2.sparql @@ -6,8 +6,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?infinitive ?pastParticiple ?auxiliaryVerb ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP WHERE { + ?pretFPP ?pretSPP ?pretTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql index 91a4a6497..eb1021760 100644 --- a/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Greek/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Greek (Q36510) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Greek/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Greek/verbs/query_verbs.sparql new file mode 100644 index 000000000..c1fdffdd9 --- /dev/null +++ b/src/scribe_data/extract_transform/languages/Greek/verbs/query_verbs.sparql @@ -0,0 +1,13 @@ +# All Greek (Q36510) verbs. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) + ?verb + +WHERE { + ?lexeme a ontolex:LexicalEntry ; + dct:language wd:Q36510 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?verb . +} diff --git a/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql index c8279cb69..0c215ed31 100644 --- a/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hausa/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Hausa (Q56475) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun ?gender WHERE { + ?noun + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql index 2b2a0f2e9..5e4b743c4 100644 --- a/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hausa/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Hausa (Q56475) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q56475 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql index 5a9923800..814343f1f 100644 --- a/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hebrew/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Hebrew (Q9288) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun ?gender WHERE { + ?noun + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql index fe8f431fa..e0794d6b6 100644 --- a/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hebrew/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Hebrew (Q9288) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9288 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql index 43c5c3d4a..bedd3446e 100644 --- a/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Hindi/nouns/query_nouns.sparql @@ -2,10 +2,12 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "hi" to remove Urdu (ur) words. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun ?gender WHERE { + ?noun + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql index fa4a7e24d..5e831b100 100644 --- a/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Hindi/verbs/query_verbs.sparql @@ -2,9 +2,11 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "hi" to remove Urdu (ur) words. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql index 04f7aa695..cc3184c2e 100644 --- a/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Indonesian/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Indonesian (Q9240) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql index 47b515418..d6b6af32d 100644 --- a/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Indonesian/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Indonesian (Q9240) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9240 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql index d2d6c3972..e313752e5 100644 --- a/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Italian (Q652) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql index 97fa9718b..662d18094 100644 --- a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_1.sparql @@ -7,8 +7,9 @@ SELECT ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP WHERE { + ?pretFPP ?pretSPP ?pretTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q652 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql index 18c182567..40d7d3bab 100644 --- a/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/Italian/verbs/query_verbs_2.sparql @@ -5,8 +5,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?infinitive ?impFPS ?impSPS ?impTPS - ?impFPP ?impSPP ?impTPP WHERE { + ?impFPP ?impSPP ?impTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q652 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql index 00bd58744..9dccba559 100644 --- a/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Japanese/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Japanese (Q5287) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql index fae2992cc..0e1071a8d 100644 --- a/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Japanese/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Japanese (Q5287) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5287 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql index 13c35e1c3..d68ce0941 100644 --- a/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Kurmanji/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Kurmanji (Q36163) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun ?gender WHERE { + ?noun + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql index 4431865c5..5cf23802e 100644 --- a/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Kurmanji/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Kurmanji (Q36163) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql index 829b5cae1..4e6913d1f 100644 --- a/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Latin/nouns/query_nouns.sparql @@ -1,10 +1,12 @@ # All Latin (Q397) nouns and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun ?gender WHERE { + ?noun + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql index 353919cb7..aa7213961 100644 --- a/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Latin/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Latin (Q397) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q397 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql index 2e8509701..02e78172b 100644 --- a/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Malay/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Malay (Q9237) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql index d300d8cd0..423245cdb 100644 --- a/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Malay/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Malay (Q9237) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9237 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql index 360136d66..cefd84fb2 100644 --- a/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Malayalam/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Malayalam (Q36236) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql index aad27e53b..e567822a7 100644 --- a/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Malayalam/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Malayalam (Q36236) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q36236 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql index 44bee45cc..8e7803af8 100644 --- a/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Mandarin/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Mandarin Chinese (Q727694) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql index 308b382da..52dabbea5 100644 --- a/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Mandarin/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Mandarin Chinese (Q727694) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q727694 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql index 9a704235b..f095e54e8 100644 --- a/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Nynorsk/nouns/query_nouns.sparql @@ -2,10 +2,13 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Nynorsk (Q25164) rather than Bokmål (Q25167). -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql index 1cbbac503..dc80791b8 100644 --- a/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Nynorsk/verbs/query_verbs.sparql @@ -2,9 +2,11 @@ # Enter this query at https://query.wikidata.org/. # Note that this query is for Nynorsk (Q25164) rather than Bokmål (Q25167). -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql index 644c22060..cdb344ff1 100644 --- a/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Polish/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Polish (Q809) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql index 45e098a96..48705b9d0 100644 --- a/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Polish/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Polish (Q809) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q809 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql index 43fe375c2..58ef19f01 100644 --- a/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Portuguese/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Portuguese (Q5146) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql index 5250cd49c..04d3f0a00 100644 --- a/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Portuguese/verbs/query_verbs.sparql @@ -11,8 +11,9 @@ SELECT DISTINCT ?impFPS ?impSPS ?impTPS ?impFPP ?impSPP ?impTPP ?fSimpFPS ?fSimpSPS ?fSimpTPS - ?fSimpFPP ?fSimpSPP ?fSimpTPP WHERE { + ?fSimpFPP ?fSimpSPP ?fSimpTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5146 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql index 4227918f2..a7708d450 100644 --- a/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Russian (Q7737) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql index ea13dce77..01a2bbd0a 100644 --- a/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/prepositions/query_prepositions.sparql @@ -1,10 +1,12 @@ # All Russian (Q7737) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?preposition ?case WHERE { + ?preposition + ?case +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q7737 ; wikibase:lexicalCategory wd:Q4833830 ; diff --git a/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql index 7cafcb93c..5d973dd63 100644 --- a/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Russian/verbs/query_verbs.sparql @@ -6,8 +6,9 @@ SELECT DISTINCT ?infinitive ?presFPS ?presSPS ?presTPS ?presFPP ?presSPP ?presTPP - ?pastFeminine ?pastMasculine ?pastNeutral ?pastPlural WHERE { + ?pastFeminine ?pastMasculine ?pastNeutral ?pastPlural +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q7737 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql index 25814c1d7..dd0c82f92 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Slovak (Q9058) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular ?plural ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql index 7dacf7b3a..27a793fa1 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/prepositions/query_prepositions.sparql @@ -1,10 +1,11 @@ # All Slovak (Q9058) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?preposition ?case WHERE { + ?preposition ?case +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9058 ; wikibase:lexicalCategory wd:Q4833830 ; diff --git a/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql index d30d49147..04620ffa3 100644 --- a/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Slovak/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Slovak (Q9058) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9058 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql index 9c82e5570..b243abb61 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Spanish (Q1321) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql index d3987956a..97cf46273 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_1.sparql @@ -5,8 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?infinitive ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP WHERE { + ?presFPP ?presSPP ?presTPP + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql index e078e1b64..26856897d 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_2.sparql @@ -5,8 +5,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?infinitive ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP WHERE { + ?pretFPP ?pretSPP ?pretTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql index 0602e9a14..28d688acb 100644 --- a/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/extract_transform/languages/Spanish/verbs/query_verbs_3.sparql @@ -5,8 +5,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?infinitive ?impFPS ?impSPS ?impTPS - ?impFPP ?impSPP ?impTPP WHERE { + ?impFPP ?impSPP ?impTPP +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql index d17d6b5e0..065d6cb4d 100644 --- a/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Swedish/nouns/query_nouns.sparql @@ -6,8 +6,9 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) ?nominativeSingular ?nominativePlural - ?genitiveSingular ?genitivePlural ?gender WHERE { + ?genitiveSingular ?genitivePlural ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql index cfbd09ad5..58a32ef5b 100644 --- a/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Swedish/verbs/query_verbs.sparql @@ -6,8 +6,9 @@ SELECT ?activeInfinitive ?imperative ?activeSupine ?activePresent ?activePreterite ?passiveInfinitive ?passiveSupine - ?passivePresent ?passivePreterite WHERE { + ?passivePresent ?passivePreterite +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9027 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql index 2e8bbd76f..ebe571642 100644 --- a/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Tajik/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Tajik (Q9260) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql index e388fbf93..72ecae452 100644 --- a/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Tajik/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Tajik (Q9260) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q9260 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql index dee209413..64ba7e420 100644 --- a/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Tamil/nouns/query_nouns.sparql @@ -1,10 +1,11 @@ # All Tamil (Q5885) nouns. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun WHERE { + ?noun +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql index 770a388f5..11806f7e4 100644 --- a/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Tamil/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Tamil (Q5885) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q5885 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql index b8d48f26b..1dfc4f621 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/nouns/query_nouns.sparql @@ -1,10 +1,13 @@ # All Ukrainian (Q8798) nouns, their plural and their gender. # Enter this query at https://query.wikidata.org/. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?singular ?plural ?gender WHERE { + ?singular + ?plural + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql b/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql index f9d35972a..9b3a420b8 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/prepositions/query_prepositions.sparql @@ -1,10 +1,12 @@ # All Ukrainian (Q8798) prepositions and their corresponding cases. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?preposition ?case WHERE { + ?preposition + ?case +WHERE { # All German prepositions. ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8798 ; diff --git a/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql index 40a50674e..446326264 100644 --- a/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Ukranian/verbs/query_verbs.sparql @@ -1,9 +1,11 @@ # All Ukrainian (Q8798) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?infinitive WHERE { + ?infinitive + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q24905 . diff --git a/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql b/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql index da9918406..52e955d4d 100644 --- a/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql +++ b/src/scribe_data/extract_transform/languages/Urdu/nouns/query_nouns.sparql @@ -2,10 +2,12 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "ur" to remove Hindustani (hi) words. -SELECT DISTINCT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?noun ?gender WHERE { + ?noun + ?gender +WHERE { # Nouns and pronouns. VALUES ?nounTypes { wd:Q1084 wd:Q147276 } ?lexeme a ontolex:LexicalEntry ; diff --git a/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql b/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql index c05f8e63f..ec14d5dec 100644 --- a/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql +++ b/src/scribe_data/extract_transform/languages/Urdu/verbs/query_verbs.sparql @@ -2,9 +2,11 @@ # Enter this query at https://query.wikidata.org/. # Note the necessity to filter for "ur" to remove Hindustani (hi) words. -SELECT +SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID) - ?verb WHERE { + ?verb + +WHERE { ?lexeme a ontolex:LexicalEntry ; dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ;