Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: Comprehensive expansion of Ukrainian lexeme extraction queries (Issue #237 fixed) #424

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# tool: scribe-data
# All Ukrainian (Q8798) adjectives and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?lemma
?feminineSingularNominative
?masculineSingularNominative
?neuterSingularNominative
?pluralNominative
?comparativeForm
?superlativeForm

WHERE {
?lexeme dct:language wd:Q8798 ;
wikibase:lexicalCategory wd:Q34698 ;
wikibase:lemma ?lemma .

OPTIONAL {
?lexeme ontolex:lexicalForm ?feminineSingularNominativeForm .
?feminineSingularNominativeForm ontolex:representation ?feminineSingularNominative ;
wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?masculineSingularNominativeForm .
?masculineSingularNominativeForm ontolex:representation ?masculineSingularNominative ;
wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?neuterSingularNominativeForm .
?neuterSingularNominativeForm ontolex:representation ?neuterSingularNominative ;
wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q131105 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?pluralNominativeForm .
?pluralNominativeForm ontolex:representation ?pluralNominative ;
wikibase:grammaticalFeature wd:Q146786, wd:Q131105 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?comparativeFormForm .
?comparativeFormForm ontolex:representation ?comparativeForm ;
wikibase:grammaticalFeature wd:Q14169499 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?superlativeFormForm .
?superlativeFormForm ontolex:representation ?superlativeForm ;
wikibase:grammaticalFeature wd:Q1817208 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All Ukrainian (Q8798) adverbs and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q8798 ;
wikibase:lexicalCategory wd:Q380057 ;
wikibase:lemma ?adverb .
}
Original file line number Diff line number Diff line change
@@ -1,27 +1,72 @@
# tool: scribe-data
# All Ukrainian (Q8798) nouns, their plurals and the given forms.s for the given cases.
# All Ukrainian (Q8798) nouns and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?nomSingular
?nomPlural
?genitiveSingular
?dativeSingular
?accusativeSingular
?instrumentalSingular
?locativeSingular
?gender

WHERE {
?lexeme dct:language wd:Q8798 ;
wikibase:lexicalCategory wd:Q1084 ;
wikibase:lemma ?nomSingular .

# MARK: Nominative Plural
# MARK: Nominative

OPTIONAL {
?lexeme ontolex:lexicalForm ?nomPluralForm .
?nomPluralForm ontolex:representation ?nomPlural ;
wikibase:grammaticalFeature wd:Q131105, wd:Q146786 .
}
}

# MARK: Genitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?genitiveSingularForm .
?genitiveSingularForm ontolex:representation ?genitiveSingular ;
wikibase:grammaticalFeature wd:Q146233, wd:Q110786 .
}

# MARK: Dative

OPTIONAL {
?lexeme ontolex:lexicalForm ?dativeSingularForm .
?dativeSingularForm ontolex:representation ?dativeSingular ;
wikibase:grammaticalFeature wd:Q145599, wd:Q110786 .
}

# MARK: Accusative

OPTIONAL {
?lexeme ontolex:lexicalForm ?accusativeSingularForm .
?accusativeSingularForm ontolex:representation ?accusativeSingular ;
wikibase:grammaticalFeature wd:Q146078, wd:Q110786 .
}

# MARK: Instrumental

OPTIONAL {
?lexeme ontolex:lexicalForm ?instrumentalSingularForm .
?instrumentalSingularForm ontolex:representation ?instrumentalSingular ;
wikibase:grammaticalFeature wd:Q192997, wd:Q110786 .
}

# MARK: Locative

OPTIONAL {
?lexeme ontolex:lexicalForm ?locativeSingularForm .
?locativeSingularForm ontolex:representation ?locativeSingular ;
wikibase:grammaticalFeature wd:Q202142, wd:Q110786 .
}

# MARK: Gender(s)
# MARK: Gender

OPTIONAL {
?lexeme wdt:P5185 ?nounGender .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,76 @@
# tool: scribe-data
# All Ukrainian (Q8798) nouns, their plurals and the given forms.s for the given cases.
# All Ukrainian (Q8798) proper nouns and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?nomSingular
?nomPlural
?genitiveSingular
?dativeSingular
?accusativeSingular
?instrumentalSingular
?locativeSingular
?vocativeSingular
?gender

WHERE {
?lexeme dct:language wd:Q8798 ;
wikibase:lexicalCategory wd:Q147276 ;
wikibase:lemma ?nomSingular .

# MARK: Nominative Plural
# MARK: Genitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?nomPluralForm .
?nomPluralForm ontolex:representation ?nomPlural ;
wikibase:grammaticalFeature wd:Q131105 , wd:Q146786 ;
} .
?lexeme ontolex:lexicalForm ?genitiveSingularForm .
?genitiveSingularForm ontolex:representation ?genitiveSingular ;
wikibase:grammaticalFeature wd:Q146233, wd:Q110786 .
}

# MARK: Dative

OPTIONAL {
?lexeme ontolex:lexicalForm ?dativeSingularForm .
?dativeSingularForm ontolex:representation ?dativeSingular ;
wikibase:grammaticalFeature wd:Q145599, wd:Q110786 .
}

# MARK: Accusative

OPTIONAL {
?lexeme ontolex:lexicalForm ?accusativeSingularForm .
?accusativeSingularForm ontolex:representation ?accusativeSingular ;
wikibase:grammaticalFeature wd:Q146078, wd:Q110786 .
}

# MARK: Instrumental

OPTIONAL {
?lexeme ontolex:lexicalForm ?instrumentalSingularForm .
?instrumentalSingularForm ontolex:representation ?instrumentalSingular ;
wikibase:grammaticalFeature wd:Q192997, wd:Q110786 .
}

# MARK: Locative

OPTIONAL {
?lexeme ontolex:lexicalForm ?locativeSingularForm .
?locativeSingularForm ontolex:representation ?locativeSingular ;
wikibase:grammaticalFeature wd:Q202142, wd:Q110786 .
}

# MARK: Gender(s)
# MARK: Vocative Singular

OPTIONAL {
?lexeme ontolex:lexicalForm ?vocativeSingularForm .
?vocativeSingularForm ontolex:representation ?vocativeSingular ;
wikibase:grammaticalFeature wd:Q185077, wd:Q110786 .
}

# MARK: Gender

OPTIONAL {
?lexeme wdt:P5185 ?nounGender .
} .
}

SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ WHERE {
wikibase:lexicalCategory wd:Q24905 .

# MARK: Infinitive

?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 ;
wikibase:grammaticalFeature wd:Q179230 .
}
Loading