query-3c2004a755ce65cbee2cfc3af99ffd6c
Branches of the Bern University Library without a “street address” statement statement. Find the missing information for some of the entries on the Internet and add it to Wikidata. (P6375)street address statement. Take it as a starting point to create a query that outputs all the branches of the Bern University Library without a (P6375)street address museums without a SwissThe example query below outputs all the
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#>
SELECT DISTINCT ?item ?itemLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:Q33506; # museum
wdt:P17 wd:Q39.
MINUS { ?item wdt:P6375 [] } # exclude if there is a "street address" statement
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a2((" "))
a1((" "))
c5(["wd:Q39"]):::iri
c3(["wd:Q33506"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P6375"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end