Using Maven Artifacts¶
What’s in this document?
Part of GraphDB’s Maven repository is open and allows downloading GraphDB Maven artifacts without credentials.
Note
You still need to obtain a license from our Sales team, as the artifacts do not provide one.
Public Maven repository¶
To browse and search the public GraphDB’s Maven repository, use our Nexus.
For the Gradle build script:
repositories {
maven {
url "https://maven.ontotext.com/repository/owlim-releases"
}
}
For the Maven .POM
file:
<repositories>
<repository>
<id>ontotext-public</id>
<url>https://maven.ontotext.com/repository/owlim-releases</url>
</repository>
</repositories>
Distribution¶
To use the distribution for some automation or to run integration tests in embedded Tomcat, get the .zip
artifacts with the following snippet:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.ontotext.graphdb</groupId>
<artifactId>graphdb</artifactId>
<version>${graphdb.version}</version>
<type>zip</type>
<classifier>dist</classifier>
<outputDirectory>target/graphdb-dist</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
GraphDB runtime .jar
¶
To embed the database in your application or develop a plugin, you need the GraphDB runtime .jar
. Here are the details for the runtime .jar
artifact:
<dependency>
<groupId>com.ontotext.graphdb</groupId>
<artifactId>graphdb-runtime</artifactId>
<version>${graphdb.version}</version>
<!-- Temporary workaround for missing Ontop dependencies for Ontotext build of Ontop -->
<exclusions>
<exclusion>
<groupId>it.unibz.inf.ontop</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
The com.ontotext.graphdb:graphdb-runtime
artifact is also available from the Maven Central Repository.
GraphDB Client API .jar
¶
The GraphDB Client API is an extension of RDF4J’s HTTP repository and provides some GraphDB extensions and smart GraphDB cluster support. Here are the details for the .jar
artifact:
<dependency>
<groupId>com.ontotext.graphdb</groupId>
<artifactId>graphdb-client-api</artifactId>
<version>${graphdb.version}</version>
</dependency>
The com.ontotext.graphdb:graphdb-client-api
artifact is also available from the Maven Central Repository.