query-2774e164664d1b55eb269241aafeaf3b
Label in another language
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 ?labelFI
WHERE
{
?item wdt:P31 wd:Q3863.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
FILTER (EXISTS {
?item rdfs:label ?labelEN.
FILTER(LANG(?labelEN) = "en")
})
FILTER (NOT EXISTS {
?item rdfs:label ?labelFI.
FILTER(LANG(?labelFI) = "fi")
})
}
LIMIT 2000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?labelEN")
v1("?labelFI"):::projected
c7(["bd:serviceParam"]):::iri
c3(["en"]):::literal
c5(["wd:Q3863"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?labelFI = 'fi'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?labelFI"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?labelFI = 'fi'"]]
f1 --> v1
v2 --"rdfs:label"--> v1
f2[[" "]]
subgraph f2e1["Exists Clause"]
e1f0[["?labelEN = 'en'"]]
e1f0 --> e1v1
e1v2 --"rdfs:label"--> e1v1
e1v2("?item"):::projected
e1v1("?labelEN"):::projected
end
f2--EXISTS--> f2e1
f2 --> v3
f2 --> v2
f2 --> c2
f3[["?labelEN = 'en'"]]
f3 --> v3
v2 --"rdfs:label"--> v3
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c3
end