diff --git a/src/egon/data/datasets/DSM_cts_ind.py b/src/egon/data/datasets/DSM_cts_ind.py index 52d871766..7b21acbdb 100644 --- a/src/egon/data/datasets/DSM_cts_ind.py +++ b/src/egon/data/datasets/DSM_cts_ind.py @@ -28,7 +28,7 @@ generate_resource_fields_from_db_table, license_odbl, meta_metadata, - oep_metadata_version, + meta_metadata, sources, ) @@ -396,7 +396,7 @@ def add_metadata_individual(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) diff --git a/src/egon/data/datasets/emobility/motorized_individual_travel/db_classes.py b/src/egon/data/datasets/emobility/motorized_individual_travel/db_classes.py index 889f2271c..42396f538 100644 --- a/src/egon/data/datasets/emobility/motorized_individual_travel/db_classes.py +++ b/src/egon/data/datasets/emobility/motorized_individual_travel/db_classes.py @@ -32,7 +32,7 @@ license_ccby, license_odbl, meta_metadata, - oep_metadata_version, + meta_metadata, sources, ) @@ -410,7 +410,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) @@ -532,7 +532,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) @@ -654,7 +654,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) diff --git a/src/egon/data/datasets/emobility/motorized_individual_travel_charging_infrastructure/db_classes.py b/src/egon/data/datasets/emobility/motorized_individual_travel_charging_infrastructure/db_classes.py index 5699627a6..0a4502019 100644 --- a/src/egon/data/datasets/emobility/motorized_individual_travel_charging_infrastructure/db_classes.py +++ b/src/egon/data/datasets/emobility/motorized_individual_travel_charging_infrastructure/db_classes.py @@ -17,7 +17,7 @@ generate_resource_fields_from_db_table, license_odbl, meta_metadata, - oep_metadata_version, + meta_metadata, ) Base = declarative_base() @@ -152,7 +152,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) diff --git a/src/egon/data/datasets/power_plants/mastr_db_classes.py b/src/egon/data/datasets/power_plants/mastr_db_classes.py index 38872b6ed..3d912eed2 100644 --- a/src/egon/data/datasets/power_plants/mastr_db_classes.py +++ b/src/egon/data/datasets/power_plants/mastr_db_classes.py @@ -21,7 +21,7 @@ generate_resource_fields_from_db_table, license_dedl, meta_metadata, - oep_metadata_version, + meta_metadata, sources, ) @@ -437,7 +437,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) diff --git a/src/egon/data/datasets/power_plants/pv_rooftop_buildings.py b/src/egon/data/datasets/power_plants/pv_rooftop_buildings.py index 5843d8007..4fb9f8fbe 100644 --- a/src/egon/data/datasets/power_plants/pv_rooftop_buildings.py +++ b/src/egon/data/datasets/power_plants/pv_rooftop_buildings.py @@ -39,7 +39,7 @@ license_dedl, license_odbl, meta_metadata, - oep_metadata_version, + meta_metadata, sources, ) @@ -2216,7 +2216,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata()["metadataVersion"])() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta))) diff --git a/src/egon/data/datasets/storages/home_batteries.py b/src/egon/data/datasets/storages/home_batteries.py index 087a7f94f..78800946c 100644 --- a/src/egon/data/datasets/storages/home_batteries.py +++ b/src/egon/data/datasets/storages/home_batteries.py @@ -51,7 +51,7 @@ license_dedl, license_odbl, meta_metadata, - oep_metadata_version, + meta_metadata, sources, ) @@ -329,7 +329,7 @@ def add_metadata(): }, } - dialect = get_dialect(oep_metadata_version())() + dialect = get_dialect(meta_metadata())() meta = dialect.compile_and_render(dialect.parse(json.dumps(meta)))