query-a42058e7a23d23cb3b2c3e511c4bb6d6
title: People who published about GitHub and have a GitHub account known to Wikidata PREFIX target: http://www.wikidata.org/entity/Q364
SELECT ?count ?author ?authorLabel ?authorDescription (COALESCE(?orcid_, CONCAT("orcid-search/quick-search/?searchQuery=", ?authorLabel)) AS ?orcid) WITH { SELECT ?author (count(?work) as ?count) WHERE { ?work wdt:P921 target: . ?work wdt:P50 ?author . ?author wdt:P2037 ?github . } GROUP BY ?author ORDER BY DESC(?count) LIMIT 200 } AS %result WHERE { INCLUDE %result
# Include optional ORCID iD OPTIONAL { ?author wdt:P496 ?orcid_ . } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,nl,no,ru,sv,zh" . } } 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 who published about GitHub and have a GitHub account known to Wikidata
PREFIX target: <http://www.wikidata.org/entity/Q364>
SELECT
?count
?author ?authorLabel ?authorDescription
(COALESCE(?orcid_, CONCAT("orcid-search/quick-search/?searchQuery=", ?authorLabel)) AS ?orcid)
WHERE {
{
SELECT
?author
(count(?work) as ?count)
WHERE {
?work wdt:P921 target: .
?work wdt:P50 ?author .
?author wdt:P2037 ?github .
}
GROUP BY ?author
ORDER BY DESC(?count)
LIMIT 200
}
# Include optional ORCID iD
OPTIONAL { ?author wdt:P496 ?orcid_ . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,nl,no,ru,sv,zh" . }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author"):::projected
v5("?count"):::projected
v4("?github")
v6("?orcid")
v5("?orcid_"):::projected
v2("?work")
c9(["en,da,de,es,fr,jp,nl,no,ru,sv,zh"]):::literal
c7(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q364]):::iri
v2 --"wdt:P921"--> c2
v2 --"wdt:P50"--> v3
v3 --"wdt:P2037"--> v4
bind1[/"count(?work)"/]
v2 --o bind1
bind1 --as--o v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P496".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"?orcid_concat('orcid-search/quick-search/?searchQuery=',?authorLabel)"/]
v5 --o bind2
null --o bind2
bind2 --as--o v6