forked from scribe-org/Scribe-Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Persian query adjectives scribe-org#400
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/scribe_data/language_data_extraction/Persian/adjectives/query_adjectives.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# tool: scribe-data | ||
# All Persian (Q9186) adjectives and the given forms. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?adjective | ||
?singular | ||
?plural | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9168 ; | ||
wikibase:lexicalCategory wd:Q34698 ; | ||
wikibase:lemma ?adjective . | ||
FILTER(lang(?adjective) = "fa") | ||
|
||
# MARK: Singular | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?singularForm . | ||
?singularForm ontolex:representation ?singular ; | ||
wikibase:grammaticalFeature wd:Q110786 . | ||
FILTER(lang(?singular) = "fa") . | ||
} | ||
|
||
# MARK: Plural | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pluralForm . | ||
?pluralForm ontolex:representation ?plural ; | ||
wikibase:grammaticalFeature wd:Q146786 . | ||
FILTER(lang(?plural) = "fa") . | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/scribe_data/language_data_extraction/Persian/nouns/query_nouns.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# tool: scribe-data | ||
# All Persian (Q9186) nouns and the given forms. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
# Note: We need to filter for "hi" to remove Urdu (ur) words. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?singular | ||
?plural | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9168 ; | ||
wikibase:lexicalCategory wd:Q1084 ; | ||
wikibase:lemma ?singular . | ||
FILTER(lang(?singular) = "fa") | ||
|
||
# MARK: Plural | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pluralForm . | ||
?pluralForm ontolex:representation ?plural ; | ||
wikibase:grammaticalFeature wd:Q146786 . | ||
FILTER(lang(?plural) = "fa") . | ||
} | ||
} |