Skip to content

Commit

Permalink
Updated query_nouns.sparql (#119)
Browse files Browse the repository at this point in the history
* Updated query_nouns.sparql

Changed the query so that it filters for kanji, hiragana and katakana.

* Formatted SPARQL query

Formatted SPARQL query so that it looks nicer.

* Minor query formatting and add back in lexeme ID

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
  • Loading branch information
henrikth93 and andrewtavis authored Mar 30, 2024
1 parent 2b53492 commit e6468fb
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ WHERE {
dct:language wd:Q5287 ;
wikibase:lexicalCategory ?nounType ;
wikibase:lemma ?noun .
FILTER(?nounType = ?nounTypes)

BIND(lang(?noun) as ?language)
FILTER(?language = "ja-hira")
# FILTER(?language = "ja")
FILTER (?nounType = ?nounTypes)

BIND (lang(?noun) as ?language)

FILTER (
CONTAINS(?language, "ja-hira") || CONTAINS(?language, "ja")
)
}

0 comments on commit e6468fb

Please sign in to comment.