query-da43d9957b18cb1ee85e635d9bf5bd89
Prolific authors for a specific journal SELECT ?count ?author ?authorLabel ?viaf ?lccn ?example_work ?example_workLabel WITH { # Count the number of works author by the author publishing in the journal SELECT ?author (COUNT(?work) AS ?count) (SAMPLE(?work) AS ?example_work) WHERE { ?work wdt:P50 ?author ; wdt:P1433 wd:Q69499259 . } GROUP BY ?author } AS %result WHERE { INCLUDE %result
# Include optional ORCID iD OPTIONAL { ?author wdt:P214 ?viaf . } OPTIONAL { ?author wdt:P244 ?lccn . }
# Label the results SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,no,ru,sv,zh" . } } ORDER BY DESC(?count) LIMIT 500
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Prolific authors for a specific journal
SELECT ?count ?author ?authorLabel ?viaf ?lccn ?example_work ?example_workLabel
WHERE {
{
# Count the number of works author by the author publishing in the journal
SELECT
?author
(COUNT(?work) AS ?count)
(SAMPLE(?work) AS ?example_work)
WHERE {
?work wdt:P50 ?author ;
wdt:P1433 wd:Q69499259 .
}
GROUP BY ?author
}
# Include optional ORCID iD
OPTIONAL { ?author wdt:P214 ?viaf . }
OPTIONAL { ?author wdt:P244 ?lccn . }
# Label the results
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,no,ru,sv,zh" . }
}
ORDER BY DESC(?count)
LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author"):::projected
v4("?count"):::projected
v4("?example_work"):::projected
v6("?lccn"):::projected
v5("?viaf"):::projected
v2("?work")
c7(["bd:serviceParam"]):::iri
c9(["en,da,de,es,fr,jp,no,ru,sv,zh"]):::literal
c3(["wd:Q69499259"]):::iri
v2 --"wdt:P50"--> v3
v2 --"wdt:P1433"--> c3
bind2[/"count(?work)"/]
v2 --o bind2
bind2 --as--o v4
bind3[/"sample(?work)"/]
v2 --o bind3
bind3 --as--o v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P214".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P244".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end