README_FOR_APP

Path: doc/README_FOR_APP
Last Update: Mon Oct 19 13:41:58 +0200 2009

WebAnt

OWLlink on Rails Demonstrator (www.owllink.org)

Copyright (C) 2009 by Marko Luther

Requirements

  • Ruby on Rails 2.1.2
  • A database:
    • MySQL (tested with MySQL 5)
    • PostgreSQL
    • SQLite (tested with SQLite 3)

Installation

  1. Check your Rails Version

    # rails -v

    Rails 2.3.4

  2. Upgrade your Rails Installation (if needed)
      # sudo gem update --system
    
      # sudo gem update rails
    
      # sudo gem update rake
    
      # sudo gem update sqlite3-ruby
    
  3. Download and extract the WebAnt archive
      # tar xzf WebAnt.tar.gz
    
      # cd WebAnt
    
  4. Configure database parameters in config/database.yml (default database is SQLite)
  5. Start the OWLlink server

    e.g. for RacerPro

      # RacerPro -- -protocol owllink1
    
  6. Configure the OWLlink server URL config/application.yml
  7. Start the Web server
      # script/server
    

Once WEBrick has started, point your browser to localhost:3000. You should now see the WebAnt start page.

To initialize WebAnt (ie., clear all sessions and reset the DB) run

  # script/reset

SOURCE

lib/owllink.rb

  OWLlink module that provides utility functions to generate OWLlink messages and
  an abstraction to the session based server class

lib/situation-owllink.xml

  The OWL axioms send on "Initialize" within a OWLlink Tell statement assuming

app/views/layout/application.html.erb

  The main application layout template

app/controllers/owllink_controller.rb

  Main controller that handles the UI actions

app/controllers/situations_controller.rb

  Controller that handles the "type" action within the Situations view

[Validate]