query-ac9218d5679992fee3303818903ca0dc
title: People with a GitHub account AND an ORCID AND at least one publication SELECT DISTINCT ?author ?authorLabel ?authorDescription ?github ?orcid ?count
WITH { SELECT ?author ?github ?orcid (count(?work) as ?count) WHERE { ?author wdt:P2037 ?github . ?author wdt:P496 ?orcid . ?work wdt:P50 ?author. } GROUP BY ?author ?github ?orcid ORDER BY DESC(?count) LIMIT 5000 } AS %result WHERE { INCLUDE %result
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } } ORDER BY DESC(?count)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: People with a GitHub account AND an ORCID AND at least one publication
SELECT DISTINCT ?author ?authorLabel ?authorDescription ?github ?orcid ?count
WHERE {
{
SELECT
?author ?github ?orcid
(count(?work) as ?count)
WHERE {
?author wdt:P2037 ?github .
?author wdt:P496 ?orcid .
?work wdt:P50 ?author.
}
GROUP BY ?author ?github ?orcid
ORDER BY DESC(?count)
LIMIT 5000
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?author"):::projected
v6("?count"):::projected
v3("?github"):::projected
v4("?orcid"):::projected
v5("?work")
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v2 --"wdt:P2037"--> v3
v2 --"wdt:P496"--> v4
v5 --"wdt:P50"--> v2
bind1[/"count(?work)"/]
v5 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end