Cannot import "com.complexible.stardog.Stardog" in my project with maven

Hello,

I'm trying to reproduce the example from ConnectionAPIExample.java with Stardog version 5.0.4

But I am unable to import com.complexible.stardog.Stardog. sonce version 4 it was in the client-snarl dependency but it is no more available in version 5.

Here is my maven pom.xml:

  <repositories>
    <repository>
        <id>stardog-public</id>
        <url>http://maven.stardog.com</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.complexible.stardog</groupId>
        <artifactId>server</artifactId>
        <version>5.0.4</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>com.complexible.stardog</groupId>
        <artifactId>client-http</artifactId>
        <version>5.0.4</version>
        <type>pom</type>
    </dependency>
</dependencies>

How can I proceed to run a server with
Stardog aStardog = Stardog.builder().create();

Best regards,
Leo

According to the example's build.gradle, it looks like you might be looking for the client-embedded dependency.

Thanks a lot Stephen,

I just added the missing dependency and also passed the version to 5.0.4
(I was actually using 5.0.1 where com.complexible.stardog.Stardog is missing. This was the real cause of my issue)

Leo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.