fnielsen / ordia

Wikidata lexemes presentations
https://ordia.toolforge.org
Apache License 2.0
24 stars 13 forks source link

Panel of instance count on lexical category-language aspect #152

Open fnielsen opened 1 year ago

fnielsen commented 1 year ago
SELECT
  ?number_of_lexemes
  ?class ?classLabel
  ?example_lexeme
{
  {
    SELECT 
      ?class
      (COUNT(?lexeme) AS ?number_of_lexemes)
      (SAMPLE(?lexeme) AS ?example_lexeme)
    {
      ?lexeme wikibase:lexicalCategory wd:Q24905 ;
              dct:language wd:Q9035 ;
              wdt:P31 ?class .
    }
    GROUP BY ?class
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?number_of_lexemes)
LIMIT 10000