Difference between revisions of "PrF UG classes creating multiple classes"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 4: Line 4:
 
{{PrF_UG_TOC_classes}}<div id='prf_ug'>
 
{{PrF_UG_TOC_classes}}<div id='prf_ug'>
  
{{#var:PrF}} supplies a wizard that lets you quickly create multiple subclasses of a selected class.
+
{{#var:PrF}} supplies a wizard
 +
that lets you quickly create multiple subclasses of a selected class.
  
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     At the
+
     At the [[PrF_UG_classes_classes_tab|Classes Tab]],
    [[PrF_UG_classes_classes_tab|Classes Tab]],
 
 
     select the class you want as a superclass for the classes you create.
 
     select the class you want as a superclass for the classes you create.
 
     </p>
 
     </p>
Line 16: Line 16:
 
     Select <b>Tools | Wizards</b>,
 
     Select <b>Tools | Wizards</b>,
 
     then select <b>Create multiple subclasses</b> from the submenu.
 
     then select <b>Create multiple subclasses</b> from the submenu.
   
 
    </p><p> <div>[[Image:PrF_UG_classes_wizard_multi_class.png|classes_wizard_multi_class]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_classes_wizard_multi_class.png|classes_wizard_multi_class]]</div>
  
 
   <li><p>
 
   <li><p>
Line 53: Line 52:
 
    
 
    
 
     <li><p>
 
     <li><p>
       You can edit or delete the name of any class you have already entered by moving the cursor to that name.
+
       You can edit or delete the name of any class you have already entered
 +
      by moving the cursor to that name.
 
       You can also cut and paste text within and between class names.
 
       You can also cut and paste text within and between class names.
 
       </p>
 
       </p>
Line 61: Line 61:
 
       the name will be highlighted in red.
 
       the name will be highlighted in red.
 
       You can edit the class name from the keyboard,
 
       You can edit the class name from the keyboard,
       or you can click <b>Tidy</b> to have {{#var:Pr}} automatically substitute an underscore (_) for each invalid character.
+
       or you can click <b>Tidy</b>
 +
      to have {{#var:Pr}} automatically substitute an underscore (_)
 +
      for each invalid character.
 
       </p>
 
       </p>
 
   </ul>
 
   </ul>
Line 68: Line 70:
 
     To create subclasses of a class,
 
     To create subclasses of a class,
 
     make sure that <b>Tab indent to create hierarchy</b> is selected.
 
     make sure that <b>Tab indent to create hierarchy</b> is selected.
     Then,
+
     Then, use the <b>Tab</b> key to create a hierarchy:
    use the <b>Tab</b> key to create a hierarchy:
 
 
     </p>
 
     </p>
  
Line 78: Line 79:
 
    
 
    
 
     <li><p>
 
     <li><p>
       A single tab means the class will be a subclass of the nearest untabbed class above it in the list.
+
       A single tab means the class will be a subclass
 +
      of the nearest untabbed class above it in the list.
 
       </p>
 
       </p>
 
    
 
    
 
     <li><p>
 
     <li><p>
       N tabs means the class will be a subclass of the nearest class with N-1 tabs above it in the list.For example,
+
       N tabs means the class will be a subclass of the nearest class
      suppose you are creating subclasses of Superclass and you enter the following:
+
      with N-1 tabs above it in the list.
 +
      For example, suppose you are creating subclasses of Superclass
 +
      and you enter the following:
 
       </p>
 
       </p>
 
   </ul>
 
   </ul>
Line 105: Line 109:
 
    
 
    
 
     <li><p>
 
     <li><p>
       SubSubclass_III <i>direct subclass of Superclass</i><b>Note:</b> Extra <b>Tab</b> characters will be ignored.
+
       SubSubclass_III <i>direct subclass of Superclass</i>
 +
      </p><p>
 +
      <b>Note:</b> Extra <b>Tab</b> characters will be ignored.
 
       For example,
 
       For example,
 
       if you insert a <b>Tab</b> before the first class name in the list,
 
       if you insert a <b>Tab</b> before the first class name in the list,
Line 116: Line 122:
 
     The wizard will display a list of classes that have been added.
 
     The wizard will display a list of classes that have been added.
 
     This is informational only - you cannot cancel at this point.
 
     This is informational only - you cannot cancel at this point.
   
 
    </p><p> <div>[[Image:PrF_UG_classes_wizard_multi_class_finish.png|classes_wizard_multi_class_finish]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_classes_wizard_multi_class_finish.png|classes_wizard_multi_class_finish]]</div>
  
 
   <li><p>
 
   <li><p>
 
     Click <b>Finish</b> to exit the wizard.
 
     Click <b>Finish</b> to exit the wizard.
   
 
    </p><p> <div>[[Image:PrF_UG_classes_wizard_multi_class_result.png|classes_wizard_multi_class_result]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_classes_wizard_multi_class_result.png|classes_wizard_multi_class_result]]</div>
 
</ol>
 
</ol>
  
 
The new classes will inherit all the properties of their superclass.
 
The new classes will inherit all the properties of their superclass.
If you wish to make any additional edits to your classes (e.g.,
+
If you wish to make any additional edits to your classes
[[PrF_UG_slots_attach_slot|attach]]
+
(e.g., [[PrF_UG_slots_attach_slot|attach]] an additional slot
an additional slot or
+
or [[PrF_UG_slots_override_slot|override]] an inherited slot),
[[PrF_UG_slots_override_slot|override]]
+
use the [[PrF_UG_classes_class_editor|Class Editor]].
an inherited slot),
 
use the
 
[[PrF_UG_classes_class_editor|Class Editor]].
 
  
 
</div>
 
</div>

Revision as of 11:19, October 15, 2008

Creating Multiple Subclasses


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

Protege-Frames supplies a wizard that lets you quickly create multiple subclasses of a selected class.

  1. At the Classes Tab, select the class you want as a superclass for the classes you create.

  2. Select Tools | Wizards, then select Create multiple subclasses from the submenu.

    classes_wizard_multi_class
  3. Set your options:

    • To have all classes you create begin the same way, enter an optional prefix.

    • To have all classes you create end the same way, enter an optional suffix.

    • If you select Tab indent to create hierarchy, you can use tab indents, as described in Step 5.

  4. Enter your class names:

    • Type the name of a class, then press Enter to begin entering a second class.

    • You can edit or delete the name of any class you have already entered by moving the cursor to that name. You can also cut and paste text within and between class names.

    • If you enter an invalid character (e.g., /) in a class name, the name will be highlighted in red. You can edit the class name from the keyboard, or you can click Tidy to have Protege automatically substitute an underscore (_) for each invalid character.

  5. To create subclasses of a class, make sure that Tab indent to create hierarchy is selected. Then, use the Tab key to create a hierarchy:

    • No tabs means the class will be a direct subclass of the selected superclass.

    • A single tab means the class will be a subclass of the nearest untabbed class above it in the list.

    • N tabs means the class will be a subclass of the nearest class with N-1 tabs above it in the list. For example, suppose you are creating subclasses of Superclass and you enter the following:

    1. Subclass direct subclass of Superclass

    2. Subclass_II direct subclass of Superclass

    3. SubSubclass subclass of Subclass_II

    4. SubSubSubclass subclass of SubSubclass

    5. SubSubclass_III direct subclass of Superclass

           Note: Extra Tab characters will be ignored.
           For example,
           if you insert a Tab before the first class name in the list,
           it will still be created as a direct subclass of the selected superclass.
      

  6. Click Finish or type Ctrl-Enter (Cmd-Enter). The wizard will display a list of classes that have been added. This is informational only - you cannot cancel at this point.

    classes_wizard_multi_class_finish
  7. Click Finish to exit the wizard.

    classes_wizard_multi_class_result

The new classes will inherit all the properties of their superclass. If you wish to make any additional edits to your classes (e.g., attach an additional slot or override an inherited slot), use the Class Editor.