query-77fc3ddfb816956056c6303763827cd2
Lineplots per time
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#>
# График по всей России
#defaultView:LineChart
SELECT ?time ?cases ?stateLabel {
VALUES ?region {wd:Q84098939} # можно добавлять для сравнения другие регионы
?region p:P1603 ?casestmt. # location (?state) and number of cases (?casestmt)
?casestmt ps:P1603 ?cases ; pq:P585 ?time.
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;
v3("?cases"):::projected
v2("?casestmt")
v1("?region")
v4("?time"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?region/]
bind0-->v1
bind00(["wd:Q84098939"])
bind00 --> bind0
v1 --"p:P1603"--> v2
v2 --"p:statement/P1603"--> v3
v2 --"p:qualifier/P585"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end