query-160279b9fa74c5127991695f555a4e0b
Propertiesinstance of (P31)OpenStreetMap relation ID (P402)locator map image (P242)start time (P580)end time (P582)
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?start ?ende ?osm_rel ?karte
WHERE
{
?item wdt:P31 wd:Q11703715 .
?item p:P31 ?statement .
OPTIONAL {?statement pq:P580 ?start.}.
OPTIONAL {?statement pq:P582 ?ende.}.
OPTIONAL {?item wdt:P402 ?osm_rel.}.
OPTIONAL {?item wdt:P242 ?karte.}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ende"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v7("?karte"):::projected
v6("?osm_rel"):::projected
v4("?start"):::projected
v3("?statement")
c11(["de"]):::literal
c2(["wd:Q11703715"]):::iri
c9(["bd:serviceParam"]):::iri
v2 --"p:direct/P31"--> c2
v2 --"p:P31"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P580".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P582".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P402".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P242".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end