query-596f4941d34c7fde300cd21cb7f27e2a
distribution of senses per language SELECT ?lang (COUNT(?sense) AS ?cnt) WHERE { ?l a ontolex:LexicalEntry ; dct:language ?language ; wikibase:lemma ?lemma . ?language wdt:P218 ?lang. ?l ontolex:sense ?sense. # ?sense wdt:P5137 []. } GROUP BY ?lang ORDER BY DESC(?cnt)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
# distribution of senses per language
SELECT ?lang (COUNT(?sense) AS ?cnt) WHERE {
?l a ontolex:LexicalEntry ; dct:language ?language ;
wikibase:lemma ?lemma .
?language wdt:P218 ?lang.
?l ontolex:sense ?sense.
# ?sense wdt:P5137 [].
}
GROUP BY ?lang
ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?cnt")
v2("?l")
v5("?lang"):::projected
v3("?language")
v4("?lemma")
v6("?sense"):::projected
c2(["ontolex:LexicalEntry"]):::iri
v2 --"a"--> c2
v2 --"dct:language"--> v3
v2 --"wikibase:lemma"--> v4
v3 --"wdt:P218"--> v5
v2 --"ontolex:sense"--> v6
bind1[/"count(?sense)"/]
v6 --o bind1
bind1 --as--o v7