Skip to content

Commit

Permalink
Merge pull request #244 from OkpePhillips/urdu-verb-query
Browse files Browse the repository at this point in the history
Expand Scribe-Data Urdu Verb Query
  • Loading branch information
andrewtavis authored Oct 10, 2024
2 parents 5ddb577 + c51da81 commit 7d67e5e
Showing 1 changed file with 47 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
# tool: scribe-data
# All Hindustani (Q11051) verbs.
# All Urdu (from Hindustani Q11051) verbs and the currently implemented conjugations for each.
# Enter this query at https://query.wikidata.org/.
# Note the necessity to filter for "ur" to remove Hindustani (hi) words.

SELECT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?verb
?infinitive
?directCase
?gerund
?intransitivePhase
?basicPhase

WHERE {
# MARK: Infinitive

?lexeme dct:language wd:Q11051 ;
wikibase:lexicalCategory wd:Q24905 ;
wikibase:lemma ?verb .
FILTER(lang(?verb) = "ur")
wikibase:lemma ?infinitive .
FILTER(lang(?infinitive) = "ur")

# MARK: Direct Case

OPTIONAL {
?lexeme ontolex:lexicalForm ?directCaseForm .
?directCaseForm ontolex:representation ?directCase ;
wikibase:grammaticalFeature wd:Q1751855 .
FILTER(LANG(?directCase) = "ur") .
} .

# MARK: Gerund

OPTIONAL {
?lexeme ontolex:lexicalForm ?gerundForm .
?gerundForm ontolex:representation ?gerund ;
wikibase:grammaticalFeature wd:Q1923028 .
FILTER(LANG(?gerund) = "ur") .
} .

# MARK: Intransitive Phase

OPTIONAL {
?lexeme ontolex:lexicalForm ?intransitivePhaseForm .
?intransitivePhaseForm ontolex:representation ?intransitivePhase ;
wikibase:grammaticalFeature wd:Q113330736 .
FILTER(LANG(?intransitivePhase) = "ur") .
} .

# MARK: Basic Phase

OPTIONAL {
?lexeme ontolex:lexicalForm ?basicPhaseForm .
?basicPhaseForm ontolex:representation ?basicPhase ;
wikibase:grammaticalFeature wd:Q113330960 .
FILTER(LANG(?basicPhase) = "ur") .
} .
}

0 comments on commit 7d67e5e

Please sign in to comment.