Difference between revisions of "PrF UG inst creating multiple instances"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Creating Multiple Instances ==
 
== Creating Multiple Instances ==
  
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_inst}}<div id='prf_ug'></noinclude>
  
 
{{#var:PrF}} supplies a wizard that lets you quickly create multiple direct instances of a selected class.
 
{{#var:PrF}} supplies a wizard that lets you quickly create multiple direct instances of a selected class.
Line 10: Line 10:
 
     Select <b>Tools | Wizards</b> and select <b>Create multiple instances</b> from the submenu.
 
     Select <b>Tools | Wizards</b> and select <b>Create multiple instances</b> from the submenu.
 
     The wizard will display the class hierarchy of your project:
 
     The wizard will display the class hierarchy of your project:
   
 
    </p><p> <div>[[Image:PrF_UG_inst_multiple_instances_class_select.png|instances_multiple_instances_class_select]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_multiple_instances_class_select.png|frame|none|
 +
          Create multiple instances dialog, "Personals_Ad" selected]]</div>
  
 
   <li><p>
 
   <li><p>
 
     Select the class for which you want to create instances and click <b>Next</b>.
 
     Select the class for which you want to create instances and click <b>Next</b>.
 
     The wizard will show the instance entry screen:
 
     The wizard will show the instance entry screen:
   
 
    </p><p> <div>[[Image:PrF_UG_inst_multiple_instances_enter.png|instances_multiple_instances_enter]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_multiple_instances_enter.png|frame|none|
 +
          Create multiple instances dialog with instance entry screen]]</div>
  
 
   <li><p>
 
   <li><p>
Line 48: Line 48:
 
    
 
    
 
     <li><p>
 
     <li><p>
       You can edit or delete the name of any instance you have already entered by moving the cursor to that name.
+
       You can edit or delete the name of any instance you have already entered
 +
      by moving the cursor to that name.
 
       You can also cut and paste text within and between instance names.
 
       You can also cut and paste text within and between instance names.
 
       </p>
 
       </p>
Line 56: Line 57:
 
       the name will be highlighted in red.
 
       the name will be highlighted in red.
 
       You can edit the instance name from the keyboard,
 
       You can edit the instance 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 63: Line 65:
 
     Click <b>Finish</b> or type <b>Ctrl-Enter</b> (<b>Cmd-Enter</b>).
 
     Click <b>Finish</b> or type <b>Ctrl-Enter</b> (<b>Cmd-Enter</b>).
 
     The wizard will display a list of instances that have been added.
 
     The wizard will display a list of instances that have been added.
     This is informational only:
+
     This is informational only: you cannot cancel at this point.
    you cannot cancel at this point.
 
   
 
    </p><p> <div>[[Image:PrF_UG_inst_multiple_instances_report.png|instances_multiple_instances_report]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_multiple_instances_report.png|frame|none|
 +
          Create multiple instances dialog, result]]</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_inst_multiple_instances_result.png|instances_multiple_instances_result]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_multiple_instances_result.png|frame|none|
 +
          Instance Editor, "Cool_Guy" selected]]</div>
  
 
   <li><p>
 
   <li><p>
Line 81: Line 82:
 
</ol>
 
</ol>
  
If you prefer,
+
If you prefer, you can create instances with the field entries already filled
you can create instances with the field entries already filled by
+
by [[PrF_UG_inst_copy_instance|copying]] an instance.
[[PrF_UG_inst_copy_instance|copying]]
+
See [[PrF_UG_inst_copy_instance|Copying an Instance]].
an instance.
 
See
 
[[PrF_UG_inst_copy_instance|Copying an Instance]].
 
  
</div>
+
 
 +
<noinclude></div></noinclude>

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

Creating Multiple Instances


Protege-Frames User's Guide
Instances
Instances Tab
Class Browser at Instances Tab
Instance Browser
Instances Window
Instance Buttons
Instance Menu
Types Pane
Instance Editor
Standard Field Types
Fields with Multiple Cardinality
Boolean Fields
Class Fields
Float Fields
Instance Fields
Integer Fields
String Fields
Symbol Fields
Creating an Instance
Creating Multiple Instances
Displaying the Instance Editor
Setting the Display Slot
Showing Subclass Instances
Editing an Instance
Copying an Instance
Deleting an Instance
Finding an Instance
Changing an Instance's Class
Working with Instance Types
Instance Icons
Glossary, Editing Help

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

  1. Select Tools | Wizards and select Create multiple instances from the submenu. The wizard will display the class hierarchy of your project:

    Create multiple instances dialog, "Personals_Ad" selected
  2. Select the class for which you want to create instances and click Next. The wizard will show the instance entry screen:

    Create multiple instances dialog with instance entry screen
  3. Set your options:

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

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

  4. Enter your instance names:

    • Type the name of a instance, then press Enter/Return to begin entering a second instance.

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

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

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

    Create multiple instances dialog, result
  6. Click Finish to exit the wizard.

    Instance Editor, "Cool_Guy" selected
  7. Fill out the properties for each instance in the corresponding Instance Editor.

If you prefer, you can create instances with the field entries already filled by copying an instance. See Copying an Instance.