query-267374890d5b73698dede8fed95f96ee
Senses per lexical category
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
PREFIX target: <http://www.wikidata.org/entity/Q9035>
SELECT
?senses
?lexical_category ?lexical_categoryLabel
WHERE {
{
SELECT
(COUNT(?sense) AS ?senses)
?lexical_category
WHERE {
[] ontolex:sense ?sense ;
dct:language target: ;
wikibase:lexicalCategory ?lexical_category .
}
GROUP BY ?lexical_category
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?senses)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?lexical_category"):::projected
v2("?sense")
v4("?senses"):::projected
a1((" "))
c3([http://www.wikidata.org/entity/Q9035]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"ontolex:sense"--> v2
a1 --"dct:language"--> c3
a1 --"wikibase:lexicalCategory"--> v3
bind1[/"count(?sense)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end