query-aa6524d30b6deb1d2c87f7b0ce06741c
How to get Local Name instead of Label on Wikidata Query was teached us Wikidata Query. On basis that I make new Query For retrieve Indian Person Which born after 1921 and whos article present on Hindi Wiki. Here is: AsafHello , I am newbie on Wikidata. Recently I was attend Wikidata Workshop at Chandigarh where
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?itemLabel ?bornLabel
WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P27 wd:Q668.
?item wdt:P569 ?born .
FILTER EXISTS { ?wen schema:about ?item . ?wen schema:inLanguage "hi" }
FILTER (?born >= "1921-01-01T00:00:00Z"^^xsd:dateTime) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "hi". }
}
ORDER BY ASC(?born)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?born")
v3("?item")
v2("?wen")
c4(["hi"]):::literal
c11(["bd:serviceParam"]):::iri
c8(["wd:Q668"]):::iri
c6(["wd:Q5"]):::iri
f0[["?born >= '1921-01-01T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
f1[[" "]]
subgraph f1e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v2("?item"):::projected
e0v1("?wen"):::projected
e0c3(["hi"]):::literal
end
f1--EXISTS--> f1e0
f1 --> v2
f1 --> c2
f1 --> v3
f1 --> c3
f1 --> c4
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c4
v3 --"wdt:P31"--> c6
v3 --"wdt:P27"--> c8
v3 --"wdt:P569"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c4
end