query-46df646aebe40c43265c1ce38431e9de
Bubble chart of formats sharing same extension
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT DISTINCT ?extension ?extensionLabel (COUNT(?format) AS ?count) WHERE {
?format (p:P31/ps:P31/wdt:P279*) wd:Q235557.
?format wdt:P1195 ?extension.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?extension ?extensionLabel
HAVING ((COUNT(?format)) > 3)
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_42b5416610844a34809f33a099ae9de1115005")
v5("?count")
v3("?extension"):::projected
v2("?format"):::projected
a2((" "))
a3((" "))
a1((" "))
c5(["wd:Q235557"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
f0[[" > '3^^xsd:integer'"]]
f0 --> a1
v2 --"p:P31"--> a2
a2 --"p:statement/P31"--> a3
a3 --"p:direct/P279"--> c5
v2 --"p:direct/P1195"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind3[/"count(?format)"/]
v2 --o bind3
bind3 --as--o v4
bind4[/"count(?format)"/]
v2 --o bind4
bind4 --as--o v5