Closed alkidbaci closed 1 month ago
Looks like you have two owlapi versions in the classpath. The HermiT jar looks like the original HermiT release, which would have included an ancient owlapi version. That's the most likely candidate.
Yes it seems like this is definitely related with the dependencies. I removed HermiT.jar from the classpath list but I'm getting other errors related with missing dependencies. I'm not very familiar with java stuff. Would really appreciate if you have some reference to some python code that uses owlapi via jpype (preferably using the hermit reasoner also) or some other guide to use owlapi from python. If there is no such reference that you are aware of, then please consider this issue closed. Thank you.
I'm not knowledgeable on how jpipe works, but basically you'd need the imports closure for HermiT, i.e., the list of jars that make up hermit, their dependencies and the dependencies of the dependencies.
Hermit and owlapi are maven projects so seeing the full closure is relatively simple in a java context. Less so in python I guess.
I'll see if I can find a list.
https://github.com/owlcs/releases/tree/master/HermiT
The releases project contains single jars for HermiT and OWLAPI. The HermiT jar here is the latest snapshot available, and should contain OWLAPI 5.1.9 and all dependencies needed. See if, by itself, this jar is suffcient for jpipe.
If not, the missing dependencies are likely in
/https://github.com/owlcs/releases/blob/master/owlapi/5/owlapi-dependencypack-5.1.9.jar
which contains the whole of owlapi 5 and its dependencies.
jpipe might have difficulties accessing jars within jars, in which case you can rename the files to zip files (jar files are zip files with an extra folder in there) and open them with any zip utility, to extract all the jars contained within and add them manually to your classpath.
Thank you very much, this was really helpful. I finally made it work.
Hello, I am using Jpype in python to execute some java code via the jpype Java Virtual Machine. I'm trying to use the ManchesterOWLSyntaxClassExpressionParser but I get an error (showed in the end) when parsing the string class expression. I think I'm using compatible versions of packages and cant really think of any another reason for this error. Would appreciate some help.
My code:
Error: