Skip to content

Commit

Permalink
Merge pull request #262 from KesharwaniArpita/ArpitaContributions
Browse files Browse the repository at this point in the history
Expanded Esperanto `query_verbs.sparql` with Tenses and Cases and Created adjective Query
  • Loading branch information
andrewtavis authored Oct 7, 2024
2 parents b291110 + e505256 commit 02c7e1b
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# tool: scribe-data
# All Esperanto (Q143) adjectives.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?adjective

WHERE {
# Select lexemes in Esperanto that are adjectives
?lexeme dct:language wd:Q143 ; # Esperanto
wikibase:lexicalCategory wd:Q34698 ; # Adjective
wikibase:lemma ?adjective .

# Ensure we get only the lexeme forms that are adjectives in Esperanto
FILTER(LANG(?adjective) = "eo") .
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,68 @@
# tool: scribe-data
# All Esperanto (Q143) verbs.
# All Esperanto (Q143) verbs and the currently implemented tenses for each.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?verb
?infinitive
?presIndicative
?pastIndicative
?futIndicative
?conditional
?volitive

WHERE {
# MARK: Infinitive

?lexeme dct:language wd:Q143 ;
wikibase:lexicalCategory wd:Q24905 ;
wikibase:lemma ?verb .
wikibase:lemma ?infinitive .

# MARK: Present Tense

OPTIONAL {
?lexeme ontolex:lexicalForm ?presIndicativeForm .
?presIndicativeForm ontolex:representation ?presIndicative ;
wikibase:grammaticalFeature wd:Q192613 ;
wikibase:grammaticalFeature wd:Q682111 ;
FILTER(LANG(?presIndicative) = "eo") .
} .

# MARK: Past Tense

OPTIONAL {
?lexeme ontolex:lexicalForm ?pastIndicativeForm .
?pastIndicativeForm ontolex:representation ?pastIndicative ;
wikibase:grammaticalFeature wd:Q1994301 ;
wikibase:grammaticalFeature wd:Q682111 ;
FILTER(LANG(?pastIndicative) = "eo") .
} .

# MARK: Future Tense

OPTIONAL {
?lexeme ontolex:lexicalForm ?futIndicativeForm .
?futIndicativeForm ontolex:representation ?futIndicative ;
wikibase:grammaticalFeature wd:Q501405 ;
wikibase:grammaticalFeature wd:Q682111 ;
FILTER(LANG(?futIndicative) = "eo") .
} .

# MARK: Conditional

OPTIONAL {
?lexeme ontolex:lexicalForm ?conditionalForm .
?conditionalForm ontolex:representation ?conditional ;
wikibase:grammaticalFeature wd:Q625581 ;
FILTER(LANG(?conditional) = "eo") .
} .

# MARK: Volitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?volitiveForm .
?volitiveForm ontolex:representation ?volitive ;
wikibase:grammaticalFeature wd:Q2532941 ;
FILTER(LANG(?volitive) = "eo") .
} .
}

0 comments on commit 02c7e1b

Please sign in to comment.