query-de132eba110a21d2a77fc1e55c04a2c3
Finding alternative Label for missing Label in TaI need to find Missing Label but available in another item, we can use English as base language but need to find the label in Tamil. for example I get the results with empty labels in Tamil. but I can get திண்டிவனம் (Q2465629) = Tindivanam. I expect output as Q16556631, Tindivanam, திண்டிவனம்.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?desc WHERE {
# BIND (wd:Q668 as ?country)
# BIND (wd:Q16556631 as ?Tindivanam)
BIND (wd:Q3429959 as ?loksabha)
{
?item wdt:P31 ?loksabha
} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
OPTIONAL {
?item rdfs:label ?desc filter (lang(?desc) = "ta").
}
filter (!(Bound(?desc))) .
}
limit 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?desc"):::projected
v3("?item"):::projected
v2("?loksabha")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
f0[["not bound(?desc)"]]
f0 --> v1
bind1[/"'wd:Q3429959'"/]
bind1 --as--o v2
v3 --"wdt:P31"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end