query-443b917dc8d7e05b0acb12f552843c71

rq turtle/ttl

Prolific authors

PREFIX target: http://www.wikidata.org/entity/Q2284414

SELECT ?count ?author ?authorLabel ?orcid ?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 target: . } GROUP BY ?author } AS %result WHERE { INCLUDE %result

# Include optional ORCID iD OPTIONAL { ?author wdt:P496 ?orcid . }

# Label the results SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } } ORDER BY DESC(?count) LIMIT 50

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Prolific authors

PREFIX target: <http://www.wikidata.org/entity/Q2284414>

SELECT ?count ?author ?authorLabel ?orcid ?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 target: .
  }
  GROUP BY ?author
}

  # Include optional ORCID iD
  OPTIONAL { ?author wdt:P496 ?orcid . }

  # Label the results
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } 
}
ORDER BY DESC(?count)
LIMIT 50

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 v5("?orcid"):::projected v2("?work") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3([http://www.wikidata.org/entity/Q2284414]):::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:P496".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end