query-e6a0120f7a448c8198dc5b1e57b118d1
TODO
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item
?itemLabel
?image
(GROUP_CONCAT(DISTINCT ?creator; SEPARATOR = " | ") AS ?creatorIds)
(GROUP_CONCAT(DISTINCT ?creatorLabel; SEPARATOR = " | ") AS ?creatorLabels)
WHERE {
?item wdt:P1535 wd:Q110553382.
OPTIONAL { ?item wdt:P18 ?image. }
OPTIONAL { ?item wdt:P170 ?creator. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "de,en".
?item rdfs:label ?itemLabel.
?creator rdfs:label ?creatorLabel.
}
}
GROUP BY ?item ?itemLabel ?image
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?creator"):::projected
v6("?creatorIds")
v5("?creatorLabel"):::projected
v7("?creatorLabels")
v2("?image"):::projected
v1("?item"):::projected
v4("?itemLabel"):::projected
c6(["bd:serviceParam"]):::iri
c8(["de,en"]):::literal
c2(["wd:Q110553382"]):::iri
v1 --"wdt:P1535"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P170".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
v1 --"rdfs:label"--> v4
v3 --"rdfs:label"--> v5
end
bind2[/"?creator"/]
v3 --o bind2
bind2 --as--o v6
bind3[/"?creatorLabel"/]
v5 --o bind3
bind3 --as--o v7