I see two options: 1) openllet https://github.com/Galigator/openllet 2) ontapi https://github.com/owlcs/ont-api
On 2024/09/13 15:53:56 "Zlatareva, Neli (Computer Science)" wrote: > Thank you so much for the suggestions. Is there a way to integrate HermitT > with Jena without using OWLAPI similar to integrating Pellet? Unfortunately, > Pellet is not supported anymore and works only with old Jena versions. > Thank you! > > Neli P. Zlatareva, PhD > Professor of Computer Science > Department of Computer Science > Central Connecticut State University > New Britain, CT 06050 > Phone: (860) 832-2723 > Fax: (860) 832-2712 > Web site: cs.ccsu.edu/~neli/ > ________________________________ > From: ssz <[email protected]> > Sent: Friday, September 13, 2024 10:27 AM > To: [email protected] <[email protected]> > Subject: Re: Integration of HermitT in Jena > > [You don't often get email from [email protected]. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > > EXTERNAL EMAIL: This email originated from outside of the organization. Do > not click any links or open any attachments unless you trust the sender and > know the content is safe. > > Hi > > There are several issues > 1) judging by the stack trace, the code you are using is not Jena, but > OWLAPI, so the issue does not apply to Jena, wrong addressing. You can try > to ask in > https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fowlcs%2Fowlapi&data=05%7C02%7CZlatareva%40ccsu.edu%7C486ee9d7672b48b5c70708dcd4004835%7C2329c570b5804223803b427d800e81b6%7C0%7C0%7C638618344889955883%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=hGDaAwXSc9ifPgYPmjKcgVnDty1%2BgXFsgrGXcj5F0lM%3D&reserved=0<https://github.com/owlcs/owlapi>, > or in SO, or maybe here > https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fowlcs%2Fhermit-reasoner&data=05%7C02%7CZlatareva%40ccsu.edu%7C486ee9d7672b48b5c70708dcd4004835%7C2329c570b5804223803b427d800e81b6%7C0%7C0%7C638618344889975998%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=GjzSkxYcW5w88DAOjuEd0laBS58G%2B1NF08hu2MFrlpE%3D&reserved=0<https://github.com/owlcs/hermit-reasoner> > (if you are using this version of > Hermit). I think the best choice is SO > (https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2F&data=05%7C02%7CZlatareva%40ccsu.edu%7C486ee9d7672b48b5c70708dcd4004835%7C2329c570b5804223803b427d800e81b6%7C0%7C0%7C638618344889986147%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=RbCFObdTuovgLyEy3M%2B8PKrjPGz90003dwdbr6IyKxc%3D&reserved=0<https://stackoverflow.com/>). > 2) the error indicates that the problem is with dependencies, i.e. does not > directly apply to OWLAPI or Jena > 3) ancient version of OWLAPI (probably because of ancient Hermit) > 4) if you really want to use OWLAPI-based Hermit together with Jena, you > can look at owlcs/ONTAPI. > > On Fri, Sep 13, 2024 at 4:48 PM Zlatareva, Neli (Computer Science) > <[email protected]> wrote: > > > Hi there, I am wondering if anybody was successful integrating HermitT in > > Jena. I tried everything I was able to find, including ChatGPT > > recommendations 🙂, but nothing helped me overcome the following error > > after correctly creating and loading the ontology > > > > Exception in thread "main" java.lang.NoSuchMethodError: > > 'com.google.common.base.Optional > > org.semanticweb.owlapi.model.OWLOntologyID.getDefaultDocumentIRI()' > > at > > org.semanticweb.HermiT.structural.OWLClausification.preprocessAndClausify(OWLClausification.java:147) > > at org.semanticweb.HermiT.Reasoner.loadOntology(Reasoner.java:211) > > at org.semanticweb.HermiT.Reasoner.<init>(Reasoner.java:202) > > at org.semanticweb.HermiT.Reasoner.<init>(Reasoner.java:176) > > at > > org.semanticweb.HermiT.ReasonerFactory.createHermiTOWLReasoner(ReasonerFactory.java:51) > > at > > org.semanticweb.HermiT.ReasonerFactory.createReasoner(ReasonerFactory.java:19) > > at > > org.semanticweb.HermiT.ReasonerFactory.createReasoner(ReasonerFactory.java:15) > > at HermitExample.main(HermitExample.java:44) > > > > Any help will be greatly appreciated. > > Thank you so much. > > Regards, Neli. > > > > Neli P. Zlatareva, PhD > > Professor of Computer Science > > Department of Computer Science > > Central Connecticut State University > > New Britain, CT 06050 > > Phone: (860) 832-2723 > > Fax: (860) 832-2712 > > Web site: cs.ccsu.edu/~neli/ > > >
