query-2312fd8ad88bd9dc29e529cc0c48d885

rq turtle/ttl

Lexemes with the most entified senses SELECT DISTINCT ?lexeme ?languageLabel ?lemma (COUNT(DISTINCT ?item) AS ?numItems) WHERE { ?lexeme ontolex:sense ?sense ; wikibase:lemma ?lemma ; dct:language ?language . ?sense wdt:P5137 ?item. OPTIONAL { ?sense skos:definition ?definition. FILTER(LANG(?definition)="en") } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?lexeme ?languageLabel ?lemma ORDER BY DESC(?numItems) LIMIT 100

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Lexemes with the most entified senses
SELECT DISTINCT ?lexeme ?languageLabel ?lemma (COUNT(DISTINCT ?item) AS ?numItems)
WHERE {
  ?lexeme ontolex:sense ?sense ;
          wikibase:lemma ?lemma ;
          dct:language ?language .
  ?sense wdt:P5137 ?item.
  OPTIONAL {
    ?sense skos:definition ?definition.
    FILTER(LANG(?definition)="en")
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?lexeme ?languageLabel ?lemma
ORDER BY DESC(?numItems)
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?definition") v7("?item"):::projected v6("?language") v5("?lemma"):::projected v3("?lexeme"):::projected v8("?numItems") v4("?sense") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v3 --"ontolex:sense"--> v4 v3 --"wikibase:lemma"--> v5 v3 --"dct:language"--> v6 v4 --"wdt:P5137"--> v7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."skos:definition".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"count(?item)"/] v7 --o bind1 bind1 --as--o v8