query-8feae7c6a15f0258b20c8ea4b04be4b2

rq turtle/ttl

Chinese and Japanese lexemes that are written with the same characters

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT
  ?lexemeZh
  ?lexemeJp
  ?lemmaStr
  ?sense
WITH {
  SELECT ?lexemeZh ?lemmaStr {
    ?lexemeZh
      dct:language wd:Q727694;
      wikibase:lemma ?lemma.
    BIND(STR(?lemma) AS ?lemmaStr)
  }
} AS %0
WITH {
  SELECT ?lexemeJp ?lemmaStr {
    ?lexemeJp
      dct:language wd:Q5287;
      wikibase:lemma ?lemma.
    BIND(STR(?lemma) AS ?lemmaStr)
  }
} AS %1
{
  INCLUDE %0.
  INCLUDE %1.
  ?lexemeZh ontolex:sense/wdt:P5137 ?sense.
  ?lexemeJp ontolex:sense/wdt:P5137 ?sense.
}
ORDER BY DESC(STRLEN(?lemmaStr)

Query found at