Skip to content
Quintin Siebers edited this page Jun 18, 2015 · 1 revision

Introduction

The Stormberg-Ontopia Webapp project is a small demo project which shows the bare minimum of configuration required to make a working web application, using Topic Maps, Ontopia, JSP's and Maven.

The basis behind the Topic Map and Web frontend is screenscraping some of the product catalogue and navigation from a clothing retailer's web page. And the end result consists of 3 jsp pages: Product listing, single product page and related products.

To convert the project into your own; replace the .xtm file and change the Tolog queries to match your Topic Map.

Running demo

The project is easy to run on Google App Engine. Check out the running demo on http://ontopia-stormberg.appspot.com

The HOWTO

  1. Download and unzip Maven, then create a short link to apache-maven/lib/mvn.bat/.sh
  2. Check out the Ontopia-Stormberg-Webapp source code from Subversion. In a console from the project folder, write mvn clean install This should download all the necessary files, compile the project, run tests and create the .war file for distribution
  3. mvn jetty:run - starts up a web container and you can run the project directly in a Web browser.

The Google App Engine HOWTO

  1. Grab a Google App Engine account (at http://appengine.google.com). Create a new application on it. Call it hello-ontopia
  2. Download and unzip GAE Java SDK
  3. Check out the Ontopia Stormberg demo webapp and adjust as preferred (located at http://ontopia.googlecode.com/svn/sandbox/ontopia-stormberg-demowebapp )
  4. Add the file ontopia-stormberg-demowebapp/src/main/webapp/WEB-INF/appengine-web.xml containing something similar to
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>hello-ontopia</application>
  <version>1</version>
  <sessions-enabled>true</sessions-enabled>
</appengine-web-app>
  1. Run mvn clean install
  2. Run appcfg.sh update target/ontopia-stormberg-something-something

Clone this wiki locally