Skip to content

Commit

Permalink
Update yarrrml2rml_converter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duprijil committed Oct 4, 2023
1 parent 4870847 commit 107eb9c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import pathlib
import subprocess

YARRML_PARSER_VERSION = "1.5.4"


class YARRRML2RMLConverterABC(abc.ABC):
"""
Expand Down Expand Up @@ -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)

0 comments on commit 107eb9c

Please sign in to comment.