-
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.
Modified urdu_adjective_query.sparql file
- Loading branch information
1 parent
f0e4e06
commit 0b99904
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# tool: scribe-data | ||
# Enter this query at https://query.wikidata.org/. | ||
# Retrieve Urdu Adjectives with Masculine Forms | ||
|
||
SELECT DISTINCT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?lemma | ||
?directCase | ||
?vocativeCase | ||
?obliqueCase | ||
?singular | ||
?plural | ||
?masculine | ||
WHERE { | ||
?lexeme dct:language wd:Q11051 ; | ||
wikibase:lexicalCategory wd:Q34698 ; | ||
wikibase:lemma ?lemma . | ||
FILTER(lang(?lemma) = "ur") | ||
|
||
# Direct Case | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?directCaseForm . | ||
?directCaseForm ontolex:representation ?directCase ; | ||
wikibase:grammaticalFeature wd:Q1751855 . | ||
FILTER(LANG(?directCase) = "ur") | ||
} | ||
|
||
# Vocative Case | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?vocativeCaseForm . | ||
?vocativeCaseForm ontolex:representation ?vocativeCase ; | ||
wikibase:grammaticalFeature wd:Q185077 . | ||
FILTER(LANG(?vocativeCase) = "ur") | ||
} | ||
|
||
# Oblique Case | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?obliqueCaseForm . | ||
?obliqueCaseForm ontolex:representation ?obliqueCase ; | ||
wikibase:grammaticalFeature wd:Q1233197 . | ||
FILTER(LANG(?obliqueCase) = "ur") | ||
} | ||
|
||
# Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?singularForm . | ||
?singularForm ontolex:representation ?singular ; | ||
wikibase:grammaticalFeature wd:Q110786 . | ||
FILTER(LANG(?singular) = "ur") | ||
} | ||
|
||
# Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pluralForm . | ||
?pluralForm ontolex:representation ?plural ; | ||
wikibase:grammaticalFeature wd:Q146786 . | ||
FILTER(LANG(?plural) = "ur") | ||
} | ||
|
||
# Masculine | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masculineForm . | ||
?masculineForm ontolex:representation ?masculine ; | ||
wikibase:grammaticalFeature wd:Q499327 . | ||
FILTER(LANG(?masculine) = "ur") | ||
} | ||
|
||
SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "en". | ||
} | ||
} |