-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
34 deletions.
There are no files selected for viewing
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
34 changes: 0 additions & 34 deletions
34
src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns.sparql
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.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,64 @@ | ||
# tool: scribe-data | ||
# All Danish (Q9035) 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) | ||
?genitiveIndefiniteSingular | ||
?genitiveDefiniteSingular | ||
?genitiveDefinitePlural | ||
?genitiveIndefinitePlural | ||
?nonGenitiveDefinitePlural | ||
?nonGenitiveIndefinitePlural | ||
?nonGenitiveIndefiniteSingular | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9035 ; | ||
wikibase:lexicalCategory wd:Q1084 . | ||
|
||
# MARK: Genitive | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?genitiveIndefiniteSingularForm . | ||
?genitiveIndefiniteSingularForm ontolex:representation ?genitiveIndefiniteSingular ; | ||
wikibase:grammaticalFeature wd:Q146233, wd:Q53997857, wd:Q110786 . | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?genitiveDefiniteSingularForm . | ||
?genitiveDefiniteSingularForm ontolex:representation ?genitiveDefiniteSingular ; | ||
wikibase:grammaticalFeature wd:Q146233, wd:Q53997851, wd:Q110786 . | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?genitiveDefinitePluralForm . | ||
?genitiveDefinitePluralForm ontolex:representation ?genitiveDefinitePlural ; | ||
wikibase:grammaticalFeature wd:Q146233, wd:Q53997851, wd:Q146786 . | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm . | ||
?genitiveIndefinitePluralForm ontolex:representation ?genitiveIndefinitePlural ; | ||
wikibase:grammaticalFeature wd:Q146233, wd:Q53997857, wd:Q146786 . | ||
} | ||
|
||
# MARK: Non-genitive | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?nonGenitiveDefinitePluralForm . | ||
?nonGenitiveDefinitePluralForm ontolex:representation ?nonGenitiveDefinitePlural ; | ||
wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q146786 . | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?nonGenitiveIndefinitePluralForm . | ||
?nonGenitiveIndefinitePluralForm ontolex:representation ?nonGenitiveIndefinitePlural ; | ||
wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q146786 . | ||
} | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?nonGenitiveIndefiniteSingularForm . | ||
?nonGenitiveIndefiniteSingularForm ontolex:representation ?nonGenitiveIndefiniteSingular ; | ||
wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q110786 . | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_2.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 Danish (Q9035) 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) | ||
?nonGenitiveDefiniteSingular | ||
|
||
WHERE { | ||
?lexeme dct:language wd:Q9035 ; | ||
wikibase:lexicalCategory wd:Q1084 . | ||
|
||
# MARK: Non-genitive | ||
|
||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?nonGenitiveDefiniteSingularForm . | ||
?nonGenitiveDefiniteSingularForm ontolex:representation ?nonGenitiveDefiniteSingular ; | ||
wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q110786 . | ||
} | ||
} |