Skip to content

Commit

Permalink
korean noun pr
Browse files Browse the repository at this point in the history
  • Loading branch information
kyw0803 committed Oct 21, 2024
1 parent af0a1ac commit def8282
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/scribe_data/language_data_extraction/Korean/query_nouns.sparql
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# tool: scribe-data
# Enter this query at https://query.wikidata.org/.

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

?pronoun ?noun
WHERE {
VALUES ?nounTypes {wd:Q36224 wd:Q1084}
?lexeme dct:language wd:Q9176 ; # Ukrainian language
wikibase:lemma ?lemma ;
wikibase:lexicalCategory ?category .

?lexeme dct:language wd:Q9176 ;
wikibase:lexicalCategory ?nounTypes ;
wikibase:lemma ?pronoun
# Separate pronouns and nouns into different columns
OPTIONAL {
?lexeme wikibase:lexicalCategory wd:Q1084 ; # Pronoun category
wikibase:lemma ?noun.
}
OPTIONAL {
?lexeme wikibase:lexicalCategory wd:Q36224 ; # Noun category
wikibase:lemma ?pronoun .
}
}

0 comments on commit def8282

Please sign in to comment.