owlcs/owlapi

can not load an ontology with owl functional syntax

Closed this issue · 6 comments

can not load an ontology with owl functional syntax

Did you try http://visualdataweb.de/validator/?

Thank you for your prompt reply,I just want to know if this project supports OWL functional syntax,my file is too large,It's a local file,about 165MB.When I load with OWL functional syntax, it fails to run.

It definitely does, we are using owl functional syntax everwhere.

You can try to use http://robot.obolibrary.org/ which is a widely used wrapper of the OWLAPI, or otherwise provide a more detailed error report.

No description provided.

Hi, we need a bit more information than this. Which exception do you get?

Functional syntax is supported.

Here are some details from the source code:
snomed
snomed_txt
This is the error details, I used shouldLoadAndSave for the test:
error

The exception you got is raised when attempting to read ontology-2021-08-27_16-25-32.txt from the classpath.

The TestFiles class is a convenience for unit tests. For regular use, it's easier to just call

`manager.loadOntologyFromOntologyDocument(new FileInputStream("path/to/your/file/ontology-2021-08-27_16-25-32.txt"));