query-6dbc898a59eb8b44e75626233c17ff5e

rq turtle/ttl

Items about authors with a Wikispecies page

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?author ?authorLabel (COUNT(?paper) AS ?count)
WHERE
{
    ?article    schema:about ?author ;
            schema:isPartOf <https://species.wikimedia.org/> .
    ?author wdt:P31 wd:Q5.
    ?paper wdt:P50 ?author.
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
GROUP BY ?author ?authorLabel
ORDER BY DESC(?count)
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v3("?author"):::projected v5("?count") v4("?paper"):::projected c3([https://species.wikimedia.org/]):::iri c8(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 v3 --"wdt:P31"--> c5 v4 --"wdt:P50"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"count(?paper)"/] v4 --o bind1 bind1 --as--o v5