query-baed9dac95cde197bb2a9b54a0125933

rq turtle/ttl

Done Lang by number of labelHi, I wanted to get the lang by the number of items of Wikidata with a label in this lang. I think the query must be something like:

Use at

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?lang (COUNT(?item) AS ?count) WHERE {
    ?item rdfs:label ?itemLabel.
    BIND ( lang(?itemLabel) as ?lang )
}
GROUP BY ?lang

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v1("?item"):::projected v2("?itemLabel") v3("?lang"):::projected v1 --"rdfs:label"--> v2 bind0[/"?itemLabel"/] v2 --o bind0 bind0 --as--o v3 bind2[/"count(?item)"/] v1 --o bind2 bind2 --as--o v4