query-365d45928504f54b9a06cdab576eb27b
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?dptLabel ?img (GROUP_CONCAT(DISTINCT ?inv; separator="; ") AS ?invs)
WHERE
{
?item wdt:P195 ?dpt.
?item wdt:P9394 ?ark.
VALUES ?ark {"010062292"}.
OPTIONAL{?item wdt:P18 ?img}
OPTIONAL{?item wdt:P217 ?inv}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?item ?itemLabel ?dptLabel ?img
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?ark")
v2("?dpt")
v4("?img"):::projected
v5("?inv"):::projected
v6("?invs")
v1("?item"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P195"--> v2
v1 --"wdt:P9394"--> v4
bind0[/VALUES ?ark/]
bind0-->v4
bind00(["010062292"])
bind00 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P217".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind2[/"?inv"/]
v5 --o bind2
bind2 --as--o v6