query-fe9806169c03b375e285265722924955
museum pieces without image
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 ?item ?itemLabel ?collectionLabel ?id ?kdm WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P195 ?collection .
minus {?collection wdt:P31 wd:Q768717 }
optional{?item wdt:P217 ?id . }
optional{ ?item p:P528 [ pq:P972 wd:Q106425660; ps:P528 ?kdm] . }
MINUS{ ?item wdt:P18 [] . }
FILTER (!wikibase:isSomeValue(?collection))
SERVICE wikibase:label { bd:serviceParam wikibase:language "pl,pl" }
} order by ?collection
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?collection")
v3("?id"):::projected
v2("?item"):::projected
v4("?kdm"):::projected
a2((" "))
a1((" "))
c5(["wd:Q768717"]):::iri
c15(["pl,pl"]):::literal
c2(["wd:Q381238"]):::iri
c13(["bd:serviceParam"]):::iri
c8(["wd:Q106425660"]):::iri
f0[["not http://wikiba.se/ontology#isSomeValue(?collection)"]]
f0 --> v1
v2 --"p:direct/P170"--> c2
v2 --"p:direct/P195"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P31"--> c5
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P217".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:qualifier/P972".-> c8
a1 --"p:statement/P528"--> v4
v2 --"p:P528"--> a1
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P18"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end