query-6156b57519f76beccc90fb4a9e5bb6aa
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 ?propertyType ?count WHERE
{
{
SELECT ?property (count(distinct ?item) as ?count) WHERE {
SERVICE bd:slice {
?item wdt:P31 wd:Q3305213.
bd:serviceParam bd:slice.offset 0 . # Start at item number (not to be confused with QID)
bd:serviceParam bd:slice.limit 200000 . # List this many items
}
?item ?predicate ?value .
?property wikibase:directClaim ?predicate .
} group by ?property } ?property wikibase:propertyType ?propertyType .
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
v6("?propertyType"):::projected
v4("?value")
c13(["en"]):::literal
c6(["0^^xsd:integer"]):::literal
c3(["wd:Q3305213"]):::iri
c4(["bd:serviceParam"]):::iri
c8(["200000^^xsd:integer"]):::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
v5 --"wikibase:propertyType"--> v6
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c13
end