Skip to content

Commit

Permalink
Added Portugese Adjectives (#449)
Browse files Browse the repository at this point in the history
* Added prepositions

* Modified code due to failed tests

* upgrades on swedish prepositions

* Rename prepositions directory

* Added Portugese Adjectives

* Added Portugese Adverbs

* Added Dagbani Nouns

* Add missing forms

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
  • Loading branch information
GicharuElvis and andrewtavis authored Oct 22, 2024
1 parent be3fb42 commit 0b8a2e4
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# tool: scribe-data
# All Dagbani (Q32238) 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)
?noun
?plural

WHERE {
?lexeme dct:language wd:Q32238 ;
wikibase:lexicalCategory wd:Q1084 ;
wikibase:lemma ?noun .

OPTIONAL {
?lexeme ontolex:lexicalForm ?pluralForm .
?pluralForm ontolex:representation ?plural ;
wikibase:grammaticalFeature wd:Q146786 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# tool: scribe-data
# All Portugese (Q5146) adjectives (Q34698) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?adjective
?femininePlural
?masculineSingular
?femininePlural
?masculinePlural

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

OPTIONAL {
?lexeme ontolex:lexicalForm ?feminineSingularForm .
?feminineSingularForm ontolex:representation ?feminineSingular ;
wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?masculineSingularForm .
?masculineSingularForm ontolex:representation ?masculineSingular ;
wikibase:grammaticalFeature wd:Q499327, wd:Q110786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?femininePluralForm .
?femininePluralForm ontolex:representation ?femininePlural ;
wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 .
}

OPTIONAL {
?lexeme ontolex:lexicalForm ?masculinePluralForm .
?masculinePluralForm ontolex:representation ?masculinePlural ;
wikibase:grammaticalFeature wd:Q499327, wd:Q146786 .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All Portugese (Q5146) 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

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

0 comments on commit 0b8a2e4

Please sign in to comment.