Skip to content

Commit

Permalink
Merge pull request #264 from Kehindeadebisi/expanded_malayalam_verbs
Browse files Browse the repository at this point in the history
Expanded Malayalam verbs to include other forms on Wikidata
  • Loading branch information
andrewtavis authored Oct 9, 2024
2 parents 853f205 + 3b72512 commit e2ce7d1
Showing 1 changed file with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,53 @@
# tool: scribe-data
# All Malayalam (Q36236) verbs.
# All Malayalam (Q36236) verbs and the currently implemented tenses for each.
# 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") .
} .
}

0 comments on commit e2ce7d1

Please sign in to comment.