query-54268978079651dc11a521724a48bbcb
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 ?human ?label
WHERE
{
?human wdt:P31 wd:Q15632617;
rdfs:label ?label.
FILTER(LANG(?label) = "[AUTO_LANGUAGE]").
FILTER(STRSTARTS(?label, "Hr. ")).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?human"):::projected
v1("?label"):::projected
c4(["wd:Q15632617"]):::iri
f0[["starts-with(?label,'Hr. ')"]]
f0 --> v1
f1[["?label = '#91;AUTO_LANGUAGE#93;'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"rdfs:label"--> v1