query-2b9e930d213fd0961932bb204402a4e5
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?class ?classLabel (COUNT(?property) AS ?properties) WHERE {
SELECT DISTINCT ?class ?classLabel ?property WHERE {
?property wdt:P31/wdt:P279* wd:Q18616576.
?property wdt:P31 ?class.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
}
GROUP BY ?class ?classLabel
ORDER BY DESC(?properties)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?class"):::projected
v4("?properties")
v2("?property"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
c3(["wd:Q18616576"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P31"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?property)"/]
v2 --o bind1
bind1 --as--o v4