Define entity & relation types

Before starting annotation, you need to define the semantic types that you will use for this purpose. Semantic types in CLAMP-Cancer refer to entities(e.g, ‘problem/treatment/test’) and the relations between them.

  1. To define a new entity type:
    1. Double click on the typedef.xmi file under the models folder to open it. Using this file, you will be able to define a schema for entities and the relation types among them.
    2. Right click on the Entities node
    3. Go to "Add Child"
    4. Click on New Element
      Illustrating steps 2-4
      Illustrating steps 2-4
    5. In the pop up window, enter a name for the element
    6. Click the OK button
      Illustrating steps 5-6
      Illustrating steps 5-6

      The created element will be added to the Entity node (See the picture below)

      The created element will be added to the Entity node
      The created element will be added to the Entity node
  2. To define a new relation type:
    1. Right click on the Relations node
    2. Go to "Add Child"
    3. Click on New Element
      Context menu for importing the input files
      Illustrating steps 1-3
    4. In the pop up window, enter a name for the relation
    5. Click the OK button
      Illustrating steps 4-5
      Illustrating steps 4-5

      Then, you need to decide which entities are involved in this relation. There are two roles of arguments an entity can hold in a relation: From, and To. "From" refers to an independent entity while "To" indicates the dependent entity.

  3. To select the entities that are involved in a relation:
    1. Right click on the newly created relation
    2. Go to "Add Attribute"
    3. Click on "New Attribute"
      Illustrating steps 1-3
      Illustrating steps 1-3
    4. In the pop up window, enter a name for the new attribute (you will use "from" for the independent entity, and "to" for the dependent entity)
    5. Enter the actual name of the entities for the Value field
      Illustrating steps 4-6
      Illustrating steps 4-6
    6. Click the OK button
    7. Click on Save at the top of the window