Skip to content

Commit

Permalink
Minor edit to remove plural that wasn't returning data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Oct 8, 2024
1 parent 2a34087 commit 51d75c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ WHERE {
}
} .

BIND(lang(?singular) as ?langSingular)
BIND(lang(?plural) as ?langPlural)
FILTER(?langSingular = "hi")
FILTER(?langPlural = "hi")
FILTER(lang(?singular) = "hi")
FILTER(lang(?plural) = "hi")

SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
Expand Down
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")
}

0 comments on commit 51d75c6

Please sign in to comment.