query-625052e99049db19287bcf2d13f5ffdd
title:elementi con id DBI ma senza luogo di nascita o morte SELECT ?item ?itemLabel (URI(CONCAT("https://www.treccani.it/enciclopedia/", ?idDBI, "_(Dizionario-Biografico)")) AS ?idDBIURL) WHERE { ?item wdt:P31 wd:Q5; wdt:P1986 ?idDBI. { MINUS { ?item wdt:P19 ?luogon. } } UNION { MINUS { ?item wdt:P20 ?luogom. } } 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 bd: <http://www.bigdata.com/rdf#>
#title:elementi con id DBI ma senza luogo di nascita o morte
SELECT ?item ?itemLabel (URI(CONCAT("https://www.treccani.it/enciclopedia/", ?idDBI, "_(Dizionario-Biografico)")) AS ?idDBIURL) WHERE {
?item wdt:P31 wd:Q5;
wdt:P1986 ?idDBI.
{ MINUS { ?item wdt:P19 ?luogon. } }
UNION
{ MINUS { ?item wdt:P20 ?luogom. } }
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;
v2("?idDBI"):::projected
v5("?idDBIURL")
v1("?item"):::projected
v4("?luogom")
v3("?luogon")
c7(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P1986"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P20"--> v4
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P19"--> v3
end
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"concat('https://www.treccani.it/enciclopedia/',?idDBI,'_(Dizionario-Biografico)')"/]
v2 --o bind2
bind2 --as--o v5