query-c6c58f5ab4199718c64c499607ff916a
Propertiescollection (P195)part of (P361)inventory number (P217)image (P18)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?i ?iLabel ?collLabel ?inv ?image WHERE {
?i wdt:P195 ?coll.
?coll wdt:P361? wd:Q63160499.
OPTIONAL {?i wdt:P217 ?inv}
OPTIONAL {?i wdt:P18 ?image}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?collLabel ?inv
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coll")
v1("?collLabel"):::projected
v3("?i"):::projected
v5("?image"):::projected
v2("?inv"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q63160499"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"wdt:P195"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P361"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P217".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end