Skip to content

Commit

Permalink
#549 Split German nouns query into sub queries
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Jan 10, 2025
1 parent 4559d78 commit 49df8d8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tool: scribe-data
# All German (Q188) 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)
?nominativeSingular

WHERE {
?lexeme dct:language wd:Q188 ;
wikibase:lexicalCategory wd:Q1084 ;
wikibase:lemma ?nominativeSingular .
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?nominativeSingular
?nominativePlural
?gender

WHERE {
?lexeme dct:language wd:Q188 ;
wikibase:lexicalCategory wd:Q1084 ;
wikibase:lemma ?nominativeSingular .
wikibase:lexicalCategory wd:Q1084 .

# MARK: Nominative Plural

Expand All @@ -20,15 +17,4 @@ WHERE {
?nominativePluralForm ontolex:representation ?nominativePlural ;
wikibase:grammaticalFeature wd:Q131105, wd:Q146786 .
}

# MARK: Gender(s)

OPTIONAL {
?lexeme wdt:P5185 ?nounGender .
}

SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?nounGender rdfs:label ?gender .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# tool: scribe-data
# All German (Q188) 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)
?gender

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

# MARK: Gender(s)

OPTIONAL {
?lexeme wdt:P5185 ?nounGender .
}

SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?nounGender rdfs:label ?gender .
}
}

0 comments on commit 49df8d8

Please sign in to comment.