query-0467055bbf9431703c65d06ba02beccb
Map of universities in Bulgaria
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?uni ?uniLabel ?loc ?link ?layer ?countyLabel WHERE {
VALUES ?type {wd:Q875538 wd:Q902104 wd:Q3918}
?uni wdt:P31 ?type;
wdt:P17 wd:Q219;
wdt:P856 ?link;
wdt:P625 ?loc.
?type rdfs:label ?layer FILTER(Lang(?layer)='en').
MINUS {?uni wdt:P576 []}
OPTIONAL {?uni wdt:P131 ?county}
SERVICE wikibase:label { bd:serviceParam wikibase:language "bg, en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?county")
v1("?layer"):::projected
v4("?link"):::projected
v5("?loc"):::projected
v2("?type")
v3("?uni"):::projected
a1((" "))
c11(["bd:serviceParam"]):::iri
c4(["wd:Q219"]):::iri
c13(["bg, en"]):::literal
f0[["?layer = 'en'"]]
f0 --> v1
bind1[/VALUES ?type/]
bind1-->v2
bind10(["wd:Q875538"])
bind10 --> bind1
bind11(["wd:Q902104"])
bind11 --> bind1
bind12(["wd:Q3918"])
bind12 --> bind1
v3 --"wdt:P31"--> v2
v3 --"wdt:P17"--> c4
v3 --"wdt:P856"--> v4
v3 --"wdt:P625"--> v5
v2 --"rdfs:label"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P576"--> a1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end