Difference between revisions of "PrF UG inst standard fields"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== The Standard Field Types ==
 
== The Standard Field Types ==
  
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_inst}}<div id='prf_ug'></noinclude>
  
 
Template slots for a class are translated to entry fields for an instance of that class.
 
Template slots for a class are translated to entry fields for an instance of that class.
 
For each slot in the class,
 
For each slot in the class,
the
+
the [[PrF_UG_inst_instance_editor|Instance Editor]] displays a field
[[PrF_UG_inst_instance_editor|Instance Editor]]
+
where a user can enter information corresponding to that slot.
displays a field where a user can enter information corresponding to that slot.
+
For example, the <i>headline</i> slot for the <b>Article</b> class
For example,
+
becomes a field where the user can enter a headline for an instance.
the <i>headline</i> slot for the <b>Article</b> class becomes a field where the user can enter a headline for an instance.
+
The display and options for the field depend on the type of information
The display and options for the field depend on the type of information that can be entered in the field.
+
that can be entered in the field.
  
The different field types are based on the
+
The different field types are based
[[PrF_UG_slots_slot_editor#Value_Type_Menu|value type]]
+
on the [[PrF_UG_slots_slot_editor#Value_Type_Menu|value type]]
 
of the corresponding slot.
 
of the corresponding slot.
For example,
+
For example, a slot of [[PrF_UG_slots_value_type_string|value type String]]
a slot of
+
is represented by a [[PrF_UG_inst_entry_field_string|String entry field]].
[[PrF_UG_slots_value_type_string|value type String]]
 
is represented by a
 
[[PrF_UG_inst_entry_field_string|String entry field]].
 
  
<b>Note:</b> These topics describe the default fields only.
+
<b>Note:</b>
 +
These topics describe the default fields only.
 
You can select different formats for some fields,
 
You can select different formats for some fields,
using the
+
using the [[PrF_UG_forms_forms_tab|Forms tab]].
[[PrF_UG_forms_forms_tab|Forms Tab]].
 
  
{{#var:PrF}} provides the following fields for both <b>Single</b> and <b>Multiple</b> cardinality.
+
{{#var:PrF}} provides the following fields
For simplicity,
+
for both <b>Single</b> and <b>Multiple</b> cardinality.
only the <b>Single</b> cardinality is shown:
+
For simplicity, only the <b>Single</b> cardinality is shown:
  
 +
<div class='b'>
 
{| summary="default fields"
 
{| summary="default fields"
 
! Field Type
 
! Field Type
 
! Default Field
 
! Default Field
! Default Appearance
 
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_boolean|Boolean]]
 
[[PrF_UG_inst_entry_field_boolean|Boolean]]
| a checkbox field that is true or false
 
 
|
 
|
[[Image:PrF_UG_slots_boolean_unchecked.png|slots_boolean_unchecked]]
+
a checkbox field that is true or false
 +
<p>[[Image:PrF_UG_slots_boolean_unchecked.png|slots_boolean_unchecked]]</p>
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_class|Class]]
 
[[PrF_UG_inst_entry_field_class|Class]]
| a display field and buttons that allow you to specify a class as the field value
 
 
|
 
|
[[Image:PrF_UG_inst_field_type_class_location.png|instances_field_type_class_location]]
+
a display field and buttons that allow you to specify a class as the field value
 +
<p>[[Image:PrF_UG_inst_field_type_class_location.png|instances_field_type_class_location]]</p>
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_float|Float]]
 
[[PrF_UG_inst_entry_field_float|Float]]
| an entry field that verifies that the entered value is a valid decimal number
 
 
|
 
|
[[Image:PrF_UG_inst_filled_entry_float.png|instances_filled_entry_float]]
+
an entry field that verifies that the entered value is a valid decimal number
 +
<p>[[Image:PrF_UG_inst_filled_entry_float.png|instances_filled_entry_float]]</p>
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_instance|Instance]]
 
[[PrF_UG_inst_entry_field_instance|Instance]]
| a display field and buttons that allow you to create or specify an instance as the field value
 
 
|
 
|
[[Image:PrF_UG_inst_filled_entry_instance.png|instances_filled_entry_instance]]
+
a display field and buttons that allow you to create or specify an instance as the field value
 +
<p>[[Image:PrF_UG_inst_filled_entry_instance.png|instances_filled_entry_instance]]</p>
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_integer|Integer]]
 
[[PrF_UG_inst_entry_field_integer|Integer]]
| an entry field that verifies that the entered value is a valid whole number
 
 
|
 
|
[[Image:PrF_UG_inst_filled_entry_integer.png|instances_filled_entry_integer]]
+
an entry field that verifies that the entered value is a valid whole number
 +
<p>[[Image:PrF_UG_inst_filled_entry_integer.png|instances_filled_entry_integer]]</p>
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_string|String]]
 
[[PrF_UG_inst_entry_field_string|String]]
| an entry field that verifies that the entered value is a valid string
 
 
|
 
|
[[Image:PrF_UG_inst_filled_entry_field_string.png|instances_filled_entry_field_string]]
+
an entry field that verifies that the entered value is a valid string
 +
<p>[[Image:PrF_UG_inst_filled_entry_field_string.png|instances_filled_entry_field_string]]</p>
 
|-
 
|-
 
|
 
|
 
[[PrF_UG_inst_entry_field_symbol|Symbol]]
 
[[PrF_UG_inst_entry_field_symbol|Symbol]]
| a drop-down list that displays the Symbol's preset list of values
 
 
|
 
|
[[Image:PrF_UG_inst_filled_entry_symbol.png|instances_filled_entry_symbol]]
+
a drop-down list that displays the Symbol's preset list of values
 +
<p>[[Image:PrF_UG_inst_filled_entry_symbol.png|instances_filled_entry_symbol]]</p>
 
|}
 
|}
 +
</div>
  
</div>
+
 
 +
<noinclude></div></noinclude>

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

The Standard Field Types


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

Template slots for a class are translated to entry fields for an instance of that class. For each slot in the class, the Instance Editor displays a field where a user can enter information corresponding to that slot. For example, the headline slot for the Article class becomes a field where the user can enter a headline for an instance. The display and options for the field depend on the type of information that can be entered in the field.

The different field types are based on the value type of the corresponding slot. For example, a slot of value type String is represented by a String entry field.

Note: These topics describe the default fields only. You can select different formats for some fields, using the Forms tab.

Protege-Frames provides the following fields for both Single and Multiple cardinality. For simplicity, only the Single cardinality is shown:

Field Type Default Field

Boolean

a checkbox field that is true or false

slots_boolean_unchecked

Class

a display field and buttons that allow you to specify a class as the field value

instances_field_type_class_location

Float

an entry field that verifies that the entered value is a valid decimal number

instances_filled_entry_float

Instance

a display field and buttons that allow you to create or specify an instance as the field value

instances_filled_entry_instance

Integer

an entry field that verifies that the entered value is a valid whole number

instances_filled_entry_integer

String

an entry field that verifies that the entered value is a valid string

instances_filled_entry_field_string

Symbol

a drop-down list that displays the Symbol's preset list of values

instances_filled_entry_symbol