Skip to content

Commit

Permalink
Merge pull request #241 from KesharwaniArpita/ArpitaContributions
Browse files Browse the repository at this point in the history
Expanding the Scribe-Data Basque Verb query
  • Loading branch information
andrewtavis authored Oct 5, 2024
2 parents 25e552e + 8880164 commit 0ecd625
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 4 deletions.
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 .
}
}
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 .
} .
}

0 comments on commit 0ecd625

Please sign in to comment.