query-abb12359a1ce9608bcc0aade4afbd466
Strict search by labelHello everyone, I have a query to find Wikidata items which correspond to the given name "David"
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE{
?item wdt:P31/wdt:P279* wd:Q202444 .
?item ?label "David"@en .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?label")
a1((" "))
c6(["bd:serviceParam"]):::iri
c4([sDavid^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c8(["en"]):::literal
c3(["wd:Q202444"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 -->v2--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end