query-816e49c2320036049eecf832963e65c5
Most self-citing author
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?author1 ?author1Label (count(?citing_work) AS ?number_of_citations) (group_concat(?citing_workLabel; separator=" // ") as ?citing_works) WHERE {
?work wdt:P50 ?author1 .
?citing_work wdt:P2860 ?work .
?citing_work wdt:P50 ?author2 .
filter (?author1 = ?author2 )
service wikibase:label { bd:serviceParam wikibase:language "en" . }
?citing_work rdfs:label ?citing_workLabel . filter (lang(?citing_workLabel) = 'en')
}
GROUP BY ?author1 ?author1Label
ORDER BY DESC(?number_of_citations)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author1"):::projected
v4("?author2")
v6("?citing_work"):::projected
v2("?citing_workLabel"):::projected
v7("?citing_works")
v7("?number_of_citations")
v5("?work")
c5(["bd:serviceParam"]):::iri
c1(["en"]):::literal
f0[["?citing_workLabel = 'en'"]]
f0 --> v2
f1[["?author1 = ?author2"]]
f1 --> v3
f1 --> v4
v5 --"wdt:P50"--> v3
v6 --"wdt:P2860"--> v5
v6 --"wdt:P50"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c1
end
v6 --"rdfs:label"--> v2
bind4[/"count(?citing_work)"/]
v6 --o bind4
bind4 --as--o v7
bind5[/"?citing_workLabel"/]
v2 --o bind5
bind5 --as--o v7