query-3c21528b8690d9f2d885211f10ed7cee

rq turtle/ttl

Japanese numeral lexemes 0-9

SELECT ?lexeme ?value ?lemma ?kana ?hanLabel ?patternLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?lexeme dct:language wd:Q5287. OPTIONAL { ?lexeme wikibase:lemma ?kana. filter (lang(?kana) = "ja-hira" || lang(?kana) = "ja-kana") } OPTIONAL { ?lexeme wikibase:lemma ?lemma. filter (lang(?lemma) = "ja") } ?lexeme ontolex:sense ?sense. ?lexeme ontolex:lexicalForm ?form. OPTIONAL { ?lexeme wdt:P5425 ?han. }

OPTIONAL { ?form wdt:P5244 ?pattern. }

?sense wdt:P5137 ?concept. ?concept wdt:P31 wd:Q28920052. ?concept wdt:P1181 ?value. filter(?value < 10) } LIMIT 40

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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Japanese numeral lexemes 0-9

SELECT ?lexeme ?value ?lemma ?kana ?hanLabel ?patternLabel  WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?lexeme dct:language wd:Q5287.
  OPTIONAL {
    ?lexeme wikibase:lemma ?kana.
    filter (lang(?kana) = "ja-hira" || lang(?kana) = "ja-kana")
  }
  OPTIONAL {
    ?lexeme wikibase:lemma ?lemma.
    filter (lang(?lemma) = "ja")
  }
  ?lexeme ontolex:sense ?sense.
  ?lexeme ontolex:lexicalForm ?form.
  OPTIONAL {
    ?lexeme wdt:P5425 ?han.
  }

  OPTIONAL {
    ?form wdt:P5244 ?pattern.
  }


  ?sense wdt:P5137 ?concept.
  ?concept wdt:P31 wd:Q28920052.
  ?concept wdt:P1181 ?value.
  filter(?value < 10)
}
LIMIT 40

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?concept") v6("?form") v7("?han") v3("?kana"):::projected v2("?lemma"):::projected v4("?lexeme"):::projected v8("?pattern") v5("?sense") v1("?value"):::projected c6(["bd:serviceParam"]):::iri c10(["wd:Q5287"]):::iri c18(["wd:Q28920052"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?value < '10^^xsd:integer'"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end v4 --"dct:language"--> c10 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wikibase:lemma".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wikibase:lemma".-> v2 end v4 --"ontolex:sense"--> v5 v4 --"ontolex:lexicalForm"--> v6 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P5425".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v6 -."wdt:P5244".-> v8 end v5 --"wdt:P5137"--> v9 v9 --"wdt:P31"--> c18 v9 --"wdt:P1181"--> v1