forked from biocuration2023/biocuration2023.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
isb2023-organizers.rq
40 lines (39 loc) · 1.49 KB
/
isb2023-organizers.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#+ summary: A query for the ISB2023 organizing committee and scientific program committeee
#+ endpoint: https://query.wikidata.org/sparql
#+ tags:
#+ - conference
#+ - bibliometrics
#defaultView:Table
SELECT
?person ?personLabel ?personDescription ?genderLabel ?image
?nationalityLabel ?orcid ?linkedin ?twitter ?gscholar ?github
(GROUP_CONCAT(DISTINCT ?topic_label; separator=", ") AS ?topics)
(MAX(?start_date) as ?max_start_date)
(SAMPLE(?employerLabel) as ?employerLabel_)
WHERE
{
wd:Q111430238 wdt:P664|wdt:P5804 ?person .
?person wdt:P496 ?orcid .
OPTIONAL { ?person wdt:P18 ?image . }
OPTIONAL { ?person wdt:P21 ?gender . }
OPTIONAL { ?person wdt:P2002 ?twitter . }
OPTIONAL { ?person wdt:P27 ?nationality . }
OPTIONAL { ?person wdt:P6634 ?linkedin . }
OPTIONAL { ?person wdt:P1960 ?gscholar . }
OPTIONAL { ?person wdt:P2037 ?github . }
OPTIONAL { ?person wdt:P101 ?topic . ?topic rdfs:label ?topic_label . FILTER (LANG(?topic_label) = 'en') }
OPTIONAL {
?person p:P108 ?statement .
?statement ps:P108 ?employer .
?employer rdfs:label ?employerLabel
filter(lang(?employerLabel) = "en")
OPTIONAL {
?statement pq:P580 ?start_date .
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}
GROUP BY
?person ?personLabel ?personDescription ?genderLabel ?image
?nationalityLabel ?orcid ?linkedin ?twitter ?gscholar ?github
ORDER BY ?personLabel