-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
def8282
commit 3706dcd
Showing
1 changed file
with
10 additions
and
15 deletions.
There are no files selected for viewing
25 changes: 10 additions & 15 deletions
25
src/scribe_data/language_data_extraction/Korean/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,18 +1,13 @@ | ||
SELECT DISTINCT | ||
# tool: scribe-data | ||
# All Korean (Q9176) nouns (Q1084) and the given forms. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?pronoun ?noun | ||
WHERE { | ||
?lexeme dct:language wd:Q9176 ; # Ukrainian language | ||
wikibase:lemma ?lemma ; | ||
wikibase:lexicalCategory ?category . | ||
?noun | ||
|
||
# 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 . | ||
} | ||
WHERE { | ||
?lexeme dct:language wd:Q9176 ; | ||
wikibase:lexicalCategory wd:Q1084 ; | ||
wikibase:lemma ?noun . | ||
} |