query-a3749d0c7c1c88a1bccb522f1c528bed
Cleveland Museum of Art items with no "depicts" property
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#>
#defaultView:ImageGrid
SELECT DISTINCT ?item ?itemLabel ?id ?img WHERE {
?item p:P217 [ps:P217 ?id; pq:P195 wd:Q657415] .
?item wdt:P5008 wd:Q60729883 .
OPTIONAL { ?item wdt:P18 ?img } .
MINUS { ?item wdt:P180 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?id"):::projected
v3("?img"):::projected
v2("?item"):::projected
a2((" "))
a1((" "))
c10(["bd:serviceParam"]):::iri
c6(["wd:Q60729883"]):::iri
c3(["wd:Q657415"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"p:statement/P217"--> v1
a1 --"p:qualifier/P195"--> c3
v2 --"p:P217"--> a1
v2 --"p:direct/P5008"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P18".-> v3
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P180"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end