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.
- Install Apache Tomcat 6
- Download openrdf-sesame-2.6.3-sdk.tar.gz
- Unzip the file and find two war files (openrdf-sesame.war, openrdf-workbench.war) under "war" folder
- openrdf-sesame.war : Sesame (HTTP) server
Sesame Server provides HTTP access to Sesame repositories and is meant to be accessed by other applications. - openrdf-workbench.war: OpenRDF Workbench
OpenRDF Workbench provides a web interface for querying, updating and exploring the repositories of a Sesame Server
- openrdf-sesame.war : Sesame (HTTP) server
- 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
- 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
- Stop the tomcat server again before you run the NCSA useekM2 index Sail
- 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).
- 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
- Make sure postGIS is installed properly: see reference: http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS
- change the Index.config.xml file to have the right postgis username/password
- start the indexing:
java -cp ".:./*:migrationlib/*:libs/*" edu.illinois.ncsa.iacat.migration.IndexBuilder /datafs1/openrdf/openrdf-sesame/repositories/IACAT