This page contains the documents about installations and deployment of semantic geostreaming toolkit.

Step 1: Sesame HTTP Server and Workbench

Reference: http://www.openrdf.org/doc/sesame2/users/ch06.html

For this installation, Apache Tomcat 6 is used.

  1. Install Apache Tomcat 6
  2. Download openrdf-sesame-2.6.3-sdk.tar.gz
  3. Unzip the file and find two war files (openrdf-sesame.war, openrdf-workbench.war) under "war" folder
    1. openrdf-sesame.war : Sesame (HTTP) server
      Sesame Server provides HTTP access to Sesame repositories and is meant to be accessed by other applications.
    2. openrdf-workbench.war: OpenRDF Workbench
      OpenRDF Workbench provides a web interface for querying, updating and exploring the repositories of a Sesame Server
  4. Deploy two war files to Tomcat 6 (please refer to Tomcat 6 manual for deployment

HTTP protocol document: http://www.openrdf.org/doc/sesame2/system/ch08.html

Step 2: Create a New Native Java Store

  1. Add the repository path to JAVA_OPTS or CATALINA_OPTS:
-Dinfo.aduna.platform.appdata.basedir=/datafs1/openrdf

     2. Change the ownership of this directory to be “tomcat” or the account that starts the tomcat server

chmod -Rf tomcat /datafs1/openrdf

    3. Start tomcat server

sudo /etc/init.d/tomcat6 start

    4. A new directory “openrdf-sesame” will be automatically created under /datafs1/openrdf

   5. Open the web browser and create the IACAT RDF store as follows:

 

Note:  spoc,posc,ospc (the last element needs to be manually added with a comma “, “before it )

You should then click "Create". And then restart tomcat again.

click “Query”under workbench and it will initialize the rdf repository.

Step 3: Change the Data Store type to include NCSA uSeekM2 indexSail Type

  1. Stop the tomcat server again before you run the NCSA useekM2 index Sail
  2. Deployment folder should have all the files for this step (this is the uSeekM2-with-dependencies.zip. You can get it by running the build file from USeekM2 source code tree).
  3. Run the useekm sail type modifier to make change:
 cd deployment
 sudo /etc/init.d/tomcat6 stop
 sudo java -cp "*:migrationlib/*" com.useekm.indexing.sail.SailTypeModifier /datafs1/openrdf/openrdf-sesame/ IACAT
 sudo /etc/init.d/tomcat6 start
 

Step 4: Copy Dependency jars to openrdf-sesame Webapps

 $ sudo cp /datafs1/openrdf/deployment/libs/* /datafs1/portal/apache-tomcat-6.0.26/webapps/openrdf-sesame/WEB-INF/lib
 $ sudo cp /datafs1/openrdf/deployment/useekm2.jar /datafs1/portal/apache-tomcat-6.0.26/webapps/openrdf-sesame/WEB-INF/lib
 $ sudo cp /datafs1/openrdf/deployment/index.cfg.xml /datafs1/portal/apache-tomcat-6.0.26/webapps/openrdf-sesame/WEB-INF/classes

Restart the tomcat server again.

Step 5: Copy existing rdf repository data (optional)

$ sudo cp /d atafs1/openrdf/repo2/* /datafs1/openrdf/openrdf-sesame/repositories/IACAT/

Step 6: Reindex/restore the index database in PostGIS

  1. Make sure postGIS is installed properly: see reference: http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS
  2. change the Index.config.xml file to have the right postgis username/password
  3. start the indexing:
java -cp ".:./*:migrationlib/*:libs/*" edu.illinois.ncsa.iacat.migration.IndexBuilder /datafs1/openrdf/openrdf-sesame/repositories/IACAT