query-9cbd078048331bb33e5efce97f8e245a

rq turtle/ttl

title:elementi con id DBE ma senza luogo di nascita o morte SELECT ?item ?itemLabel (URI(CONCAT("http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?", ?idDBE)) AS ?idDBEURL) WHERE { ?item wdt:P31 wd:Q5; wdt:P9625 ?idDBE. { MINUS { ?item wdt:P19 ?luogon. } } UNION { MINUS { ?item wdt:P20 ?luogom. } } 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 bd: <http://www.bigdata.com/rdf#>
#title:elementi con id DBE ma senza luogo di nascita o morte
SELECT ?item ?itemLabel (URI(CONCAT("http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?", ?idDBE)) AS ?idDBEURL) WHERE {
  ?item wdt:P31 wd:Q5;
    wdt:P9625 ?idDBE.
  { 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("?idDBE"):::projected v5("?idDBEURL") 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:P9625"--> 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('http://dbe.editricebibliografica.it/cgi-bin/dbe/Scheda?',?idDBE)"/] v2 --o bind2 bind2 --as--o v5