-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from KesharwaniArpita/ArpitaContributions
Expanded Esperanto `query_verbs.sparql` with Tenses and Cases and Created adjective Query
- Loading branch information
Showing
2 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") . | ||
} |
63 changes: 59 additions & 4 deletions
63
src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") . | ||
} . | ||
} |