query-812292357a5ad3733a4b541a98d5532e

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
  ?lexemes
  (CONCAT("#lexicalcategory/", SUBSTR(STR(?lexical_category), 32), "/cor") AS ?lexemesUrl)

  ?lexical_category ?lexical_categoryLabel
  (CONCAT("#lexicalcategory/", SUBSTR(STR(?lexical_category), 32)) AS ?lexical_categoryUrl)
  ?lexical_categoryDescription
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 v5("?lexemesUrl") v3("?lexical_category"):::projected v6("?lexical_categoryUrl") 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 bind2[/"concat('#lexicalcategory/',substring(str(?lexical_category),'32^^xsd:integer'),'/cor')"/] v3 --o bind2 bind2 --as--o v5 bind3[/"concat('#lexicalcategory/',substring(str(?lexical_category),'32^^xsd:integer'))"/] v3 --o bind3 bind3 --as--o v6