owlcs / owlapi

OWL API main repository
822 stars 315 forks source link

can not load an ontology with owl functional syntax #1019

Closed fatong1124 closed 2 years ago

matentzn commented 3 years ago

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

fatong1124 commented 3 years ago

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.

matentzn commented 3 years ago

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.

ignazio1977 commented 3 years ago

No description provided.

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

Functional syntax is supported.

fatong1124 commented 3 years ago

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

ignazio1977 commented 2 years ago

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"));