query-be3a4551470f3884611fbc273ef3bc2f

rq turtle/ttl

TODO

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#>
select ?nameEntity ?name (lang(?name) as ?lang) {
  ?nameEntity wdt:P31/wdt:P279* wd:Q101352 .
  optional {
    ?nameEntity (wdt:P1705|wikibase:lemma) ?name .
  }
  # ?nameEntity a ontolex:LexicalEntry . # check the lexeme namespace only
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?lang") v2("?name"):::projected v1("?nameEntity"):::projected a1((" ")) c3(["wd:Q101352"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 -."wikibase:lemma".-> v2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1705"--> v2 end union0r <== or ==> union0l end end bind0[/"?name"/] v2 --o bind0 bind0 --as--o v3