query-0493b143cfac395da2cfa6ab66029cbf
STR in labelHello, ) (Q507154)Novartis Why this query give no result despite the item exist (
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
WHERE
{
?item wdt:P31/wdt:P279* wd:Q4830453;
rdfs:label ?label.
FILTER(STR(?Label) ='Novartis').
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?Label")
v2("?item"):::projected
v3("?label")
a1((" "))
c7(["bd:serviceParam"]):::iri
c4(["wd:Q4830453"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["str(?Label) = 'Novartis'"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"rdfs:label"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end