Skip to content

Commit

Permalink
Merge pull request #278 from DeleMike/feat/nigerian-pidgin-noun-query
Browse files Browse the repository at this point in the history
Add SPARQL query for extracting Nigerian Pidgin nouns with gender and plurals
  • Loading branch information
andrewtavis authored Oct 8, 2024
2 parents 4a552ca + dcdc0fd commit eb47ae7
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# tool: scribe-data
# All Nigerian Pidgin (Q33655) nouns, their plurals and their genders.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?singular
?plural
?gender

WHERE {
VALUES ?nounTypes {wd:Q1084 wd:Q147276} # Nouns and pronouns

?lexeme dct:language wd:Q33655 ; # Nigerian Pidgin
wikibase:lexicalCategory ?nounTypes ;
wikibase:lemma ?singular .

# MARK: Plural

OPTIONAL {
?lexeme ontolex:lexicalForm ?pluralForm .
?pluralForm ontolex:representation ?plural ;
wikibase:grammaticalFeature wd:Q146786 ;
} .

# MARK: Gender(s)

OPTIONAL {
?lexeme wdt:P5185 ?nounGender .
FILTER NOT EXISTS {
?lexeme wdt:P31 wd:Q202444 .
}
} .

SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
?nounGender rdfs:label ?gender .
}
}

0 comments on commit eb47ae7

Please sign in to comment.