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

Spanish query #305

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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,49 @@
# tool: scribe-data
# All Spanish (Q1321) adjectives.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?adjective
?masSingular
?masPlural
?femSingular
?femPlural

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

# MARK: Masculine Singular
OPTIONAL {
?lexeme ontolex:lexicalForm ?masSingularForm .
?masSingularForm ontolex:representation ?masSingular ;
wikibase:grammaticalFeature wd:Q499327 ;
wikibase:grammaticalFeature wd:Q110786 .
}

# MARK: Masculine Plural
OPTIONAL {
?lexeme ontolex:lexicalForm ?masPluralForm .
?masPluralForm ontolex:representation ?masPlural ;
wikibase:grammaticalFeature wd:Q499327 ;
wikibase:grammaticalFeature wd:Q146786 .
}

# MARK: Feminine Singular
OPTIONAL {
?lexeme ontolex:lexicalForm ?femSingularForm .
?femSingularForm ontolex:representation ?femSingular ;
wikibase:grammaticalFeature wd:Q1775415 ;
wikibase:grammaticalFeature wd:Q110786 .
}

# MARK: Feminine Plural
OPTIONAL {
?lexeme ontolex:lexicalForm ?femPluralForm .
?femPluralForm ontolex:representation ?femPlural ;
wikibase:grammaticalFeature wd:Q1775415 ;
wikibase:grammaticalFeature wd:Q146786 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# tool: scribe-data
# All Spanish (Q1321) adverbs.
# Enter this query at https://query.wikidata.org/.

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

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

# MARK: Diminutive
OPTIONAL {
?lexeme ontolex:lexicalForm ?diminutiveForm .
?diminutiveForm ontolex:representation ?diminutive ;
wikibase:grammaticalFeature wd:Q108709 .
}

# 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,14 @@
# tool: scribe-data
# All Spanish (Q1321) prepositions.
# Enter this query at https://query.wikidata.org/.

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

WHERE {
?lexeme dct:language wd:Q1321 ;
wikibase:lexicalCategory wd:Q4833830 ;
wikibase:lemma ?preposition ;
FILTER(lang(?preposition) = "es") .
}
Loading