query-0b80f7d32602412b75788e928cf0e207
Temples in Ernakulam without English Labels SELECT ?item ?itemLabel ?qid WHERE { ?item wdt:P31 wd:Q842402. ?item wdt:P131 wd:Q1356097. OPTIONAL { ?item rdfs:label ?label . FILTER(LANG(?label) = 'en') . } FILTER(!BOUND($label)) . BIND (strafter(str(?item), str(wd:)) AS ?qid) SERVICE wikibase:label { bd:serviceParam wikibase:language 'ml' } }
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#>
# Temples in Ernakulam without English Labels
SELECT ?item ?itemLabel ?qid WHERE
{
?item wdt:P31 wd:Q842402.
?item wdt:P131 wd:Q1356097.
OPTIONAL {
?item rdfs:label ?label .
FILTER(LANG(?label) = 'en') .
}
FILTER(!BOUND($label)) .
BIND (strafter(str(?item), str(wd:)) AS ?qid)
SERVICE wikibase:label { bd:serviceParam wikibase:language 'ml' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?label")
v3("?qid"):::projected
c5(["wd:Q1356097"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q842402"]):::iri
c10(["ml"]):::literal
f0[["not bound(?label)"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P131"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end
bind1[/"substring-after(str(?item),str('wd:'))"/]
v2 --o bind1
bind1 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end