Difference between revisions of "PrF UG forms understanding forms"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 7: Line 7:
 
you will want to begin to create instances.
 
you will want to begin to create instances.
 
This is done by filling out <i>forms</i>.
 
This is done by filling out <i>forms</i>.
The
+
The [[PrF_UG_forms_forms_tab|Forms Tab]]
[[PrF_UG_forms_forms_tab|Forms Tab]]
 
 
allows you to customize the user interface that will be used for entering instances.
 
allows you to customize the user interface that will be used for entering instances.
In {{#var:PrF}},
+
In {{#var:PrF}}, the expectation is that ontology creation and instance entry
the expectation is that ontology creation and instance entry could be done by different groups of people:
+
could be done by different groups of people:
  
 
<ul class='a'>
 
<ul class='a'>
 
   <li><p>
 
   <li><p>
     The
+
     The [[PrF_UG_classes|Classes Tab]] and [[PrF_UG_slots_slots_tab|Slots Tab]]
    [[PrF_UG_classes|Classes Tab]]
+
     are used by domain experts and knowledge engineers to <i>create</i> <i>ontologies</i> -
    and
+
    that is, to design a set of classes that describe the domain.
    [[PrF_UG_slots_slots_tab|Slots Tab]]
+
     For example, a team of medical specialists
     are used by domain experts and knowledge engineers to <i>create</i> <i>ontologies</i> - that is,
+
    could design an ontology dealing with blood diseases.
    to design a set of classes that describe the domain.
 
     For example,
 
    a team of medical specialists could design an ontology dealing with blood diseases.
 
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     The
+
     The [[PrF_UG_inst|Instances Tab]] is used to <i>acquire</i> <i>instances</i>.
    [[PrF_UG_inst|Instances Tab]]
 
    is used to <i>acquire</i> <i>instances</i>.
 
 
     It is typically used by people who are neither domain experts nor knowledge engineers.
 
     It is typically used by people who are neither domain experts nor knowledge engineers.
     For example,
+
     For example, nurses at a hospital could use the ontology above
    nurses at a hospital could use the ontology above to enter instances to describe each patient.
+
    to enter instances to describe each patient.
 
     </p>
 
     </p>
 
</ul>
 
</ul>
Line 55: Line 49:
 
</ul>
 
</ul>
  
Every class,
+
Every class, concrete or abstract, has an associated form.
concrete or abstract,
 
has an associated form.
 
 
For a concrete class,
 
For a concrete class,
 
a user defines an instance of the class by filling out the class's form.
 
a user defines an instance of the class by filling out the class's form.
Line 63: Line 55:
 
the form is used to define layout information which can then be inherited by other classes.
 
the form is used to define layout information which can then be inherited by other classes.
  
Using the
+
Using the [[PrF_UG_forms_forms_tab|Forms Tab]],
[[PrF_UG_forms_forms_tab|Forms Tab]],
+
you can customize the appearance of forms.
you can customize the appearance of forms. {{#var:PrF}} generates a default form for every class you create,
+
{{#var:PrF}} generates a default form for every class you create,
 
based on the slots that are attached to the class and their slot value types.
 
based on the slots that are attached to the class and their slot value types.
On the default form,
+
On the default form, there is a widget for every slot that is attached to the class.
there is a widget for every slot that is attached to the class.
 
  
The default form is intended as an initial,
+
The default form is intended as an initial, useful set of forms;
useful set of forms;
+
however, these default interfaces are not always user-friendly.
however,
+
For example, if a class has a slot such as <i>name</i> or <i>title</i>,
these default interfaces are not always user-friendly.
 
For example,
 
if a class has a slot such as <i>name</i> or <i>title</i>,
 
 
you might want the form to display this field first.
 
you might want the form to display this field first.
 
The default form probably will not do this for you.
 
The default form probably will not do this for you.
  
 
Different slot value types use different widgets:
 
Different slot value types use different widgets:
for example,
+
for example, a string slot uses a text entry bar widget,
a string slot uses a text entry bar widget,
 
 
while a Boolean slot uses a checkbox.
 
while a Boolean slot uses a checkbox.
 
You can customize the form by moving and resizing widgets and deleting widgets;
 
You can customize the form by moving and resizing widgets and deleting widgets;
 
for some slot value types,
 
for some slot value types,
 
you can also select another widget that is different from the default.
 
you can also select another widget that is different from the default.
For example,
+
For example, you can set up a widget which displays Symbol values as icons
you can set up a widget which displays Symbol values as icons and allows the user to select those.
+
and allows the user to select those.
  
The Forms Tab also allows you to create several user interfaces for the same ontology - forms for knowledge acquisition can be customized for different groups of users.
+
The Forms Tab also allows you to create several user interfaces for the same ontology -
 +
forms for knowledge acquisition can be customized for different groups of users.
  
 
</div>
 
</div>

Revision as of 14:37, October 15, 2008

Understanding Forms


Protege-Frames User's Guide
Forms
Understanding Forms
Forms Tab
Form Browser
Form Buttons
Form Editor
Display Slot Menu
Selected Widget Type Menu
Widget Configuration Dialog
Form Configuration Dialog Box
Default Widget Types
Additional String Widgets
Instance Row and Table Widgets
Contains Widget
Direct Instances Widget
Global Characteristics
Moving or Resizing a Widget
Widget Configuration Properties
Selecting a Widget Display
Hiding a Widget
Customizing a Row or Table Widget
Customizing a Contains Widget
Using a Resource List Widget
Additional Widget Types
Glossary, Editing Help

Once you have built the classes and slots of your ontology, you will want to begin to create instances. This is done by filling out forms. The Forms Tab allows you to customize the user interface that will be used for entering instances. In Protege-Frames, the expectation is that ontology creation and instance entry could be done by different groups of people:

  • The Classes Tab and Slots Tab are used by domain experts and knowledge engineers to create ontologies - that is, to design a set of classes that describe the domain. For example, a team of medical specialists could design an ontology dealing with blood diseases.

  • The Instances Tab is used to acquire instances. It is typically used by people who are neither domain experts nor knowledge engineers. For example, nurses at a hospital could use the ontology above to enter instances to describe each patient.

The Forms Tab generates the basic user interface for instance entry:

  • A class has template slots, each of which has a value type.

  • The form for a class is composed of widgets, each one of which corresponds to a template slot. The appearance of the widget is based on the slot value type.

  • When a user enters an instance, each widget becomes an entry field in the Instance Editor.

Every class, concrete or abstract, has an associated form. For a concrete class, a user defines an instance of the class by filling out the class's form. For an abstract class, the form is used to define layout information which can then be inherited by other classes.

Using the Forms Tab, you can customize the appearance of forms. Protege-Frames generates a default form for every class you create, based on the slots that are attached to the class and their slot value types. On the default form, there is a widget for every slot that is attached to the class.

The default form is intended as an initial, useful set of forms; however, these default interfaces are not always user-friendly. For example, if a class has a slot such as name or title, you might want the form to display this field first. The default form probably will not do this for you.

Different slot value types use different widgets: for example, a string slot uses a text entry bar widget, while a Boolean slot uses a checkbox. You can customize the form by moving and resizing widgets and deleting widgets; for some slot value types, you can also select another widget that is different from the default. For example, you can set up a widget which displays Symbol values as icons and allows the user to select those.

The Forms Tab also allows you to create several user interfaces for the same ontology - forms for knowledge acquisition can be customized for different groups of users.