query-24682c839218efa7b6b398687b3f8cd8

rq turtle/ttl

Départements comptés par proportion de ORCID parmi le corps professoralNombreux biais : les professeurs retraités, décédés ou ayant quitté sont comptés dans le total. Pas de filtrage de départements non-UdeM.

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 (count(?chercheur) as ?total_faculty) (SUM(?ref) AS ?nb_orcid) (100*?nb_orcid/?total_faculty AS ?percent) ?aff ?affLabel where {
  ?chercheur wdt:P108 wd:Q392189. #udem
  ?chercheur wdt:P1416 ?aff.
  ?aff wdt:P361 wd:Q392189.
  OPTIONAL { ?chercheur wdt:P496 ?orcid. 
            BIND (1 AS ?ref)}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
group by ?aff ?affLabel
order by desc(?nb_orcid)
limit 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?aff"):::projected v2("?chercheur"):::projected v7("?nb_orcid"):::projected v4("?orcid") v7("?percent") v5("?ref"):::projected v6("?total_faculty"):::projected c7(["bd:serviceParam"]):::iri c2(["wd:Q392189"]):::iri c9(["en"]):::literal v2 --"wdt:P108"--> c2 v2 --"wdt:P1416"--> v3 v3 --"wdt:P361"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P496".-> v4 bind0[/"'1^^xsd:integer'"/] bind0 --as--o v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind3[/"count(?chercheur)"/] v2 --o bind3 bind3 --as--o v6 bind4[/"sum(?ref)"/] v5 --o bind4 bind4 --as--o v7 bind5[/"'100^^xsd:integer' * ?nb_orcid / ?total_faculty"/] v7 --o bind5 v6 --o bind5 bind5 --as--o v7