query-96c3fdb827036282ba5592e44a91dcb5

rq turtle/ttl

Tuareg-Lexeme

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?lexeme (group_concat(distinct ?lemma) as ?lemmas) (SAMPLE(?label) as ?language) WHERE {
  ?lexeme a ontolex:LexicalEntry ; dct:language ?lang ; wikibase:lemma ?lemma .
  { # constrain language to “Tuareg languages” and subclasses
    ?lang wdt:P279* wd:Q34065 ;
          # get labels
          rdfs:label ?label .
    # filter labels to auto lang
    FILTER(LANG(?label) = "[AUTO_LANGUAGE]") . }
} GROUP BY ?lexeme
LIMIT 20

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?label"):::projected v2("?lang") v6("?language") v3("?lemma"):::projected v5("?lemmas") v1("?lexeme"):::projected c2(["ontolex:LexicalEntry"]):::iri c7(["wd:Q34065"]):::iri v1 --"a"--> c2 v1 --"dct:language"--> v2 v1 --"wikibase:lemma"--> v3 f0[["?label = '#91;AUTO_LANGUAGE#93;'"]] f0 --> v4 v2 --"wdt:P279"--> c7 v2 --"rdfs:label"--> v4 bind3[/"?lemma"/] v3 --o bind3 bind3 --as--o v5 bind4[/"sample(?label)"/] v4 --o bind4 bind4 --as--o v6