Open riiswa opened 1 year ago
Thanks for the report. Could you please provide or point to a specific JSON file, so that I can try to reproduce the problem?
I tried with this file: https://github.com/geneontology/obographs/blob/master/examples/basic.json
Ok thanks. I can reproduce the error with that file.
There are two problems here:
The fundamental problem is that the Java implementation of obographs used by ROBOT does not convert obographs JSON to OWL, according to https://github.com/geneontology/obographs/issues/87. I'm not an expert on obographs, so I could be mistaken. That issue links to a Python implementation that might do what you need.
While ROBOT can output obographs JSON, it is expecting to read JSON-LD. The error message is from the Jena library complaining that the obographs JSON input is not valid JSON-LD. The input handling code is here: https://github.com/ontodev/robot/blob/master/robot-core/src/main/java/org/obolibrary/robot/IOHelper.java#L380
I had forgotten this, and the documentation doesn't make this clear. I will add "fix the convert documentation" to my To Do list.
With the latest robot.jar. I got this error when I try to convert a json file to owl (``robot convert -i abox.json -o test.owl -vvv ):
I also tested with .json file that are in the obographs example/.