query-3db0ca5fd24e9f7fc28586ccf917b831
Einwohnerzahl von Dresden
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#---------------------------------------------------------------------------------------
# Einwohnerzahl von Dresden
#---------------------------------------------------------------------------------------
# Einwohnerzahl von Dresden
#defaultView:AreaChart;table;
SELECT ?date (SAMPLE(?population) AS ?pop)
WHERE
{
BIND(wd:Q1731 AS ?item) . # Dresden
?item p:P1082 ?populationStatement . # Statement für Eigenschaft Einwohnerzahl (p:P...)
?populationStatement ps:P1082 ?population . # Property Statement Value
?populationStatement pq:P585 ?date . # property qualifier
FILTER (YEAR(?date) >= 1850) # Begin Zeitachse
FILTER (YEAR(?date) <= 2100) # Ende Zeitachse
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
group by ?date # Gruppieren, weil 1945 drei Werte drin stehen
#order by (?date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v2("?item")
v5("?pop")
v4("?population"):::projected
v3("?populationStatement")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?date) <= '2100^^xsd:integer'"]]
f0 --> v1
f1[["year-from-dateTime(?date) >= '1850^^xsd:integer'"]]
f1 --> v1
bind2[/"'wd:Q1731'"/]
bind2 --as--o v2
v2 --"p:P1082"--> v3
v3 --"p:statement/P1082"--> v4
v3 --"p:qualifier/P585"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind4[/"sample(?population)"/]
v4 --o bind4
bind4 --as--o v5