query-8bd398581cdcb452e7cb1c584a51d9f8

rq turtle/ttl

Lexemes with the most senses

Use at

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#>
SELECT ?lexeme ?languageLabel ?lemma (COUNT(DISTINCT ?sense) AS ?numSenses)
WHERE {
  ?lexeme ontolex:sense ?sense ;
          wikibase:lemma ?lemma ;
          dct:language ?language .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?lexeme ?lemma ?languageLabel
ORDER BY DESC(?numSenses)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?language") v4("?lemma"):::projected v2("?lexeme"):::projected v6("?numSenses") v3("?sense"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"ontolex:sense"--> v3 v2 --"wikibase:lemma"--> v4 v2 --"dct:language"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"count(?sense)"/] v3 --o bind1 bind1 --as--o v6