From f74a5085fd4a2ab58c82f1b18f0fa67a991d3169 Mon Sep 17 00:00:00 2001 From: DanielGevaZA Date: Tue, 1 Oct 2024 08:25:01 +0200 Subject: [PATCH] Update query_verbs.sparql --- .../Hebrew/verbs/query_verbs.sparql | 68 ++++++++++++++++--- 1 file changed, 59 insertions(+), 9 deletions(-) diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql index 12a4cf47f..a7770cc9c 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs.sparql @@ -2,15 +2,65 @@ # All Hebrew (Q9288) verbs. # Enter this query at https://query.wikidata.org/. -SELECT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?verb +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) # Extracts the lexeme ID from the URL + ?infinitive + ?pastFPS ?pastSPS ?pastTPS + ?pastFPP ?pastSPP ?pastTPP + ?presMasculine ?presFeminine ?presPlural WHERE { - ?lexeme dct:language wd:Q9288 ; - wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?verb . + ?lexeme dct:language wd:he ; # Filters for Hebrew verbs + wikibase:lexicalCategory wd:Q24905 . # Specifies the lexical category for verbs - BIND(lang(?verb) as ?language) - FILTER(?language = "he") -} + # Infinitive (required) + ?lexeme ontolex:lexicalForm ?infinitiveForm . + ?infinitiveForm ontolex:representation ?infinitive ; + wikibase:grammaticalFeature wd:Q179230 . # Infinitive grammatical feature + + # Past Tense Conjugations (optional) + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastFPSForm . + ?pastFPSForm ontolex:representation ?pastFPS ; + wikibase:grammaticalFeature wd:Q21714344 ; # 1st person singular past + wikibase:grammaticalFeature wd:Q110786 ; # Past tense + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + wikibase:grammaticalFeature wd:Q1994301 ; # Masculine gender + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPSForm . + ?pastSPSForm ontolex:representation ?pastSPS ; + wikibase:grammaticalFeature wd:Q51929049 ; # 3rd person singular past + wikibase:grammaticalFeature wd:Q110786 ; # Past tense + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + wikibase:grammaticalFeature wd:Q499327 ; # Masculine gender + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPSForm . + ?pastTPSForm ontolex:representation ?pastTPS ; + wikibase:grammaticalFeature wd:Q51929074 ; # 3rd person plural past + wikibase:grammaticalFeature wd:Q110786 ; # Past tense + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastFPPForm . + ?pastFPPForm ontolex:representation ?pastFPP ; + wikibase:grammaticalFeature wd:Q21714344 ; # 1st person singular past + wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastSPPForm . + ?pastSPPForm ontolex:representation ?pastSPP ; + wikibase:grammaticalFeature wd:Q51929049 ; # 3rd person singular past + wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastTPPForm . + ?pastTPPForm ontolex:representation ?pastTPP ; + wikibase:grammaticalFeature wd:Q51929074 ; # 3rd person plural past + wikibase:grammaticalFeature wd:Q146786 ; # Feminine gender + wikibase:grammaticalFeature wd:Q682111 ; # Singular number + } . +} \ No newline at end of file