query-09ed12285a797cce1d4575468c2bc1eb
Publishers
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q1093499>
SELECT
?works
?publisher ?publisherLabel
(CONCAT("#publisher/", SUBSTR(STR(?publisher), 32)) AS ?publisherUrl)
?publisherDescription
WHERE {
{
SELECT
(COUNT(?work) AS ?works)
?publisher
WHERE {
?work wdt:P2739 target: ;
wdt:P123 ?publisher .
}
GROUP BY ?publisher
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY DESC(?works)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?publisher"):::projected
v4("?publisherUrl")
v2("?work")
v4("?works"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2([http://www.wikidata.org/entity/Q1093499]):::iri
v2 --"wdt:P2739"--> c2
v2 --"wdt:P123"--> v3
bind1[/"count(?work)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"concat('#publisher/',substring(str(?publisher),'32^^xsd:integer'))"/]
v3 --o bind2
bind2 --as--o v4