Knowledge Architecture

(This page is on-line at http://www.upriss.org.uk/teaching/kainstr.html.)

Practical 1

Instructions for Installation on private PC

Note: using your own PC is at your own risk. You cannot hold Napier University responsible if your PC or any of your files get damaged or deleted, etc.

If you are unsure about the installation instructions, ask the lecturer for help before clicking on anything.

  • Copy install_protege.exe onto your computer (you'll need 36 MB free disk space). You may also copy toscanaj and conexp onto your computer at the same time. Don't copy the Macintosh directory.
  • Click on install_protege on your computer. If you have sufficient disk space you may choose to install the full version, otherwise choose the basic version.
  • After the installation, Protege should be in your Start Menu/Program files.

    Instructions for Installation in JKCC

    If you are unsure about the installation instructions, ask the lecturer for help before clicking on anything.

  • Open a directory window (eg My Documents). Go to K:\Protege. Click on install_protege. Choose either H:\Protege or H:\ as the destination for your installation (you may need to create a Protege folder first). If you have sufficient disk space you may choose to install the full version, otherwise install the basic version.
  • After the installation, goto the H:\Protege or H:\ and click on "Protege jar executable file".

    Basic exercises using Protege

  • Start Protege; choose the newspaper example.
  • Have a look at the classes and find out which type of Advertisement contains a slot called "image:.
  • Using the slots hierarchy, find out what "image" refers to.
  • Which slots does the class Columnist have that are not inherited from Employee?
  • How many instances of advertisements are there? Does any of the instances actually have an image?
  • Using the predefined queries, which people have a salary larger than 100 000?

    This will only work if the full version was installed:

  • In the top menu, click on Project, then on Configure. Select the TGVizTab.
  • Select classes to add, then click on Create Graph.

    More advanced exercise

    Create a new ontology:
  • Select a topic that you are familiar with and that is fairly simple. Examples: an ontology for the Simpson family (from TV, see here for a diagram); or an ontology of pet animals, or ...
  • Decide which classes, slots and instances you need.
  • Enter the information into Protege.

    Practical 2

    Instructions for Installation

    Copy conexp-1.2.zip from the CD or from K:\Protege onto your harddrive or H:\ drive. Unzip the file. Go into the conexp directory. To start the program click on conexp.bat.

    Basic exercises using Conexp

    Note: of all FCA software Conexp is probably easiest to use, but also has some limits. For example, if you accidentally click the "open new file" button without first saving your current data, then your data will be lost!

  • Start Conexp
  • Enter the context of the animals given in the handout of the lecture notes (Garfield, Socks, ...). It is probably best to first delete the objects and attributes that you don't need (by highlighting and right clicking).
  • After you entered the data, its probably a good idea to save the file. (Be careful NOT to click the "open new file" button at this point.)

  • Click on Build lattice
  • Change the following drawing options:
    Attribs: Show labels,
    Objects: show labels,
    Draw node: fixed radius,
    Node radius: 8

  • Click on "Start Attribute Exploration"
  • Accept all questions except when it asks you whether all cartoon animals are mammals. Enter Donald Duck as a counter example. (Explanation: when it asks you whether "dog, cat, mammal" implies "cartoon, real, tortoise" and so on, you need to click "accept" because no object can be dog and cat at the same time. That means that the premise of this implication is empty and thus always true.)
  • Click on "Context Editor" to see whether Donald has been added.
  • Click on "Lattice Diagram". Click the checkbox on the right next to Donald (or click "Select all objects").
  • Notice how the diagram has now changed.

  • Go back to the Context Editor and add a new object called "Daisy" and give her the attributes "cartoon" and "tortoise".
  • Click on "Build lattice" and see if you can arrange the messy diagram in a more readable fashion.