Skip to content

Commit

Permalink
Merge pull request #445 from KesharwaniArpita/AK-NorthernSami
Browse files Browse the repository at this point in the history
Added the Queries for Northern Sami
  • Loading branch information
andrewtavis authored Oct 20, 2024
2 parents 05bad5d + 7b2568b commit 4e11d67
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All Northern Sami(Q33947) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q33947 ;
wikibase:lexicalCategory wd:Q34698 ;
wikibase:lemma ?verb .
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All Northern Sami(Q33947) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q33947 ;
wikibase:lexicalCategory wd:Q380057 ;
wikibase:lemma ?adverb .
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# tool: scribe-data
# All Northern Sami(Q33947) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?nominativeSingular
?nominativePlural
?genitiveSingular
?genitivePlural
?dativeSingular
?dativePlural
?accusativeSingular
?accusativePlural
?instrumentalSingular
?instrumentalPlural
?locativeSingular
?locativePlural
?vocativeSingular
?vocativePlural

WHERE {
?lexeme dct:language wd:Q9078 ;
wikibase:lexicalCategory wd:Q1084 .

# MARK: Nominative

OPTIONAL {
?lexeme ontolex:lexicalForm ?nominativeSingularForm .
?nominativeSingularForm ontolex:representation ?nominativeSingular ;
wikibase:grammaticalFeature wd:Q131105, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?nominativePluralForm .
?nominativePluralForm ontolex:representation ?nominativePlural ;
wikibase:grammaticalFeature wd:Q131105, wd:Q146786 .
}

# MARK: Genitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?genitiveSingularForm .
?genitiveSingularForm ontolex:representation ?genitiveSingular ;
wikibase:grammaticalFeature wd:Q146233, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?genitivePluralForm .
?genitivePluralForm ontolex:representation ?genitivePlural ;
wikibase:grammaticalFeature wd:Q146233, wd:Q146786 .
}

# MARK: Dative

OPTIONAL {
?lexeme ontolex:lexicalForm ?dativeSingularForm .
?dativeSingularForm ontolex:representation ?dativeSingular ;
wikibase:grammaticalFeature wd:Q145599, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?dativePluralForm .
?dativePluralForm ontolex:representation ?dativePlural ;
wikibase:grammaticalFeature wd:Q145599, wd:Q146786 .
}

# MARK: Accusative

OPTIONAL {
?lexeme ontolex:lexicalForm ?accusativeSingularForm .
?accusativeSingularForm ontolex:representation ?accusativeSingular ;
wikibase:grammaticalFeature wd:Q146078, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?accusativePluralForm .
?accusativePluralForm ontolex:representation ?accusativePlural ;
wikibase:grammaticalFeature wd:Q146078, wd:Q146786 .
}

# MARK: Instrumental

OPTIONAL {
?lexeme ontolex:lexicalForm ?instrumentalSingularForm .
?instrumentalSingularForm ontolex:representation ?instrumentalSingular ;
wikibase:grammaticalFeature wd:Q192997, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?instrumentalPluralForm .
?instrumentalPluralForm ontolex:representation ?instrumentalPlural ;
wikibase:grammaticalFeature wd:Q192997, wd:Q146786 .
}

# MARK: Locative

OPTIONAL {
?lexeme ontolex:lexicalForm ?locativeSingularForm .
?locativeSingularForm ontolex:representation ?locativeSingular ;
wikibase:grammaticalFeature wd:Q202142, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?locativePluralForm .
?locativePluralForm ontolex:representation ?locativePlural ;
wikibase:grammaticalFeature wd:Q202142, wd:Q146786 .
}

# MARK: Vocative

OPTIONAL {
?lexeme ontolex:lexicalForm ?vocativeSingularForm .
?vocativeSingularForm ontolex:representation ?vocativeSingular ;
wikibase:grammaticalFeature wd:Q185077, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?vocativePluralForm .
?vocativePluralForm ontolex:representation ?vocativePlural ;
wikibase:grammaticalFeature wd:Q185077, wd:Q146786 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All Northern Sami(Q33947) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q33947 ;
wikibase:lexicalCategory wd:Q24905 ;
wikibase:lemma ?verb .
}
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 @@ -119,6 +119,10 @@
"iso": "ml",
"qid": "Q36236"
},
"northern sami": {
"iso": "se",
"qid": "Q33947"
},
"norwegian": {
"sub_languages": {
"bokmål": {
Expand Down
1 change: 1 addition & 0 deletions tests/load/test_update_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def test_list_all_languages():
"malayalam",
"mandarin",
"nigerian",
"northern sami",
"nynorsk",
"polish",
"portuguese",
Expand Down

0 comments on commit 4e11d67

Please sign in to comment.