query-446990f9aa70a34cefad021027632ff8
Non-instance itemsI'm not quite sure what I'm looking for here; just exploring...
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (COUNT(?property) AS ?statements)
WHERE
{
?item rdf:type wdno:P31.
OPTIONAL{?item ?property ?value}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?statements)
LIMIT 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?property"):::projected
v5("?statements")
v4("?value")
c2(["wdno:P31"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v2 --"a"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -->v3--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 -."wikibase:language".-> c6
end
bind1[/"count(?property)"/]
v3 --o bind1
bind1 --as--o v5