Skip to content

Commit

Permalink
add Persian query adjectives scribe-org#400
Browse files Browse the repository at this point in the history
  • Loading branch information
catreedle committed Oct 18, 2024
1 parent 9df1756 commit d34cbf1
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
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") .
}
}
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") .
}
}

0 comments on commit d34cbf1

Please sign in to comment.