Skip to content

Commit

Permalink
Merge pull request #394 from OkpePhillips/italian-verb-query
Browse files Browse the repository at this point in the history
Expand Italian verbs query
  • Loading branch information
andrewtavis authored Oct 16, 2024
2 parents 367f7df + 74ecfbc commit eef5b4c
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ SELECT
?infinitive
?presFPS ?presSPS ?presTPS
?presFPP ?presSPP ?presTPP
?pretFPS ?pretSPS ?pretTPS
?pretFPP ?pretSPP ?pretTPP


WHERE {
?lexeme dct:language wd:Q652 ;
Expand All @@ -21,43 +20,43 @@ WHERE {
OPTIONAL {
?lexeme ontolex:lexicalForm ?presFPSForm .
?presFPSForm ontolex:representation ?presFPS ;
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929218 .
}
wikibase:grammaticalFeature wd:Q56682909, wd:Q21714344, wd:Q110786 .
}

# SPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?presSPSForm .
?presSPSForm ontolex:representation ?presSPS ;
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929369 .
}
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q110786 .
}

# TPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?presTPSForm .
?presTPSForm ontolex:representation ?presTPS ;
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929447 .
}
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929074, wd:Q110786 .
}

# FPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?presFPPForm .
?presFPPForm ontolex:representation ?presFPP ;
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929290 .
}
wikibase:grammaticalFeature wd:Q56682909, wd:Q21714344, wd:Q146786 .
}

# SPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?presSPPForm .
?presSPPForm ontolex:representation ?presSPP ;
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929403 .
}
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q146786 .
}

# TPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?presTPPForm .
?presTPPForm ontolex:representation ?presTPP ;
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929517 .
}
wikibase:grammaticalFeature wd:Q56682909, wd:Q51929074, wd:Q146786 .
}

# MARK: Preterite

Expand All @@ -66,40 +65,40 @@ WHERE {
?lexeme ontolex:lexicalForm ?pretFPSForm .
?pretFPSForm ontolex:representation ?pretFPS ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929218 .
}
}

# SPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretSPSForm .
?pretSPSForm ontolex:representation ?pretSPS ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929369 .
}
}

# TPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretTPSForm .
?pretTPSForm ontolex:representation ?pretTPS ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929447 .
}
}

# FPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretFPPForm .
?pretFPPForm ontolex:representation ?pretFPP ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929290 .
}
}

# SPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretSPPForm .
?pretSPPForm ontolex:representation ?pretSPP ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929403 .
}
}

# TPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretTPPForm .
?pretTPPForm ontolex:representation ?pretTPP ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929517 .
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,41 @@ WHERE {
OPTIONAL {
?lexeme ontolex:lexicalForm ?impFPSForm .
?impFPSForm ontolex:representation ?impFPS ;
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929218 .
}
wikibase:grammaticalFeature wd:Q12547192, wd:Q21714344, wd:Q110786 .
}

# SPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?impSPSForm .
?impSPSForm ontolex:representation ?impSPS ;
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929369 .
}
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q110786 .
}

# TPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?impTPSForm .
?impTPSForm ontolex:representation ?impTPS ;
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929447 .
}
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929074, wd:Q110786 .
}

# FPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?impFPPForm .
?impFPPForm ontolex:representation ?impFPP ;
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929290 .
}
wikibase:grammaticalFeature wd:Q12547192, wd:Q21714344, wd:Q146786 .
}

# SPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?impSPPForm .
?impSPPForm ontolex:representation ?impSPP ;
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929403 .
}
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q146786 .
}

# TPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?impTPPForm .
?impTPPForm ontolex:representation ?impTPP ;
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929517 .
}
wikibase:grammaticalFeature wd:Q12547192, wd:Q51929074, wd:Q146786 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

# tool: scribe-data
# All Italian (Q652) 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
?pretFPS ?pretSPS ?pretTPS
?pretFPP ?pretSPP ?pretTPP

WHERE {
?lexeme dct:language wd:Q652 ;
wikibase:lexicalCategory wd:Q24905 ;
wikibase:lemma ?infinitive .

# MARK: Preterite

# FPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretFPSForm .
?pretFPSForm ontolex:representation ?pretFPS ;
wikibase:grammaticalFeature wd:Q442485, wd:Q21714344, wd:Q110786 .
}

# SPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretSPSForm .
?pretSPSForm ontolex:representation ?pretSPS ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q110786 .
}

# TPS
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretTPSForm .
?pretTPSForm ontolex:representation ?pretTPS ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929074, wd:Q110786 .
}

# FPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretFPPForm .
?pretFPPForm ontolex:representation ?pretFPP ;
wikibase:grammaticalFeature wd:Q442485, wd:Q21714344, wd:Q146786 .
}

# SPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretSPPForm .
?pretSPPForm ontolex:representation ?pretSPP ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q146786 .
}

# TPP
OPTIONAL {
?lexeme ontolex:lexicalForm ?pretTPPForm .
?pretTPPForm ontolex:representation ?pretTPP ;
wikibase:grammaticalFeature wd:Q442485, wd:Q51929074, wd:Q146786 .
}
}

0 comments on commit eef5b4c

Please sign in to comment.