Skip to content

Commit

Permalink
Merge pull request #494 from OmarAI2003/Danish_nouns
Browse files Browse the repository at this point in the history
Danish nouns
  • Loading branch information
andrewtavis authored Oct 31, 2024
2 parents 135f32c + 545602d commit 0068350
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 34 deletions.
4 changes: 4 additions & 0 deletions src/scribe_data/resources/lexeme_form_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
"25": {
"label": "Comitative",
"qid": "Q838581"
},
"26": {
"label": "NonGenitive",
"qid": "Q98946930"
}
},
"02_gender": {
Expand Down

This file was deleted.

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 .
}
}
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 .
}
}

0 comments on commit 0068350

Please sign in to comment.