query-445324a2eb950f3e7ac0af8e1886da12

rq turtle/ttl

... FDM-Servicestellen markiert

Use at

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#>
#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 {
    ?p wdt:P101 wd:Q30089794 .
    ?p wdt:P31 wd:Q679206 .
    ?p wdt:P361 ?w . 
    BIND(TRUE AS ?kontaktstelle)
  }
  ?w wdt:P2196 ?students .
  BIND(IF(Bound(?kontaktstelle), "a3c717", "666666") AS ?rgb)  # Kontaktstelle: grĂ¼n
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de" }
} ORDER BY DESC(?students) ASC(?wLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?kontaktstelle") v4("?p") v6("?rgb"):::projected v1("?students"):::projected v3("?w"):::projected v2("?wLabel"):::projected a1((" ")) c8(["wd:Q679206"]):::iri c12(["bd:serviceParam"]):::iri c7(["wd:Q30089794"]):::iri c5(["wd:Q183"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal c3(["wd:Q38723"]):::iri v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v3 --"wdt:P17"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P101".-> c7 v4 --"wdt:P31"--> c8 v4 --"wdt:P361"--> v3 bind0[/"'true^^xsd:boolean'"/] bind0 --as--o v5 end v3 --"wdt:P2196"--> v1 bind1[/"if(bound(?kontaktstelle),'a3c717','666666')"/] v5 --o bind1 bind1 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end