Difference between revisions of "PrF UG classes edit template slots"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Editing Template Slots ==
 
== Editing Template Slots ==
  
{{PrF_UG_TOC_classes}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_classes}}<div id='prf_ug'></noinclude>
  
The
+
The [[PrF_UG_classes_template_slot_pane|Template Slots pane]]
[[PrF_UG_classes_template_slot_pane|Template Slots pane]]
+
in the [[PrF_UG_classes_class_editor|Class Editor]]
in the
+
allows you to add, clear, create, edit, override, and remove slots.
[[PrF_UG_classes_class_editor|Class Editor]]
 
allows you to:
 
 
 
<ul class='a'>
 
  <li><p>
 
    [[#Editing_a_Top-level_Slot|edit a slot at the top level]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Overriding_a_Slot_at_a_Class|override a slot at the current class]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Creating_a_New_Slot|create a new slot]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Clearing_Slot_Overrides|clear slot overrides]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Adding_an_Existing_Slot_to_a_Class|add a slot to the current class]]
 
    </p>
 
 
 
  <li><p>
 
    [[#Removing_a_Slot|remove a slot from the current class]]
 
    </p>
 
</ul>
 
  
 
=== Editing a Top-level Slot ===
 
=== Editing a Top-level Slot ===
Line 42: Line 14:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     Highlight the slot name in the
+
     Highlight the slot name
    [[PrF_UG_classes_template_slot_pane|Template Slots]]
+
    in the [[PrF_UG_classes_template_slot_pane|Template Slots]] pane.
    pane.
 
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
 
     Click the <b>View Top-level Slot</b>
 
     Click the <b>View Top-level Slot</b>
     [[Image:PrF_UG_slots_slot.view_top_level.gif|slots_slot.view_top_level]]
+
     ([[Image:PrF_UG_slots_slot.view_top_level.gif|
    button at the top right of the pane.
+
      slots_slot.view_top_level]]) button at the top right of the pane.
     The
+
     The [[PrF_UG_slots_slot_editor|Slot Editor]] will be displayed.
    [[PrF_UG_slots_slot_editor|Slot Editor]]
 
    will be displayed.
 
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     Use the
+
     Use the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
+
     to edit slot properties
     to edit slot properties such as <b>Name</b>,
+
    such as <b>Name</b>, <b>Type</b>, and <b>Cardinality</b>,
    <b>Type</b>,
 
    and <b>Cardinality</b>,
 
 
     and to add notes.
 
     and to add notes.
     See
+
     See [[PrF_UG_slots_editing_a_slot|Viewing a Slot]]
    [[PrF_UG_slots_editing_a_slot|Viewing a Slot]]
 
 
     for more information on how to edit a slot.
 
     for more information on how to edit a slot.
 
     </p>
 
     </p>
Line 75: Line 41:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     Highlight the slot name in the
+
     Highlight the slot name
    [[PrF_UG_classes_template_slot_pane|Template Slots]]
+
    in the [[PrF_UG_classes_template_slot_pane|Template Slots]] pane.
    pane.
 
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
 
     Click the <b>View Slot Overrides</b>
 
     Click the <b>View Slot Overrides</b>
     [[Image:PrF_UG_slots_slot.view_overrides.gif|slots_slot.view_overrides]]
+
     ([[Image:PrF_UG_slots_slot.view_overrides.gif|
    button at the top right of the pane.
+
      slots_slot.view_overrides]]) button at the top right of the pane.
     The
+
     The [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
 
 
     will be displayed.
 
     will be displayed.
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     Use the
+
     Use the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
+
     to edit slot properties
     to edit slot properties such as <b>Name</b>,
+
    such as <b>Name</b>, <b>Type</b>, and <b>Cardinality</b>,
    <b>Type</b>,
 
    and <b>Cardinality</b>,
 
 
     and to add notes.
 
     and to add notes.
     See
+
     See [[PrF_UG_slots_editing_a_slot|Viewing a Slot]]
    [[PrF_UG_slots_editing_a_slot|Viewing a Slot]]
+
     and [[PrF_UG_slots_override_slot|Overriding Slot Properties at a Class]]
     and
 
    [[PrF_UG_slots_override_slot|Overriding Slot Properties at a Class]]
 
 
     for more information.
 
     for more information.
 
     </p>
 
     </p>
Line 105: Line 65:
  
 
Your class can have slots that were inherited
 
Your class can have slots that were inherited
<div>[[Image:PrF_UG_slots_slot.inherited.gif|slots_slot.inherited]]</div>
+
([[Image:PrF_UG_slots_slot.inherited.gif|slots_slot.inherited]])
 
from a superclass.
 
from a superclass.
 
If the slot is inherited,
 
If the slot is inherited,
 
there are limitations on the edits that can be performed.
 
there are limitations on the edits that can be performed.
Direct slots,
+
Direct slots, which were created or added at the level of the slot,
which were created or added at the level of the slot,
 
 
have no editing restrictions.
 
have no editing restrictions.
  
 
If you edit a slot at the class level,
 
If you edit a slot at the class level,
 
the slot is displayed with an override
 
the slot is displayed with an override
<div>[[Image:PrF_UG_slots_slot.overridden.gif|slots_slot.overridden]]</div>
+
([[Image:PrF_UG_slots_slot.overridden.gif|slots_slot.overridden]]) icon.
icon.
 
  
 
=== Creating a New Slot ===
 
=== Creating a New Slot ===
Line 129: Line 87:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Create Slot</b>
 
     Click the <b>Create Slot</b>
     [[Image:PrF_UG_slots_slot.create.gif|slots_slot.create]]
+
     ([[Image:PrF_UG_slots_slot.create.gif|slots_slot.create]]) button
     button at the top right of the pane.
+
     at the top right of the pane.
     The
+
     The [[PrF_UG_slots_slot_editor|Slot Editor]] will be displayed.
    [[PrF_UG_slots_slot_editor|Slot Editor]]
 
    will be displayed.
 
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     Use the
+
     Use the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
+
     to edit slot properties
     to edit slot properties such as <b>Name</b>,
+
    such as <b>Name</b>, <b>Type</b>, and <b>Cardinality</b>,
    <b>Type</b>,
 
    and <b>Cardinality</b>,
 
 
     and to add notes.
 
     and to add notes.
     See
+
     See [[PrF_UG_slots_create_slot|Creating a Slot]]
    [[PrF_UG_slots_create_slot|Creating a Slot]]
 
 
     for more information on how to create a slot.
 
     for more information on how to create a slot.
 
     </p>
 
     </p>
 
</ol>
 
</ol>
  
A direct slot is displayed with a blue
+
A direct slot is displayed
<div>[[Image:PrF_UG_slots_slot.gif|slots_slot]]</div>
+
with a blue ([[Image:PrF_UG_slots_slot.gif|slots_slot]]) icon.
icon.
 
  
 
=== Clearing Slot Overrides ===
 
=== Clearing Slot Overrides ===
Line 160: Line 112:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     Highlight the slot name in the
+
     Highlight the slot name
    [[PrF_UG_classes_template_slot_pane|Template Slots]]
+
    in the [[PrF_UG_classes_template_slot_pane|Template Slots]] pane.
    pane.
 
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
 
     Click the <b>Remove Slot Overrides</b>
 
     Click the <b>Remove Slot Overrides</b>
     [[Image:PrF_UG_slots_slot.remove_overrides.gif|slots_slot.remove_overrides]]
+
     ([[Image:PrF_UG_slots_slot.remove_overrides.gif|
    button at the top right of the pane.
+
      slots_slot.remove_overrides]]) button at the top right of the pane.
     Any changes you made at the class level are removed and the top-level definition of the slot is used.
+
     Any changes you made at the class level are removed
     See
+
    and the top-level definition of the slot is used.
    [[PrF_UG_slots_remove_slot_overrides|Removing Overrides From a Slot]]
+
     See [[PrF_UG_slots_remove_slot_overrides|Removing Overrides From a Slot]]
 
     for more information.
 
     for more information.
 
     </p>
 
     </p>
Line 195: Line 146:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Add Slot</b>
 
     Click the <b>Add Slot</b>
     [[Image:PrF_UG_slots_slot.add.gif|slots_slot.add]]
+
     ([[Image:PrF_UG_slots_slot.add.gif|slots_slot.add]]) button
     button at the top right of the pane.
+
     at the top right of the pane.
     The <b>Select Slots</b> dialog box displays all the slots that you can add to the class.
+
     The <b>Select Slots</b> dialog box displays all the slots
 +
    that you can add to the class.
 
     </p>
 
     </p>
  
Line 210: Line 162:
  
 
The new slot is added to the <b>Template Slots</b> pane.
 
The new slot is added to the <b>Template Slots</b> pane.
It is a directly-attached slot and is displayed with a blue
+
It is a directly-attached slot and is displayed
<div>[[Image:PrF_UG_slots_slot.gif|slots_slot]]</div>
+
with a blue ([[Image:PrF_UG_slots_slot.gif|slots_slot]]) icon.
icon.
 
 
You do not need to name the slot;
 
You do not need to name the slot;
however,
+
however, you may need to override its facets.
you may need to override its facets.
 
 
If you wish to override the facets on the slot,
 
If you wish to override the facets on the slot,
 
you may click the <b>View Top-level Slot</b>
 
you may click the <b>View Top-level Slot</b>
[[Image:PrF_UG_slots_slot.view_top_level.gif|slots_slot.view_top_level]]
+
([[Image:PrF_UG_slots_slot.view_top_level.gif|slots_slot.view_top_level]])
 
or <b>View Slot Overrides</b>
 
or <b>View Slot Overrides</b>
[[Image:PrF_UG_slots_slot.view_overrides.gif|slots_slot.view_overrides]]
+
([[Image:PrF_UG_slots_slot.view_overrides.gif|slots_slot.view_overrides]]) button
button to display the
+
to display the [[PrF_UG_slots_slot_editor|Slot Editor]].
[[PrF_UG_slots_slot_editor|Slot Editor]].
+
See [[PrF_UG_slots_editing_a_slot|Viewing a Slot]] for more information.
See
 
[[PrF_UG_slots_editing_a_slot|Viewing a Slot]]
 
for more information.
 
  
 
=== Removing a Slot ===
 
=== Removing a Slot ===
Line 239: Line 186:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Remove Slot</b>
 
     Click the <b>Remove Slot</b>
     [[Image:PrF_UG_slots_slot.remove.gif|slots_slot.remove]]
+
     ([[Image:PrF_UG_slots_slot.remove.gif|slots_slot.remove]]) button.
    button.
 
 
     The slot will be removed from the class.
 
     The slot will be removed from the class.
 
     </p>
 
     </p>
Line 247: Line 193:
 
Note that the slot has not been deleted from the knowledge base.
 
Note that the slot has not been deleted from the knowledge base.
 
It will still appear in the <b>Select Slots</b> dialog box
 
It will still appear in the <b>Select Slots</b> dialog box
(see
+
(see [[#Adding_an_Existing_Slot_to_a_Class|
[[#Adding_an_Existing_Slot_to_a_Class|Adding an Existing Slot to a Class]],
+
      Adding an Existing Slot to a Class]], above)
above)
+
and the [[PrF_UG_slots_slots_tab|Slots tab]].
and the
+
See [[PrF_UG_slots_deleting_a_slot|Deleting a Slot]] for more information.
[[PrF_UG_slots_slots_tab|Slots Tab]].
+
 
See
 
[[PrF_UG_slots_deleting_a_slot|Deleting a Slot]]
 
for more information.
 
  
</div>
+
<noinclude></div></noinclude>

Latest revision as of 17:30, November 13, 2008

Editing Template Slots


Protege-Frames User's Guide
Classes
Classes Tab
Class Browser
Class Buttons
Class Hierarchy Window
Class Icons
Class Menu
Class Search Bar
Superclasses Pane
Class Editor
Constraints
Template Slots Pane
Template Slot Buttons
References Window
Creating a New Class
Creating Multiple Subclasses
Deleting a Class
Displaying the Class Editor
Editing a Class
Editing Template Slots
Finding a Class
Hiding a Class
Replacing a Superclass
Adding a Superclass
Jumping to A Superclass
Removing a Superclass
Viewing Class Relations
Classes & Instances Tab
Viewing References
Glossary, Editing Help

The Template Slots pane in the Class Editor allows you to add, clear, create, edit, override, and remove slots.

Editing a Top-level Slot

To edit a slot at the top level:

  1. Highlight the slot name in the Template Slots pane.

  2. Click the View Top-level Slot (slots_slot.view_top_level) button at the top right of the pane. The Slot Editor will be displayed.

  3. Use the Slot Editor to edit slot properties such as Name, Type, and Cardinality, and to add notes. See Viewing a Slot for more information on how to edit a slot.

Overriding a Slot at a Class

To override a slot at the class:

  1. Highlight the slot name in the Template Slots pane.

  2. Click the View Slot Overrides (slots_slot.view_overrides) button at the top right of the pane. The Slot Editor will be displayed.

  3. Use the Slot Editor to edit slot properties such as Name, Type, and Cardinality, and to add notes. See Viewing a Slot and Overriding Slot Properties at a Class for more information.

Your class can have slots that were inherited (slots_slot.inherited) from a superclass. If the slot is inherited, there are limitations on the edits that can be performed. Direct slots, which were created or added at the level of the slot, have no editing restrictions.

If you edit a slot at the class level, the slot is displayed with an override (slots_slot.overridden) icon.

Creating a New Slot

You can define a new slot for your class.

  1. Make sure the correct class is highlighted in the Class Browser.

  2. Click the Create Slot (slots_slot.create) button at the top right of the pane. The Slot Editor will be displayed.

  3. Use the Slot Editor to edit slot properties such as Name, Type, and Cardinality, and to add notes. See Creating a Slot for more information on how to create a slot.

A direct slot is displayed with a blue (slots_slot) icon.

Clearing Slot Overrides

If you have overridden a slot at the class, you can remove your overrides and use the top-level definition of the slot:

  1. Highlight the slot name in the Template Slots pane.

  2. Click the Remove Slot Overrides (slots_slot.remove_overrides) button at the top right of the pane. Any changes you made at the class level are removed and the top-level definition of the slot is used. See Removing Overrides From a Slot for more information.

Adding an Existing Slot to a Class

Once slots have been created, you can add them to more than one class. For example, the Prototype_Newspaper class has a Weekday slot, which can be used to choose among the days of the week. If you were creating a new type of employee who wrote a weekly feature, you might want to reuse this slot.

To choose a pre-existing slot to add to your class:

  1. Make sure the correct class is highlighted in the Class Browser.

  2. Click the Add Slot (slots_slot.add) button at the top right of the pane. The Select Slots dialog box displays all the slots that you can add to the class.

  3. Highlight the slot that you wish to add to your class.

  4. Click OK.

The new slot is added to the Template Slots pane. It is a directly-attached slot and is displayed with a blue (slots_slot) icon. You do not need to name the slot; however, you may need to override its facets. If you wish to override the facets on the slot, you may click the View Top-level Slot (slots_slot.view_top_level) or View Slot Overrides (slots_slot.view_overrides) button to display the Slot Editor. See Viewing a Slot for more information.

Removing a Slot

You can remove any direct slot that appears in the Template Slots pane. To remove a slot:

  1. Highlight the slot

  2. Click the Remove Slot (slots_slot.remove) button. The slot will be removed from the class.

Note that the slot has not been deleted from the knowledge base. It will still appear in the Select Slots dialog box (see

      Adding an Existing Slot to a Class, above)

and the Slots tab. See Deleting a Slot for more information.