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

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 14: Line 14:
 
<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>
  
 
   <li><p>
 
   <li><p>
     Select <b>Symbol</b> from the
+
     Select <b>Symbol</b>
    [[PrF_UG_slots_value_type_menu|Value Type menu]].
+
    from the [[PrF_UG_slots_value_type_menu|Value Type menu]].
 
     The <b>Allowed Values</b> pane will be displayed.
 
     The <b>Allowed Values</b> pane will be displayed.
 
     </p>
 
     </p>
Line 37: Line 34:
 
     <li><p>
 
     <li><p>
 
       Click the <b>Create Value</b>
 
       Click the <b>Create Value</b>
       [[Image:PrF_UG_all_object.add.gif|all_object.add]]
+
       [[Image:PrF_UG_all_object.add.gif|all_object.add]] button
       button at the top of the <b>Allowed Values</b> pane.
+
       at the top of the <b>Allowed Values</b> pane.
 
       </p>
 
       </p>
 
    
 
    
Line 44: Line 41:
 
       Type the string you want in the <b>Create Symbol</b> window.
 
       Type the string you want in the <b>Create Symbol</b> window.
 
       You can enter ASCII characters,
 
       You can enter ASCII characters,
       including upper and lowercase letters,
+
       including upper and lowercase letters, numbers,
      numbers,
+
       and other common characters, such as !, _, and %.
       and other common characters,
 
      such as !,
 
      _,
 
      and %.
 
 
       </p>
 
       </p>
 
    
 
    
Line 68: Line 61:
 
   <li><p>
 
   <li><p>
 
     Click the <b>View Value</b>
 
     Click the <b>View Value</b>
     [[Image:PrF_UG_all_object.view.gif|all_object.view]]
+
     [[Image:PrF_UG_all_object.view.gif|all_object.view]] button
     button at the top of the <b>Allowed Values</b> pane.
+
     at the top of the <b>Allowed Values</b> pane.
 
     </p>
 
     </p>
  
Line 88: Line 81:
 
     To highlight multiple values,
 
     To highlight multiple values,
 
     hold down the <b>Ctrl</b> (<b>Cmd</b>) key while clicking each value.
 
     hold down the <b>Ctrl</b> (<b>Cmd</b>) key while clicking each value.
     To highlight a range of values,
+
     To highlight a range of values, click the first value,
    click the first value,
 
 
     then hold down the <b>Shift</b> key and click the last value in the range.
 
     then hold down the <b>Shift</b> key and click the last value in the range.
 
     </p>
 
     </p>
Line 95: Line 87:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Remove Value</b>
 
     Click the <b>Remove Value</b>
     [[Image:PrF_UG_all_object.remove.gif|all_object.remove]]
+
     [[Image:PrF_UG_all_object.remove.gif|all_object.remove]] button
     button at the top of the <b>Allowed Values</b> pane.
+
     at the top of the <b>Allowed Values</b> pane.
 
     </p>
 
     </p>
 
</ol>
 
</ol>
Line 102: Line 94:
 
=== Example ===
 
=== Example ===
  
For example,
+
For example, the <b>weekday</b> slot
the <b>weekday</b> slot at the class <b>Prototype_Newspaper</b> allows you to choose from among the seven days of the week:
+
at the class <b>Prototype_Newspaper</b>
Sunday,
+
allows you to choose from among the seven days of the week:
Monday,
+
Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday.
Tuesday,
 
Wednesday,
 
Thursday,
 
Friday,
 
Saturday,
 
and Sunday.
 
  
 
<div>[[Image:PrF_UG_slots_value_type_symbol.png|slots_value_type_symbol]]</div>
 
<div>[[Image:PrF_UG_slots_value_type_symbol.png|slots_value_type_symbol]]</div>
Line 117: Line 103:
 
An instance has a pop-up menu that allows a user to choose one of the symbol values for the slot:
 
An instance has a pop-up menu that allows a user to choose one of the symbol values for the slot:
  
<div>[[Image:PrF_UG_slots_value_type_symbol_example.png|slots_value_type_symbol_example]]</div>
+
<div>[[Image:PrF_UG_slots_value_type_symbol_example.png|
 +
      slots_value_type_symbol_example]]</div>
 +
 
  
 
</div>
 
</div>

Revision as of 11:18, October 17, 2008

The Symbol 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 Symbol allows you to create a predefined list of strings; an instance of a class chooses from among these strings. When Symbol is selected as the value type, the Allowed Values pane is displayed. An instance then takes string(s) from among the allowed values as the value(s) of the slot.

To set the value type of a slot to Symbol:

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

  2. Select Symbol from the Value Type menu. The Allowed Values pane will be displayed.

  3. Create the values you want as the list of available values for a slot. To create a value:

    • Click the Create Value all_object.add button at the top of the Allowed Values pane.

    • Type the string you want in the Create Symbol window. You can enter ASCII characters, including upper and lowercase letters, numbers, and other common characters, such as !, _, and %.

    • Click OK.

  4. When you have created all the values you want for this symbol, fill in the other fields as desired.

To edit a pre-existing value:

  1. Click the View Value all_object.view button at the top of the Allowed Values pane.

  2. Edit the string in the Edit Symbol window.

  3. Click OK.

To remove a value from the list of values:

  1. Select the values to remove. To highlight multiple values, hold down the Ctrl (Cmd) key while clicking each value. To highlight a range of values, click the first value, then hold down the Shift key and click the last value in the range.

  2. Click the Remove Value all_object.remove button at the top of the Allowed Values pane.

Example

For example, the weekday slot at the class Prototype_Newspaper allows you to choose from among the seven days of the week: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday.

slots_value_type_symbol

An instance has a pop-up menu that allows a user to choose one of the symbol values for the slot:

slots_value_type_symbol_example