Skip to content

Commit

Permalink
Expansion: Expanded the query for czech verbs to retrieve various con…
Browse files Browse the repository at this point in the history
…jugations of verbs from wikidata
  • Loading branch information
OkpePhillips committed Oct 5, 2024
1 parent 7db43fd commit b9e0e0a
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 18 deletions.

This file was deleted.

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]".
}
}
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]".
}
}

0 comments on commit b9e0e0a

Please sign in to comment.