-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expansion: Expanded the query for czech verbs to retrieve various con…
…jugations of verbs from wikidata
- Loading branch information
1 parent
7db43fd
commit b9e0e0a
Showing
3 changed files
with
199 additions
and
18 deletions.
There are no files selected for viewing
18 changes: 0 additions & 18 deletions
18
src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql
This file was deleted.
Oops, something went wrong.
150 changes: 150 additions & 0 deletions
150
src/scribe_data/language_data_extraction/Czech/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 |
---|---|---|
@@ -0,0 +1,150 @@ | ||
# tool: scribe-data | ||
# All Czech (Q9056) verbs and the currently implemented tenses for each. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?infinitive | ||
?presFPS ?presSPS ?presTPS | ||
?presFPP ?presSPP ?presTPP | ||
?pretFPS ?pretSPS ?pretTPS | ||
?pretFPP ?pretSPP ?pretTPP | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9056 ; | ||
wikibase:lexicalCategory wd:Q24905 . | ||
|
||
# MARK: Infinitive | ||
|
||
?lexeme ontolex:lexicalForm ?infinitiveForm . | ||
?infinitiveForm ontolex:representation ?infinitive ; | ||
wikibase:grammaticalFeature wd:Q179230 ; | ||
|
||
# MARK: Indicative Present Tense | ||
|
||
# First Person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presFPSForm . | ||
?presFPSForm ontolex:representation ?presFPS ; | ||
wikibase:grammaticalFeature wd:Q21714344 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q192613 ; | ||
} . | ||
|
||
# Second Person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presSPSForm . | ||
?presSPSForm ontolex:representation ?presSPS ; | ||
wikibase:grammaticalFeature wd:Q51929049 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q192613 ; | ||
} . | ||
|
||
# Third Person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presTPSForm . | ||
?presTPSForm ontolex:representation ?presTPS ; | ||
wikibase:grammaticalFeature wd:Q51929074 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q192613 ; | ||
} . | ||
|
||
# First Person Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presFPPForm . | ||
?presFPPForm ontolex:representation ?presFPP ; | ||
wikibase:grammaticalFeature wd:Q21714344 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q192613 ; | ||
} . | ||
|
||
# Second Person Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presSPPForm . | ||
?presSPPForm ontolex:representation ?presSPP ; | ||
wikibase:grammaticalFeature wd:Q51929049 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q192613 ; | ||
} . | ||
|
||
# Third Person Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presTPPForm . | ||
?presTPPForm ontolex:representation ?presTPP ; | ||
wikibase:grammaticalFeature wd:Q51929074 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q192613 ; | ||
} . | ||
|
||
# MARK: Indicative Preterite | ||
|
||
# First Person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pretFPSForm . | ||
?pretFPSForm ontolex:representation ?pretFPS ; | ||
wikibase:grammaticalFeature wd:Q21714344 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q442485 ; | ||
} . | ||
|
||
# Second Person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pretSPSForm . | ||
?pretSPSForm ontolex:representation ?pretSPS ; | ||
wikibase:grammaticalFeature wd:Q51929049 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q442485 ; | ||
} . | ||
|
||
# Third Person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pretTPSForm . | ||
?pretTPSForm ontolex:representation ?pretTPS ; | ||
wikibase:grammaticalFeature wd:Q51929074 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q442485 ; | ||
} . | ||
|
||
# First Person Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pretFPPForm . | ||
?pretFPPForm ontolex:representation ?pretFPP ; | ||
wikibase:grammaticalFeature wd:Q21714344 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q442485 ; | ||
} . | ||
|
||
# Second Person Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pretSPPForm . | ||
?pretSPPForm ontolex:representation ?pretSPP ; | ||
wikibase:grammaticalFeature wd:Q51929049 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q442485 ; | ||
} . | ||
|
||
# Third Person Plural | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pretTPPForm . | ||
?pretTPPForm ontolex:representation ?pretTPP ; | ||
wikibase:grammaticalFeature wd:Q51929074 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q682111 ; | ||
wikibase:grammaticalFeature wd:Q442485 ; | ||
} . | ||
|
||
SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.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,49 @@ | ||
# tool: scribe-data | ||
# All Czech (Q9056) verbs and the currently implemented tenses for each. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?infinitive | ||
?presTrans ?pastpart | ||
?fTense | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9056 ; | ||
wikibase:lexicalCategory wd:Q24905 . | ||
|
||
# MARK: Infinitive | ||
|
||
?lexeme ontolex:lexicalForm ?infinitiveForm . | ||
?infinitiveForm ontolex:representation ?infinitive ; | ||
wikibase:grammaticalFeature wd:Q179230 ; | ||
|
||
# MARK: Present Transgressive | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presTransForm . | ||
?presTransForm ontolex:representation ?presTrans ; | ||
wikibase:grammaticalFeature wd:Q65540125 ; | ||
FILTER(lang(?presTrans) = "cs" ) . | ||
} . | ||
|
||
# MARK: Past Participle | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pastpartForm . | ||
?pastpartForm ontolex:representation ?pastpart ; | ||
wikibase:grammaticalFeature wd:Q12717679 ; | ||
FILTER(lang(?pastpart) = "cs" ) . | ||
} . | ||
|
||
# MARK: Future Tense | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?fTenseForm . | ||
?fTenseForm ontolex:representation ?fTense ; | ||
wikibase:grammaticalFeature wd:Q501405 ; | ||
FILTER(lang(?fTense) = "cs" ) . | ||
} . | ||
|
||
SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". | ||
} | ||
} |