query-3ccc1d6186db87d635c3aa6271f652b0

rq turtle/ttl

title:Booker Prize judges lacking images SELECT DISTINCT ?item ?itemLabel (URI(CONCAT("https://commons.wikimedia.org/wiki/Category:", ?commons)) AS ?link) WHERE { ?item wdt:P39 wd:Q114836879 MINUS {?item wdt:P18 []} OPTIONAL {?item wdt:P373 ?commons} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } ORDER BY ?itemLabel

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#>
#title:Booker Prize judges lacking images
SELECT DISTINCT ?item ?itemLabel (URI(CONCAT("https://commons.wikimedia.org/wiki/Category:", ?commons)) AS ?link)
WHERE {
?item wdt:P39 wd:Q114836879
MINUS {?item wdt:P18 []}
OPTIONAL {?item wdt:P373 ?commons}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?commons"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v4("?link") a1((" ")) c6(["bd:serviceParam"]):::iri c2(["wd:Q114836879"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P39"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P18"--> a1 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P373".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind1[/"concat('https://commons.wikimedia.org/wiki/Category:',?commons)"/] v3 --o bind1 bind1 --as--o v4