query-b705e9df5725e6e6e1feaa4f94b86105
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?city ?label_en ?cityDescription ?label_fr ?label_de ?label_it
WHERE
{
values ?label_en {"Berlin"@en }
?city rdfs:label ?label_en .
optional {?city rdfs:label ?label_fr . filter(lang(?label_fr)="fr") }
optional {?city rdfs:label ?label_de . filter(lang(?label_de)="de") }
optional {?city rdfs:label ?label_it . filter(lang(?label_it)="it") }
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;
v5("?city"):::projected
v2("?label_de"):::projected
v4("?label_en"):::projected
v3("?label_fr"):::projected
v1("?label_it"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?label_en/]
bind0-->v4
bind00([sBerlin^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind00 --> bind0
v5 --"rdfs:label"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end