query-c46e4d1837ccc70bd1d19388946338ad

rq turtle/ttl

Lexical categories

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart

SELECT
  ?lexical_category ?lexical_categoryLabel
  ?lexemes
WHERE {
   {
  SELECT 
    (COUNT(?lexeme) AS ?lexemes)
    ?lexical_category
  WHERE {
    ?lexeme wikibase:lexicalCategory ?lexical_category ;
            wdt:P10831 ?cor_lemma .
  }
  GROUP BY ?lexical_category
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?lexemes)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?cor_lemma") v2("?lexeme") v5("?lexemes"):::projected v3("?lexical_category"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wikibase:lexicalCategory"--> v3 v2 --"wdt:P10831"--> v4 bind1[/"count(?lexeme)"/] v2 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end