query-11236c02198c8afed891ae52b3511560
search items by altlabelHi, I try to search item by alternative label and it does not work for some reason. when searching according to labels it does work:
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?s ?sLabel ?sAltLabel WHERE {
?s wdt:P19 wd:Q844930.
?s rdfs:label ?sLabel .
FILTER(?sLabel="Plato"@en).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} limit 100
Query found at
- https://www.wikidata.org/wiki/Wikidata:Project_chat/Archive/2017/07
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2017/07
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?s"):::projected
v1("?sLabel"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c3(["wd:Q844930"]):::iri
f0[["?sLabel = sPlato^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"]]
f0 --> v1
v2 --"wdt:P19"--> c3
v2 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end