Skip to content

Commit

Permalink
Expanded Malayalam verbs to include other forms on Wikidata
Browse files Browse the repository at this point in the history
  • Loading branch information
Roheemah committed Oct 6, 2024
1 parent b7a0f82 commit 64dc5c6
Showing 1 changed file with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]".
}
}

0 comments on commit 64dc5c6

Please sign in to comment.