Skip to content

Commit

Permalink
Fix SPARQL query files based on the check docstring function results
Browse files Browse the repository at this point in the history
- Corrected docstring formatting issues in diagnosed SPARQL query files.
- Created a new SPARQL query file for Bokmål adverbs.(bonus)
  • Loading branch information
OmarAI2003 committed Oct 26, 2024
1 parent 39d1bac commit 9cb19e4
Show file tree
Hide file tree
Showing 57 changed files with 72 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) adjectives (Q34698) and the given forms.
# All Bengali (Q9610) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) adverbs (Q380057) and the given forms.
# All Bengali (Q9610) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) nouns (Q1084) and the given forms.
# All Bengali (Q9610) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) postpositions (Q161873) and the given forms.
# All Bengali (Q9610) postpositions (Q161873) and the given forms.
# Enter this query at https://query.wikidata.org/.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) prepositions (Q4833830) and the given forms.
# All Bengali (Q9610) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) proper nouns (Q147276) and the given forms.
# All Bengali (Q9610) proper nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bengali (Bangla Q9610) verbs (Q24905) and the given forms.
# All Bengali (Q9610) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# Dagbani (Q32238) adjectives (Q34698) and the given forms.
# All Dagbani (Q32238) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Dagbani (Q32238) prepositions and the given forms.
# All Dagbani (Q32238) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# Dagbani (Q32238) verbs and the given forms.
# All Dagbani (Q32238) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) adjectives (Q34698) and the given forms..
# All Hindi (Q11051) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) adverbs (Q380057) and the given forms.
# All Hindi (Q11051) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) nouns (Q1084) and the given forms.
# All Hindi (Q11051) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) postpositions (Q161873) and the given forms.
# All Hindi (Q11051) postpositions (Q161873) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) prepositions (Q4833830) and the given forms.
# All Hindi (Q11051) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) proper nouns (Q147276) and the given forms.
# All Hindi (Q11051) proper nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Hindi (from Hindustani Q11051) verbs (Q24905) and the given forms.
# All Hindi (Q11051) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "hi" to remove Urdu (ur) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) adjectives (Q34698) and the given forms..
# All Urdu (Q11051) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindi (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) adverbs (Q380057) and the given forms.
# All Urdu (Q11051) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindi (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) nouns (Q1084) and the given forms.
# All Urdu (Q11051) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindi (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) postpositions (Q161873) and the given forms.
# All Urdu (Q11051) postpositions (Q161873) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindi (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) prepositions (Q4833830) and the given forms.
# All Urdu (Q11051) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindi (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) proper nouns (Q147276) and the given forms.
# All Urdu (Q11051) proper nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindi (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Urdu (from Hindustani Q11051) verbs and the currently implemented conjugations for each.
# All Urdu (Q11051) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "ur" to remove Hindustani (hi) words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# tool: scribe-data
# tool: scribe-data
# All Indonesian (Q9240) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

# tool: scribe-data
# All Italian (Q652) verbs and the currently implemented tenses for each.
# All Italian (Q652) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Malayalam (Q36236) nouns (Q1084) and the given forms and the given forms.
# All Malayalam (Q36236) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Malayalam (Q36236) proper nouns (Q147276) and the given forms and the given forms.
# All Malayalam (Q36236) proper nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# tool: scribe-data
# All Bokmål Norwegian (Q25167) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

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

WHERE {
?lexeme dct:language wd:Q25167 ;
wikibase:lexicalCategory wd:Q380057 ;
wikibase:lemma ?adverb .
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bokmål (Q25167) verbs and basic forms.
# All Bokmål (Q25167) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Bokmål (Q25167) verbs and additional forms.
# All Bokmål (Q25167) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Nynorsk Norwegian (Q25164) adverbs.
# All Nynorsk Norwegian (Q25164) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: This query is for Nynorsk (Q25164) rather than Bokmål (Q25167).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All persian (Q9168) prepositions and the given forms.
# All persian (Q9168) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and their indicative aorist forms.
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and the given forms, including past tense.
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Persian (Q9168) verbs and the given present perfect tense forms.
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Persian (Q9168) verbs (Q24905) and the given forms, including present subjunctive.
# All Persian (Q9168) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Gurmukhi (from Punjabi Q58635) adjectives (Q34698) and the given forms.
# All Punjabi Gurmukhi (Q58635) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Gurmukhi (from Punjabi Q58635) adverbs (Q380057) and the given forms.
# All Punjabi Shahmukhi (Q58635) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Gurmukhi (from Punjabi Q58635) nouns (Q1084) and the given forms.
# All Punjabi Gurmukhi (Q58635) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "pa" to select Gurmukhi words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Gurmukhi (from Punjabi Q58635) prepositions (Q4833830) and the given forms.
# All Punjabi Gurmukhi (Q58635) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Gurmukhi (from Punjabi Q58635) proper nouns (Q147276) and the given forms.
# All Punjabi Gurmukhi (Q58635) proper nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "pa" to select Gurmukhi words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Gurmukhi (from Punjabi Q58635) verbs (Q24905) and the given forms.
# All Punjabi Gurmukhi (Q58635) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "pa" to select Gurmukhi words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Shahmukhi (from Punjabi Q58635) adjectives (Q34698) and the given forms.
# All Punjabi Shahmukhi (Q58635) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Shahmukhi (from Punjabi Q58635) adverbs (Q380057) and the given forms.
# All Punjabi Shahmukhi (Q58635) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Shahmukhi (from Punjabi Q58635) nouns (Q1084) and the given forms.
# All Punjabi Shahmukhi (Q58635) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "pnb" to select Shahmukhi words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Shahmukhi (from Punjabi Q58635) prepositions (Q4833830) and the given forms.
# All Punjabi Shahmukhi (Q58635) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Shahmukhi (from Punjabi Q58635) proper nouns (Q147276) and the given forms.
# All Punjabi Shahmukhi (Q58635) proper nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "pnb" to select Shahmukhi words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Shahmukhi (from Punjabi Q58635) verbs (Q24905) and the given forms.
# All Punjabi Shahmukhi (Q58635) verbs (Q24905) and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: We need to filter for "pnb" to select Shahmukhi words.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Northern Sami(Q33947) adjectives (Q34698) and the given forms.
# All Northern Sami (Q33947) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

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

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Northern Sami(Q33947) nouns (Q1084) and the given forms.
# All Northern Sami (Q33947) nouns (Q1084) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Northern Sami(Q33947) prepositions (Q4833830) and the given forms.
# All Northern Sami (Q33947) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tool: scribe-data
# All Northern Sami(Q33947) nouns (Q147276) and the given forms.
# All Northern Sami (Q33947) nouns (Q147276) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
Expand Down
Loading

0 comments on commit 9cb19e4

Please sign in to comment.