query-e5d73f15c72ee7b7f732805a73f80f59
Version von Chris
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?image ?item (GROUP_CONCAT(?medialegend; SEPARATOR = " ") AS ?legende) WHERE {
VALUES ?item {
wd:Q97610922
}
?item wdt:P1433 wd:Q655617;
wdt:P921 wd:Q1731;
p:P18 ?statement.
?statement ps:P18 ?image;
pq:P2096 ?medialegend.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?image ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image"):::projected
v1("?item"):::projected
v5("?legende")
v4("?medialegend"):::projected
v2("?statement")
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q655617"]):::iri
c4(["wd:Q1731"]):::iri
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q97610922"])
bind00 --> bind0
v1 --"p:direct/P1433"--> c2
v1 --"p:direct/P921"--> c4
v1 --"p:P18"--> v2
v2 --"p:statement/P18"--> v3
v2 --"p:qualifier/P2096"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind2[/"?medialegend"/]
v4 --o bind2
bind2 --as--o v5