我有一个程序,通过 Eclipse 在 maven 项目中开发,它提供了一个 ETL 服务,它摄取数据,使用 Jena API 生成海龟格式 RDF,并将其加载到需要使用 Sesame API 发送给它的数据的三重存储中。因此,我需要将 ETL 服务创建的语句从 Jena 转换为 Sesame。
我想使用 Stardog 的以下类,因为它正是我需要做的。我尝试将以下依赖项添加到我的 pom.xml 以解决该问题:
<dependency>
<groupId>com.complexible.stardog.protocols.http</groupId>
<artifactId>client</artifactId>
<version>${stardog.version}</version>
<exclusions>
<exclusion>
<!-- Depends on this as if it were a jar artifact, when it is a pom -->
<artifactId>sesame</artifactId>
<groupId>org.openrdf.sesame</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.complexible.stardog.reasoning.http</groupId>
<artifactId>client</artifactId>
<version>${stardog.version}</version>
<exclusions>
<exclusion>
<!-- Depends on this as if it were a jar artifact, when it is a pom -->
<artifactId>sesame</artifactId>
<groupId>org.openrdf.sesame</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.complexible.stardog</groupId>
<artifactId>core</artifactId>
<version>${stardog.version}</version>
<exclusions>
<exclusion>
<!-- Depends on this as if it were a jar artifact, when it is a pom -->
<artifactId>sesame</artifactId>
<groupId>org.openrdf.sesame</groupId>
</exclusion>
<exclusion>
<artifactId>license</artifactId>
<groupId>com.clarkparsia</groupId>
</exclusion>
<exclusion>
<artifactId>erg</artifactId>
<groupId>com.complexible.erg</groupId>
</exclusion>
</exclusions>
</dependency>
但我收到以下错误:
缺少工件 com.complexible.stardog:shared:jar 2.2.2
缺少工件 org.openrdf.sesame:sesame:jar:2.7.12
缺少工件 com.complexible.stardog:api:jar.2.2.2
我还在上述依赖项的打开依赖项标记上收到错误,说其中包含的依赖项也丢失了。
注意:stardog.version = 2.2.2 和 sesame.version = 2.7.12。
有任何想法吗?