query-ab7f116f4bd195553fcc32164fe2dda1
function returns the language of a monolingual string, and here we only select those labels that are in English. The full query is: LANGThe
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?człowiek ?etykieta
WHERE
{
?człowiek wdt:P31 wd:Q15632617;
rdfs:label ?etykieta.
FILTER(LANG(?etykieta) = "[AUTO_LANGUAGE]").
FILTER(STRSTARTS(?etykieta, "Mr. ")).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?człowiek"):::projected
v1("?etykieta"):::projected
c4(["wd:Q15632617"]):::iri
f0[["starts-with(?etykieta,'Mr. ')"]]
f0 --> v1
f1[["?etykieta = '#91;AUTO_LANGUAGE#93;'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"rdfs:label"--> v1