Skip to content

ApacheMaven

Yevgeny Kazakov edited this page Mar 27, 2024 · 7 revisions

Using ELK with Apache Maven

ELK and all its components are developed using Apache Maven. Starting from version 0.3.1, ELK and all its programming libraries are available from the Maven Central Repository. The GroupId of ELK is:

 org.semanticweb.elk

For example to use ELK, through the OWL API reasoner interface, add the following dependency to your Maven project configuration:

<dependency> 
   <groupId>org.semanticweb.elk</groupId> 
   <artifactId>elk-owlapi</artifactId> 
   <version>0.4.3</version> 
</dependency> 

See also how to use ELK from OWL API.

For further information about the Maven artifacts of ELK, please refer to the automatically generated ELK Maven documentation.

Development Snapshot Builds

To use the development builds of ELK, you need to add a sonatype snapshot repository to your Maven project configuration:

<repositories>
   <repository>
      <id>sonatype-nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
      <releases>
         <enabled>false</enabled>
      </releases>
      <snapshots>
         <enabled>true</enabled>
      </snapshots>
   </repository>
</repositories>

When this is done, one can use snapshot versions of ELK. For example, put the following in order to use ELK with OWL API 5.x:

<dependency> 
   <groupId>com.github.liveontologies</groupId> 
   <artifactId>elk-owlapi5</artifactId> 
   <version>5.0.0-SNAPSHOT</version> 
</dependency> 

For OWL API 4.x, use this dependency instead:

<dependency> 
   <groupId>com.github.liveontologies</groupId> 
   <artifactId>elk-owlapi4</artifactId> 
   <version>5.0.0-SNAPSHOT</version> 
</dependency>