From 559272a8425ce0ab5287b7acf86b45d63be14831 Mon Sep 17 00:00:00 2001 From: Khushalsarode Date: Tue, 8 Oct 2024 02:11:31 +0530 Subject: [PATCH 1/5] adding query_verbs.sparql for kurmanji --- .../Kurmanji/verbs/query_verbs.sparql | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index 4be7e579..125446ff 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -5,9 +5,78 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb + ?form + ?grammaticalFeature + ?infinitive + ?directCase + ?gerund + ?intransitivePhase + ?basicPhase + ?conjParticiple + ?adverbial + ?absConstruction + ?accusative + ?ergative + ?additivePhase WHERE { ?lexeme dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . + + + # Infinitive (basic form of the verb) + FILTER(lang(?verb) = "ku") . + + # Forms associated with the grammatical features (direct case, gerund, etc.) + OPTIONAL { + ?lexeme ontolex:lexicalForm ?formNode . + ?formNode ontolex:representation ?form ; + wikibase:grammaticalFeature ?grammaticalFeature . + FILTER(LANG(?form) = "ku") . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adverbialForm . + ?adverbialForm ontolex:representation ?adverbial ; + wikibase:grammaticalFeature wd:Q380012 . + FILTER(LANG(?adverbial) = "ku") . + } . + + # MARK: Absolute Construction + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?absConstructionForm . + ?absConstructionForm ontolex:representation ?absConstruction ; + wikibase:grammaticalFeature wd:Q4669807 . + FILTER(LANG(?absConstruction) = "ku") . + } . + + # MARK: Accusative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeForm . + ?accusativeForm ontolex:representation ?accusative ; + wikibase:grammaticalFeature wd:Q1233197 . + FILTER(LANG(?accusative) = "ku") . + } . + + # MARK: Ergative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?ergativeForm . + ?ergativeForm ontolex:representation ?ergative ; + wikibase:grammaticalFeature wd:Q1233197 . + FILTER(LANG(?ergative) = "ku") . + } . + + + + + } + +ORDER BY ASC (?lexemeID) + + + From 40c2692433ca15ee2f88599c090f05767dddb473 Mon Sep 17 00:00:00 2001 From: Khushal Sarode <105520366+Khushalsarode@users.noreply.github.com> Date: Tue, 8 Oct 2024 03:48:10 +0530 Subject: [PATCH 2/5] Update query_verbs.sparql --- .../Kurmanji/verbs/query_verbs.sparql | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index 125446ff..4f19e5d3 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -69,14 +69,6 @@ WHERE { wikibase:grammaticalFeature wd:Q1233197 . FILTER(LANG(?ergative) = "ku") . } . - - - - - } -ORDER BY ASC (?lexemeID) - - From b80fa83a252bd08e4db2f9e0826a38e324c49e20 Mon Sep 17 00:00:00 2001 From: Khushal Sarode <105520366+Khushalsarode@users.noreply.github.com> Date: Tue, 8 Oct 2024 03:48:54 +0530 Subject: [PATCH 3/5] Update query_verbs.sparql removed order by clause --- .../language_data_extraction/Kurmanji/verbs/query_verbs.sparql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index 4f19e5d3..09026cd5 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -69,6 +69,7 @@ WHERE { wikibase:grammaticalFeature wd:Q1233197 . FILTER(LANG(?ergative) = "ku") . } . + } From f1ab55e78b87cb8a445b6c158f1dc94730780cf7 Mon Sep 17 00:00:00 2001 From: Khushal Sarode <105520366+Khushalsarode@users.noreply.github.com> Date: Tue, 8 Oct 2024 03:50:15 +0530 Subject: [PATCH 4/5] Update query_verbs.sparql by removing spacing --- .../Kurmanji/verbs/query_verbs.sparql | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index 09026cd5..4ea7c32b 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -25,7 +25,7 @@ WHERE { wikibase:lemma ?verb . - # Infinitive (basic form of the verb) + # Infinitive (basic form of the verb) FILTER(lang(?verb) = "ku") . # Forms associated with the grammatical features (direct case, gerund, etc.) @@ -44,7 +44,6 @@ WHERE { } . # MARK: Absolute Construction - OPTIONAL { ?lexeme ontolex:lexicalForm ?absConstructionForm . ?absConstructionForm ontolex:representation ?absConstruction ; @@ -53,7 +52,6 @@ WHERE { } . # MARK: Accusative - OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeForm . ?accusativeForm ontolex:representation ?accusative ; @@ -62,7 +60,6 @@ WHERE { } . # MARK: Ergative - OPTIONAL { ?lexeme ontolex:lexicalForm ?ergativeForm . ?ergativeForm ontolex:representation ?ergative ; @@ -71,5 +68,3 @@ WHERE { } . } - - From 912fdfdb76012073312e6445f99df261ebb6f7a9 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Wed, 9 Oct 2024 23:53:39 +0200 Subject: [PATCH 5/5] Simplify Kurmanji verbs query --- .../Kurmanji/verbs/query_verbs.sparql | 60 +------------------ 1 file changed, 2 insertions(+), 58 deletions(-) diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index 4ea7c32b..134a7e59 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -1,70 +1,14 @@ # tool: scribe-data -# All Kurmanji (Q36163) verbs. +# All Kurmanji (Q36163) verbs and the currently implemented tenses for each. # Enter this query at https://query.wikidata.org/. SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?form - ?grammaticalFeature - ?infinitive - ?directCase - ?gerund - ?intransitivePhase - ?basicPhase - ?conjParticiple - ?adverbial - ?absConstruction - ?accusative - ?ergative - ?additivePhase WHERE { ?lexeme dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - - - # Infinitive (basic form of the verb) - FILTER(lang(?verb) = "ku") . - - # Forms associated with the grammatical features (direct case, gerund, etc.) - OPTIONAL { - ?lexeme ontolex:lexicalForm ?formNode . - ?formNode ontolex:representation ?form ; - wikibase:grammaticalFeature ?grammaticalFeature . - FILTER(LANG(?form) = "ku") . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adverbialForm . - ?adverbialForm ontolex:representation ?adverbial ; - wikibase:grammaticalFeature wd:Q380012 . - FILTER(LANG(?adverbial) = "ku") . - } . - - # MARK: Absolute Construction - OPTIONAL { - ?lexeme ontolex:lexicalForm ?absConstructionForm . - ?absConstructionForm ontolex:representation ?absConstruction ; - wikibase:grammaticalFeature wd:Q4669807 . - FILTER(LANG(?absConstruction) = "ku") . - } . - - # MARK: Accusative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeForm . - ?accusativeForm ontolex:representation ?accusative ; - wikibase:grammaticalFeature wd:Q1233197 . - FILTER(LANG(?accusative) = "ku") . - } . - - # MARK: Ergative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?ergativeForm . - ?ergativeForm ontolex:representation ?ergative ; - wikibase:grammaticalFeature wd:Q1233197 . - FILTER(LANG(?ergative) = "ku") . - } . - + FILTER(lang(?verb) = "ku") . }