Skip to content

Commit

Permalink
use robot.jar directly
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jun 24, 2024
1 parent bcf1e56 commit 71ff008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions TaskfileCustom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmem_plugin_robotreason/plugin_robotreason.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit 71ff008

Please sign in to comment.