PrF UG inst multiple cardinality

From Protege Wiki
Jump to: navigation, search

Fields with Multiple Cardinality


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

If the slot corresponding to a field has Multiple Cardinality, then the field allows multiple entries. How the information is entered and displayed depends on the field type.

For Boolean, Float, Integer, String, and Symbol entry fields, the field is shown as a display list with three field buttons at the top right:

Multiple Cardinality display list

For these fields, the field buttons do the following:

all_object.view

View Value: Opens an entry box for any highlighted value(s) and allows you to make changes.

all_object.add

Create Value or Add Value: Opens an entry box for a new value and allows you to edit it.

all_object.remove

Remove Value: Removes any highlighted value(s).

For Boolean fields, viewing or creating a value displays a dialog box with a drop-down menu containing two choices: true or false. Select one and click OK.

For Float, Integer, String, and Symbol entry fields, viewing (all_object.view) or creating/adding (all_object.add) a value displays a dialog box where you can type. Enter a valid value in the dialog box and click OK. Removing (all_object.remove) removes the highlighted value.

For Class and Instance entry fields, single and multiple cardinality fields have the same buttons and the same methods for viewing (classes_class.view, instances_instance.view), creating (instances_instance.create - Instance only), adding (classes_class.add, instances_instance.add), and removing (classes_class.remove, instances_instance.remove) values. The only difference is that multiple values can be stored in the field.