Skip to content
Guohui Xiao edited this page May 10, 2015 · 7 revisions

Using Ontop as Maven dependencies

Intro

Since the release of version 1.10, Ontop has been deployed to the central maven repository.

All artifacts have the groupId it.unibz.inf.ontop.

The artifactsId's are ontop, ontop-obdalib-core, ontop-obdalib-owlapi3, ontop-obdalib-protege4, ontop-obdalib-sesame, ontop-obdalib-r2rml, ontop-quest-db, ontop-quest-owlapi3, ontop-quest-sesame, ontop-reformulation-core.

You may want to check the up-to-date info at the following link:

https://oss.sonatype.org/index.html#nexus-search;quick~ontop

Ontop as an OWLAPI library

For instance, if you want to use the owlapi interface of Ontop, put the following in your pom.xml:

<dependency>
	<groupId>it.unibz.inf.ontop</groupId>
	<artifactId>ontop-quest-owlapi3</artifactId>
	<version>1.12.0</version>
</dependency>

Ontop as a Sesame library

If you want to use the sesame API interface of Ontop, use the following:

<dependency>
	<groupId>it.unibz.inf.ontop</groupId>
	<artifactId>ontop-quest-sesame</artifactId>
	<version>1.12.0</version>
</dependency>

Ontop with R2RML

If you need to use Ontop with R2RML, put the following dependency

<dependency>
  <groupId>it.unibz.inf.ontop</groupId>
  <artifactId>ontop-obdalib-r2rml</artifactId>
  <version>1.12.0</version>
</dependency>

and add the bolzano maven repo to your pom.xml

	<repositories>	
		<repository>
			<!-- for R2RML api -->
			<id>bolzano-nexus-public</id>
			<url>http://obdavm.inf.unibz.it:8080/nexus/content/groups/public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>

A complete example

For a complete example, please visit https://github.com/ontop/ontop-api-examples .

Clone this wiki locally