query-15423f2ebc226908153e9a91f0ffa3e2
title:elementi con fonte Url DBE ma senza P248 (fonte dell'affermazione) SELECT ?item ?itemLabel ?datanascita(URI(?dnfonte) as ?dnfonteURL) WHERE { ?item wdt:P31 wd:Q5; wdt:P27 wd:Q172579; wdt:P569 ?datanascita. ?item p:P569 ?dn. ?dn prov:wasDerivedFrom ?dnref. ?dnref pr:P854 ?dnfonte. FILTER(CONTAINS(STR(?dnfonte),"http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?")). MINUS {?dnref pr:P248 ?dnafferm} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:elementi con fonte Url DBE ma senza P248 (fonte dell'affermazione)
SELECT ?item ?itemLabel ?datanascita(URI(?dnfonte) as ?dnfonteURL)
WHERE
{
?item wdt:P31 wd:Q5; wdt:P27 wd:Q172579; wdt:P569 ?datanascita.
?item p:P569 ?dn.
?dn prov:wasDerivedFrom ?dnref.
?dnref pr:P854 ?dnfonte.
FILTER(CONTAINS(STR(?dnfonte),"http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?")).
MINUS {?dnref pr:P248 ?dnafferm}
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("?datanascita"):::projected
v4("?dn")
v6("?dnafferm")
v1("?dnfonte"):::projected
v7("?dnfonteURL")
v5("?dnref")
v2("?item"):::projected
c12(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c5(["wd:Q172579"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(str(?dnfonte),'http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?')"]]
f0 --> v1
v2 --"p:direct/P31"--> c3
v2 --"p:direct/P27"--> c5
v2 --"p:direct/P569"--> v3
v2 --"p:P569"--> v4
v4 --"prov:wasDerivedFrom"--> v5
v5 --"p:reference/P854"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v5 --"p:reference/P248"--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind2[/"?dnfonte"/]
v1 --o bind2
bind2 --as--o v7