query-7ccfdc206496fa091b1c11d05a14c0b2

rq turtle/ttl

find items with a Commons category, but no English label SELECT ?item ?commons { ?item wdt:P31 wd:Q29791211 .
?item wdt:P373 ?commons
FILTER NOT EXISTS { ?item rdfs:label ?l . FILTER (lang(?l) = "en") } }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#find items with a Commons category, but no English label
SELECT ?item  ?commons
{
    ?item wdt:P31 wd:Q29791211 .  
    ?item wdt:P373 ?commons     
    FILTER NOT EXISTS {  ?item rdfs:label ?l . FILTER (lang(?l) = "en") }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?commons"):::projected v2("?item"):::projected v1("?l") c4(["wd:Q29791211"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?l = 'en'"]] e0f0 --> e0v1 e0v2 --"rdfs:label"--> e0v1 e0v2("?item"):::projected e0v1("?l"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f1[["?l = 'en'"]] f1 --> v1 v2 --"rdfs:label"--> v1 v2 --"wdt:P31"--> c4 v2 --"wdt:P373"--> v3