If I used Jena, can I use a non-Java Web framework like Django or Rails to implement a WebApp? How can this be done?

asked 10 Oct '10, 23:39

tranced_UT3's gravatar image

accept rate: 0%

As well as Joseki, there is now Fuseki, which provides a SPARQL 1.1 server. You might use this with any application and interact with the Jena via HTTP.

permanent link

answered 13 Oct '10, 10:50

AndyS's gravatar image

AndyS ♦
accept rate: 33%

Sure. First you can run Jena via tools like Joseki as a standalone SPARQL server and then write your web app to call out to the SPARQL endpoints.

Second, you can run non-java web applications directly in java. For example, you can run Rails using jRuby then use jRuby's ability to call out to java to give it access to Jena.

permanent link

answered 11 Oct '10, 07:56

Dave%20Reynolds's gravatar image

Dave Reynolds
accept rate: 46%

I kinda don't like the idea of using Jython or jRuby...

Is PySesame a SPARQLWrapper for Sesame? What SPARQL wrappers do you recommend for python or ruby to be used with Jena's Joseki?

(11 Oct '10, 09:18) tranced_UT3 tranced_UT3's gravatar image

I've used Jena (running behind Joseki) as an RDF store for PHP-power web apps, and indeed for a Perl-based IRC bot. (Though more recently I've switched away from Jena for Perl work.)

(11 Oct '10, 15:14) tobyink ♦ tobyink's gravatar image

Joseki conforms to the specs so any python/ruby client library that works with standard SPARQL endpoints should be OK. Jena's ARQ does include some client libraries - this is an area Andy has been looking at recently but I'm not sure of the current status of that.

(11 Oct '10, 16:55) Dave Reynolds Dave%20Reynolds's gravatar image

You could develop a RESTful or SOAP API based on Jena and call that from any web framework you like. (That's what I'm currently working on using Glassfish).

permanent link

answered 16 Jan '13, 10:57

Phil's gravatar image

accept rate: 28%

edited 16 Jan '13, 10:57

You can use jruby with jruby_jena gem as a wrapper of jena.

permanent link

answered 14 Jan '13, 17:19

%C3%87a%C4%9Fda%C5%9F%20Ol's gravatar image

Çağdaş Ol
accept rate: 0%

If you're looking to use Jena as a library within your web app to munge data between the triple store and the front end, you're going to be stuck on the JVM. So you can use non-Java languages like Groovy (and its Grails or Ratpack frameworks), Scala (and its Play framework), and Clojure (and its Compojure framework).

As mentioned above, jRuby and jython do give you access to Rails and Django, but you'd have to accept the disconnect between features in those languages and newer features in their target languages.

permanent link

answered 18 Jan '13, 20:54

Ryan%20Kohl's gravatar image

Ryan Kohl
accept rate: 17%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Oct '10, 23:39

question was seen: 2,464 times

last updated: 18 Jan '13, 20:54