Skip to content

Commit

Permalink
Forgot language and lexical category filters in the WHERE haha
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAI2003 committed Oct 27, 2024
1 parent 06080e9 commit 8f56d83
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?nonGenitiveDefiniteSingular

# MARK: Singular

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

# MARK: Singular

OPTIONAL {
?lexeme ontolex:lexicalForm ?nonGenitiveDefiniteSingularForm .
?nonGenitiveDefiniteSingularForm ontolex:representation ?nonGenitiveDefiniteSingular ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ SELECT
?nonGenitiveIndefiniteSingular

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

# MARK: Singular
# MARK: Singular

OPTIONAL {
?lexeme ontolex:lexicalForm ?nonGenitiveIndefiniteSingularForm .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ SELECT
# MARK: Genitive

WHERE {
?lexeme dct:language wd:Q9035 ; # Added language condition
wikibase:lexicalCategory wd:Q1084 ; # Added lexical category condition

# MARK: Genitive
OPTIONAL {
?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ SELECT
?genitiveIndefiniteSingular

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

# MARK: Genitive
OPTIONAL {
?lexeme ontolex:lexicalForm ?genitiveIndefiniteSingularForm .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SELECT
?genitiveDefinitePlural

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

# MARK: Genitive

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SELECT
?nonGenitiveIndefinitePlural

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

# MARK: Plural

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SELECT
?nonGenitiveIndefinitePlural

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

# MARK: Plural

Expand Down

0 comments on commit 8f56d83

Please sign in to comment.