query-ef46dcafe439aa9c754c74c8b2f26fc8

rq turtle/ttl

Books without Bulgarian description

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#>
PREFIX schema: <http://schema.org/>

SELECT ?item ?itemLabel ?desc WHERE {
  ?item wdt:P31 wd:Q571 .

  FILTER NOT EXISTS { ?item schema:description ?desc filter (lang(?namePropertyBG) = "bg") . }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],bg,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?desc"):::projected v2("?item"):::projected v1("?namePropertyBG") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,bg,en"]):::literal c4(["wd:Q571"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?namePropertyBG = 'bg'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v3 e0v3("?desc"):::projected e0v2("?item"):::projected e0v1("?namePropertyBG"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f0 --> v3 f1[["?namePropertyBG = 'bg'"]] f1 --> v1 v2 --"schema:description"--> v3 v2 --"wdt:P31"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end