query-955ce985cdacad6858472e156daca0fa
Images of sense of attested lexemes
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
#defaultView:ImageGrid
PREFIX target: <http://www.wikidata.org/entity/Q126810823>
SELECT
DISTINCT
?lexeme ?lexemeLabel
?image
WHERE {
?lexeme wdt:P5323 target: ;
wikibase:lemma ?lexemeLabel ;
ontolex:sense ?sense .
OPTIONAL { ?sense wdt:P18 ?image1 . }
OPTIONAL { ?sense wdt:P5137 / wdt:P18 ?image2 . }
BIND(COALESCE(?image1, ?image2) AS ?image)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?image"):::projected
v4("?image1")
v5("?image2")
v1("?lexeme"):::projected
v2("?lexemeLabel"):::projected
v3("?sense")
a1((" "))
c2([http://www.wikidata.org/entity/Q126810823]):::iri
v1 --"wdt:P5323"--> c2
v1 --"wikibase:lemma"--> v2
v1 --"ontolex:sense"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P5137".-> a1
a1 --"wdt:P18"--> v5
end
bind0[/"?image1?image2"/]
v4 --o bind0
v5 --o bind0
bind0 --as--o v6