query-fd32a466dc5aec9cf927a2f6fdef58cc

rq turtle/ttl

Language styles

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT 
  ?lexemes

  ?language_style ?language_styleLabel
  (CONCAT("#languagestyle/", SUBSTR(STR(?language_style), 32)) AS ?language_styleUrl)
  ?language_styleDescription
WHERE {
   {
  SELECT 
    (COUNT(?lexeme) AS ?lexemes)
    ?language_style
  WHERE {
    ?lexeme ontolex:sense / wdt:P6191 ?language_style .
  }
  GROUP BY ?language_style
}  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; v3("?language_style"):::projected v4("?language_styleUrl") v2("?lexeme") v4("?lexemes"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"ontolex:sense"--> a1 a1 --"wdt:P6191"--> v3 bind1[/"count(?lexeme)"/] v2 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind2[/"concat('#languagestyle/',substring(str(?language_style),'32^^xsd:integer'))"/] v3 --o bind2 bind2 --as--o v4