Skip to content
Snippets Groups Projects
Commit 5e9e3254 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

update data

parent 31f46399
No related branches found
No related tags found
No related merge requests found
...@@ -86,35 +86,25 @@ entity EcdcData { ...@@ -86,35 +86,25 @@ entity EcdcData {
} }
entity ApplicationDateReported { entity ApplicationDateReported {
id: Integer id: Integer
title: String date_reported: String
lektion_nr: Integer year_week: String
folien_nr_in_lektion: Integer datum: Date
folien_nr_in_foliensatz: Integer year: Integer
foliensatz_nr_in_lektion: Integer month: Integer
{classifier} get_folien_for_foliensatz(lektion: FolienSatz) day_of_month: Integer
{classifier} getFolienKey(lektion_nr: Integer, folien_nr_in_lektion: Integer) day_of_week: Integer
{classifier} remove_all() week_of_year: Integer
{classifier} get_all_as_page(page: Integer) get_name_for_weekday()
{classifier} get_all() {classifier} get_names_for_weekday()
{classifier} get_all_as_dict() {classifier} get_datum_parts(my_date_rep: String)
{classifier} get_by_id(other_id: Integer) {classifier} get_datum(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} find_by_id(other_id: Integer) {classifier} get_datum_as_str(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} get_folien_for_lektion(lektion: Lektion) {classifier} my_year_week(my_iso_year: Integer, week_number: Integer)
{classifier} create_new_object_factory(my_date_rep: String)
} }
entity ApplicationRegion { entity ApplicationRegion {
id: Integer id: Integer
dateiname: String continent: String
parent_dir: String
title: String
abbildung_nr_in_lektion: Integer
abbildung_nr_in_foliensatz: Integer
folien_nr_in_lektion: Integer
folien_nr_in_foliensatz: Integer
folien_satz_nr: Integer
lektion_nr: Integer
bildnachweis: Integer
get_absolute_path()
get_relative_path()
{classifier} remove_all() {classifier} remove_all()
{classifier} get_all_as_page(page: Integer) {classifier} get_all_as_page(page: Integer)
{classifier} get_all() {classifier} get_all()
......
...@@ -72,24 +72,6 @@ entity OwidImport { ...@@ -72,24 +72,6 @@ entity OwidImport {
{classifier} get_continents(page: Integer) {classifier} get_continents(page: Integer)
{classifier} get_all_continents() {classifier} get_all_continents()
} }
entity ApplicationDateReported {
id: Integer
date_reported: String
year_week: String
datum: Date
year: Integer
month: Integer
day_of_month: Integer
day_of_week: Integer
week_of_year: Integer
get_name_for_weekday()
{classifier} get_names_for_weekday()
{classifier} get_datum_parts(my_date_rep: String)
{classifier} get_datum(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} get_datum_as_str(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} my_year_week(my_iso_year: Integer, week_number: Integer)
{classifier} create_new_object_factory(my_date_rep: String)
}
entity OwidDateReported { entity OwidDateReported {
id: Integer id: Integer
date_reported: String date_reported: String
...@@ -193,10 +175,6 @@ entity OwidData { ...@@ -193,10 +175,6 @@ entity OwidData {
{classifier} get_by_id(other_id: Integer) {classifier} get_by_id(other_id: Integer)
{classifier} find_by_id(other_id: Integer) {classifier} find_by_id(other_id: Integer)
} }
ApplicationDateReported <|-- OwidDateReported
OwidCountry "1" *--> "*" OwidContinent: continent
OwidData "1" *--> "*" OwidCountry: country
OwidData "1" *--> "*" OwidDateReported: date_reported
class OwidServiceImport { class OwidServiceImport {
import_file() import_file()
} }
...@@ -227,6 +205,34 @@ class OwidService { ...@@ -227,6 +205,34 @@ class OwidService {
update_fact_table_initial_only() update_fact_table_initial_only()
update_fact_table_incremental_only() update_fact_table_incremental_only()
} }
entity ApplicationDateReported {
id: Integer
date_reported: String
year_week: String
datum: Date
year: Integer
month: Integer
day_of_month: Integer
day_of_week: Integer
week_of_year: Integer
get_name_for_weekday()
{classifier} get_names_for_weekday()
{classifier} get_datum_parts(my_date_rep: String)
{classifier} get_datum(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} get_datum_as_str(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} my_year_week(my_iso_year: Integer, week_number: Integer)
{classifier} create_new_object_factory(my_date_rep: String)
}
entity ApplicationRegion {
id: Integer
continent: String
{classifier} remove_all()
{classifier} get_all_as_page(page: Integer)
{classifier} get_all()
{classifier} get_all_as_dict()
{classifier} get_by_id(other_id: Integer)
{classifier} find_by_id(other_id: Integer)
}
class ApplicationServiceDownload { class ApplicationServiceDownload {
-log_error() -log_error()
-log_success() -log_success()
...@@ -255,18 +261,6 @@ class ApplicationServiceConfig { ...@@ -255,18 +261,6 @@ class ApplicationServiceConfig {
create_config_for_rki_bundeslaender() create_config_for_rki_bundeslaender()
create_config_for_rki_landkreise() create_config_for_rki_landkreise()
} }
ApplicationServiceConfig : SQLAlchemy database
ApplicationServiceDownload : ApplicationServiceConfig cfg
ApplicationServiceDownload : SQLAlchemy database
OwidServiceUpdate : ApplicationServiceConfig cfg
OwidServiceUpdate : SQLAlchemy database
OwidServiceImport : ApplicationServiceConfig cfg
OwidServiceImport : SQLAlchemy database
OwidService : ApplicationServiceConfig cfg
OwidService : SQLAlchemy database
OwidService : OwidServiceUpdate service_update
OwidService : OwidServiceImport service_import
OwidService : ApplicationServiceDownload service_download
class owid_views_frontend { class owid_views_frontend {
url_owid_info() url_owid_info()
url_owid_tasks() url_owid_tasks()
...@@ -297,7 +291,23 @@ class owid_celery_tasks { ...@@ -297,7 +291,23 @@ class owid_celery_tasks {
task_owid_update_star_schema_incremental() task_owid_update_star_schema_incremental()
task_owid_update_star_schema_initial() task_owid_update_star_schema_initial()
} }
owid_views_frontend : OwidService owid_service OwidServiceImport : SQLAlchemy database
owid_views_tasks : OwidService owid_service OwidServiceUpdate : SQLAlchemy database
owid_celery_tasks : OwidService owid_service OwidService : SQLAlchemy database
ApplicationServiceDownload : SQLAlchemy database
ApplicationDateReported <|-- WhoDateReported
ApplicationRegion <|-- OwidContinent
OwidCountry "1" *--> "*" OwidContinent : region
OwidData "1" *--> "*" OwidCountry : country
OwidData "1" *--> "*" WhoDateReported : date_reported
OwidService "*" *--> "1" ApplicationServiceConfig : cfg
OwidServiceImport "*" --> "1" ApplicationServiceConfig : cfg
OwidServiceUpdate "*" --> "1" ApplicationServiceConfig : cfg
ApplicationServiceDownload "*" --> "1" ApplicationServiceConfig : cfg
OwidService "1" *--> "1" OwidServiceImport : owid_service_import
OwidService "1" *--> "1" OwidServiceUpdate : owid_service_update
OwidService "1" *--> "1" ApplicationServiceDownload : service_download
owid_views_frontend "1" --> "1" OwidService : owid_service
owid_views_for_tasks "1" --> "1" OwidService : owid_service
owid_celery_tasks "1" --> "1" OwidService : owid_service
@enduml @enduml
docs/uml_blueprints/rki_vaccination/rki_vaccination_domain_model.png

208 KiB | W: | H:

docs/uml_blueprints/rki_vaccination/rki_vaccination_domain_model.png

243 KiB | W: | H:

docs/uml_blueprints/rki_vaccination/rki_vaccination_domain_model.png
docs/uml_blueprints/rki_vaccination/rki_vaccination_domain_model.png
docs/uml_blueprints/rki_vaccination/rki_vaccination_domain_model.png
docs/uml_blueprints/rki_vaccination/rki_vaccination_domain_model.png
  • 2-up
  • Swipe
  • Onion skin
@startuml @startuml
entity ApplicationDateReported { entity RkiVaccinationDateReported {
id: Integer id: Integer
date_reported: String date_reported: String
year_week: String year_week: String
...@@ -17,12 +17,28 @@ entity ApplicationDateReported { ...@@ -17,12 +17,28 @@ entity ApplicationDateReported {
{classifier} my_year_week(my_iso_year: Integer, week_number: Integer) {classifier} my_year_week(my_iso_year: Integer, week_number: Integer)
{classifier} create_new_object_factory(my_date_rep: String) {classifier} create_new_object_factory(my_date_rep: String)
} }
entity Course { entity RkiVaccinationData {
id: Integer id: Integer
dateiname: String dosen_kumulativ: Integer
parent_dir: String dosen_differenz_zum_vortag: Integer
title: String dosen_biontech_kumulativ: Integer
path_relative: String dosen_moderna_kumulativ: Integer
personen_erst_kumulativ: Integer
personen_voll_kumulativ: Integer
impf_quote_erst: Float
impf_quote_voll: Float
indikation_alter_dosen: Integer
indikation_beruf_dosen: Integer
indikation_medizinisch_dosen: Integer
indikation_pflegeheim_dosen: Integer
indikation_alter_erst: Integer
indikation_beruf_erst: Integer
indikation_medizinisch_erst: Integer
indikation_pflegeheim_erst: Integer
indikation_alter_voll: Integer
indikation_beruf_voll: Integer
indikation_medizinisch_voll: Integer
indikation_pflegeheim_voll: Integer
get_absolute_path() get_absolute_path()
get_relative_path() get_relative_path()
{classifier} remove_all() {classifier} remove_all()
...@@ -33,136 +49,155 @@ entity Course { ...@@ -33,136 +49,155 @@ entity Course {
{classifier} find_by_id(other_id: Integer) {classifier} find_by_id(other_id: Integer)
{classifier} get_kurse_all() {classifier} get_kurse_all()
} }
entity Workflow { entity RkiVaccinationImport {
id: Integer datum: String
dateiname: String dosen_kumulativ: Integer
parent_dir: String dosen_differenz_zum_vortag: Integer
get_absolute_path() dosen_biontech_kumulativ: Integer
get_relative_path() dosen_moderna_kumulativ: Integer
personen_erst_kumulativ: Integer
personen_voll_kumulativ: Integer
impf_quote_erst: Float
impf_quote_voll: Float
indikation_alter_dosen: Integer
indikation_beruf_dosen: Integer
indikation_medizinisch_dosen: Integer
indikation_pflegeheim_dosen: Integer
indikation_alter_erst: Integer
indikation_beruf_erst: Integer
indikation_medizinisch_erst: Integer
indikation_pflegeheim_erst: Integer
indikation_alter_voll: Integer
indikation_beruf_voll: Integer
indikation_medizinisch_voll: Integer
indikation_pflegeheim_voll: Integer
{classifier} remove_all() {classifier} remove_all()
{classifier} get_all_as_page(page: Integer) {classifier} get_all_as_page(page: Integer)
{classifier} get_all() {classifier} get_all()
{classifier} get_all_as_dict()
{classifier} get_by_id(other_id: Integer) {classifier} get_by_id(other_id: Integer)
{classifier} find_by_id(other_id: Integer) {classifier} find_by_id(other_id: Integer)
{classifier} get_workflow_for_id(workflow_id: Integer) {classifier} find_by_datum(other_datum: String)
{classifier} get_date_rep()
{classifier} get_date_reported_as_array()
{classifier} get_daterep_missing_in_vaccination_data()
} }
entity Lektion { entity ApplicationDateReported {
id: Integer id: Integer
dateiname: String date_reported: String
parent_dir: String year_week: String
title: String datum: Date
lektion_nr: Integer year: Integer
verified: Boolean month: Integer
get_absolute_path() day_of_month: Integer
get_relative_path() day_of_week: Integer
{classifier} remove_all() week_of_year: Integer
{classifier} get_all_as_page(page: Integer) get_name_for_weekday()
{classifier} get_all() {classifier} get_names_for_weekday()
{classifier} get_all_as_dict() {classifier} get_datum_parts(my_date_rep: String)
{classifier} get_by_id(other_id: Integer) {classifier} get_datum(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} find_by_id(other_id: Integer) {classifier} get_datum_as_str(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} get_lektionen_for_workflow(workflow: Workflow) {classifier} my_year_week(my_iso_year: Integer, week_number: Integer)
{classifier} get_lektion_for_id(lektion_id: Integer) {classifier} create_new_object_factory(my_date_rep: String)
{classifier} get_folien_for_lektion_id(lektion_id: Integer)
{classifier} get_all_verified()
} }
entity FolienSatz { class ApplicationServiceDownload {
id: Integer -log_error()
dateiname: String -log_success()
parent_dir: String -prepare_download()
title: String -download_with_wget()
lektion_nr: Integer -download_with_subprocess_and_os_native_wget()
foliensatz_nr_in_lektion: Integer download_file()
get_absolute_path()
get_relative_path()
{classifier} get_foliensaetze_for_lektion(lektion: Lektion)
{classifier} remove_all()
{classifier} get_all_as_page(page: Integer)
{classifier} get_all()
{classifier} get_all_as_dict()
{classifier} get_by_id(other_id: Integer)
{classifier} find_by_id(other_id: Integer)
} }
entity Folie { class ApplicationServiceConfig {
id: Integer limit_nr: Integer
title: String data_path: String
lektion_nr: Integer slug: String
folien_nr_in_lektion: Integer category: String
folien_nr_in_foliensatz: Integer sub_category: String
foliensatz_nr_in_lektion: Integer tablename: String
{classifier} get_folien_for_foliensatz(lektion: FolienSatz) cvsfile_name: String
{classifier} getFolienKey(lektion_nr: Integer, folien_nr_in_lektion: Integer) url_src: String
{classifier} remove_all() cvsfile_path: String
{classifier} get_all_as_page(page: Integer) msg_job: String
{classifier} get_all() msg_ok: String
{classifier} get_all_as_dict() msg_error: String
{classifier} get_by_id(other_id: Integer) create_config_for_who()
{classifier} find_by_id(other_id: Integer) create_config_for_rki_vaccination()
{classifier} get_folien_for_lektion(lektion: Lektion) create_config_for_owid()
create_config_for_ecdc()
create_config_for_rki_bundeslaender()
create_config_for_rki_landkreise()
} }
entity Abbildung { class RkiVaccinationService {
id: Integer pretask_database_drop_create()
dateiname: String task_database_drop_create()
parent_dir: String run_download_only()
title: String run_import_only()
abbildung_nr_in_lektion: Integer run_update_dimension_tables_only()
abbildung_nr_in_foliensatz: Integer run_update_fact_table_incremental_only()
folien_nr_in_lektion: Integer run_update_fact_table_initial_only()
folien_nr_in_foliensatz: Integer run_update_star_schema_incremental()
folien_satz_nr: Integer run_update_star_schema_initial()
lektion_nr: Integer download_all_files()
bildnachweis: Integer task_import_all_files()
get_absolute_path() update_dimension_tables_only()
get_relative_path() update_fact_table_initial_only()
{classifier} remove_all() update_fact_table_incremental_only()
{classifier} get_all_as_page(page: Integer) }
{classifier} get_all() class RkiVaccinationServiceImport {
{classifier} get_all_as_dict() import_file()
{classifier} get_by_id(other_id: Integer) }
{classifier} find_by_id(other_id: Integer) class RkiVaccinationServiceUpdate {
-update_date_reported()
-update_region()
-update_country()
-update_data_incremental()
-update_data_initial()
-update_dimension_tables()
update_dimension_tables_only()
update_fact_table_incremental_only()
update_fact_table_initial_only()
update_star_schema_incremental()
update_star_schema_initial()
}
class rki_vaccination_views_frontend {
url_vaccination_info()
url_vaccination_tasks()
url_vaccination_imported()
url_vaccination_data()
} }
Course "1" *--> "*" Workflow: workflows class rki_vaccination_views_for_tasks {
Workflow "*" --> "1" Course: course task_who_download_only()
Workflow "1" *--> "*" Lektion: lektionen task_who_import_only()
Lektion "*" --> "1" Workflow: course_workflow task_who_update_dimension_tables_only()
Lektion "1" o--> "*" Abbildung: abbildungen task_who_update_fact_table_initial_only()
Abbildung "*" --> "1" Lektion: lektion task_who_update_fact_table_incremental_only()
Lektion "1" *--> "*" FolienSatz: foliensaetze task_who_update_star_schema_initial()
FolienSatz "*" --> "1" Lektion: lektion task_who_update_star_schema_incremental()
FolienSatz "1" *--> "*" Folie: folien
FolienSatz "1" *--> "*" Abbildung: abbildungen
Folie "*" --> "1" FolienSatz: foliensatz
Folie "1" o--> "*" Abbildung: abbildungen
Abbildung "*" --> "1" Folie: folie
Abbildung "*" --> "1" FolienSatz: foliensatz
class ArtefactContentService {
rename_src_files()
prepare_data_update()
run_data_update()
run_db_dump()
run_db_reimport()
parse_file_name(datei: String)
create_or_fetch_folie(file_name_dict, lektion: Lektion)
get_abbbildung_for_id(abbbildung_id: Integer)
} }
ArtefactContentService : SQLAlchemy database class rki_vaccination_celery_tasks {
ArtefactContentService : String[] courses url_vaccination_task_download_only()
ArtefactContentService : String[] workflows url_vaccination_task_import_only()
ArtefactContentService : String[] lektionen url_vaccination_task_update_dimensiontables_only()
ArtefactContentService : String[] course_names url_vaccination_task_update_facttable_incremental_only()
class artefact_content_views { url_vaccination_task_update_facttable_initial_only()
url_root() url_vaccination_task_update_starschema_initial()
url_home() url_vaccination_task_update_starschema_incremental()
url_update_data()
url_rename()
url_kurse_all()
url_kurse_workflow_lektionen(workflow_id: Integer)
url_kurse_workflow_lektion_folien(lektion_id: Integer)
url_abbbildung_id(abbildung_id: Integer)
url_db_dump()
url_db_reimport()
task_data_update()
task_rename_src_files()
} }
RkiVaccinationServiceImport : SQLAlchemy database
RkiVaccinationServiceUpdate : SQLAlchemy database
RkiVaccinationService : SQLAlchemy database
ApplicationServiceDownload : SQLAlchemy database
ApplicationDateReported <|-- RkiVaccinationDateReported
RkiVaccinationData "1" *--> "*" RkiVaccinationDateReported : date_reported
RkiVaccinationService "*" *--> "1" ApplicationServiceConfig : cfg
RkiVaccinationServiceImport "*" --> "1" ApplicationServiceConfig : cfg
RkiVaccinationServiceUpdate "*" --> "1" ApplicationServiceConfig : cfg
ApplicationServiceDownload "*" --> "1" ApplicationServiceConfig : cfg
RkiVaccinationService "1" *--> "1" RkiVaccinationServiceImport : rki_vaccination_service_import
RkiVaccinationService "1" *--> "1" RkiVaccinationServiceUpdate : rki_vaccination_service_update
RkiVaccinationService "1" *--> "1" ApplicationServiceDownload : service_download
rki_vaccination_views_frontend "1" --> "1" RkiVaccinationService : rki_vaccination_service
rki_vaccination_views_for_tasks "1" --> "1" RkiVaccinationService : rki_vaccination_service
rki_vaccination_celery_tasks "1" --> "1" RkiVaccinationService : rki_vaccination_service
@enduml @enduml
docs/uml_blueprints/who/who_domain_model.png

166 KiB | W: | H:

docs/uml_blueprints/who/who_domain_model.png

275 KiB | W: | H:

docs/uml_blueprints/who/who_domain_model.png
docs/uml_blueprints/who/who_domain_model.png
docs/uml_blueprints/who/who_domain_model.png
docs/uml_blueprints/who/who_domain_model.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -125,20 +125,27 @@ class WhoServiceUpdate { ...@@ -125,20 +125,27 @@ class WhoServiceUpdate {
update_star_schema_incremental() update_star_schema_incremental()
update_star_schema_initial() update_star_schema_initial()
} }
entity ApplicationDateReported {
id: Integer
date_reported: String
year_week: String
datum: Date
year: Integer
month: Integer
day_of_month: Integer
day_of_week: Integer
week_of_year: Integer
get_name_for_weekday()
{classifier} get_names_for_weekday()
{classifier} get_datum_parts(my_date_rep: String)
{classifier} get_datum(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} get_datum_as_str(my_year: Integer, my_month: Integer, my_day: Integer)
{classifier} my_year_week(my_iso_year: Integer, week_number: Integer)
{classifier} create_new_object_factory(my_date_rep: String)
}
entity ApplicationRegion { entity ApplicationRegion {
id: Integer id: Integer
dateiname: String continent: String
parent_dir: String
title: String
abbildung_nr_in_lektion: Integer
abbildung_nr_in_foliensatz: Integer
folien_nr_in_lektion: Integer
folien_nr_in_foliensatz: Integer
folien_satz_nr: Integer
lektion_nr: Integer
bildnachweis: Integer
get_absolute_path()
get_relative_path()
{classifier} remove_all() {classifier} remove_all()
{classifier} get_all_as_page(page: Integer) {classifier} get_all_as_page(page: Integer)
{classifier} get_all() {classifier} get_all()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment