-
Notifications
You must be signed in to change notification settings - Fork 1
StormbergSampleApp
Quintin Siebers edited this page Jun 18, 2015
·
1 revision
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.
The project is easy to run on Google App Engine. Check out the running demo on http://ontopia-stormberg.appspot.com
- Download and unzip Maven, then create a short link to
apache-maven/lib/mvn.bat/.sh - Check out the Ontopia-Stormberg-Webapp source code from Subversion. In a console from the project folder, write
mvn clean installThis should download all the necessary files, compile the project, run tests and create the.warfile for distribution -
mvn jetty:run- starts up a web container and you can run the project directly in a Web browser.
- Grab a Google App Engine account (at http://appengine.google.com). Create a new application on it. Call it hello-ontopia
- Download and unzip GAE Java SDK
- Check out the Ontopia Stormberg demo webapp and adjust as preferred (located at http://ontopia.googlecode.com/svn/sandbox/ontopia-stormberg-demowebapp )
- Add the file
ontopia-stormberg-demowebapp/src/main/webapp/WEB-INF/appengine-web.xmlcontaining 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>
- Run
mvn clean install - Run
appcfg.sh update target/ontopia-stormberg-something-something