# Stardog 5.x and RDF4J

**URL:** <https://community.stardog.com/t/stardog-5-x-and-rdf4j/847>\
**Category:** Support\
**Created:** [March 6, 2018, 10:07am UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847 "2018-03-06T10:07:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.stardog.com/u/Fabian)\
**Post date:** [March 6, 2018, 10:07am UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/1 "2018-03-06T10:07:31Z")

</div>

Hi,

I can see in the forum that Stardog 5.x seems compatible with RDF4J.

But is it possible to have a pointer about how to do that, examples, etc. ?  
Also were to find the specific bindings for Stardog 5.2.1 if needed.

Thank you  
Fabian

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [March 6, 2018, 1:29pm UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/2 "2018-03-06T13:29:53Z")

</div>

Hi Fabian,

It’s a bit of an oversight that this isn’t in our documentation somewhere. I’ll be making a ticket to work on that.

Anyway, the bindings are almost identical to the sesame bindings; simply add `com.complexible.stardog.rdf4j:stardog-rdf4j:5.2.1` to your dependencies

---

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.stardog.com/u/Fabian)\
**Post date:** [March 6, 2018, 1:50pm UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/3 "2018-03-06T13:50:39Z")

</div>

Thank you Stephen,

The dependency seems to work.

But there is no available code example, is that correct ?

Thank you  
Fabian

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [March 6, 2018, 1:51pm UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/4 "2018-03-06T13:51:12Z")

</div>

Not currently, but any of the Sesame code examples should work, just the package names will be different

---

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.stardog.com/u/Fabian)\
**Post date:** [March 6, 2018, 2:07pm UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/5 "2018-03-06T14:07:49Z")

</div>

I am trying to recreate the simple example from

> **[Home](https://docs.stardog.com/)**
>
> Documentation for Stardog, the world’s leading Knowledge Graph Platform for the Enterprise

But get an error about the class StardogRepository that can't be found in any dependency.

Am I missing something ?  
Thanks  
Fabian

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [March 6, 2018, 2:31pm UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/6 "2018-03-06T14:31:19Z")

</div>

I’m not sure. We definitely provide `com.complexible.stardog.rdf4j.StardogRepository` in that dependency… did your IDE not refresh them?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [March 20, 2018, 2:31pm UTC](https://community.stardog.com/t/stardog-5-x-and-rdf4j/847/7 "2018-03-20T14:31:22Z")

</div>

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