query-c95a8fca62811801c849f0f91ad50963

rq turtle/ttl

Gib mir alle Rechtsformen von NFDI-Beteiligten, sortiert nach Anzahl!

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#>
SELECT ?rechtsformLabel (COUNT(DISTINCT ?w) AS ?number)
WHERE 
{
  { ?w wdt:P463 wd:Q105757481 . } UNION 
  {
    ?p wdt:P31 wd:Q98270496 . 
    ?p wdt:P1416 ?w .
  }
  OPTIONAL {?w wdt:P1454 ?rechtsform .}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . }
} GROUP BY ?rechtsform ?rechtsformLabel
ORDER BY DESC(?number)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?number") v3("?p") v4("?rechtsform") v2("?w"):::projected c10(["de"]):::literal c8(["bd:serviceParam"]):::iri c2(["wd:Q105757481"]):::iri c4(["wd:Q98270496"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c4 v3 --"wdt:P1416"--> v2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P463"--> c2 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P1454".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"count(?w)"/] v2 --o bind1 bind1 --as--o v5