From def8282c75331c11303e43b542a69afc31be0e2f Mon Sep 17 00:00:00 2001 From: KimYeonWoo Date: Tue, 22 Oct 2024 01:55:17 +0900 Subject: [PATCH] korean noun pr --- .../Korean/query_nouns.sparql | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/scribe_data/language_data_extraction/Korean/query_nouns.sparql b/src/scribe_data/language_data_extraction/Korean/query_nouns.sparql index 75f92721b..063c25a7a 100644 --- a/src/scribe_data/language_data_extraction/Korean/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Korean/query_nouns.sparql @@ -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 . + } }