query-1fa803324385df1a8a22792798646f33
GLAM Suisse (sans les expositions) SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P17 wd:Q39; wdt:P31/wdt:P279 wd:Q1030034. MINUS {?item wdt:P31/wdt:P279 wd:Q464980}. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,it,en". } } ORDER BY ?itemLabel
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#>
#GLAM Suisse (sans les expositions)
SELECT DISTINCT ?item ?itemLabel
WHERE
{
?item wdt:P17 wd:Q39;
wdt:P31/wdt:P279* wd:Q1030034.
MINUS {?item wdt:P31/wdt:P279* wd:Q464980}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,it,en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
a2((" "))
c2(["wd:Q39"]):::iri
c8(["bd:serviceParam"]):::iri
c6(["wd:Q464980"]):::iri
c5(["wd:Q1030034"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,de,it,en"]):::literal
v2 --"wdt:P17"--> c2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end