query-2c6a5ec63dd1839e388a07578ac7342e

rq turtle/ttl

Most used RE articles for references by count

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?REArticle ?REArticleLabel (count(?REArticle) as ?mentions) WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?statement prov:wasDerivedFrom ?ref .
  ?ref pr:P248 ?REArticle .
  ?REArticle wdt:P361 wd:Q1138524 .
}

GROUP BY ?REArticle ?REArticleLabel
ORDER BY DESC(?mentions)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?REArticle"):::projected v5("?mentions") v3("?ref") v2("?statement") c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c8(["wd:Q1138524"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"prov:wasDerivedFrom"--> v3 v3 --"pr:P248"--> v4 v4 --"wdt:P361"--> c8 bind1[/"count(?REArticle)"/] v4 --o bind1 bind1 --as--o v5