Difference between revisions of "PrF UG slots creating subslot"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Working with Subslots ==
 
== Working with Subslots ==
  
{{PrF_UG_TOC_slots}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_slots}}<div id='prf_ug'></noinclude>
  
Normally,
+
Normally, whenever you create a new slot, it is a top-level slot.
whenever you create a new slot,
+
However, you can also create a subslot of an existing slot.
it is a top-level slot.
 
However,
 
you can also create a subslot of an existing slot.
 
  
 
=== Understanding Subslots ===
 
=== Understanding Subslots ===
Line 41: Line 38:
  
 
   <li><p>
 
   <li><p>
     You can attach multiple related properties,
+
     You can attach multiple related properties, using a single slot.
    using a single slot.
+
     To do this, create a single superslot and then create subslots
     To do this,
+
    that define characteristics of the superslot.
    create a single superslot and then create subslots that define characteristics of the superslot.
 
 
     By attaching the superslot to a class,
 
     By attaching the superslot to a class,
 
     you automatically attach all of its subslots.
 
     you automatically attach all of its subslots.
Line 56: Line 52:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     In the Slot Tab,
+
     In the Slot tab,
 
     select the slot that you want as the superslot of your subslot.
 
     select the slot that you want as the superslot of your subslot.
 
     </p>
 
     </p>
Line 65: Line 61:
  
 
   <li><p>
 
   <li><p>
     Select <b>Create subslot</b> from the slot menu.
+
     Select <b>Create Subslot</b> from the Slot menu.
   
 
    </p><p> <div>[[Image:PrF_UG_slots_slot_menu_subslot.png|slots_slot_menu_subslot]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_slots_slot_menu_subslot.png|frame|none|
 +
          Slot menu, "Create Subslot" selected]]</div>
  
 
   <li><p>
 
   <li><p>
 
     The new slot is created as a subslot of the selected slot.
 
     The new slot is created as a subslot of the selected slot.
     Except for the name,
+
     Except for the name, when created,
    when created,
 
 
     it has the same properties as its parent slot.
 
     it has the same properties as its parent slot.
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     You can use the
+
     You can use the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
+
     to [[PrF_UG_slots_editing_slot_properties|edit the properties]]
     to
 
    [[PrF_UG_slots_editing_slot_properties|edit the properties]]
 
 
     of the new slot.
 
     of the new slot.
 
     </p>
 
     </p>
Line 101: Line 94:
  
 
   <li><p>
 
   <li><p>
     For certain value types,
+
     For certain value types, some restrictions apply:
    some restrictions apply:
 
 
     </p>
 
     </p>
  
Line 108: Line 100:
 
     <li><p>
 
     <li><p>
 
       For a slot of type <b>Any</b>,
 
       For a slot of type <b>Any</b>,
       the slot may be restricted to <i>one</i> of the other types (<b>Boolean</b>,
+
       the slot may be restricted to <i>one</i> of the other types
      <b>Class</b>,
+
      (<b>Boolean</b>, <b>Class</b>, <b>Float</b>, <b>Instance</b>,
      <b>Float</b>,
+
       <b>Integer</b>, <b>String</b>, or <b>Symbol</b>).
      <b>Instance</b>,
 
       <b>Integer</b>,
 
      <b>String</b>,
 
      or <b>Symbol</b>).
 
 
       You cannot change the type of slots other than type <b>Any</b>.
 
       You cannot change the type of slots other than type <b>Any</b>.
 
       </p>
 
       </p>
Line 125: Line 113:
  
 
   <li><p>
 
   <li><p>
     A <b>Minimum</b> value (for types <b>Integer</b> or <b>Float</b>) may be created or <i>increased</i>.
+
     A <b>Minimum</b> value (for types <b>Integer</b> or <b>Float</b>)
 +
    may be created or <i>increased</i>.
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     A <b>Maximum</b> value (for types <b>Integer</b> or <b>Float</b>) may be created or <i>decreased</i>.
+
     A <b>Maximum</b> value (for types <b>Integer</b> or <b>Float</b>)
 +
    may be created or <i>decreased</i>.
 
     </p>
 
     </p>
  
Line 137: Line 127:
 
</ul>
 
</ul>
  
These restrictions are similar to the restrictions on
+
These restrictions are similar to the restrictions
[[PrF_UG_slots_override_slot|slot overrides]],
+
on [[PrF_UG_slots_override_slot|slot overrides]],
 
except that you <i>can</i> change the name of a subslot,
 
except that you <i>can</i> change the name of a subslot,
 
and you <i>cannot</i> make any changes to the allowed classes of a subslot.
 
and you <i>cannot</i> make any changes to the allowed classes of a subslot.
  
</div>
+
 
 +
<noinclude></div></noinclude>

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

Working with Subslots


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

Normally, whenever you create a new slot, it is a top-level slot. However, you can also create a subslot of an existing slot.

Understanding Subslots

Subslots have the following characteristics:

  • When you first create a subslot, the subslot inherits the properties of the superslot. Only the name is different.

  • You can only modify a subslot to make it more restrictive than its superslot. You cannot make it less restrictive.

  • When you attach a superslot to a class, all of its subslots are attached.

Subslots allow you to do the following:

  • You can create two (or more) slots which share information, but where one slot (the subslot) is more restrictive.

  • You can attach multiple related properties, using a single slot. To do this, create a single superslot and then create subslots that define characteristics of the superslot. By attaching the superslot to a class, you automatically attach all of its subslots.

Creating a Subslot

To create a subslot of a slot:

  1. In the Slot tab, select the slot that you want as the superslot of your subslot.

  2. Click the right mouse button.

  3. Select Create Subslot from the Slot menu.

    Slot menu, "Create Subslot" selected
  4. The new slot is created as a subslot of the selected slot. Except for the name, when created, it has the same properties as its parent slot.

  5. You can use the Slot Editor to edit the properties of the new slot.

Restrictions on Edits

When you create a subslot, there are restrictions on the possible edits:

  • For Cardinality, the slot may be changed from Multiple to Single, but not vice versa. The at least value may be increased; the at most value may be decreased.

  • For certain value types, some restrictions apply:

    • For a slot of type Any, the slot may be restricted to one of the other types (Boolean, Class, Float, Instance, Integer, String, or Symbol). You cannot change the type of slots other than type Any.

    • For a slot of type Class or Instance, you cannot change the allowed classes.

  • A Minimum value (for types Integer or Float) may be created or increased.

  • A Maximum value (for types Integer or Float) may be created or decreased.

  • Default values cannot be removed.

These restrictions are similar to the restrictions on slot overrides, except that you can change the name of a subslot, and you cannot make any changes to the allowed classes of a subslot.