query-c71ad3e1e1334d6052a7ff68866e09c4
Items in class 124
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?shelf ?itemLabel WHERE {
VALUES ?class_key {"124"}
?class wdt:P195 wd:Q56753539 . # KTop
?class p:P195/pq:P1545 ?class_key .
?item wdt:P195 ?class .
?item wdt:P217 ?shelf .
?item p:P195/pq:P1545 ?item_key .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?class_key ?item_key
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?class")
v3("?class_key")
v4("?item"):::projected
v2("?item_key")
v5("?shelf"):::projected
a1((" "))
a2((" "))
c7(["bd:serviceParam"]):::iri
c2(["wd:Q56753539"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?class_key/]
bind0-->v3
bind00(["124"])
bind00 --> bind0
v3 --"p:direct/P195"--> c2
v3 --"p:P195"--> a1
a1 --"p:qualifier/P1545"--> v3
v4 --"p:direct/P195"--> v3
v4 --"p:direct/P217"--> v5
v4 --"p:P195"--> a2
a2 --"p:qualifier/P1545"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end