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"