query-bc116fe9b75fc815c6a8df8edbfcdf0c
TEMPLATE={ "template": { "en": "Longest single-word lexemes in ?language without repeating letters." }, "variables": { "?language": { "query": "SELECT ?id WHERE { ?lexeme dct:language ?id. } GROUP BY ?id ORDER BY DESC(COUNT()) LIMIT 50" } } } PREFIX dct: http://purl.org/dc/terms/ # workaround for T233148 SELECT ?lexeme ?lemma (STRLEN(?lemma) AS ?length) WHERE { BIND(wd:Q1860 AS ?language) ?lexeme dct:language ?language; wikibase:lemma ?lemma. FILTER(STRLEN(?lemma) >= 10) # cheap filter to avoid running REGEX() on too many lemmata FILTER(!REGEX(LCASE(?lemma), "(.).\1")) FILTER(!CONTAINS(?lemma, " ")) } ORDER BY DESC(?length) LIMIT 10
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
#TEMPLATE={ "template": { "en": "Longest single-word lexemes in ?language without repeating letters." }, "variables": { "?language": { "query": "SELECT ?id WHERE { ?lexeme dct:language ?id. } GROUP BY ?id ORDER BY DESC(COUNT(*)) LIMIT 50" } } }
PREFIX dct: <http://purl.org/dc/terms/> # workaround for T233148
SELECT ?lexeme ?lemma (STRLEN(?lemma) AS ?length) WHERE {
BIND(wd:Q1860 AS ?language)
?lexeme dct:language ?language;
wikibase:lemma ?lemma.
FILTER(STRLEN(?lemma) >= 10) # cheap filter to avoid running REGEX() on too many lemmata
FILTER(!REGEX(LCASE(?lemma), "(.).*\\1"))
FILTER(!CONTAINS(?lemma, " "))
}
ORDER BY DESC(?length)
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?language")
v2("?lemma"):::projected
v5("?length")
v4("?lexeme"):::projected
f0[["not contains(?lemma,' ')"]]
f0 --> v2
f1[["not regex(lower-case(?lemma),'(.).*\1')"]]
f1 --> v2
f2[["string-length(?lemma) >= '10^^xsd:integer'"]]
f2 --> v2
bind3[/"'wd:Q1860'"/]
bind3 --as--o v3
v4 --"dct:language"--> v3
v4 --"wikibase:lemma"--> v2
bind4[/"string-length(?lemma)"/]
v2 --o bind4
bind4 --as--o v5