query-bc79ce35ebc5253059255222afbb2e79

rq turtle/ttl

title:elementi con "bibliotecario" nella descrizione ma senza relativa P106 SELECT ?item ?itemLabel ?itemdesc WHERE { ?item wdt:P31 wd:Q5; wdt:P27 wd:Q172579; schema:description ?itemdesc. FILTER((LANG(?itemdesc)) = "it") FILTER(CONTAINS(STR(?itemdesc), "bibliotecario")) MINUS { ?item wdt:P106 wd:Q182436. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:elementi con "bibliotecario" nella descrizione ma senza relativa P106
SELECT ?item ?itemLabel ?itemdesc WHERE {
  ?item wdt:P31 wd:Q5;
    wdt:P27 wd:Q172579;
    schema:description ?itemdesc.
  FILTER((LANG(?itemdesc)) = "it")
  FILTER(CONTAINS(STR(?itemdesc), "bibliotecario"))
  MINUS { ?item wdt:P106 wd:Q182436. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemdesc"):::projected c9(["wd:Q182436"]):::iri c11(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c6(["wd:Q172579"]):::iri c13(["#91;AUTO_LANGUAGE#93;,it"]):::literal f0[["contains(str(?itemdesc),'bibliotecario')"]] f0 --> v1 f1[["?itemdesc = 'it'"]] f1 --> v1 v2 --"wdt:P31"--> c4 v2 --"wdt:P27"--> c6 v2 --"schema:description"--> v1 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P106"--> c9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end