query-4b9611d5544e8d021878bb8cc1c9c65b

rq turtle/ttl

language coverage of KOS types SELECT ?lang (COUNT(DISTINCT ?label) as ?items) WHERE { ?item wdt:P279* wd:Q6423319 . ?item rdfs:label ?label . # skos:altLabel/schema:description for alternative labels/descriptions BIND(lang(?label) as ?lang) } GROUP BY ?lang

HAVING (?items > 2) # limit to most used languages

ORDER BY DESC(?items)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# language coverage of KOS types
SELECT ?lang (COUNT(DISTINCT ?label) as ?items) WHERE {
    ?item wdt:P279* wd:Q6423319 .
    ?item rdfs:label ?label . # skos:altLabel/schema:description for alternative labels/descriptions
    BIND(lang(?label) as ?lang) 
} 
GROUP BY ?lang
# HAVING (?items > 2) # limit to most used languages 
ORDER BY DESC(?items)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item") v5("?items") v3("?label"):::projected v4("?lang"):::projected c2(["wd:Q6423319"]):::iri v2 --"wdt:P279"--> c2 v2 --"rdfs:label"--> v3 bind0[/"?label"/] v3 --o bind0 bind0 --as--o v4 bind2[/"count(?label)"/] v3 --o bind2 bind2 --as--o v5