query-cc81bc258628549d461ce8a46e725cea
]reply[18:05, 31 May 2016 (UTC)) talk (Tobias1984--]reply[18:13, 9 September 2017 (UTC)) talk (Ogoorcs: As of today, these queries return timeout errors --Tobias1984: @Fnielsen@: The labeling service is inefficient. Try this with delayed labeling. It finishes in 24 seconds. Ogoorcs@
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#>
#defaultView:BubbleChart
SELECT ?count ?author ?authorLabel
WHERE {
{
SELECT ?author (COUNT(?publication) AS ?count) WHERE {
?item wdt:P2860 ?publication .
?publication wdt:P50 ?author .
}
GROUP BY ?author
} 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;
v4("?author"):::projected
v5("?count"):::projected
v2("?item")
v3("?publication")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v2 --"wdt:P2860"--> v3
v3 --"wdt:P50"--> v4
bind1[/"count(?publication)"/]
v3 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end