query-6f246a0d64ecb1e390ff4cdf986846ad
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?classLabel (COUNT(DISTINCT ?item) as ?count) WHERE {
{ SELECT ?classLabel ?item WHERE {
?wiki0 schema:isPartOf <https://lv.wikipedia.org/>; schema:about ?item .
VALUES ?pred { wdt:P31 wdt:P279 } .
?item ?pred [ rdfs:label ?classLabel ] .
FILTER (LANG(?classLabel) = "lv") .
} LIMIT 80000 } .
}
GROUP BY ?classLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?classLabel"):::projected
v6("?count")
v4("?item"):::projected
v5("?pred")
v3("?wiki0")
a1((" "))
c3([https://lv.wikipedia.org/]):::iri
f0[["?classLabel = 'lv'"]]
f0 --> v2
v3 --"schema:isPartOf"--> c3
v3 --"schema:about"--> v4
bind1[/VALUES ?pred/]
bind1-->v5
bind10(["wdt:P31"])
bind10 --> bind1
bind11(["wdt:P279"])
bind11 --> bind1
a1 --"rdfs:label"--> v2
v4 -->v5--> a1
bind3[/"count(?item)"/]
v4 --o bind3
bind3 --as--o v6