Difference between revisions of "PrF UG slots value type class"
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== The Class Value Type == | == The Class Value Type == | ||
− | {{PrF_UG_TOC_slots}}<div id='prf_ug'> | + | <noinclude>{{PrF_UG_TOC_slots}}<div id='prf_ug'></noinclude> |
A slot of type <b>Class</b> has classes as values. | A slot of type <b>Class</b> has classes as values. | ||
Specifically, when <b>Class</b> is selected as the value type, | Specifically, when <b>Class</b> is selected as the value type, | ||
you specify one or more <i>allowed superclasses</i>. | you specify one or more <i>allowed superclasses</i>. | ||
− | An instance of this class then has a | + | An instance of this class then |
− | [[PrF_UG_inst_entry_field_class|class entry field]] | + | has a [[PrF_UG_inst_entry_field_class|class entry field]] |
that takes one of these classes or any of their subclasses as the value(s) of the slot. | that takes one of these classes or any of their subclasses as the value(s) of the slot. | ||
Line 27: | Line 27: | ||
The <b>Allowed Superclasses</b> pane will be displayed. | The <b>Allowed Superclasses</b> pane will be displayed. | ||
</p> | </p> | ||
− | <div>[[Image:PrF_UG_slots_allowed_superclass.png| | + | <div>[[Image:PrF_UG_slots_allowed_superclass.png|frame|none| |
+ | Allowed Superclasses pane]]</div> | ||
<li><p> | <li><p> | ||
To add one or more allowed superclasses, click the <b>Add Class</b> | To add one or more allowed superclasses, click the <b>Add Class</b> | ||
− | [[Image:PrF_UG_classes_class.add.gif|classes_class.add]] button. | + | ([[Image:PrF_UG_classes_class.add.gif|classes_class.add]]) button. |
</p> | </p> | ||
Line 43: | Line 44: | ||
will be the listed classes and their subclasses. | will be the listed classes and their subclasses. | ||
</p> | </p> | ||
− | <div>[[Image:PrF_UG_slots_allowed_superclass_all.png| | + | <div>[[Image:PrF_UG_slots_allowed_superclass_all.png|frame|none| |
− | + | Select Classes dialog]]</div> | |
<li><p> | <li><p> | ||
Line 57: | Line 58: | ||
<ol class='a'> | <ol class='a'> | ||
<li><p> | <li><p> | ||
− | Select the classes to remove in the <b>Allowed Superclasses</b> | + | Select the classes to remove in the <b>Allowed Superclasses</b> pane. |
To highlight multiple classes, use the <b>Ctrl</b> (<b>Cmd</b>) key. | To highlight multiple classes, use the <b>Ctrl</b> (<b>Cmd</b>) key. | ||
To highlight a range of classes, use the <b>Shift</b> key. | To highlight a range of classes, use the <b>Shift</b> key. | ||
Line 64: | Line 65: | ||
<li><p> | <li><p> | ||
Click the <b>Remove Class</b> | Click the <b>Remove Class</b> | ||
− | [[Image:PrF_UG_classes_class.remove.gif|classes_class.remove]] button | + | ([[Image:PrF_UG_classes_class.remove.gif|classes_class.remove]]) button |
at the top of the <b>Allowed Superclasses</b> pane. | at the top of the <b>Allowed Superclasses</b> pane. | ||
</p> | </p> | ||
Line 92: | Line 93: | ||
</ul> | </ul> | ||
− | <div>[[Image:PrF_UG_slots_value_type_class.png| | + | <div>[[Image:PrF_UG_slots_value_type_class.png|frame|none| |
+ | Slot Editor]]</div> | ||
When a user creates an instance for <b>Winery</b>, | When a user creates an instance for <b>Winery</b>, | ||
the entry field corresponding to the <i>location</i> slot | the entry field corresponding to the <i>location</i> slot | ||
− | is a [[PrF_UG_inst_entry_field_class|Class Entry | + | is a [[PrF_UG_inst_entry_field_class|Class Entry field]]. |
A user can choose the region from the list of classes subordinate to | A user can choose the region from the list of classes subordinate to | ||
and including <b>Wine region</b>. | and including <b>Wine region</b>. | ||
− | <div>[[Image:PrF_UG_slots_select_class_winery_region.png| | + | <div>[[Image:PrF_UG_slots_select_class_winery_region.png|frame|none| |
+ | Select Class dialog, "Wine region" selected]]</div> | ||
− | <div>[[Image:PrF_UG_slots_value_type_class_example.png| | + | <div>[[Image:PrF_UG_slots_value_type_class_example.png|frame|none| |
+ | Instance Editor]]</div> | ||
− | </div> | + | |
+ | <noinclude></div></noinclude> |
Latest revision as of 18:54, November 13, 2008
The Class Value Type
A slot of type Class has classes as values. Specifically, when Class is selected as the value type, you specify one or more allowed superclasses. An instance of this class then has a class entry field that takes one of these classes or any of their subclasses as the value(s) of the slot.
Setting the Value Type to Class
To set the value type of a slot to Class:
Create the slot, or view the Slot Editor for an existing slot.
Select Class from the Value Type menu. The Allowed Superclasses pane will be displayed.
To add one or more allowed superclasses, click the Add Class () button.
Select the classes you want as allowed superclasses in the Select Classes dialog box. To select multiple classes, use the Ctrl (Cmd) key; to select a range, use the Shift key. When an instance is created, the only values that can appear in the entry field corresponding to this slot will be the listed classes and their subclasses.
Click OK.
Removing an Allowed Superclass
To remove a class from the list of allowed superclasses for a slot of type Class:
Select the classes to remove in the Allowed Superclasses pane. To highlight multiple classes, use the Ctrl (Cmd) key. To highlight a range of classes, use the Shift key.
Click the Remove Class () button at the top of the Allowed Superclasses pane.
Example
For example, the Wines project is a knowledge base which includes, among other information:
the class Winery, which has wineries as instances
the class Wine region, which has a subclass hierarchy of regions. For example, Wine region has the subclass French region, which in turn has subclasses such as Bordeaux region and Loire region.
The slot location, which is of type Class, with Wine Region as the Allowed Superclasses. location is attached to the Winery class.
When a user creates an instance for Winery, the entry field corresponding to the location slot is a Class Entry field. A user can choose the region from the list of classes subordinate to and including Wine region.