From 64dc5c6d6b43e62a670e11768ec8df7b152d4194 Mon Sep 17 00:00:00 2001 From: Roheemah Date: Sun, 6 Oct 2024 23:27:05 +0300 Subject: [PATCH] Expanded Malayalam verbs to include other forms on Wikidata --- .../Malayalam/verbs/query_verbs.sparql | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql index 50eddca1..e5e9d174 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql @@ -2,12 +2,56 @@ # All Malayalam (Q36236) verbs. # Enter this query at https://query.wikidata.org/. -SELECT +SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb + ?presentInfinitive + ?simplePresent + ?simplePast + ?simpleFuture WHERE { ?lexeme dct:language wd:Q36236 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . + + # MARK: Present Infinitive + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentInfForm . + ?presentInfForm ontolex:representation ?presentInfinitive ; + wikibase:grammaticalFeature wd:Q52434245 ; + FILTER(LANG(?presentInfinitive) = "ml") . + } . + + # MARK: Simple Present + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?simplePresentForm . + ?simplePresentForm ontolex:representation ?simplePresent ; + wikibase:grammaticalFeature wd:Q3910936 ; + FILTER(LANG(?simplePresent) = "ml") . + } . + + # MARK: Simple Past + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?simplePastForm . + ?simplePastForm ontolex:representation ?simplePast ; + wikibase:grammaticalFeature wd:Q1392475 ; + FILTER(LANG(?simplePast) = "ml") . + } . + + # MARK: Simple Future + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?simpleFutureForm . + ?simpleFutureForm ontolex:representation ?simpleFuture ; + wikibase:grammaticalFeature wd:Q1475560 ; + FILTER(LANG(?simpleFuture) = "ml") . + } . + + SERVICE wikibase:label { + bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + } }