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

Expand Norwegian/Bokmal verb querry #421

Closed
wants to merge 2 commits into from
Closed
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
1 change: 1 addition & 0 deletions src/scribe_data/check/check_project_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"Punjabi",
"Tajik",
"Igbo",
"Dagbani",
}

DATA_TYPES = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,27 @@

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

?infinitive ?masculineForm ?feminineForm ?neuterForm
WHERE {
?lexeme dct:language wd:Q25167 ;
wikibase:lexicalCategory wd:Q24905 .

# MARK: Active Infinitive
?lexeme dct:language wd:Q25167;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitive.

?lexeme ontolex:lexicalForm ?infinitiveForm .
?infinitiveForm ontolex:representation ?infinitive ;
wikibase:grammaticalFeature wd:Q179230 ;
wikibase:grammaticalFeature wd:Q1317831 .
OPTIONAL {
?lexeme ontolex:lexicalForm ?masculine.
?masculine ontolex:representation ?masculineForm;
wikibase:grammaticalFeature wd:Q499327. # Masculine
}

# MARK: Active Present
OPTIONAL {
?lexeme ontolex:lexicalForm ?feminine.
?feminine ontolex:representation ?feminineForm;
wikibase:grammaticalFeature wd:Q1775415. # Feminine
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?presentForm .
?presentForm ontolex:representation ?present ;
wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 .
?lexeme ontolex:lexicalForm ?neuter.
?neuter ontolex:representation ?neuterForm;
wikibase:grammaticalFeature wd:Q1775461. # Neuter
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# tool: scribe-data
# All Norwegian Bokmål (Q9043) verbs and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive ?presentTense ?preterite ?presentPerfect
WHERE {
?lexeme dct:language wd:Q25167;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitive.

OPTIONAL {
?lexeme ontolex:lexicalForm ?presentForm.
?presentForm ontolex:representation ?presentTense;
wikibase:grammaticalFeature wd:Q192613. #
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?preteriteForm.
?preteriteForm ontolex:representation ?preterite;
wikibase:grammaticalFeature wd:Q442485.
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?presentPerfectForm.
?presentPerfectForm ontolex:representation ?presentPerfect;
wikibase:grammaticalFeature wd:Q1240211.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# tool: scribe-data
# All Norwegian Bokmål (Q9043) verbs and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive ?imperative ?activeForm
WHERE {
?lexeme dct:language wd:Q25167;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitive.

OPTIONAL {
?lexeme ontolex:lexicalForm ?imperativeForm.
?imperativeForm ontolex:representation ?imperative;
wikibase:grammaticalFeature wd:Q22716. # Imperative
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?activeVerbForm.
?activeVerbForm ontolex:representation ?activeForm;
wikibase:grammaticalFeature wd:Q1317831. # Active voice
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# tool: scribe-data
# All Norwegian Bokmål (Q9043) verbs and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive ?presentParticiple ?pastParticiple ?passiveForm
WHERE {
?lexeme dct:language wd:Q25167;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitive.

OPTIONAL {
?lexeme ontolex:lexicalForm ?presentParticipleForm.
?presentParticipleForm ontolex:representation ?presentParticiple;
wikibase:grammaticalFeature wd:Q10345583. # Present participle
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?pastParticipleForm.
?pastParticipleForm ontolex:representation ?pastParticiple;
wikibase:grammaticalFeature wd:Q12717679. # Past participle
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?passiveForm.
?passiveForm ontolex:representation ?passiveFormRep;
wikibase:grammaticalFeature wd:Q1194697. # Passive voice
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# tool: scribe-data
# All Norwegian Bokmål (Q9043) verbs and the given forms.
# Enter this query at https://query.wikidata.org/.

# Note: This query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?infinitive ?singularForm ?pluralForm
WHERE {
?lexeme dct:language wd:Q25167;
wikibase:lexicalCategory wd:Q24905;
wikibase:lemma ?infinitive.

OPTIONAL {
?lexeme ontolex:lexicalForm ?singular.
?singular ontolex:representation ?singularForm;
wikibase:grammaticalFeature wd:Q110786. # Singular
}

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