query-d6433447924525c45490ddc20d99ec5d
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 ?property ?propertyLabel ?count WHERE
{
{
SELECT ?property (count(distinct ?item) as ?count) WHERE {
SERVICE bd:slice {
?item wdt:P31 wd:Q5.
bd:serviceParam bd:slice.offset 0 . # Start at item number (not to be confused with QID)
bd:serviceParam bd:slice.limit 80000 . # List this many items
}
?item ?predicate ?value .
?property wikibase:directClaim ?predicate .
} group by ?property } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
} order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count"):::projected
v2("?item")
v3("?predicate")
v5("?property"):::projected
v4("?value")
c6(["0^^xsd:integer"]):::literal
c4(["bd:serviceParam"]):::iri
c8(["80000^^xsd:integer"]):::literal
c3(["wd:Q5"]):::iri
c12(["en"]):::literal
subgraph s1["http://www.bigdata.com/rdf#slice"]
style s1 stroke-width:4px;
v2 --"wdt:P31"--> c3
c4 --"bd:slice.offset"--> c6
c4 --"bd:slice.limit"--> c8
end
v2 -->v3--> v4
v5 --"wikibase:directClaim"--> v3
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v6
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c12
end