-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
be3fb42
commit 0b8a2e4
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/scribe_data/language_data_extraction/Dagbani/nouns/query_nouns.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/scribe_data/language_data_extraction/Portuguese/adjectives/query_adjectives.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/scribe_data/language_data_extraction/Portuguese/adverbs/query_adverbs.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | ||
} |