Databases in the Internet – Exercises

David Billard – University of Geneva, Switzerland

 

Thema: Using the Araneus software package (University of Roma 3, Italy) to create a web site from a relational database

 

We will use a pre-filled database created with MS Access. This database « department » is in the directory « AraneusWSDS\sites\database\ ».

It is a very simple relational database, with 4 tables:

The database contains some records.

The goal of the exercise is :

    1. Registering the database in ODBC (Open Database Connectivity)

This step is necessary for Araneus to connect to the database

  1. Select Start Menu -> ODBC -> User DNS
  2. Select MS Access 97 Database
  3. Select Configure
  4. Data Source Name : Department
  5. Description : Department Database
  6. Select Select
  7. Choose the database « Program Files\Araneus\AraneusWSDS\sites\database\department »
  8. Click OK

    1. Using the Araneus Shell
    2. The Araneus software is shell-based (you must type the commands inside a window, and they will be executed once at a time).

      You must run the shell inside a MSDos window using

      shell select sites\dept1\dept.pl

      (in the Program Files\Araneus\AraneusWSDS directory)

      This file is the description of your web site, in a textual form (look at the LIST-OF and LINK-TO keywords).

      Then you must select the kind of output (HTML or XML)

      shell format html

    3. Template Creation
    4. From the PL file (description of the web site) and the STY file (style of presentation), generation of a set of page templates :

      shell tpl

      The templates are stored in a folder named TelemacoTemplates.

      The TPL files can be modified, to change the layout of the pages.

    5. Page style generation
    6. From the TPL files, generates the final page styles (ATS) :

      shell sty

    7. Site generation
    8. From the page styles and the database, using the ODBC, generates the web site :

      shell generate

      The web site is created.

    9. Modifications

You can take examples at: http://www.dia.uniroma3.it/Araneus/