query-24d4a45e5dfd2a1675af37c6eb8f7546
all people with surname 'ରଥ' in Odia wikipedia
SELECT ?item ?itemLabel
WHERE {
?wikilink schema:about ?item . { ?wikilink schema:isPartOf https://or.wikipedia.org/ . }
?item wdt:P31 wd:Q5. # all humans
?item rdfs:label ?itemLabel.
FILTER (lang(?itemLabel) = "or") .
FILTER regex (?itemLabel, "(ରଥ)$").
}
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# all people with surname 'ରଥ' in Odia wikipedia
SELECT ?item ?itemLabel
WHERE {
?wikilink schema:about ?item . { ?wikilink schema:isPartOf <https://or.wikipedia.org/> . }
?item wdt:P31 wd:Q5. # all humans
?item rdfs:label ?itemLabel.
FILTER (lang(?itemLabel) = "or") .
FILTER regex (?itemLabel, "(ରଥ)$").
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?wikilink")
c7(["wd:Q5"]):::iri
c5([https://or.wikipedia.org/]):::iri
f0[["regex(?itemLabel,'(ରଥ)$')"]]
f0 --> v1
f1[["?itemLabel = 'or'"]]
f1 --> v1
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c5
v3 --"wdt:P31"--> c7
v3 --"rdfs:label"--> v1