query-ec39dfb66b3c31d9ddac60f0f96ff194
Propertiessubclass of (P279)file extension (P1195)instance of (P31)
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#>
SELECT DISTINCT ?extension ?extensionLabel (COUNT(?format) AS ?count)
WHERE
{
?format (p:P31/ps:P31/wdt:P279*) wd:Q235557
; wdt:P1195 ?extension .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
group by ?extension ?extensionLabel
ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?extension"):::projected
v2("?format"):::projected
a1((" "))
a2((" "))
c4(["wd:Q235557"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
v2 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c4
v2 --"p:direct/P1195"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?format)"/]
v2 --o bind1
bind1 --as--o v4