Talk:Q84098939

From Wikidata
Jump to navigation Jump to search

See also

[edit]

Queries

[edit]

List of items per region

[edit]
# Info by Russian region
SELECT ?item ?itemLabel ?place ?placeLabel ?case ?dead ?recovered
WHERE 
{
  ?item wdt:P361 wd:Q84098939.
  ?item wdt:P276 ?place.
  ?item wdt:P1603 ?case.
  OPTIONAL {?item wdt:P1120 ?dead}
  OPTIONAL {?item wdt:P8010 ?recovered}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Try it!

Map of current cases

[edit]
Карта России с подтверждёнными случаями заражения (>10) по регионам
Map of Russia showing confirmed cases at the region, cities and republics territory level
#defaultView: Map{"hide":["?shape", "?rgb"]}
SELECT ?item ?itemLabel ?state ?stateLabel ?cases ?shape ?rgb ?time WHERE {
  wd:Q84098939 wdt:P527 ?item. 
  ?item wdt:P276 ?state ; p:P1603 ?casestmt. 
  
  ?state wdt:P3896 ?shape.
  ?casestmt ps:P1603 ?cases ; pq:P585 ?time .
  { SELECT (MAX(?cases_)/3 as ?mc) {
      wd:Q84098939 wdt:P527/wdt:P1603 ?cases_
  } }
  FILTER NOT EXISTS { ?item p:P1603/pq:P585 ?time_. FILTER(?time < ?time_) }
  BIND(IF(?cases > (9 * ?mc)/10,"290205", 
       IF(?cases > (4 * ?mc)/5,"66080f",
       IF(?cases > (7 * ?mc)/10,"a60c17", 
       IF(?cases > (3 *?mc)/5,"db0f1e",
       IF(?cases > ?mc/2,"f02937", 
       IF(?cases > (2 * ?mc)/5,"ed4e59",
       IF(?cases > (3 * ?mc)/10,"ed727a", 
       IF(?cases > ?mc/5,"f79ca2",  
       IF(?cases = 0,"ffffff",  
       "f5cbce"))))))))) as ?rgb)
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
  • SPARQL запрос, используется атрибут geoshape для рисования областей России.
  • SPARQL запрос, точки на карте с последним числом заражённых, используется атрибут coord.
  • SPARQL запрос, geoshape, актуальная расцветка.

Lineplots per time

[edit]
# График по всей России
#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". }
}
Try it!
Кривые числа заражений по регионам России
Line graph of cases by regions of Russia
#defaultView:LineChart
#defaultView:ScatterChart
SELECT ?state ?time ?cases ?stateLabel {
#  ?statecases wdt:P276 wd:Q649.  # раскомментируйте и измените, чтобы выбрать конкретный регион
  wd:Q84098939 wdt:P527 ?statecases. # coronavirus in Russia has parts 
  ?statecases wdt:P276 ?state ; 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". }
}
Try it!
Кривые числа выздоровевших по регионам России
Line graph of recoveries by regions of Russia
#defaultView:LineChart
# The number of cases of recoveries in regions of Russia by dates.
SELECT ?state ?dates ?recoveryNum ?locationLabel WHERE { 
  wd:Q84098939 wdt:P527 ?state. 
  ?state wdt:P276 ?location. 
 
  ?state p:P8010 ?recoveries.
  ?recoveries pq:P585 ?dates;
              ps:P8010 ?recoveryNum.
     
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
ORDER BY ?dates
Try it!

Здесь?

[edit]

Можем попробовать сгенерировать все графики прямо на этой странице - см. пример Talk:Q204853/passengers. --Infovarius (talk) 19:55, 9 June 2020 (UTC)[reply]

  • Либо так же как в примере, на подстранице.
    Я немного подзабил на обновления, но скоро всё будет. --Wolverène (talk) 04:24, 10 June 2020 (UTC)[reply]

Deletion request

[edit]

Archived at Wikidata:Requests_for_deletions/Archive/2020/03/12#Q84098939. --- Jura 14:05, 28 March 2020 (UTC)[reply]

New data

[edit]

Due to some technical trouble I'm unable to update the data. For those who are not experiencing the same, pls add the recent data as of April 7th: 7497 cases, 58 deaths & 494 recoveries. Thanks. --Wolverène (talk) 11:38, 7 April 2020 (UTC)[reply]

Done. --Andrew Krizhanovsky (talk) 14:23, 7 April 2020 (UTC)[reply]
Thanks. --Wolverène (talk) 20:14, 7 April 2020 (UTC)[reply]

А что с датами?

[edit]

У меня тут начался ночной кошмар перфекциониста после обновления данных по датам. 2 April -> 3 April -> 4 April -> 4 April (??) -> 5 April, далее 6, 7, 9, 10... два раза 16, потом 18. Я сначала решил что это мои опечатки, но потом я понял что так нужно. А в чём причина? Как в дальнейшем обновлять? --Wolverène (talk) 22:05, 19 April 2020 (UTC)[reply]

@Wolverène: прошу прощения, моя вина. Дело в том, что все даты были неправильные, сдвинутые на 1 день вперёд (они показывали дату публикации информации в прессе, в то время как должна стоять дата самого факта). В отчётах, которые я начал добавлять как источники, явно указано время, на которое верна информация - на него я и исправляю. Точнее, начал исправлять и бросил на пол-пути. Если кто поможет с этими отчётами - буду рад. --Infovarius (talk) 22:48, 21 April 2020 (UTC)[reply]
Там ещё в одном случае имеется несовпадение чисел, с этим не знаю, что делать (оставлять оба значения придётся, видимо). --Infovarius (talk) 22:49, 21 April 2020 (UTC)[reply]
Там где несовпадения, можно оставить только то значение, где источником стоит государственный отчёт, потому что в СМИ цифры плюс-минус те же, но они иногда путаются. Что касается всего остального... ну и ладно, если не получится исправить, то что есть то есть, для дальней перспективы это не большая проблема.
P.S. Всем здоровья. --Wolverène (talk) 09:07, 22 April 2020 (UTC)[reply]

Distribution map of COVID-19 cases

[edit]

Hello Goo3, I respect and even support your position on disputed regions but pls note that your version of the map may provoke the political disputes within a 'regular'/non-political item like this.
AFAIK, officially Ukraine agrees with the Russian stats on COVID-19 cases in two Crimean regions. I'm not sure if Ukraine includes the Crimean cases as a part of the whole number of local cases, but Russia does, and excluding those regions we should also revise the data on total cases/recoveries/deaths for each date. Objectively, we'll just get confused.
I'd like to suggest using two distribution maps at once, with the original map as preferred and with alternative map using the normal rank. If so, I hope you or another enthusiasts will update it on regular basis.
Other interested may join the discussion, maybe in Russian if it is more convenient. --Wolverène (talk) 04:35, 15 May 2020 (UTC)[reply]