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.
Persian query nouns, adjectives, adverbs (scribe-org#452)
* add Persian query adjectives scribe-org#400 * fix comment language qid * remove filter fa for persian query * Persian adverbs query * Minor query formatting --------- Co-authored-by: Andrew Tavis McAllister <[email protected]>
- Loading branch information
1 parent
85b294d
commit 54b060c
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
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,32 @@ | ||
# tool: scribe-data | ||
# All Persian (Q9168) adjectives (Q34698) 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 . | ||
} | ||
|
||
# MARK: Plural | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pluralForm . | ||
?pluralForm ontolex:representation ?plural ; | ||
wikibase:grammaticalFeature wd:Q146786 . | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/scribe_data/language_data_extraction/Persian/adverbs/query_adverbs.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,13 @@ | ||
# tool: scribe-data | ||
# All Persian (Q9168) adverbs (Q380057) and the given forms. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?adverb | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9168; | ||
wikibase:lexicalCategory wd:Q380057 ; | ||
wikibase:lemma ?adverb . | ||
} |
22 changes: 22 additions & 0 deletions
22
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,22 @@ | ||
# tool: scribe-data | ||
# All Persian (Q9168) nouns (Q1084) and the given forms. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
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 . | ||
|
||
# MARK: Plural | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pluralForm . | ||
?pluralForm ontolex:representation ?plural ; | ||
wikibase:grammaticalFeature wd:Q146786 . | ||
} | ||
} |