query-e3e0cd62c12c036fb77acdb34ac46eac

rq turtle/ttl

Canadian museums without a “director” statement statement. Find the missing information for some of the listed museums on the Internet and add it to Wikidata. (P1037)director / manager museums without a Canadian statement. Take it as a starting point to create a query that outputs all the (P1037)director / manager museums without a SwissThe example query below outputs all the

Use at

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 DISTINCT ?item ?itemLabel
WHERE 
{
  ?item wdt:P31/wdt:P279* wd:Q33506; # museum
        wdt:P17 wd:Q39.
  MINUS { ?item wdt:P1037 [] }   # exclude if there is a "director" statement
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a2((" ")) a1((" ")) c5(["wd:Q39"]):::iri c3(["wd:Q33506"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P1037"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end