Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCo-author graph for "Type 2 diabetes" does not render #472
Labels
Comments
This comment has been minimized.
This comment has been minimized.
Just tested it again — same issue. |
This comment has been minimized.
This comment has been minimized.
#defaultView:Graph
SELECT ?author1 ?author1Label ?rgb ?author2 ?author2Label
WITH {
# Find works with the topic
SELECT ?work WHERE {
?work wdt:P921 / (wdt:P31* / wdt:P279* | wdt:P361+ | wdt:P1269+) wd:Q3025883 .
}
} AS %works
WITH {
# Limit the number of authors to the most prolific ones
SELECT (COUNT(?work) AS ?count) ?author1 WHERE {
INCLUDE %works
?work wdt:P50 ?author1 .
}
GROUP BY ?author1
ORDER BY DESC(?count)
LIMIT 25
} AS %authors
WITH {
# Limit the number of coauthorships
SELECT (COUNT(*) AS ?coauthorships) ?author1 ?author2 WHERE {
INCLUDE %works
INCLUDE %authors
?work wdt:P50 ?author1 , ?author2 .
FILTER (?author1 != ?author2)
}
GROUP BY ?author1 ?author2
ORDER BY DESC(?coauthorships)
LIMIT 500
} AS %coauthorships
WHERE {
# Color and label the nodes
INCLUDE %coauthorships
OPTIONAL { ?author1 wdt:P21 ?gender1 . }
BIND( IF(?gender1 = wd:Q6581097, "3182BD", "E6550D") AS ?rgb)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en,fr,de,ru,es,zh,jp".
}
} |
Daniel-Mietchen
added this to To do
in 1. Back-end development and testing with pilot corpora
via automation
Jul 1, 2019
This comment has been minimized.
This comment has been minimized.
Works fine now with the simplification introduced in bb2ee21#diff-04a29c3a9ff21a4d023f710f69057842 . |
1. Back-end development and testing with pilot corpora
automation
moved this from To do
to Done
Dec 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Daniel-Mietchen commentedAug 24, 2018
https://tools.wmflabs.org/scholia/topic/Q3025883