query-a96426759860c730c0a1bb4b532c5d9b

rq turtle/ttl

...weltweit

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT DISTINCT ?w ?wLabel ?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 wd:Q183 .
  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)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de" }
} ORDER BY DESC(?students) ASC(?wLabel)
LIMIT 10000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?NFDIassociated") v8("?affiliationType") v4("?affiliationTypeLabel") v6("?p") v9("?rgb"):::projected v7("?statement") v1("?students"):::projected v3("?w"):::projected v2("?wLabel"):::projected a1((" ")) c6(["wd:Q105757481"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal c3(["wd:Q38723"]):::iri c7(["wd:Q98270496"]):::iri v3 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 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".-> c6 bind0[/"'Vereinsmitglied'"/] bind0 --as--o v4 bind1[/"'true^^xsd:boolean'"/] bind1 --as--o v9 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."p:direct/P31".-> c7 v6 --"p:P1416"--> v7 v7 --"p:statement/P1416"--> v3 subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:qualifier/P3831".-> v8 end bind2[/"'true^^xsd:boolean'"/] bind2 --as--o v9 end bind3[/"if(bound(?NFDIassociated),'0abaf0','666666')"/] v9 --o bind3 bind3 --as--o v9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end