Dear Rob; Thanks so much for your quick answer.
> The easiest way to set up a TDB dataset is actually to start up Fuseki with a > path to an empty directory and using the --update option to enable updates I found some document to start up Fuseki with empoty dataset from http://jena.apache.org/documentation/serving_data/index.html ======== Fuseki Server starting with an empty dataset fuseki-server --update --mem /ds runs the server on port 3030 with an in-memory dataset. It can be accessed via the appropriate protocol at the following URLs: *SPARQL query: http://localhost:3030/ds/query *SPARQL update: http://localhost:3030/ds/update *SPARQL HTTP update: http://localhost:3030/ds/data ======== So I tried to run the server again using the above command. ============= [root@ip-50-63-174-75 jena]# java -Xmx1200M -jar fuseki-server.jar --update --mem /ds 11:53:55 INFO Server :: Dataset: in-memory 11:53:56 INFO Server :: Dataset path = /ds 11:53:56 INFO Server :: Fuseki 0.2.5 2012-10-20T17:03:29+0100 11:53:56 INFO Server :: Started 2012/11/01 11:53:56 GMT-07:00 on port 3030 11:53:56 ERROR Server :: SPARQLServer: Failed to start server: Address already in use [root@ip-50-63-174-75 jena]# ^C =============== I got the error message saying " Failed to start server: Address already in use". I tried shut it down using "control+c", but it seems not to work. Do you have any idea of how to fix this problem? Thanks so much for your answer. Best, Soonho -----Original Message----- From: Rob Vesse [mailto:[email protected]] Sent: Thursday, November 01, 2012 2:41 PM To: [email protected] Subject: Re: Fuseki server installation TDB is a native RDF database not a flat file format so you cannot simply rename an existing RDF file to create a TDB dataset. Please see the documentation for TDB (http://jena.apache.org/documentation/tdb/) to learn how to create a TDB dataset. The dataset location in your configuration file should be a path to directory where your TDB database has been created (or where it should be created). The easiest way to set up a TDB dataset is actually to start up Fuseki with a path to an empty directory and using the --update option to enable updates. Then go to the Control Panel in the Fuseki web interface and use the Upload File functionality to import the file into your dataset. This will create a bunch of files in your directory, once created you can then take a copy of the directory (when Fuseki is not running) in order to back it up or move it around as desired. Hope this helps, Rob On 11/1/12 11:26 AM, "Kim, Soonho (IFPRI)" <[email protected]> wrote: >Dear Andy; > > > >Thanks for your answers and pointing the mailing list archives as well. > > > >>What's "ghi.tdb"? > >My dataset was stored in the flat file --> >http://data.ifpri.org/lod/ghi.rdf > >I have read that Fuseki uses the TDB. So, I created a TDB (ghi.tdb) >file from the ghi.rdf file using the TopBraid Composer and put it into >under the "dataDir" directory. > > > >I am using Jena to retrieve the data from ghi.rdf, but I am a kind of >new on the TDB. > >What kind of files should I have to put under "dataDir" directory? > >Is the .tdb file not the right format? > > > >> It's not clear what you are doing. What operation did you perform? > >Visit a URL? Which? > > > >That's a good question. What I would like to do is that I would like to >see the Fuseki main screen, using my dataset "ghi.tdb". That's why I >typed http://50.63.174.75:3030/. > > > >> What was the browser action? > >What did you get? > > > >I ran the Fuseki server again. The browser just keeps retrieving...... >I didn't get any error message. > > > >> Did you copy the jar elsewhere or are you running in the unpacked >>installation directory. > >I am running in the unpacked installation directory. > > > >I am so sorry for asking many questions. However, this email list is >the only channel which I will get answers. > > > >Thanks so much for your support in advance. > > > >Best, > >Soonho > > > >-----Original Message----- >From: Andy Seaborne >[mailto:[email protected]]<mailto:[mailto:andy.seaborne.ap >ach [email protected]]> On Behalf Of Andy Seaborne >Sent: Thursday, November 01, 2012 8:25 AM >To: [email protected]<mailto:[email protected]> >Subject: Re: Fuseki server installation > > > >On 31/10/12 21:30, Kim, Soonho (IFPRI) wrote: > >> Dear all; > >> > >> I would like to ask some favor about Fuseki server installation. > >> > >> I just tested an instance of Fuseki server --> > >> http://50.63.174.75:3030/ I created a data directory as subdirectory > >> "dataDir". I added "ghi.tdb" file into the directory. > >> Then, I ran the server > > > >see > >http://mail-archives.apache.org/mod_mbox/jena-users/201210.mbox/%3CCAAm >nGJ >Pd0Vh48Ca9%3DA1eQ%2BWFBUahJXmcD%2By6ZoAUUPdmZ4OT7w%40mail.gmail.com%3E > > > >which asked you about the setup. > > > >> === > >> [root@ip-50-63-174-75 jena-fuseki-0.2.5]# java -Xmx1200M -jar > >> fuseki-server.jar --loc=dataDir /ghi > >> 14:15:24 INFO Server :: TDB dataset: directory=dataDir > >> 14:15:24 INFO Server :: Dataset path = /ghi > >> 14:15:24 INFO Server :: Fuseki 0.2.5 >>2012-10-20T17:03:29+0100 > >> 14:15:24 INFO Server :: Started 2012/10/25 14:15:24 > >> GMT-07:00 on port 3030 > >> ==== > >> > >> Something was wrong since I didn't get the proper response from the >>server. > > > >What was the browser action? > >What did you get? > > > >http://...:3030/ is a simple plain HTML page from the pages/ directory. > > > >Did you copy the jar elsewhere or are you running in the unpacked >installation directory. > > > >If you copy the jar, and you want the web pages, you need to > > > >Or use --pages on the command line to name another directory. > > > >> > >> Is there any log file to check what was wrong? > > > >that is the fuseki log file (using log4j you can send it to a file) > > > > > > > >> > >> If you find something is wrong, please let me know... It would be a >>great help to a newbie like me. > >> > >> > >> > >> Best, > >> Soonho > >> > >
