bashmacosterminalenvironment-variablesd2rq

MacOS -bash:Command not found


when I try to use the command d2r-server.bat kg_demo_movie_mapping.ttl in the terminal, the command not found.

enter image description here And I tried to modify the .bash_profile as follow :

enter image description here

it's still not working.

Is there anyway to fix this?

The picture of bat file, and the terminal :

enter image description here enter image description here


Solution

  • Batch files are for Windows use. In a bash shell you'll need a bash script. Bash scripts can be identified by a shebang line at the top of the script, e.g.:

    #!/bin/bash
    

    In the specific case of the d2rq package there are scripts included. Look through the files in your downloaded package and you'll find the bash scripts share the same basename without the .bat extension of the windows batch files.