diff --git a/ted_sws/mapping_suite_processor/adapters/yarrrml2rml_converter.py b/ted_sws/mapping_suite_processor/adapters/yarrrml2rml_converter.py index 5099e108..c23d1e69 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)