Skip to content

Commit 89cec36

Browse files
author
Kolea Plesco
committed
UC1-Updates
1 parent 9ebcf87 commit 89cec36

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from ted_sws.data_manager.adapters.mapping_suite_repository import TRANSFORM_PACKAGE_NAME
22
from ted_sws.mapping_suite_processor.services.conceptual_mapping_reader import CONCEPTUAL_MAPPINGS_FILE_NAME
33

4-
CONCEPTUAL_MAPPINGS_FILE = '{mappings_path}/{mapping_suite_id}/' + TRANSFORM_PACKAGE_NAME + '/' \
4+
CONCEPTUAL_MAPPINGS_FILE_TEMPLATE = '{mappings_path}/{mapping_suite_id}/' + TRANSFORM_PACKAGE_NAME + '/' \
55
+ CONCEPTUAL_MAPPINGS_FILE_NAME

ted_sws/mapping_suite_processor/entrypoints/cli/cmd_metadata_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ted_sws.core.adapters.cmd_runner import CmdRunner as BaseCmdRunner, DEFAULT_MAPPINGS_PATH
99
from ted_sws.data_manager.adapters.mapping_suite_repository import METADATA_FILE_NAME
1010
from ted_sws.event_manager.adapters.logger import LOG_INFO_TEXT
11-
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE
11+
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE_TEMPLATE
1212
from ted_sws.mapping_suite_processor.services.conceptual_mapping_generate_metadata import \
1313
mapping_suite_processor_generate_metadata as generate_metadata
1414

@@ -64,7 +64,7 @@ def run(mapping_suite_id=None, opt_conceptual_mappings_file=None, opt_output_met
6464
if opt_conceptual_mappings_file:
6565
conceptual_mappings_file = opt_conceptual_mappings_file
6666
else:
67-
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE.format(
67+
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE_TEMPLATE.format(
6868
mappings_path=opt_mappings_folder,
6969
mapping_suite_id=mapping_suite_id
7070
)

ted_sws/mapping_suite_processor/entrypoints/cli/cmd_resources_injector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ted_sws.core.adapters.cmd_runner import CmdRunner as BaseCmdRunner, DEFAULT_MAPPINGS_PATH
77
from ted_sws.data_manager.adapters.mapping_suite_repository import TRANSFORM_PACKAGE_NAME, RESOURCES_PACKAGE_NAME
8-
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE
8+
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE_TEMPLATE
99
from ted_sws.mapping_suite_processor.services.conceptual_mapping_files_injection import \
1010
mapping_suite_processor_inject_resources as inject_resources
1111
from ted_sws.mapping_suite_processor.services.conceptual_mapping_processor import MAPPING_FILES_RESOURCES_FOLDER
@@ -74,7 +74,7 @@ def run(mapping_suite_id=None,
7474
if opt_conceptual_mappings_file:
7575
conceptual_mappings_file = opt_conceptual_mappings_file
7676
else:
77-
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE.format(
77+
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE_TEMPLATE.format(
7878
mappings_path=opt_mappings_folder,
7979
mapping_suite_id=mapping_suite_id
8080
)

ted_sws/mapping_suite_processor/entrypoints/cli/cmd_rml_modules_injector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ted_sws.core.adapters.cmd_runner import CmdRunner as BaseCmdRunner, DEFAULT_MAPPINGS_PATH
77
from ted_sws.data_manager.adapters.mapping_suite_repository import TRANSFORM_PACKAGE_NAME, MAPPINGS_PACKAGE_NAME
8-
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE
8+
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE_TEMPLATE
99
from ted_sws.mapping_suite_processor.services.conceptual_mapping_files_injection import \
1010
mapping_suite_processor_inject_rml_modules as inject_rml_modules
1111

@@ -81,7 +81,7 @@ def run(mapping_suite_id=None,
8181
if opt_conceptual_mappings_file:
8282
conceptual_mappings_file = opt_conceptual_mappings_file
8383
else:
84-
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE.format(
84+
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE_TEMPLATE.format(
8585
mappings_path=opt_mappings_folder,
8686
mapping_suite_id=mapping_suite_id
8787
)

ted_sws/mapping_suite_processor/entrypoints/cli/cmd_sparql_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ted_sws.core.adapters.cmd_runner import CmdRunner as BaseCmdRunner, DEFAULT_MAPPINGS_PATH
99
from ted_sws.data_manager.adapters.mapping_suite_repository import VALIDATE_PACKAGE_NAME, SPARQL_PACKAGE_NAME
1010
from ted_sws.event_manager.adapters.logger import LOG_INFO_TEXT
11-
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE
11+
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE_TEMPLATE
1212
from ted_sws.mapping_suite_processor.services.conceptual_mapping_generate_sparql_queries import \
1313
mapping_suite_processor_generate_sparql_queries as generate_sparql_queries, DEFAULT_RQ_NAME
1414

@@ -66,7 +66,7 @@ def run(mapping_suite_id=None, opt_conceptual_mappings_file=None, opt_output_spa
6666
if opt_conceptual_mappings_file:
6767
conceptual_mappings_file = opt_conceptual_mappings_file
6868
else:
69-
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE.format(
69+
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE_TEMPLATE.format(
7070
mappings_path=opt_mappings_folder,
7171
mapping_suite_id=mapping_suite_id
7272
)

ted_sws/notice_validator/entrypoints/cli/cmd_xpath_coverage_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from ted_sws.core.model.notice import Notice
1414
from ted_sws.data_manager.adapters.mapping_suite_repository import MappingSuiteRepositoryInFileSystem
1515
from ted_sws.event_manager.adapters.logger import LOG_INFO_TEXT
16-
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE
16+
from ted_sws.mapping_suite_processor.entrypoints.cli import CONCEPTUAL_MAPPINGS_FILE_TEMPLATE
1717
from ted_sws.notice_validator.adapters.xpath_coverage_runner import CoverageRunner
1818
from ted_sws.notice_validator.services.xpath_coverage_runner import coverage_notice_xpath_report, \
1919
xpath_coverage_html_report, xpath_coverage_json_report
@@ -106,7 +106,7 @@ def run(mapping_suite_id=None, opt_conceptual_mappings_file=None, opt_mappings_f
106106
if opt_conceptual_mappings_file:
107107
conceptual_mappings_file = opt_conceptual_mappings_file
108108
else:
109-
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE.format(
109+
conceptual_mappings_file = CONCEPTUAL_MAPPINGS_FILE_TEMPLATE.format(
110110
mappings_path=opt_mappings_folder,
111111
mapping_suite_id=mapping_suite_id
112112
)

0 commit comments

Comments
 (0)