Skip to content

Commit

Permalink
Persian query nouns, adjectives, adverbs (scribe-org#452)
Browse files Browse the repository at this point in the history
* 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
catreedle and andrewtavis authored Oct 22, 2024
1 parent 85b294d commit 54b060c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
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 .
}
}
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 .
}
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 .
}
}

0 comments on commit 54b060c

Please sign in to comment.