Difference between revisions of "PrF UG slots value type instance"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 8: Line 8:
 
when <b>Instance</b> is selected as the value type,
 
when <b>Instance</b> is selected as the value type,
 
you specify one or more <i>allowed classes</i>.
 
you specify one or more <i>allowed classes</i>.
An instance of the class with this slot then takes instances of the allowed classes or of their subclasses as the value(s) of the slot.
+
An instance of the class with this slot
This topic covers:
+
then takes instances of the allowed classes or of their subclasses
 
+
as the value(s) of the slot.
<ul class='a'>
 
  <li><p>
 
    [[#Setting_the_Value_Type_to_Instance|setting the value type to Instance]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Removing_an_Allowed_Class|removing an allowed class]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Example|example]]
 
    </p>
 
</ul>
 
  
 
=== Setting the Value Type to Instance ===
 
=== Setting the Value Type to Instance ===
Line 31: Line 18:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     [[PrF_UG_slots_create_slot|Create]]
+
     [[PrF_UG_slots_create_slot|Create]] the slot,
    the slot,
+
     or [[PrF_UG_slots_editing_a_slot|view]]
     or
+
     the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_editing_a_slot|view]]
 
     the
 
    [[PrF_UG_slots_slot_editor|Slot Editor]]
 
 
     for an existing slot.
 
     for an existing slot.
 
     </p>
 
     </p>
Line 55: Line 39:
  
 
   <li><p>
 
   <li><p>
     Select the classes you want as allowed classes in the <b>Select Classes</b> dialog box.
+
     Select the classes you want as allowed classes
 +
    in the <b>Select Classes</b> dialog box.
 
     To select multiple classes,
 
     To select multiple classes,
 
     use the <b>Ctrl</b> (<b>Cmd</b>) key;
 
     use the <b>Ctrl</b> (<b>Cmd</b>) key;
Line 92: Line 77:
  
 
In the Newspaper example,
 
In the Newspaper example,
the slot <b>responsible_for</b> in the class <b>Editor</b> takes instances of the class <b>Employee</b> as values.
+
the slot <b>responsible_for</b> in the class <b>Editor</b>
 +
takes instances of the class <b>Employee</b> as values.
  
 
<div>[[Image:PrF_UG_slots_value_type_instance.png|slots_value_type_instance]]</div>
 
<div>[[Image:PrF_UG_slots_value_type_instance.png|slots_value_type_instance]]</div>
  
The instance <b>Chief_Honcho</b> is responsible for two instances which are descended from <b>Employee</b>:
+
The instance <b>Chief_Honcho</b> is responsible for two instances
<b>Sports Nut</b>,
+
which are descended from <b>Employee</b>:
and <b>Ms Gardiner</b>.
+
<b>Sports Nut</b> and <b>Ms Gardiner</b>.
  
 
<div>[[Image:PrF_UG_slots_value_type_instance_example.png|slots_value_type_instance_example]]</div>
 
<div>[[Image:PrF_UG_slots_value_type_instance_example.png|slots_value_type_instance_example]]</div>
  
 
</div>
 
</div>

Revision as of 17:28, October 14, 2008

The Instance Value Type


Protege-Frames User's Guide
Slots
The Slots Tab
The Slot Browser
The Slot Buttons
The Slot Menu
The Slot Editor
The Value Type Menu
The Any Value Type
The Boolean Value Type
The Class Value Type
The Float Value Type
The Instance Value Type
The Integer Value Type
The String Value Type
The Symbol Value Type
Creating a New Slot
Viewing a Slot
Editing a Top-Level Slot
Overriding Slot Properties at a Class
Editing Slot Properties
Removing a Slot from a Class
Deleting a Slot from the Project
Adding a Slot to a Class
Removing Overrides From a Slot
Understanding Inverse Slots
Creating an Inverse Slot Relationship
Working with Subslots
Finding a Slot
The Slot Hierarchy Window
The Slot Icons
The Superslots Pane
Glossary, Editing Help

A slot of type Instance has instances as values. More specifically, when Instance is selected as the value type, you specify one or more allowed classes. An instance of the class with this slot then takes instances of the allowed classes or of their subclasses as the value(s) of the slot.

Setting the Value Type to Instance

To set the value type of a slot to Instance:

  1. Create the slot, or view the Slot Editor for an existing slot.

  2. Select Instance from the Value Type menu. The Allowed Classes pane will be displayed.

    slots_value_type_instance

  3. To add one or more allowed classes, click the Add Class button classes_class.add.

  4. Select the classes you want as allowed classes in the Select Classes dialog box. To select multiple classes, use the Ctrl (Cmd) key; to select a range, use the Shift key.

    classes_classes_select

  5. Click OK.

Removing an Allowed Class

To remove a class from the list of allowed classes for a slot of type Integer:

  1. Select the classes to remove. To highlight multiple classes, use the Ctrl (Cmd) key. To highlight a range of classes, use the Shift key.

  2. Click the Remove Class classes_class.remove button at the top of the Allowed Classes pane.

Example

In the Newspaper example, the slot responsible_for in the class Editor takes instances of the class Employee as values.

slots_value_type_instance

The instance Chief_Honcho is responsible for two instances which are descended from Employee: Sports Nut and Ms Gardiner.

slots_value_type_instance_example