-
Notifications
You must be signed in to change notification settings - Fork 61
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 #241 from KesharwaniArpita/ArpitaContributions
Expanding the Scribe-Data Basque Verb query
- Loading branch information
Showing
2 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/scribe_data/language_data_extraction/Basque/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,18 @@ | ||
# tool: scribe-data | ||
# All Basque (Q8752) adjectives. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?adjective | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q8752 ; | ||
wikibase:lexicalCategory wd:Q34698 ; | ||
wikibase:lemma ?lemma . | ||
|
||
SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". | ||
?lemma rdfs:label ?adjective . | ||
} | ||
} |
55 changes: 51 additions & 4 deletions
55
src/scribe_data/language_data_extraction/Basque/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,60 @@ | ||
# tool: scribe-data | ||
# All Basque (Q8752) verbs. | ||
# All Basque (Q8752) 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 | ||
?future | ||
?gerund | ||
?imperfective | ||
?nominalized | ||
?participle | ||
|
||
WHERE { | ||
# MARK: Infinitive | ||
|
||
?lexeme dct:language wd:Q8752 ; | ||
wikibase:lexicalCategory wd:Q24905 ; | ||
wikibase:lemma ?verb . | ||
wikibase:lemma ?infinitive . | ||
|
||
# MARK: Future | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?futureForm . | ||
?futureForm ontolex:representation ?future ; | ||
wikibase:grammaticalFeature wd:Q501405 . | ||
} . | ||
|
||
# MARK: Gerund | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?gerundForm . | ||
?gerundForm ontolex:representation ?gerund ; | ||
wikibase:grammaticalFeature wd:Q1923028 . | ||
} . | ||
|
||
# MARK: Imperfective | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?imperfectiveForm . | ||
?imperfectiveForm ontolex:representation ?imperfective ; | ||
wikibase:grammaticalFeature wd:Q54556033 . | ||
} . | ||
|
||
# MARK: Nominalized | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?nominalizedForm . | ||
?nominalizedForm ontolex:representation ?nominalized ; | ||
wikibase:grammaticalFeature wd:Q74674960 . | ||
} . | ||
|
||
# MARK: Participle | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?participleForm . | ||
?participleForm ontolex:representation ?participle ; | ||
wikibase:grammaticalFeature wd:Q814722 . | ||
} . | ||
} |