query-7b84d7c84fa8b9baa05a9035cab6843f
rq turtle/ttl
Get all surnames from Wikidata ?
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 DISTINCT ?item ?itemLabel
WHERE
{
?item wdt:P31 wd:Q101352.
?item rdfs:label ?itemLabel. FILTER( LANG(?itemLabel)="en" )
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
c3(["wd:Q101352"]):::iri
f0[["?itemLabel = 'en'"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"rdfs:label"--> v1