query-95d957e8f2c66c44aa03d50c97ac524c

rq turtle/ttl

Add corresponding depicts (P180) statements if depicts Iconclass notation (P1257) is present statement, cf.: (P180)depicts statements (~47k) on items with no (P1257)depicts Iconclass notation There is a rather big number of

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?obj ?objLabel ?IC ?motiv ?motivLabel Where {
  ?obj wdt:P1257 ?IC .
  MINUS { ?obj wdt:P180 ?x . }
  ?motiv wdt:P1256 ?IC .
  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; v2("?IC"):::projected v4("?motiv"):::projected v1("?obj"):::projected v3("?x") c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P1257"--> v2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P180"--> v3 end v4 --"wdt:P1256"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end