Skip to content

Commit

Permalink
Create query_adjectives (#121)
Browse files Browse the repository at this point in the history
* Create query_adjectives

A query for Japanese adjectices. They follow certain grammatical rules.

* Formatting SPARQL query

Formatting the SPARQL query so that is looks nice.

* Minor query formatting and adding in query doc string

---------

Co-authored-by: Andrew Tavis McAllister <andrew.t.mcallister@gmail.com>
  • Loading branch information
henrikth93 and andrewtavis authored Mar 30, 2024
1 parent e6468fb commit a1b182e
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# All Japanese (Q5287) adjectives.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?adjective

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q5287 ;
wikibase:lexicalCategory wd:Q34698 ;
wikibase:lemma ?adjective .

BIND (lang(?adjective) as ?language)
FILTER (
CONTAINS(?language, "ja-hira") || CONTAINS(?language, "ja")
)
}

0 comments on commit a1b182e

Please sign in to comment.