Skip to content

Commit

Permalink
Add persian Verbs and prepositions
Browse files Browse the repository at this point in the history
  • Loading branch information
VNW22 committed Oct 20, 2024
1 parent 9df1756 commit 7e8e4fe
Show file tree
Hide file tree
Showing 9 changed files with 349 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All persian (Q9168) prepositions and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?prepositions

WHERE {
?lexeme dct:language wd:Q9168 ;
wikibase:lexicalCategory wd:Q4833830 ;
wikibase:lemma ?prepositions .
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?aorist
?participle
?wordStem

WHERE {
?lexeme dct:language wd:Q9168;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitiveForm.

#MARK: infinitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?infinitiveLexForm.
?infinitiveLexForm ontolex:representation ?infinitive;
wikibase:grammaticalFeature wd:Q179230.
}
#MARK: aorist
OPTIONAL {
?lexeme ontolex:lexicalForm ?aoristForm.
?aoristForm ontolex:representation ?aorist;
wikibase:grammaticalFeature wd:Q216497.
}
#MARK: participle
OPTIONAL {
?lexeme ontolex:lexicalForm ?participleForm.
?participleForm ontolex:representation ?participle;
wikibase:grammaticalFeature wd:Q814722.
FILTER(lang(?participle) = "fa") .
}
#MARK: wordStem
OPTIONAL {
?lexeme ontolex:lexicalForm ?wordStemForm.
?wordStemForm ontolex:representation ?wordStem;
wikibase:grammaticalFeature wd:Q210523.
FILTER(lang(?wordStem) = "fa") .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?firstPersonSingPresent
?secondPersonSingPresent
?thirdPersonSingPresent
?firstPersonPluralPresent
?secondPersonPluralPresent
?thirdPersonPluralPresent

WHERE {
?lexeme dct:language wd:Q9168;
wikibase:lexicalCategory wd:Q24905.

# MARK: Infinitive
?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 .

# MARK: Present Tense Forms
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonSingPresentForm.
?firstPersonSingPresentForm ontolex:representation ?firstPersonSingPresent;
wikibase:grammaticalFeature wd:Q21714344 , wd:Q110786 , wd:Q192613.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonSingPresentForm.
?secondPersonSingPresentForm ontolex:representation ?secondPersonSingPresent;
wikibase:grammaticalFeature wd:Q51929049 , wd:Q110786 , wd:Q192613.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonSingPresentForm.
?thirdPersonSingPresentForm ontolex:representation ?thirdPersonSingPresent;
wikibase:grammaticalFeature wd:Q51929074 , wd:Q110786 , wd:Q192613.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonPluralPresentForm.
?firstPersonPluralPresentForm ontolex:representation ?firstPersonPluralPresent;
wikibase:grammaticalFeature wd:Q21714344 , wd:Q146786 , wd:Q192613.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonPluralPresentForm.
?secondPersonPluralPresentForm ontolex:representation ?secondPersonPluralPresent;
wikibase:grammaticalFeature wd:Q51929049 , wd:Q146786 , wd:Q192613.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonPluralPresentForm.
?thirdPersonPluralPresentForm ontolex:representation ?thirdPersonPluralPresent;
wikibase:grammaticalFeature wd:Q51929074 , wd:Q146786 , wd:Q192613.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# tool: scribe-data
# All Persian (Q9168) verbs and the given perfect tense forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?firstPersonSingPerfect
?secondPersonSingPerfect
?thirdPersonSingPerfect
?firstPersonPluralPerfect
?secondPersonPluralPerfect
?thirdPersonPluralPerfect

WHERE {
?lexeme dct:language wd:Q9168;
wikibase:lexicalCategory wd:Q24905.

# MARK: Infinitive
?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 .

# MARK: Perfect Tense Forms
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonSingPerfectForm.
?firstPersonSingPerfectForm ontolex:representation ?firstPersonSingPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q21714344 , wd:Q110786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonSingPerfectForm.
?secondPersonSingPerfectForm ontolex:representation ?secondPersonSingPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929049 , wd:Q110786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonSingPerfectForm.
?thirdPersonSingPerfectForm ontolex:representation ?thirdPersonSingPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929074 , wd:Q110786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonPluralPerfectForm.
?firstPersonPluralPerfectForm ontolex:representation ?firstPersonPluralPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q21714344 , wd:Q146786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonPluralPerfectForm.
?secondPersonPluralPerfectForm ontolex:representation ?secondPersonPluralPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929049 , wd:Q146786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonPluralPerfectForm.
?thirdPersonPluralPerfectForm ontolex:representation ?thirdPersonPluralPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929074 , wd:Q146786.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# tool: scribe-data
# All Persian (Q9168) verbs and the given present perfect tense forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?firstPersonSingPresentPerfect
?secondPersonSingPresentPerfect
?thirdPersonSingPresentPerfect
?firstPersonPluralPresentPerfect
?secondPersonPluralPresentPerfect
?thirdPersonPluralPresentPerfect

WHERE {
?lexeme dct:language wd:Q9168;
wikibase:lexicalCategory wd:Q24905.

# MARK: Infinitive
?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 .

# MARK: Present Perfect Forms
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonSingPresentPerfectForm.
?firstPersonSingPresentPerfectForm ontolex:representation ?firstPersonSingPresentPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q21714344 , wd:Q192613 , wd:Q110786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonSingPresentPerfectForm.
?secondPersonSingPresentPerfectForm ontolex:representation ?secondPersonSingPresentPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929049 ,wd:Q192613 , wd:Q110786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonSingPresentPerfectForm.
?thirdPersonSingPresentPerfectForm ontolex:representation ?thirdPersonSingPresentPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929074 ,wd:Q192613 , wd:Q110786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonPluralPresentPerfectForm.
?firstPersonPluralPresentPerfectForm ontolex:representation ?firstPersonPluralPresentPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q21714344 ,wd:Q192613 , wd:Q146786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonPluralPresentPerfectForm.
?secondPersonPluralPresentPerfectForm ontolex:representation ?secondPersonPluralPresentPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929049 ,wd:Q192613 , wd:Q146786.
}
OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonPluralPresentPerfectForm.
?thirdPersonPluralPresentPerfectForm ontolex:representation ?thirdPersonPluralPresentPerfect;
wikibase:grammaticalFeature wd:Q625420 , wd:Q51929074 ,wd:Q192613 , wd:Q146786.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?firstPersonSingSubjunctive
?secondPersonSingSubjunctive
?thirdPersonSingSubjunctive
?firstPersonPluralSubjunctive
?secondPersonPluralSubjunctive
?thirdPersonPluralSubjunctive

WHERE {
?lexeme dct:language wd:Q9168;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitiveForm.

OPTIONAL {
?lexeme ontolex:lexicalForm ?infinitiveLexForm.
?infinitiveLexForm ontolex:representation ?infinitive;
wikibase:grammaticalFeature wd:Q179230.
}
#MARK: subjunctive
OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonSingSubjunctiveForm.
?firstPersonSingSubjunctiveForm ontolex:representation ?firstPersonSingSubjunctive;
wikibase:grammaticalFeature wd:Q473746 , wd:Q21714344 , wd:Q110786.
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonSingSubjunctiveForm.
?secondPersonSingSubjunctiveForm ontolex:representation ?secondPersonSingSubjunctive;
wikibase:grammaticalFeature wd:Q473746 , wd:Q51929049 , wd:Q110786.
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonSingSubjunctiveForm.
?thirdPersonSingSubjunctiveForm ontolex:representation ?thirdPersonSingSubjunctive;
wikibase:grammaticalFeature wd:Q473746 , wd:Q51929074 , wd:Q110786.
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?firstPersonPluralSubjunctiveForm.
?firstPersonPluralSubjunctiveForm ontolex:representation ?firstPersonPluralSubjunctive;
wikibase:grammaticalFeature wd:Q473746 , wd:Q21714344 , wd:Q146786.
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?secondPersonPluralSubjunctiveForm.
?secondPersonPluralSubjunctiveForm ontolex:representation ?secondPersonPluralSubjunctive;
wikibase:grammaticalFeature wd:Q473746 , wd:Q51929049 , wd:Q146786.
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?thirdPersonPluralSubjunctiveForm.
?thirdPersonPluralSubjunctiveForm ontolex:representation ?thirdPersonPluralSubjunctive;
wikibase:grammaticalFeature wd:Q473746 , wd:Q51929074 , wd:Q146786.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?indicative1PS
?indicative2PS
?indicative3PS
?indicative1PP
?indicative2PP
?indicative3PP


WHERE {
?lexeme dct:language wd:Q9168 ;
wikibase:lexicalCategory wd:Q24905 .

#MARK: infinitive
?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 .

# MARK: Indicative
OPTIONAL {
?lexeme ontolex:lexicalForm ?indicative1PSForm .
?indicative1PSForm ontolex:representation ?indicative1PS ;
wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?indicative2PSForm .
?indicative2PSForm ontolex:representation ?indicative2PS ;
wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?indicative3PSForm .
?indicative3PSForm ontolex:representation ?indicative3PS ;
wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?indicative1PPForm .
?indicative1PPForm ontolex:representation ?indicative1PP ;
wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?indicative2PPForm .
?indicative2PPForm ontolex:representation ?indicative2PP ;
wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?indicative3PPForm .
?indicative3PPForm ontolex:representation ?indicative3PP ;
wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111 .
}
}
4 changes: 4 additions & 0 deletions src/scribe_data/resources/language_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
}
}
},
"persian": {
"iso": "fa",
"qid": "Q9168"
},
"pidgin": {
"sub_languages": {
"nigerian": {
Expand Down
1 change: 1 addition & 0 deletions tests/load/test_update_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_list_all_languages():
"mandarin",
"nigerian",
"nynorsk",
"persian",
"polish",
"portuguese",
"russian",
Expand Down

0 comments on commit 7e8e4fe

Please sign in to comment.