query-1c2eacbfd684a73c9092f0a59e9d0675
title:elementi descritto come "scrittore" e con id SBN ma senza relativa P106 SELECT ?item ?itemLabel ?itemdesc WHERE { ?item wdt:P31 wd:Q5; wdt:P396 ?SBNid; schema:description ?itemdesc. FILTER((LANG(?itemdesc)) = "it") FILTER(CONTAINS(STR(?itemdesc), "scrittore")) MINUS { ?item (wdt:P106/(wdt:P279*)) wd:Q36180. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". } }
Use at
- https://query.wikidata.org/sparql
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 descritto come "scrittore" e con id SBN ma senza relativa P106
SELECT ?item ?itemLabel ?itemdesc WHERE {
?item wdt:P31 wd:Q5; wdt:P396 ?SBNid; schema:description ?itemdesc.
FILTER((LANG(?itemdesc)) = "it")
FILTER(CONTAINS(STR(?itemdesc), "scrittore"))
MINUS { ?item (wdt:P106/(wdt:P279*)) wd:Q36180. }
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;
v3("?SBNid")
v2("?item"):::projected
v1("?itemdesc"):::projected
a1((" "))
c9(["wd:Q36180"]):::iri
c11(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,it"]):::literal
f0[["contains(str(?itemdesc),'scrittore')"]]
f0 --> v1
f1[["?itemdesc = 'it'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"wdt:P396"--> v3
v2 --"schema:description"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end