From b9e0e0a9661019fc7cef2e85a9fbc86f8ad0c32e Mon Sep 17 00:00:00 2001 From: godwin Date: Sat, 5 Oct 2024 10:59:05 +0100 Subject: [PATCH] Expansion: Expanded the query for czech verbs to retrieve various conjugations of verbs from wikidata --- .../Czech/verbs/query_verbs.sparql | 18 --- .../Czech/verbs/query_verbs_1.sparql | 150 ++++++++++++++++++ .../Czech/verbs/query_verbs_2.sparql | 49 ++++++ 3 files changed, 199 insertions(+), 18 deletions(-) delete mode 100644 src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql create mode 100644 src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql create mode 100644 src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql deleted file mode 100644 index 34a917b2..00000000 --- a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs.sparql +++ /dev/null @@ -1,18 +0,0 @@ -# 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 - -WHERE { - ?lexeme dct:language wd:Q9056 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; -} diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql new file mode 100644 index 00000000..ce0d91d1 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql @@ -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]". + } +} diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql new file mode 100644 index 00000000..e4f5cdb7 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql @@ -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]". + } +}