query-d3f592c9bb238dc31c47b0f3fe07a6f2

rq turtle/ttl

title:elementi con id DBE ma senza fonte per P106 SELECT ?item ?itemLabel ?datam (URI(Concat("http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?",?idDBE)) as ?idDBEURL) WHERE { ?item wdt:P31 wd:Q5; wdt:P9625 ?idDBE. ?item p:P106 ?dm. MINUS { ?dm prov:wasDerivedFrom ?dmref.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:elementi con id DBE ma senza fonte per P106
SELECT ?item ?itemLabel ?datam (URI(Concat("http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?",?idDBE)) as ?idDBEURL)
WHERE 
{
  ?item wdt:P31 wd:Q5; wdt:P9625 ?idDBE.
  ?item p:P106 ?dm.
   MINUS { ?dm prov:wasDerivedFrom ?dmref.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?dm") v4("?dmref") v2("?idDBE"):::projected v5("?idDBEURL") v1("?item"):::projected c7(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"p:direct/P31"--> c2 v1 --"p:direct/P9625"--> v2 v1 --"p:P106"--> v3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"prov:wasDerivedFrom"--> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"concat('http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?',?idDBE)"/] v2 --o bind1 bind1 --as--o v5