Configure Joseki on Ubuntu

June 29, 2010 at 3:40 am 12 comments

1. Download Joseki  – put it under /home/kumar/Documents/

2. Unzip zip file, there will be a folder Joseki-3.4.1

3. In your favourite editor, open .bashrc under your home folder. in my case it is /home/kumar/.bashrc

4. At the end of .bashrc, add the following lines

export PATH=$PATH:/home/kumar/Documents/Joseki-3.4.1

export JOSEKIROOT=/home/kumar/Documents/Joseki-3.4.1

OR

export JOSEKIROOT=/home/kumar/Documents/Joseki-3.4.1

export PATH=$PATH:JOSEKIROOT

You need to declare JOSEKIROOT variable, because JOSEKI installation requires this as it looks for JOSEKIROOT environt variable to locate the JOSEKI files

You add JOSEKIROOT to the environment variable PATH, so that your terminal can locate JOSEKI files

5.  chmod 777 /home/kumar/Documents/Joseki-3.4.1/bin/*
This means, give all rights to all users
#Though Joseki documents recommends chmod u+x bin/* – I am always liberal

6. Open the file joseki-config.ttl located under /home/kumar/Documents/Joseki-3.4.1/

Modify the section ## Datasets of joseki-config.ttl.
Datasets sections contain the location of RDF Dataset on which to Run SPARQL queries.

Here you add the path to the folder where rdf file is located. When you issue the SPARQL query, the query will execute on the listed rdf files in joseki-config.ttl

Under the section ## Datasets, locate the following line

ja:content [ja:externalContent <file:/home/kumar/Desktop/lubm.rdf> ] ;

<file:path to your rdf file>

If you have more than one file, you can repeat this line. This gets inconvenient if there are thousands of file. To solve such issue, use MySQL Server with JOSEKI. We will look in this in the next post.

7. Open terminal, go to /home/kumar/Documents/Joseki-3.4.1
execute the rdfserver script
bin/rdfserver

if there are no errors, you can open a browser type the following URL http://localhost:2020/ and issue queries which will execute on the listed RDF files in joseki-config.ttl

Entry filed under: computer, Semantic Web. Tags: , , , .

Can tweeting be dangerous? JOSEKI with SDB and MySQL

12 Comments Add your own

  • 1. Agung  |  July 27, 2010 at 8:46 am

    Hi, Mr Kumar, i’ve got following error like this :

    15:44:55 INFO Configuration :: ==== Configuration ====
    15:44:55 INFO Configuration :: Loading :
    15:44:55 WARN Configuration :: ** Failed to load: Not found: joseki-config.ttl
    15:44:56 WARN Configuration :: ** No server description found
    15:44:56 ERROR Configuration :: Failed to parse configuration file
    org.joseki.ConfigurationErrorException: No server description
    at org.joseki.Configuration.findServer(Configuration.java:220)
    at org.joseki.Configuration.processModel(Configuration.java:98)
    at org.joseki.Configuration.(Configuration.java:83)
    at org.joseki.Dispatcher.setConfiguration(Dispatcher.java:130)
    at org.joseki.Dispatcher.initServiceRegistry(Dispatcher.java:100)
    at org.joseki.Dispatcher.initServiceRegistry(Dispatcher.java:93)
    at org.joseki.RDFServer.init(RDFServer.java:79)
    at org.joseki.RDFServer.(RDFServer.java:64)
    at joseki.rdfserver.main(rdfserver.java:85)

    Failed to load the configuration file – see log
    No server description
    org.joseki.ConfigurationErrorException: No server description
    at org.joseki.Configuration.findServer(Configuration.java:220)
    at org.joseki.Configuration.processModel(Configuration.java:98)
    at org.joseki.Configuration.(Configuration.java:83)
    at org.joseki.Dispatcher.setConfiguration(Dispatcher.java:130)
    at org.joseki.Dispatcher.initServiceRegistry(Dispatcher.java:100)
    at org.joseki.Dispatcher.initServiceRegistry(Dispatcher.java:93)
    at org.joseki.RDFServer.init(RDFServer.java:79)
    at org.joseki.RDFServer.(RDFServer.java:64)
    at joseki.rdfserver.main(rdfserver.java:85)

    Reply
    • 2. bugt4ker  |  April 12, 2011 at 6:04 am

      maybe…

      ~/Joseki-3.4.3/bin# ./rdfserver (error)

      ~/Joseki-3.4.3# bin/rdfserver (running)

      isntit?

      Reply
      • 3. harshitkumar  |  April 12, 2011 at 6:51 am

        It depends on pwd.

  • 4. harshitkumar  |  July 28, 2010 at 12:22 am

    Your system can’t find the configuration file joseki-config.ttl

    Are you on unix or windows system?

    Reply
  • 5. Ziya Akar  |  March 3, 2011 at 9:00 am

    Hi Kumar. We have the same problem with Agung’s. We use Kubuntu. We set josekiroot and sdb_svn file just like you said. But still there is a problem.

    Reply
  • 6. harshitkumar  |  March 3, 2011 at 9:42 pm

    Did you read my reply in response to Agung’s comment?

    Reply
  • 7. Herli Menezes  |  March 31, 2011 at 9:33 pm

    Helllo, Kumar,

    a followed all these steps, but I ran rdfserver, I got this:
    http://fpaste.org/J2t0/

    Any guess?

    Thank you

    HJdM

    Reply
    • 8. harshitkumar  |  April 1, 2011 at 2:36 am

      your joseki installation cant find JSP support. It seems to be a problem of JDBC driver. I will look into it and get back to you.

      Reply
      • 9. kumar  |  May 18, 2011 at 4:14 am

        I dont see any problem with it. Can you please tell what is the output when you input the following URL http://localhost:2020/

    • 10. harshitkumar  |  January 10, 2012 at 9:32 pm

      line no. 30, no jsp support. The joseki cannot find jsp support. I think this question was raised previously also. Please refer to other comments

      Reply
  • 11. bugt4ker  |  April 12, 2011 at 6:31 am

    thx harshitkumar, this post likes sunshine to me.

    Reply
  • 12. Gemini  |  November 13, 2011 at 6:57 pm

    I ran the bin/rdfserver script and it says “Cant start RDF server. Not enough memory”. I also executed the cat bin/rdfserver | grep “JAVA_ARGS” which gives the output as -Xmx1g which means that the entire triple store is not loaded at start up. What might be the reason behind this and how do we solve this ?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

Blog Stats

  • 7,949 hits

Top Clicks


Follow

Get every new post delivered to your Inbox.