-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor edit to remove plural that wasn't returning data
- Loading branch information
1 parent
2a34087
commit 51d75c6
Showing
2 changed files
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 9 additions & 18 deletions
27
src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
# tool: scribe-data | ||
# All Swahili (Q7838) nouns and their plurals. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT DISTINCT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?lemma | ||
?singular | ||
?plural | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?singular | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q7838 ; | ||
wikibase:lexicalCategory wd:Q1084 ; | ||
wikibase:lemma ?lemma . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?singularForm . | ||
?singularForm ontolex:representation ?singular ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pluralForm . | ||
?pluralForm ontolex:representation ?plural ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
} . | ||
wikibase:lexicalCategory wd:Q1084 ; | ||
wikibase:lemma ?singular . | ||
FILTER(lang(?singular) = "sw") | ||
} |