-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand lexeme metadata and fix forms
- Loading branch information
1 parent
ef5f6a4
commit ca15554
Showing
7 changed files
with
162 additions
and
164 deletions.
There are no files selected for viewing
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
57 changes: 26 additions & 31 deletions
57
src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_1.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 |
---|---|---|
@@ -1,54 +1,49 @@ | ||
# tool: scribe-data | ||
# 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 | ||
?presentTenseParticiple | ||
?pastTenseParticiple | ||
?presentTenseWordStem | ||
?pastTenseWordStem | ||
?presentParticiple | ||
?pastParticiple | ||
?presentWordStem | ||
?pastWordStem | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9168; | ||
wikibase:lexicalCategory wd:Q24905; | ||
wikibase:lemma ?infinitiveForm. | ||
wikibase:lexicalCategory wd:Q24905; | ||
wikibase:lemma ?infinitive. | ||
|
||
#MARK: infinitive | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?infinitiveLexForm. | ||
?infinitiveLexForm ontolex:representation ?infinitive; | ||
wikibase:grammaticalFeature wd:Q179230. | ||
} | ||
#MARK: Past Participle | ||
|
||
#MARK: present tense and past participle | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presentParticipleForm. | ||
?presentParticipleForm ontolex:representation ?presentTenseParticiple; | ||
wikibase:grammaticalFeature wd:Q192613 , wd:Q814722. | ||
FILTER(lang(?presentTenseParticiple) = "fa"). | ||
?lexeme ontolex:lexicalForm ?presentParticipleForm . | ||
?presentParticipleForm ontolex:representation ?presentParticiple ; | ||
wikibase:grammaticalFeature wd:Q192613, wd:Q814722 . | ||
FILTER(lang(?presentParticiple) = "fa"). | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pastParticipleForm. | ||
?pastParticipleForm ontolex:representation ?pastTenseParticiple; | ||
wikibase:grammaticalFeature wd:Q814722 , wd:Q1994301. | ||
FILTER(lang(?pastTenseParticiple) = "fa"). | ||
?lexeme ontolex:lexicalForm ?pastParticipleForm . | ||
?pastParticipleForm ontolex:representation ?pastParticiple ; | ||
wikibase:grammaticalFeature wd:Q814722, wd:Q1994301 . | ||
FILTER(lang(?pastParticiple) = "fa"). | ||
} | ||
|
||
#MARK: present tense and past word stem | ||
#MARK: Word Stem | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presentWordStemForm. | ||
?presentWordStemForm ontolex:representation ?presentTenseWordStem; | ||
wikibase:grammaticalFeature wd:Q192613 , wd:Q210523. | ||
FILTER(lang(?presentTenseWordStem) = "fa"). | ||
?lexeme ontolex:lexicalForm ?presentWordStemForm . | ||
?presentWordStemForm ontolex:representation ?presentWordStem ; | ||
wikibase:grammaticalFeature wd:Q192613, wd:Q210523 . | ||
FILTER(lang(?presentWordStem) = "fa"). | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pastWordStemForm. | ||
?pastWordStemForm ontolex:representation ?pastTenseWordStem; | ||
wikibase:grammaticalFeature wd:Q1994301, wd:Q210523. | ||
FILTER(lang(?pastTenseWordStem) = "fa"). | ||
?lexeme ontolex:lexicalForm ?pastWordStemForm . | ||
?pastWordStemForm ontolex:representation ?pastWordStem ; | ||
wikibase:grammaticalFeature wd:Q1994301, wd:Q210523 . | ||
FILTER(lang(?pastWordStem) = "fa"). | ||
} | ||
} |
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
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
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
Oops, something went wrong.