query-a0b8f07747d4d9717effe30b10477f6d
Propertiesinstance of (P31)subclass of (P279)
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 ?property ?propertyLabel (COUNT (?item) as ?count) WHERE{
?item wdt:P31/wdt:P279* wd:Q204832 ;
?prop ?statement.
?property wikibase:directClaim ?prop.
FILTER (?property != wd:P31)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" .}
}
GROUP BY $property ?propertyLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v3("?item"):::projected
v4("?prop")
v2("?property"):::projected
v5("?statement")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c4(["wd:Q204832"]):::iri
f0[["?property != 'wd:P31'"]]
f0 --> v2
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v3 -->v4--> v5
v2 --"wikibase:directClaim"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"count(?item)"/]
v3 --o bind2
bind2 --as--o v6