query-a4605bb3c435a41cd18304bc9ecd7114
Chercheurs du système UdeM, classées selon le nombre de liens qui pointent vers eux
Use at
- https://query.wikidata.org/sparql
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#>
#title: Chercheurs du système UdeM, classées selon le nombre de liens qui pointent vers eux (requête adaptée de Nicolas Vigneron)
#defaultView:Chart
SELECT ?q (COUNT(?x) AS ?nb) WHERE {
VALUES ?univ { wd:Q392189 wd:Q273527 wd:Q273619 wd:Q1054216 wd:Q67182995 wd:Q2945760 wd:Q3152656 wd:Q3151984 wd:Q3145326 wd:Q3145180 } # et CHUM, Mila, Ste-Justine, gériatrie, MHI, SacréCoeur, Maisonneuve
?q(wdt:P108/wdt:P361*|wdt:P1416/wdt:P361*|wdt:P69) ?univ. # Employés ou affilié ou étudiants et leurs sous-parties (dép., facultés, etc.)
?q(wdt:P108|wdt:P463|wdt:P1416) ?univ .
OPTIONAL { ?x ?lien ?q }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?q
ORDER BY DESC(?nb)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?lien")
v6("?nb")
v3("?q"):::projected
v2("?univ")
v4("?x"):::projected
a1((" "))
a2((" "))
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?univ/]
bind0-->v2
bind00(["wd:Q392189"])
bind00 --> bind0
bind01(["wd:Q273527"])
bind01 --> bind0
bind02(["wd:Q273619"])
bind02 --> bind0
bind03(["wd:Q1054216"])
bind03 --> bind0
bind04(["wd:Q67182995"])
bind04 --> bind0
bind05(["wd:Q2945760"])
bind05 --> bind0
bind06(["wd:Q3152656"])
bind06 --> bind0
bind07(["wd:Q3151984"])
bind07 --> bind0
bind08(["wd:Q3145326"])
bind08 --> bind0
bind09(["wd:Q3145180"])
bind09 --> bind0
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P69"--> v2
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P1416"--> a2
a2 --"wdt:P361"--> v2
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P108"--> a1
a1 --"wdt:P361"--> v2
end
union0r <== or ==> union0l
end
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P1416"--> v2
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P463"--> v2
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P108"--> v2
end
union2r <== or ==> union2l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -->v5--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 -."wikibase:language".-> c9
end
bind2[/"count(?x)"/]
v4 --o bind2
bind2 --as--o v6