From 107eb9c7a2499838f559f92d6bb2cc03a8344828 Mon Sep 17 00:00:00 2001 From: Dumitru Date: Wed, 4 Oct 2023 13:47:04 +0300 Subject: [PATCH] Update yarrrml2rml_converter.py --- .../mapping_suite_processor/adapters/yarrrml2rml_converter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ted_sws/mapping_suite_processor/adapters/yarrrml2rml_converter.py b/ted_sws/mapping_suite_processor/adapters/yarrrml2rml_converter.py index 5099e1080..c23d1e699 100644 --- a/ted_sws/mapping_suite_processor/adapters/yarrrml2rml_converter.py +++ b/ted_sws/mapping_suite_processor/adapters/yarrrml2rml_converter.py @@ -2,6 +2,8 @@ import pathlib import subprocess +YARRML_PARSER_VERSION = "1.5.4" + class YARRRML2RMLConverterABC(abc.ABC): """ @@ -31,5 +33,5 @@ def convert(self, yarrrml_input_file_path: pathlib.Path, :param rml_output_file_path: :return: """ - bash_script = f"(docker run --rm -i -v {yarrrml_input_file_path.parent}:/data rmlio/yarrrml-parser:latest -i /data/{yarrrml_input_file_path.name}) > {rml_output_file_path}" + bash_script = f"(docker run --rm -i -v {yarrrml_input_file_path.parent}:/data rmlio/yarrrml-parser:{YARRML_PARSER_VERSION} -i /data/{yarrrml_input_file_path.name}) > {rml_output_file_path}" return subprocess.run(bash_script, shell=True, capture_output=True)