-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
213769a
commit ca4698b
Showing
15 changed files
with
223 additions
and
73 deletions.
There are no files selected for viewing
56 changes: 0 additions & 56 deletions
56
src/scribe_data/language_data_extraction/Hindi/Adjectives/query_adjectives.sparql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/scribe_data/language_data_extraction/Hindi/emoji_keywords/___init__.py
This file was deleted.
Oops, something went wrong.
162 changes: 162 additions & 0 deletions
162
src/scribe_data/language_data_extraction/Hindustani/Hindi/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,162 @@ | ||
# tool: scribe-data | ||
# All Hindi (from Hindustani Q11051) adjectives with the included grammatical forms. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
# Note: We need to filter for "hi" to remove Urdu (ur) words. | ||
|
||
SELECT DISTINCT | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?adjective | ||
?singulativeNumeral | ||
?collectiveNumeral | ||
?femSingularDirect | ||
?masSingularDirect | ||
?femPluralDirect | ||
?masPluralDirect | ||
?femSingularOblique | ||
?masSingularOblique | ||
?femPluralOblique | ||
?masPluralOblique | ||
?femSingularVocative | ||
?masSingularVocative | ||
?femPluralVocative | ||
?masPluralVocative | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q11051 ; | ||
wikibase:lexicalCategory wd:Q34698 ; | ||
wikibase:lemma ?adjective . | ||
FILTER(lang(?adjective) = "hi") | ||
|
||
# MARK: Singulative Numeral | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?singulativeNumeralForm . | ||
?singulativeNumeralForm ontolex:representation ?singulativeNumeral ; | ||
wikibase:grammaticalFeature wd:Q110786 . | ||
FILTER(LANG(?singulativeNumeral) = "hi") | ||
} | ||
|
||
# MARK: Collective Numeral | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?collectiveNumeralForm . | ||
?collectiveNumeralForm ontolex:representation ?collectiveNumeral ; | ||
wikibase:grammaticalFeature wd:Q146786 . | ||
FILTER(LANG(?collectiveNumeral) = "hi") | ||
} | ||
|
||
# MARK: Direct | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?femSingularDirectForm . | ||
?femSingularDirectForm ontolex:representation ?femSingularDirect ; | ||
wikibase:grammaticalFeature wd:Q1775415 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q1751855 ; | ||
FILTER(LANG(?femSingularDirect) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masSingularDirectForm . | ||
?masSingularDirectForm ontolex:representation ?masSingularDirect ; | ||
wikibase:grammaticalFeature wd:Q499327 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q1751855 ; | ||
FILTER(LANG(?masSingularDirect) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?femPluralDirectForm . | ||
?femPluralDirectForm ontolex:representation ?femPluralDirect ; | ||
wikibase:grammaticalFeature wd:Q1775415 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q1751855 ; | ||
FILTER(LANG(?femPluralDirect) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masPluralDirectForm . | ||
?masPluralDirectForm ontolex:representation ?masPluralDirect ; | ||
wikibase:grammaticalFeature wd:Q499327 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q1751855 ; | ||
FILTER(LANG(?masPluralDirect) = "hi") | ||
} . | ||
|
||
# MARK: Oblique | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?femSingularObliqueForm . | ||
?femSingularObliqueForm ontolex:representation ?femSingularOblique ; | ||
wikibase:grammaticalFeature wd:Q1775415 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q1233197 ; | ||
FILTER(LANG(?femSingularOblique) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masSingularObliqueForm . | ||
?masSingularObliqueForm ontolex:representation ?masSingularOblique ; | ||
wikibase:grammaticalFeature wd:Q499327 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q1233197 ; | ||
FILTER(LANG(?masSingularOblique) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?femPluralObliqueForm . | ||
?femPluralObliqueForm ontolex:representation ?femPluralOblique ; | ||
wikibase:grammaticalFeature wd:Q1775415 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q1233197 ; | ||
FILTER(LANG(?femPluralOblique) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masPluralObliqueForm . | ||
?masPluralObliqueForm ontolex:representation ?masPluralOblique ; | ||
wikibase:grammaticalFeature wd:Q499327 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q1233197 ; | ||
FILTER(LANG(?masPluralOblique) = "hi") | ||
} . | ||
|
||
# MARK: Vocative | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?femSingularVocativeForm . | ||
?femSingularVocativeForm ontolex:representation ?femSingularVocative ; | ||
wikibase:grammaticalFeature wd:Q1775415 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q185077 ; | ||
FILTER(LANG(?femSingularVocative) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masSingularVocativeForm . | ||
?masSingularVocativeForm ontolex:representation ?masSingularVocative ; | ||
wikibase:grammaticalFeature wd:Q499327 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q185077 ; | ||
FILTER(LANG(?masSingularVocative) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?femPluralVocativeForm . | ||
?femPluralVocativeForm ontolex:representation ?femPluralVocative ; | ||
wikibase:grammaticalFeature wd:Q1775415 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q185077 ; | ||
FILTER(LANG(?femPluralVocative) = "hi") | ||
} . | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?masPluralVocativeForm . | ||
?masPluralVocativeForm ontolex:representation ?masPluralVocative ; | ||
wikibase:grammaticalFeature wd:Q499327 ; | ||
wikibase:grammaticalFeature wd:Q146786 ; | ||
wikibase:grammaticalFeature wd:Q185077 ; | ||
FILTER(LANG(?masPluralVocative) = "hi") | ||
} . | ||
} |
3 changes: 2 additions & 1 deletion
3
...action/Hindi/adverbs/query_adverbs.sparql → ...ustani/Hindi/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
Empty file.
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
3 changes: 2 additions & 1 deletion
3
...extraction/Hindi/nouns/query_nouns.sparql → ...Hindustani/Hindi/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
3 changes: 2 additions & 1 deletion
3
.../Postpositions/query_postpositions.sparql → .../postpositions/query_postpositions.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
3 changes: 2 additions & 1 deletion
3
...extraction/Hindi/verbs/query_verbs.sparql → ...Hindustani/Hindi/verbs/query_verbs.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
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
5 changes: 3 additions & 2 deletions
5
...raction/Urdu/adverbs/query_adverbs.sparql → ...dustani/Urdu/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
3 changes: 2 additions & 1 deletion
3
..._extraction/Urdu/nouns/query_nouns.sparql → .../Hindustani/Urdu/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
17 changes: 17 additions & 0 deletions
17
...be_data/language_data_extraction/Hindustani/Urdu/postpositions/query_postpositions.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,17 @@ | ||
# tool: scribe-data | ||
# All Urdu (from Hindustani Q11051) postpositions. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
# Note: We need to filter for "ur" to remove Hindi (hi) words. | ||
|
||
SELECT DISTINCT | ||
?lexeme | ||
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) | ||
?postposition | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q11051 ; | ||
wikibase:lexicalCategory wd:Q161873 ; | ||
wikibase:lemma ?postposition . | ||
FILTER(lang(?postposition) = "ur") | ||
} |
3 changes: 2 additions & 1 deletion
3
..._extraction/Urdu/verbs/query_verbs.sparql → .../Hindustani/Urdu/verbs/query_verbs.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
3 changes: 2 additions & 1 deletion
3
src/scribe_data/language_data_extraction/Punjabi/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