This section introduces the tool you will use during the course: RAP3. This tool stores Ampersand-scripts in which you can specify, analyze and build information systems. It runs in the cloud, so all you need is a browser and click here to start using it.

Identifying yourself

RAP3 keeps your work together under a student number. So you have to log in in the system under your own student number. The first time you have to register and leave your e-mail.


RAP3 is under development. You can expect to find teething problems (kinderziektes) in the software. Please notify us by making an issue in our issue registration system. This way you can help improve Ampersand's tooling, for which the Ampersand-team is very grateful.

Making your first Ampersand script

When you click on the blue plus-sign on the right side in the menu bar in your screen, you get to make a new script. It opens an editor screen in which you can type your very first Ampersand script.


  • Copy the script from the first page of this tutorial, paste the script in the editor and click on the big blue button "beware to save your work before leaving the editer field!". The script is now saved in RAP3.
  • Next, checkbox "compile" and click on the orange "Save" button in top of the screen. The script is now compiled. When this is done the compiler message below the checkbox should read "Finished processing your model". And four bluw buttons should be visible below that.
  • Try out the buttons: click a button and then again on the orange "save" button. During the remainder of this course you will compile and run your own scripts in this way, so it pays to familiarize yourself with it.
  • Let's add the possibility to register teachers in this system. The interface code needs to be at the end, other information can be added anywhere above that:

    • Define a new concept with the keyword CONCEPT: CONCEPT Teacherwith a short description.
    • Define the relation between Module and Teacher with the keyword RELATION:
      RELATION providedBy[Module*Teacher]
      MEANING "A module is provided by a teacher"

    • You can define an initial set of teachers and relate them to a module following the examples already available in the script. But you can also add the data later using the prototype. Adding initial data in the script is a lot of work. There is another method, using spreadsheets. This is the next topic in this tutorial.

    • Add an interface for the teachers in the tab for Modules, right above the line for "Course":
      , "Teacher" : providedBy CRUD

    • Save, compile, create protype, reinstall database and see the result.

    • Note that we have not defined any rules about teachers, so anything you fill in, is OK for this system.

  • Try to understand what you see in the script by making other changes to the program. Compile and run your changes, to learn by doing. Try for instance to create a new course with modules and teachers. Demonstrate your changes to your peers and discuss the results.

What have you learned?

After finishing your assignment, you have learned:

  • how to use RAP3 to write, save and compile code.
  • the first basic keywords of Ampersand script and their effect on the prototype.

results matching ""

    No results matching ""