query-0f8353c14cf4106fe499c69705d8f823

rq turtle/ttl

Scholary Articles (Q13442814) - how can I count citations (something like What links here) [1]) should be now about 45 Q29048985 (New developments in hyperbranched polymersDear Community, is there a way to count citations (not references, this is the bottom example mentioned) - it should be something like the Special Page "What links here" - for example, the value for the citations of #publications brigitte voit SELECT DISTINCT ?item ?itemLabel ?publicationDate (COUNT(?citations) AS ?count) WHERE { ?item wdt:P31 wd:Q13442814. ?item wdt:P50 wd:Q21256003. ?item wdt:P577 ?publicationDate. optional { ?item wdt:P2860 ?citations. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?item ?itemLabel ?publicationDate ?count ORDER BY ?publicationDate ).contribs • talk (Erfurth comment was added byunsignedThe preceding – } Q29048985:wd P2860:wdt ?citedby { WHERE )?count as )?citedby DISTINCT(COUNT( SELECT 09:24, 1 January 2019 (UTC) JuraMaybe the above is what you are looking for? ---

Use at

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#>
SELECT ?pub ?pubLabel (COUNT(DISTINCT ?citedby) as ?count) (SAMPLE(?citedby) as ?sample)
WHERE
{ 
    ?citedby wdt:P2860 ?pub .  
    ?pub wdt:P50 wd:Q21256003 .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?pub ?pubLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?citedby"):::projected v4("?count") v3("?pub"):::projected v4("?sample") c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q21256003"]):::iri v2 --"wdt:P2860"--> v3 v3 --"wdt:P50"--> c3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind2[/"count(?citedby)"/] v2 --o bind2 bind2 --as--o v4 bind3[/"sample(?citedby)"/] v2 --o bind3 bind3 --as--o v4