query-049005b39531594acd0e1fd063b0b8d2

rq turtle/ttl

Books that have a title in a given language but not a label in that languageI don't understand why this doesn't work:

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#>
SELECT ?item ?lang ?title WHERE {
?item wdt:P31/wdt:P279* wd:Q571 ; # Q571 for book
      wdt:P1476 ?title .
  BIND(LANG(?title) as ?lang).
MINUS{?item rdfs:label ?itemLabel FILTER (?lang = lang(?itemLabel))}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v4("?itemLabel") v3("?lang"):::projected v2("?title"):::projected a1((" ")) c3(["wd:Q571"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P1476"--> v2 bind0[/"?title"/] v2 --o bind0 bind0 --as--o v3 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; f2[["?lang = ?itemLabel"]] f2 --> v3 f2 --> v4 v1 --"rdfs:label"--> v4 end