query-f5ac0387c802ddf7788891a025a41429
Can't query some labeled itemsDear all, I want to check, if a person exists and return its identifier. This works fine:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
?item ?label "Hartmann von Aue".
?item wdt:P31 wd:Q5.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?label")
c3(["wd:Q5"]):::iri
c1(["Hartmann von Aue"]):::literal
v1 -->v2--> c1
v1 --"wdt:P31"--> c3