query-c4a1b68dd4f58318f5cdfff85af5a8f3
Beispiel Nr.2: Wartungsliste fehlende deutsche Bezeichnungen und Ursprungsland bei Selbstfahrlafetten
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 ?landLabel ?item ?desc_en ?desc_de
WHERE {
?item wdt:P31 wd:Q272574 . # Selbstfahrlaffetten
OPTIONAL { ?item rdfs:label ?desc_en filter (lang(?desc_en) = "en").}
OPTIONAL { ?item rdfs:label ?desc_de filter (lang(?desc_de) = "de").}
OPTIONAL { ?item wdt:P495 ?land }
SERVICE wikibase:label {bd:serviceParam wikibase:language "de" }
}
order by ?landLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?desc_de"):::projected
v3("?desc_en"):::projected
v4("?item"):::projected
v5("?land")
v1("?landLabel"):::projected
c1(["de"]):::literal
c4(["wd:Q272574"]):::iri
c8(["bd:serviceParam"]):::iri
v4 --"wdt:P31"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P495".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c1
end