query-7f1934f541368cec7fa316922514b621
...europaweit (noch ein Timeout)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#defaultView:BubbleChart
SELECT DISTINCT ?w ?wLabel ?staatLabel ?students ?rgb {
?w wdt:P31/wdt:P279* wd:Q38723 . # nur Hochschulen
# ?w wdt:P31/wdt:P279* wd:Q1365560 . # HAWs only
# ?w wdt:P31/wdt:P279* wd:Q3918 . # Unis only
?w wdt:P17 ?staat .
?staat wdt:P361 wd:Q458 .
OPTIONAL {?w wdt:P2196 ?students .} # Lernende
# OPTIONAL {?w wdt:P1128 ?students .} # Mitarbeiter
OPTIONAL { ?w wdt:P463 wd:Q105757481 .
BIND("Vereinsmitglied" AS ?affiliationTypeLabel)
BIND(TRUE AS ?NFDIassociated)
}
OPTIONAL {
?p wdt:P31 wd:Q98270496 .
?p p:P1416 ?statement .
?statement ps:P1416 ?w .
OPTIONAL { ?statement pq:P3831 ?affiliationType .}
BIND(TRUE AS ?NFDIassociated)
}
BIND(IF(Bound(?NFDIassociated), "0abaf0", "666666") AS ?rgb)
} ORDER BY DESC(?students) ASC(?wLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?NFDIassociated")
v9("?affiliationType")
v5("?affiliationTypeLabel")
v7("?p")
v10("?rgb"):::projected
v4("?staat")
v8("?statement")
v1("?students"):::projected
v3("?w"):::projected
v2("?wLabel"):::projected
a1((" "))
c9(["wd:Q105757481"]):::iri
c6(["wd:Q458"]):::iri
c3(["wd:Q38723"]):::iri
c10(["wd:Q98270496"]):::iri
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v3 --"p:direct/P17"--> v4
v4 --"p:direct/P361"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P2196".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P463".-> c9
bind0[/"'Vereinsmitglied'"/]
bind0 --as--o v5
bind1[/"'true^^xsd:boolean'"/]
bind1 --as--o v10
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v7 -."p:direct/P31".-> c10
v7 --"p:P1416"--> v8
v8 --"p:statement/P1416"--> v3
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:qualifier/P3831".-> v9
end
bind2[/"'true^^xsd:boolean'"/]
bind2 --as--o v10
end
bind3[/"if(bound(?NFDIassociated),'0abaf0','666666')"/]
v10 --o bind3
bind3 --as--o v10