# Update to RDF4J

**URL:** <https://community.stardog.com/t/update-to-rdf4j/561>\
**Category:** Feature Request\
**Created:** [September 13, 2017, 1:25pm UTC](https://community.stardog.com/t/update-to-rdf4j/561 "2017-09-13T13:25:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rnavarropiris](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/rnavarropiris/32/44_2.png) [@rnavarropiris](https://community.stardog.com/u/rnavarropiris)\
**Post date:** [September 13, 2017, 1:25pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/1 "2017-09-13T13:25:18Z")

</div>

Currently, Sesame is used, even though it was officially moved to [RDF4J](http://rdf4j.org/).

(Also, the used Sesame version `4.0.0` is almost 2 years old and it's not even the latest available Sesame version which would be `4.1.2`)

What is the current roadmap on updating the RDF bindings to RDF4j? Is there a planned version already?

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 13, 2017, 1:39pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/2 "2017-09-13T13:39:03Z")

</div>

According to the release notes [1] RDF4J bindings were added in 5.0.2

" ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/3e972c3f87cce517008aa1e3f46c92c9c82e0f6f.png) Add bindings for RDF4J (2974):"

[1] [https://www.stardog.com/docs/release-notes/](https://www.stardog.com/docs/release-notes/)

---

<div class="post-metadata">

**Author:** ![rnavarropiris](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/rnavarropiris/32/44_2.png) [@rnavarropiris](https://community.stardog.com/u/rnavarropiris)\
**Post date:** [September 13, 2017, 1:53pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/3 "2017-09-13T13:53:54Z")

</div>

@zachary.whitley  
Hi Zachary!

Thanks for the quick answer. Could you point me to the documentation on the topic? The [Java Programming](http://www.stardog.com/docs/#_java_programming) section explains sesame and jena bindings, but there is no word on RDF4j

---

<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:** [September 13, 2017, 1:58pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/4 "2017-09-13T13:58:43Z")

</div>

Hi,

You’re absolutely right, and our docs should be updated to reflect this, but you can find the RDF4J jars in our maven repository as com.complexible.stardog.rdf4j:stardog-rdf4j:5.0.3. They behave very much like sesame, outside of some package name differences.

---

<div class="post-metadata">

**Author:** ![MiguelAraCo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/miguelaraco/32/306_2.png) [@MiguelAraCo](https://community.stardog.com/u/MiguelAraCo)\
**Post date:** [September 13, 2017, 2:08pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/5 "2017-09-13T14:08:01Z")

</div>

Even though RDF4J bindings were added, it would be great if the SNARL API was updated to use RDF4J. In the meanwhile we are forced to have as a dependency both the RDF4J libraries and the Sesame libraries Stardog uses.

---

<div class="post-metadata">

**Author:** ![rnavarropiris](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/rnavarropiris/32/44_2.png) [@rnavarropiris](https://community.stardog.com/u/rnavarropiris)\
**Post date:** [September 13, 2017, 2:11pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/6 "2017-09-13T14:11:41Z")

</div>

Yes, I checked it out and came to the same conclusion.  
My question was rather headed in the direction on when will an _actual_ migration be done (replace Sesame by RDF4J).  
When is this step planed?

---

<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:** [September 13, 2017, 2:24pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/7 "2017-09-13T14:24:05Z")

</div>

We have no plans to move SNARL over to RDF4J, however we plan to replace the Sesame bits of it with a native API in October or November. After that point, we will continue to maintain the Sesame/RDF4J bindings, but will use neither internally to our API.

---

<div class="post-metadata">

**Author:** ![rnavarropiris](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/rnavarropiris/32/44_2.png) [@rnavarropiris](https://community.stardog.com/u/rnavarropiris)\
**Post date:** [September 13, 2017, 3:10pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/8 "2017-09-13T15:10:33Z")

</div>

All right, thanks for the information! 🙂

---

<div class="post-metadata">

**Author:** ![hmottestad](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/hmottestad/32/19_2.png) [@hmottestad](https://community.stardog.com/u/hmottestad)\
**Post date:** [October 4, 2017, 3:54pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/9 "2017-10-04T15:54:48Z")

</div>

@stephen I’ve been wanting to move over to rdf4j from sesame too, but I’ve stumbled into some methods that are not handling my rdf4j things and are still expecting sesame.

`connection.add().io().format(RDFFormat.TRIG)`

This one complains about: `incompatible types: org.eclipse.rdf4j.rio.RDFFormat cannot be converted to org.openrdf.rio.RDFFormat`

Since I see from this thread that @rnavarropiris says we’ll still be needing sesame, is this what he’s talking about?

---

<div class="post-metadata">

**Author:** ![mike](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/mike/32/14_2.png) [@mike](https://community.stardog.com/u/mike)\
**Post date:** [October 4, 2017, 4:08pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/10 "2017-10-04T16:08:00Z")

</div>

Correct, SNARL, and the rest of Stardog’s internals, currently still use Sesame. We provide support for RDF4J bindings, but we will not move SNARL over to use RDF4J. As Stephen stated, we plan on replacing Sesame entirely in the coming months.

---

<div class="post-metadata">

**Author:** ![hmottestad](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/hmottestad/32/19_2.png) [@hmottestad](https://community.stardog.com/u/hmottestad)\
**Post date:** [October 4, 2017, 4:23pm UTC](https://community.stardog.com/t/update-to-rdf4j/561/11 "2017-10-04T16:23:32Z")

</div>

Pity. Would have been nice to switch over to rdf4j.
