-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from OkpePhillips/urdu-verb-query
Expand Scribe-Data Urdu Verb Query
- Loading branch information
Showing
1 changed file
with
47 additions
and
5 deletions.
There are no files selected for viewing
52 changes: 47 additions & 5 deletions
52
src/scribe_data/language_data_extraction/Urdu/verbs/query_verbs.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") . | ||
} . | ||
} |