owlcs / owlapi

OWL API main repository
821 stars 315 forks source link

OWL API used as part of a Java module #1053

Open BeniBianchi opened 2 years ago

BeniBianchi commented 2 years ago

Hi, I want to use OWL API in a java module. Because OWL API does not provide any module descriptors, the OWL API JARs are treated as automatic modules. So far so good. My problem now is that there is a package called org.semanticweb.owlapi.formats both in owlapi-api.jar, and in owlapi-rio.jar. With different content, of course. Do the two packages really have to be called the same?

ignazio1977 commented 2 years ago

They're not called the same any more in version6 - not released yet, though. Finishing modularization of the code base is one of the tasks to complete before the release.

It's not possible to change those package names without making the code incompatible with existing version 4/5 releases, so if you need to use one of the current releases as a module you'd need to repackage the files. The distribution and osgidistribution jars should be a good base for that - they already merge the files in the metadata folders.