The online help in Protege 3.1.1 has not been updated to match the program. In particular, the terminology and screen appearance do not match. This page is a stopgap solution, containing revised text for the tutorial. Each section of this page begins with a link to the corresponding page in the tutorial.    (4SJ)

http://protege.stanford.edu/doc/tutorial/get_started/create_proj.html    (4NI)

Creating the Sample Project    (4NJ)

First, you must create a new project in Protégé format.    (4NK)

To create the sample project when you start Protégé:    (4NL)

A "Create New Project" dialog will open, allowing you to choose a Project Type. Unless you have a need for a special format for your files, just click "Finish" to accept the default: "Protege Files (.pont and pins)".    (4NO)

You are now ready to save and name your Protégé project.    (4NS)

http://protege.stanford.edu/doc/tutorial/get_started/save_proj.html    (4NT)

Saving the Sample Project    (4NU)

Although the tutorial is not very long, you may find that you want to exit the project before you have finished. If you save and name it now, you will be ready to exit whenever is convenient.    (4NV)

To save the project:    (4NW)

Note: You can also choose a location by typing the full path name in the Project line of the Protege Files dialog. The names of the other files will be filled in automatically.    (4O2)

http://protege.stanford.edu/doc/tutorial/get_started/create_class.html    (4O3)

Creating and Naming Classes    (4O4)

Once you have created the project, the first thing you need to do to start constructing your ontology is to add some classes and subclasses. In this section, you will:    (4O5)

Creating the Author Class    (4O7)

First, we will create a new class called Author. An Author is any possible source of an article, such as a news service or columnist. To create the Author class:    (4O8)

Almost all the classes you create will be created subordinate to :THING. SYSTEM_CLASS is used by Protégé for defining the structure of various Protégé forms.    (4OB)

A class is created with a generic name based on the name of the project, such as tutorial_Class_0. You can see the name in the Class Hierarchy area. The class is highlighted to show that it is selected.    (4OD)

If you have trouble renaming the class, look at the CLASS EDITOR pane at the right of the Protégé window. The generic name of the class you just created should be displayed in the Name field and highlighted. If the correct generic name is displayed, but not highlighted, simply double-click in the Name field to edit the name. If the incorrect name is displayed, then the wrong class is selected in the Class Hierarchy area. Click on the class you want to rename.    (4OG)

Creating Subclasses of Author    (4OH)

Now we want to create some subclasses of Author:    (4OI)

Notice that when you create the first subclass of a class, a ">" or "v" icon appears to its left. You can use this icon to display or hide the subclasses of a class.    (4OM)

To create another subclass of Author:    (4ON)

Creating the Person Class    (4OR)

Now we want to create another class, called Person. A Person is any individual, whether or not they are an Author.    (4OS)

Creating a Subclass of Person    (4OW)

Now create a subclass of Person, Employee:    (4OX)

Creating a Subclass of a Subclass    (4P1)

We are now ready to create some subclasses of Employee. First, let us create an employee type who is not an Author:    (4P2)

Adding an Additional Superclass to an Existing Class    (4P6)

We also want a Columnist to be an Employee. Since we have already created the Columnist class, we do not create it again. Instead, make the existing Columnist class a subclass of Employee:    (4P7)

A Select Classes dialog box displays the class hierarchy that you have developed so far.    (4PA)

Columnist now appears in two places in the Class Hierarchy area: once under Author and again under Employee. These superclasses are listed in the Superclasses area.    (4PE)

You can also add a superclass using drag and drop:    (4PF)

If Editor appears under Person, you did not hold down the Ctrl key long enough while dropping. Delete the superclass by clicking on the Remove Superclass button (at the top of the Superclasses area) while Person is highlighted, then try again.    (4PJ)

You have now created several classes and given two classes multiple superclasses. You are now ready to assign some attributes to the classes you have created, by creating slots. This is covered in the next section.    (4PK)

http://protege.stanford.edu/doc/tutorial/get_started/create_slot.html    (4PL)

Creating and Naming Slots    (4PM)

You now have several classes in your project. You can assign attributes to these classes by creating slots. In this section you will:    (4PN)

To create a slot for the class Author:    (4PP)

Q: Then why isn't this one named "by_name"?    (4PU)

The blue slot icon indicates that the slot is "direct"; that is, it was created directly on the selected class. You can edit a direct slot by double-clicking on it to open the Slot Form dialog.    (4PW)

We will now create two slots for the Person class. To create a string slot for Person:    (4PX)

To create the next slot, which will be of Type Float:    (4Q2)

A Float is a floating point number (e.g., 3.14). Values that are entered for this slot must be valid floating point numbers.    (4Q7)

Slots and Inheritance    (4QA)

The slots you create for a class are inherited by all their classes. To see this, click on Salesperson. You will see the slots you created for Person. Notice that the slot icons are now parenthesized, to indicate that these slots are inherited.    (4QB)

Now, click on Columnist. You see that Columnist inherits slots from both Person (via Employee) and Author. This multiple inheritance is an essential part of Protégé.    (4QC)

You have now created some simple slots. This is all you need to enter some instances and begin creating your knowledge base.    (4QD)

http://protege.stanford.edu/doc/tutorial/get_started/enter_instance.html    (4QE)

Entering Instances    (4QF)

Instances are the actual data in your knowledge base. In general, it is a good idea to make sure you have structured your project as well as you can before entering extensive instances. If you have to make changes to your class or slot structure after instances have been entered, you may lose some information. In addition, if you add slots, you will not have that information for your new instances.    (4QG)

In this section, you will enter two instances for the Editor class.    (4QH)

To enter an instance for Editor:    (4QI)

Q: How do I "finish" entering the instance (aside from clicking on another class?    (4QP)

To create another instance:    (4QR)

You have now learned to create instances. However, the default form can be difficult to deal with. Most obviously, the names you see in the INSTANCE BROWSER pane are extremely unilluminating. In addition, no Editors have bynames, so the Byname field is not useful in this particular form. The next section shows how to edit forms.    (4QV)

http://protege.stanford.edu/doc/tutorial/get_started/custom_form.html    (4QW)

Customizing a Form    (4QX)

Forms determine how your instance information is presented and entered. By changing a form, you can:    (4QY)

Changing the Browser Key    (4R0)

The browser key is the slot that is used to identify the different instances when they are displayed in a list. If you do not select a slot to use as a browser key, Protégé uses a default key, <inherit>, such as newspaper_0017. It is usually helpful to set a browser key for all classes that will contain instances. In fact, you may choose to set the browser key before you even start entering instances.    (4R1)

To set the browser key for the Editor slot:    (4R2)

Now return to the Forms Tab to continue customizing the Editor form.    (4R7)

Hiding a Field    (4R8)

To hide the Byname field:    (4R9)

Q: How do I get it back?    (4RD)

Repositioning Fields    (4RE)

If you no longer like the layout of the form, you can reposition a field by dragging it to a new position:    (4RF)

You can also resize a selected form by dragging the edges, just like any window.    (4RI)

When you have a lot of fields, and you have deleted or resized several of them, it can be time-consuming to move all the fields by hand. Protégé provides a short-cut to rearrange all the visible fields on a form into a standard order, accommodating their current size. You can then use this as a basis to further customize the form.    (4RJ)

To have Protégé arrange the fields for you:    (4RK)

Congratulations. You have now created a simple project with Protégé. You can now explore the program on your own, using it to represent your own ontology. For more information about the capabilities of Protégé, see the Protege Documentation Home Page.    (4RN)

http://protege.stanford.edu/doc/tutorial/get_started/create_query.html    (4RO)

Creating and Saving a Query    (4RP)

The Queries tab allows you to query your project and locate all instances that match criteria you specify. To create a query, you must select one or more classes, and one or more slots within that class. You can also save queries in the Query Library for future recall.    (4RQ)

In this section, you will:    (4RR)

Creating a Query    (4RT)

Suppose you are interested in locating every Employee whose salary is greater than $40,000 dollars a year. To create the query:    (4RU)

Employee is now displayed in the Class entry bar.    (4RY)

Running the Query    (4S2)

Now that you have set up your query, you can run it and view the results.    (4S3)

You can double-click on any instance (in the Search Results pane) to view details.    (4S6)

Saving the Query    (4S7)

You can save any query before or after you run it. To save the query in the Query Library:    (4S8)

Retrieving the Query    (4SC)

To retrieve a saved query, you can select it from the Query Library. To do this:    (4SD)