query-e52545ad9415a9caec878266f41b0a3d
Pictures of noun lexemes in English (picture dictionary à la Wikidata)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Lexemes in English with picture and description fetched from the concept Q-item
# NB: when 2 or more pictures occur for the same lemma a preferred rank is missing on the Q-item.
# Please fix that if you know how.
# by So9q
#defaultView:ImageGrid
SELECT DISTINCT ?lexemeId ?lemma ?q_concept ?q_conceptDescription ?picture
WHERE {
?lexemeId dct:language wd:Q1860;
wikibase:lemma ?lemma;
ontolex:sense ?sense.
?sense wdt:P5137 ?q_concept.
?q_concept wdt:P18 ?picture.
# if you wish to only browse certain items you can insert a FILTER
# regular expression here, like in the example above.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY lcase(?lemma) # order a-z
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?lemma"):::projected
v2("?lexemeId"):::projected
v5("?picture"):::projected
v4("?q_concept"):::projected
v3("?sense")
c8(["bd:serviceParam"]):::iri
c2(["wd:Q1860"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"dct:language"--> c2
v2 --"wikibase:lemma"--> v1
v2 --"ontolex:sense"--> v3
v3 --"wdt:P5137"--> v4
v4 --"wdt:P18"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end