Difference between revisions of "PrF UG inst entry field class"

From Protege Wiki
Jump to: navigation, search
Line 4: Line 4:
 
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
 
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
  
When an instance is created for a class with a slot of
+
When an instance is created for a class with a slot
[[PrF_UG_slots_value_type_class|Class value type]],
+
of [[PrF_UG_slots_value_type_class|Class value type]],
 
the entry field corresponding to the slot is a Class entry field,
 
the entry field corresponding to the slot is a Class entry field,
and contains values which are descendants of the classes specified as allowed superclasses for the slot.
+
and contains values which are descendants of the classes
 +
specified as allowed superclasses for the slot.
 
For an [[PrF_UG_slots_value_type_class|example]],
 
For an [[PrF_UG_slots_value_type_class|example]],
 
see the [[PrF_UG_slots_value_type_class|Class Value Type]] topic.
 
see the [[PrF_UG_slots_value_type_class|Class Value Type]] topic.
Line 14: Line 15:
 
=== Single Cardinality ===
 
=== Single Cardinality ===
  
The entry field corresponding to a slot of value type Class with Cardinality Single can contain a single class.
+
The entry field corresponding to a slot of value type Class
 +
with Cardinality Single can contain a single class.
 
It appears as a display bar;
 
It appears as a display bar;
 
three standard class buttons let you edit, add, or remove a class:
 
three standard class buttons let you edit, add, or remove a class:
  
<div>[[Image:PrF_UG_inst_field_type_class_location.png|instances_field_type_class_location]]</div>
+
<div>[[Image:PrF_UG_inst_field_type_class_location.png|
 +
      instances_field_type_class_location]]</div>
  
 
=== Multiple Cardinality ===
 
=== Multiple Cardinality ===
Line 25: Line 28:
 
The value of this field is a list of classes:
 
The value of this field is a list of classes:
  
<div>[[Image:PrF_UG_inst_field_class_multiple.png|instances_field_class_multiple]]</div>
+
<div>[[Image:PrF_UG_inst_field_class_multiple.png|
 +
      instances_field_class_multiple]]</div>
  
 
Note the following:
 
Note the following:
Line 41: Line 45:
  
 
   <li><p>
 
   <li><p>
     If the <b>at most</b> value is set in the
+
     If the <b>at most</b> value is set
    [[PrF_UG_slots_slot_editor#Cardinality|Cardinality]]
+
    in the [[PrF_UG_slots_slot_editor#Cardinality|Cardinality]] field
     field for the slot,
+
     for the slot,
 
     there is a limit on the number of classes you can enter.
 
     there is a limit on the number of classes you can enter.
 
     </p>
 
     </p>
Line 56: Line 60:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Add Class</b>
 
     Click the <b>Add Class</b>
     [[Image:PrF_UG_classes_class.add.gif|classes_class.add]]
+
     [[Image:PrF_UG_classes_class.add.gif|classes_class.add]] button.
    button.
 
 
     A <b>Select Classes</b> dialog box will be displayed.
 
     A <b>Select Classes</b> dialog box will be displayed.
   
 
    </p><p> <div>[[Image:PrF_UG_slots_select_class_winery_region.png|slots_select_class_winery_region]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_slots_select_class_winery_region.png|
 +
          slots_select_class_winery_region]]</div>
  
 
   <li><p>
 
   <li><p>

Revision as of 16:11, October 15, 2008

The Class Fields


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

When an instance is created for a class with a slot of Class value type, the entry field corresponding to the slot is a Class entry field, and contains values which are descendants of the classes specified as allowed superclasses for the slot. For an example, see the Class Value Type topic.


Single Cardinality

The entry field corresponding to a slot of value type Class with Cardinality Single can contain a single class. It appears as a display bar; three standard class buttons let you edit, add, or remove a class:

instances_field_type_class_location

Multiple Cardinality

An instance with a Class field with Cardinality Multiple shows a display list. The value of this field is a list of classes:

instances_field_class_multiple

Note the following:

  • To select multiple classes to view or remove, use the CTRL (Cmd) key; use the Shift key to select a range.

  • Adding a class does not replace a previous one.

  • If the at most value is set in the Cardinality field for the slot, there is a limit on the number of classes you can enter.

Adding a Class

To select a class as the value of the slot, or to change the existing value:

  1. Click the Add Class classes_class.add button. A Select Classes dialog box will be displayed.

    slots_select_class_winery_region
  2. Select a single class as the value of the slot.

  3. Click OK.

  4. The class you selected will be shown in the display bar. If another class was displayed previously, it will be gone now.

Removing a Class

To remove a class:

  1. Click the Remove Class classes_class.remove button. The display bar will be cleared.