From d88a19155b7d25415fdfa9a980abcd1898b5aa2c Mon Sep 17 00:00:00 2001 From: Ebele Okolo <147193722+Ebeleokolo@users.noreply.github.com> Date: Sat, 19 Oct 2024 13:26:48 +0100 Subject: [PATCH] Dagbani dir (#416) * 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 --- .../adjectives/query_adjectives.sparql | 31 ++++++++++++ .../Dagbani/verbs/query_verbs.sparql | 48 +++++++++++++++++++ .../resources/language_metadata.json | 4 ++ 3 files changed, 83 insertions(+) create mode 100644 src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql create mode 100644 src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql diff --git a/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql new file mode 100644 index 000000000..f218feb5d --- /dev/null +++ b/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql @@ -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 . + } +} diff --git a/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql new file mode 100644 index 000000000..775c384e1 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql @@ -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 . + } +} diff --git a/src/scribe_data/resources/language_metadata.json b/src/scribe_data/resources/language_metadata.json index 7ab2145bf..208ae8fe1 100755 --- a/src/scribe_data/resources/language_metadata.json +++ b/src/scribe_data/resources/language_metadata.json @@ -23,6 +23,10 @@ "iso": "cs", "qid": "Q9056" }, + "dagbani": { + "iso": "dag", + "qid": "Q32238" + }, "danish": { "iso": "da", "qid": "Q9035"