Skip to content

Commit

Permalink
Update query_verbs.sparql
Browse files Browse the repository at this point in the history
  • Loading branch information
Otom-obhazi authored Oct 18, 2024
1 parent 9df1756 commit 83ca7e9
Showing 1 changed file with 82 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,90 @@
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive
?presSimp
?presTPS
?presPart
?pastSimp
?pastPart
?futSimp

WHERE {
?lexeme dct:language wd:Q9058 ;
wikibase:lexicalCategory wd:Q24905 .

# MARK: Infinitive

?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 ;
?lexeme dct:language wd:Q9056 ;
wikibase:lexicalCategory wd:Q24905 ; # Q24905 = Verbs
wikibase:lemma ?infinitive .

# MARK: Simple Present

OPTIONAL {
?lexeme ontolex:lexicalForm ?presSimpForm .
?presSimpForm ontolex:representation ?presSimp ;
wikibase:grammaticalFeature wd:Q3910936 ; # Q3910936 = Present tense
FILTER NOT EXISTS { ?presSimpForm wikibase:grammaticalFeature wd:Q51929074 . } # Exclude 3rd person singular
FILTER NOT EXISTS { ?presSimpForm wdt:P6191 wd:Q181970 . } # Exclude imperative
FILTER NOT EXISTS { ?presSimpForm wikibase:grammaticalFeature wd:Q126473 . } # Exclude negative
FILTER(LANG(?presSimp) = "sk") . # Slovak language
}

# MARK: Third-person Singular Present

OPTIONAL {
?lexeme ontolex:lexicalForm ?presTPSForm .
?presTPSForm ontolex:representation ?presTPS ;
wikibase:grammaticalFeature wd:Q51929074 ; # Q51929074 = 3rd person singular
wikibase:grammaticalFeature wd:Q110786 ; # Q110786 = Singular
wikibase:grammaticalFeature wd:Q3910936 ; # Q3910936 = Present tense
FILTER NOT EXISTS { ?presTPSForm wdt:P6191 wd:Q181970 . } # Exclude imperative
FILTER NOT EXISTS { ?presTPSForm wikibase:grammaticalFeature wd:Q126473 . } # Exclude negative
FILTER(LANG(?presTPS) = "sk") . # Slovak language
}

# MARK: Present Participle

OPTIONAL {
?lexeme ontolex:lexicalForm ?presPartForm .
?presPartForm ontolex:representation ?presPart ;
wikibase:grammaticalFeature wd:Q10345583 ; # Q10345583 = Present participle
FILTER NOT EXISTS { ?presPartForm wdt:P6191 wd:Q181970 . } # Exclude imperative
FILTER NOT EXISTS { ?presPartForm wikibase:grammaticalFeature wd:Q126473 . } # Exclude negative
FILTER(LANG(?presPart) = "sk") . # Slovak language
}

# MARK: Simple Past

OPTIONAL {
?lexeme ontolex:lexicalForm ?pastSimpForm .
?pastSimpForm ontolex:representation ?pastSimp ;
wikibase:grammaticalFeature wd:Q1392475 ; # Q1392475 = Past tense
FILTER NOT EXISTS { ?pastSimpForm wdt:P6191 wd:Q181970 . } # Exclude imperative
FILTER NOT EXISTS { ?pastSimpForm wikibase:grammaticalFeature wd:Q126473 . } # Exclude negative
FILTER(LANG(?pastSimp) = "sk") . # Slovak language
}

# MARK: Past Participle

OPTIONAL {
?lexeme ontolex:lexicalForm ?pastPartForm .
?pastPartForm ontolex:representation ?pastPart ;
wikibase:grammaticalFeature wd:Q1230649 ; # Q1230649 = Past participle
FILTER NOT EXISTS { ?pastPartForm wdt:P6191 wd:Q181970 . } # Exclude imperative
FILTER NOT EXISTS { ?pastPartForm wikibase:grammaticalFeature wd:Q126473 . } # Exclude negative
FILTER(LANG(?pastPart) = "sk") . # Slovak language
}

# MARK: Future Simple

OPTIONAL {
?lexeme ontolex:lexicalForm ?futSimpForm .
?futSimpForm ontolex:representation ?futSimp ;
wikibase:grammaticalFeature wd:Q18668199 ; # Q18668199 = Future tense
FILTER NOT EXISTS { ?futSimpForm wdt:P6191 wd:Q181970 . } # Exclude imperative
FILTER NOT EXISTS { ?futSimpForm wikibase:grammaticalFeature wd:Q126473 . } # Exclude negative
FILTER(LANG(?futSimp) = "sk") . # Slovak language
}

SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
}
}

0 comments on commit 83ca7e9

Please sign in to comment.