Skip to content

Commit

Permalink
Dagbani dir (#416)
Browse files Browse the repository at this point in the history
* Created a folder for Dagbani language

* Added verb query for Dagbani language

* created a verb folder and moved  verb_query.sparql for into it

* Added adjectiven query for Dagbani language

* Removed extra whitspace in query_nouns.sparql

* Added noun  query for Dagbani language

* Remove repeat and empty files and fix queries

* Add Dagbani to the metadata file

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
  • Loading branch information
Ebeleokolo and andrewtavis authored Oct 19, 2024
1 parent 6698840 commit d88a191
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# tool: scribe-data
# Dagbani (Q32238) adjectives and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q32238 ;
wikibase:lexicalCategory wd:Q34698 ;
wikibase:lemma ?adjective .

# MARK: Singular

OPTIONAL {
?lexeme ontolex:lexicalForm ?singularForm .
?singularForm ontolex:representation ?singular ;
wikibase:grammaticalFeature wd:Q110786 .
}

# MARK: Plural

OPTIONAL {
?lexeme ontolex:lexicalForm ?pluralForm .
?pluralForm ontolex:representation ?plural ;
wikibase:grammaticalFeature wd:Q146786 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# tool: scribe-data
# Dagbani (Q32238) verbs and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?verb
?presentContinuous
?past
?future
?imperative

WHERE {
?lexeme dct:language wd:Q32238 ;
wikibase:lexicalCategory wd:Q24905 ;
wikibase:lemma ?verb .

# MARK: Present Continuous

OPTIONAL {
?lexeme ontolex:lexicalForm ?presentContinuousForm .
?presentContinuousForm ontolex:representation ?presentContinuous ;
wikibase:grammaticalFeature wd:Q7240943 .
}

# MARK: Past

OPTIONAL {
?lexeme ontolex:lexicalForm ?pastForm .
?pastForm ontolex:representation ?past ;
wikibase:grammaticalFeature wd:Q1994301 .
}

# MARK: Future

OPTIONAL {
?lexeme ontolex:lexicalForm ?futureForm .
?futureForm ontolex:representation ?future ;
wikibase:grammaticalFeature wd:Q501405 .
}

# MARK: Imperative
OPTIONAL {
?lexeme ontolex:lexicalForm ?imperativeForm .
?imperativeForm ontolex:representation ?imperative ;
wikibase:grammaticalFeature wd:Q22716 .
}
}
4 changes: 4 additions & 0 deletions src/scribe_data/resources/language_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"iso": "cs",
"qid": "Q9056"
},
"dagbani": {
"iso": "dag",
"qid": "Q32238"
},
"danish": {
"iso": "da",
"qid": "Q9035"
Expand Down

0 comments on commit d88a191

Please sign in to comment.