query-ad7fa824a328999b2c3011c24aa9f5ce
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE
{
VALUES ?item {wd:Q241}
?item p:P31 ?statement . # has a P31 statement
?statement ps:P31 wd:Q6256
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Tagishsimon/Ambarish
- https://www.wikidata.org/wiki/User:Tagishsimon/WDQS
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?statement")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q6256"]):::iri
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q241"])
bind00 --> bind0
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end