Maven OWL API How to resolve dependency error

Asked

Viewed 140 times

0

My question concerns Maven. I am working on a project that involves the OWL API library and after trying to load an ontology the project returned an error that can be seen in the following image.

inserir a descrição da imagem aqui

Regarding this error found the link OWL API resolution that recommended installing Maven. So far I haven’t found how to package the OWL API by Maven to solve this dependency problem and I’d like to ask if anyone knows the answer or if at least there are some links or videos that I can find the answer to.

Windows 10 - Vitor Hugo Maciel dos Santos - University student trying to solve a problem

1 answer

0

Following the link you commented (OWL API resolution) you can add owlapi and owlapi-osgi dependencies (this dependency should solve the problem according to the link) to your pom.xml:

<dependency>
    <groupId>net.sourceforge.owlapi</groupId>
    <artifactId>owlapi-distribution</artifactId>
    <version>4.1.4</version>
</dependency>
<dependency>
    <groupId>net.sourceforge.owlapi</groupId>
    <artifactId>owlapi-osgidistribution</artifactId>
    <version>4.1.4</version>
</dependency>

If you don’t want to use the Maven at the bottom of the page it shows all the dependencies of owlapi and on all pages you have the option to download the JAR.

  • I thought the problem was this yes, but I added the dependency before creating the forum here in my pom.xml file as I said in a video I saw on the internet and it still didn’t work. I think maybe my pom.xml might be wrong so I’ll share his code here. pom.xml

  • @vitorhugomacieldossantos, according to the link you sent missing add the dependency to owlapi-osgi. I changed my answer, take a look, see if it helps you.

  • Vlw worked agr, thanks.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.