query-27e6e5276f7ae85716dc9d03d9411819
?sampleSenseOPTIONALskos:definitionontolex:senseOPTIONALSAMPLE(?sense)SAMPLE(?gloss)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
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#>
SELECT ?lexeme (GROUP_CONCAT(DISTINCT ?lemma; separator = "/") AS ?lemmata) (SAMPLE(?gloss) AS ?anyGloss) WHERE {
SERVICE bd:sample {
?lexeme dct:language wd:Q8752.
bd:serviceParam bd:sample.limit 20 .
}
?lexeme wikibase:lemma ?lemma.
OPTIONAL { ?lexeme ontolex:sense/skos:definition ?gloss. }
}
GROUP BY ?lexeme
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?anyGloss")
v3("?gloss"):::projected
v2("?lemma"):::projected
v4("?lemmata")
v1("?lexeme"):::projected
a1((" "))
c3(["wd:Q8752"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["20^^xsd:integer"]):::literal
subgraph s1["http://www.bigdata.com/rdf#sample"]
style s1 stroke-width:4px;
v1 --"dct:language"--> c3
c4 --"bd:sample.limit"--> c6
end
v1 --"wikibase:lemma"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."ontolex:sense".-> a1
a1 --"skos:definition"--> v3
end
bind2[/"?lemma"/]
v2 --o bind2
bind2 --as--o v4
bind3[/"sample(?gloss)"/]
v3 --o bind3
bind3 --as--o v5