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

Latin adverbs & prepositions query #414

Merged
merged 3 commits into from
Oct 20, 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
Expand Up @@ -5,21 +5,9 @@
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?preposition
?case

WHERE {
?lexeme dct:language wd:Q9072 ;
wikibase:lexicalCategory wd:Q4833830 ;
wikibase:lemma ?preposition .

# MARK: Corresponding Case

OPTIONAL {
?lexeme wdt:P5713 ?caseForm .
}

SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
?caseForm rdfs:label ?case .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# tool: scribe-data
# All Latin language (Q397) adverbs (Q380057) and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q397 ;
wikibase:lexicalCategory wd:Q380057 ;
wikibase:lemma ?adverb .

# MARK: Comparative

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

# MARK: Superlative

OPTIONAL {
?lexeme ontolex:lexicalForm ?superlativeForm .
?superlativeForm ontolex:representation ?superlative ;
wikibase:grammaticalFeature wd:Q1817208 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# tool: scribe-data
# All Latin language (Q397) postpositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q397 ;
wikibase:lexicalCategory wd:Q4833830 ;
wikibase:lemma ?preposition .


# MARK: Accusative

OPTIONAL {
?lexeme ontolex:lexicalForm ?accusativeForm .
?accusativeForm ontolex:representation ?accusative ;
wikibase:grammaticalFeature wd:Q146078 .
}

# MARK: Ablative

OPTIONAL {
?lexeme ontolex:lexicalForm ?ablativeForm .
?ablativeForm ontolex:representation ?ablative ;
wikibase:grammaticalFeature wd:Q156986 .
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,10 @@

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

WHERE {
?lexeme dct:language wd:Q9058 ;
wikibase:lexicalCategory wd:Q4833830 ;
wikibase:lemma ?lemma .

# MARK: Corresponding Case

OPTIONAL {
?lexeme wdt:P5713 ?caseForm .
}

SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
?lemma rdfs:label ?preposition .
?caseForm rdfs:label ?case .
}
wikibase:lemma ?preposition .
}
Loading