Sesame, Alibaba and openRDF

167 views
Skip to first unread message

opavl...@gmail.com

unread,
Aug 11, 2016, 10:39:32 AM8/11/16
to RDF4J Users
Hello! I have two question.

1. Do I understand correctly. This is -> https://mvnrepository.com/artifact/org.openrdf.sesame/sesame-assembly old project and this is https://mvnrepository.com/artifact/org.eclipse.rdf4j a new project?
2. I'm building the application that uses Sesame and I'd like to use Alibaba project to map rdf data to java beans. What dependencies do I must include to use it?

Thank you for your help.

Jeen Broekstra

unread,
Aug 11, 2016, 6:58:18 PM8/11/16
to rdf4j...@googlegroups.com
On 12/08/16 02:39, opavl...@gmail.com wrote:
> Hello! I have two question.
>
> 1. Do I understand correctly. This is
> -> https://mvnrepository.com/artifact/org.openrdf.sesame/sesame-assembly old
> project and this is https://mvnrepository.com/artifact/org.eclipse.rdf4j a new
> project?

Eclipse RDF4J is the new name for OpenRDF Sesame. So it's the same project, but
with a new name, logo, owner, etc. See this news announcement:

http://rdf4j.org/2016/05/18/goodbye-sesame-hello-rdf4j/

for more details.

> 2. I'm building the application that uses Sesame and I'd like to use Alibaba
> project to map rdf data to java beans. What dependencies do I must include to
> use it?

First of all: AliBaba is a separate project from Sesame, it has its own main
developer (James Leigh). The AliBaba code repository + documentation can be
found here:

https://bitbucket.org/openrdf/alibaba

James can correct me if I'm wrong but I believe AliBaba development is currently
dormant.

As for dependencies: as far as I know, AliBaba modules were never published on
the Central repository. The only way to include the libraries in your project is
to either download and compile the source repo (and install the maven modules
locally), or to download the zip file distribution and include libraries manually.


Jeen

opavl...@gmail.com

unread,
Aug 12, 2016, 4:37:08 AM8/12/16
to RDF4J Users
Jeen, thank you for your great answer!

Can I ask one more question?

In my project I've faced with a problem. The problem is that I have very a lot of the big queries that encoded like strings. I'd like to find tools that gets more easy way to work with sparql queries and data. I think the Alibaba project is a good tool to map rdf data to java objects.
I'd like to ask, do you know any opensource projects that work with big amount of sparql queries and what is the best practice to work with them in java projects?

Thank you!

Oleg

пятница, 12 августа 2016 г., 1:58:18 UTC+3 пользователь Jeen Broekstra написал:

Jeen Broekstra

unread,
Aug 12, 2016, 7:13:00 PM8/12/16
to rdf4j...@googlegroups.com
On 12/08/16 20:37, opavl...@gmail.com wrote:

> In my project I've faced with a problem. The problem is that I have very a lot
> of the big queries that encoded like strings. I'd like to find tools that gets
> more easy way to work with sparql queries and data. I think the Alibaba project
> is a good tool to map rdf data to java objects.
> I'd like to ask, do you know any opensource projects that work with big amount
> of sparql queries and what is the best practice to work with them in java projects?

There's several ways to "handle" large queries. The obvious ones are just about
using good coding practices:

1) create each query in a single place and encapsulate it properly;
2) use Stringbuilders to construct the string instead of just simple string
concatenation;
3) wherever possible reuse PreparedQuery objects (setting specific values with
setBinding()).

Other tools: for creating SPARQL queries in code, RDF4J has a fluent
QueryBuilder API.

ParsedTupleQuery query = QueryBuilderFactory
.select("x", "y")
.group()
.atom("x", RDF.TYPE, "y")
.closeGroup()
.query();

I must admit it's in beta, underdocumented, and currenly lacking several SPARQL
1.1 features, but it's still useful for many purposes. Extending and improving
it is high on our priority list for the next major RDF4J release by the way.

If you are specifically looking for RDF-to-OO mapping tools then Pinto
(https://github.com/Complexible/pinto) is worth taking a look at. It's a very
lightweight framework for mapping bean classes to/from RDF using the RDF4J APIs.

Jeen

Reply all
Reply to author
Forward
0 new messages