diff --git a/TaskfileCustom.yaml b/TaskfileCustom.yaml index 1707d55..dd3bf72 100644 --- a/TaskfileCustom.yaml +++ b/TaskfileCustom.yaml @@ -11,8 +11,6 @@ tasks: cmds: - mkdir -p {{.ROBOT_DIR}} - curl -L -C - -o {{.ROBOT_DIR}}/robot.jar https://github.com/ontodev/robot/releases/download/v1.9.6/robot.jar - - curl -L -C - -o {{.ROBOT_DIR}}/robot https://raw.githubusercontent.com/ontodev/robot/2345420d04ab29b1d7087f22e3a666295ece6002/bin/robot - - chmod +x {{.ROBOT_DIR}}/robot clean_robot: desc: Removes ROBOT_DIR diff --git a/cmem_plugin_robotreason/plugin_robotreason.py b/cmem_plugin_robotreason/plugin_robotreason.py index 1404e92..a34d463 100644 --- a/cmem_plugin_robotreason/plugin_robotreason.py +++ b/cmem_plugin_robotreason/plugin_robotreason.py @@ -29,7 +29,7 @@ from . import __path__ -ROBOT = Path(__path__[0]) / "bin" / "robot" +ROBOT = Path(__path__[0]) / "bin" / "robot.jar" def convert_iri_to_filename(value: str) -> str: @@ -323,7 +323,7 @@ def reason(self, graphs: dict) -> None: inputs = f'--input "{self.temp}/{graphs[self.data_graph_iri]}"' utctime = str(datetime.fromtimestamp(int(time()), tz=UTC))[:-6].replace(" ", "T") + "Z" cmd = ( - f"{ROBOT} merge {inputs} --collapse-import-closure false " + f"java -jar {ROBOT} merge {inputs} --collapse-import-closure false " f"reason --reasoner {self.reasoner} " f'--axiom-generators "{self.set_axioms()}" ' f"--include-indirect true "