query-13ab61d78a40de4f68d8bde9c0c311c9
Chercheurs+étudiants du système UdeM, avec GitHub username
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#>
SELECT DISTINCT ?udem ?udemLabel ?GitHub_username WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
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
?udem (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.)
?udem wdt:P2037 ?GitHub_username.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?GitHub_username"):::projected
v2("?udem"):::projected
v1("?univ")
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
bind0[/VALUES ?univ/]
bind0-->v1
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;
v2 --"wdt:P69"--> v1
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1416"--> a2
a2 --"wdt:P361"--> v1
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P108"--> a1
a1 --"wdt:P361"--> v1
end
union0r <== or ==> union0l
end
v2 --"wdt:P2037"--> v3