Using Maven Artifacts

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 "http://maven.ontotext.com/repository/owlim-releases"
    }
}

For the Maven POM file:

<repositories>
    <repository>
        <id>ontotext-public</id>
        <url>http://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>2.10</version>
            <executions>
                <execution>
                    <id>copy</id>
                    <phase>package</phase>
                    <goals>
                        <goal>copy</goal>
                    </goals>
                    <configuration>
                        <artifactItems>
                            <artifactItem>
                                <groupId>com.ontotext.graphdb</groupId>
                                <artifactId>graphdb-se</artifactId>
                                <version>${graphdb.version}</version>
                                <type>zip</type>
                                <classifier>dist</classifier>
                                <outputDirectory>target/se-dist</outputDirectory>
                            </artifactItem>
                        </artifactItems>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

GraphDB JAR file for embedding the database or plugin development

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-enterprise-runtime</artifactId>
    <version>${graphdb.version}</version>
</dependency>
<dependency>
    <groupId>com.ontotext.graphdb</groupId>
    <artifactId>graphdb-standard-runtime</artifactId>
    <version>${graphdb.version}</version>
</dependency>
<dependency>
    <groupId>com.ontotext.graphdb</groupId>
    <artifactId>graphdb-enterprise-client</artifactId>
    <version>${graphdb.version}</version>
</dependency>

I want to proxy the repository in my nexus

The following options have been verified to work as expected:

_images/nexus-proxy-settings.png

Note that this won’t give you the ability to browse and index/search our repository. This is a shortcoming of the fact that we achieve the authentication through a repository target at the moment.

!! [CHECK IF THE ABOVE IS STILL RELEVANT]