Skip to content

Commit

Permalink
Minimum number of forms per file to avoid timeout errors
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAI2003 committed Oct 29, 2024
1 parent 86e011a commit 39de829
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 164 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,62 @@

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?noun
?nonGenitiveDefiniteSingular
?genitiveIndefiniteSingular
?genitiveDefiniteSingular
?genitiveDefinitePlural
?genitiveIndefinitePlural
?nonGenitiveDefinitePlural
?nonGenitiveIndefinitePlural
?nonGenitiveIndefiniteSingular

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

# MARK: Singular
# MARK: Genitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?nonGenitiveDefiniteSingularForm .
?nonGenitiveDefiniteSingularForm ontolex:representation ?nonGenitiveDefiniteSingular ;
wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q110786 .
?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
Expand Up @@ -8,9 +8,9 @@ SELECT

WHERE {
?lexeme dct:language wd:Q9035 ;
wikibase:lexicalCategory wd:Q1084 ;
wikibase:lexicalCategory wd:Q1084 .

# MARK: Singular
# MARK: Non-genitive

OPTIONAL {
?lexeme ontolex:lexicalForm ?nonGenitiveDefiniteSingularForm .
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 39de829

Please sign in to comment.