Inserting a Pattern

Within a pattern definition, you can create or reuse patterns to define the structure analysis.

This task shows you how to:


Before you begin:
  1. Create a pattern schema. See Creating a Pattern Schema.
  2. Insert a definition. See Inserting a Pattern Definition.

Define a New Pattern

  1. From the shortcut toolbar, click Create Pattern .
  2. For this scenario, select Resource in the following list:
    • Resource
    • Sequence
    • Choice
    • Analysis type
    • Literal value
    • Regular expression
    • Pattern reference
    • Rule
    • Entity field
    • Attribute field
    • Link field
    • Variable
    • Set format

    Note: This scenario is identical when inserting a pattern with Insert Pattern , but a reduced list is displayed:
    • Literal value
    • Pattern reference
    • Entity field
    • Attribute field
    • Link field
    • Variable

  3. Select the resource pattern and click Create Statement .
  4. Fill the predicate and select a mode:
    • Default
    • Optional
    • Negative

Add All Patterns from an Element

You can add all the patterns that are contained in an existing element.

  1. From the tree, drop an element onto the definition.
  2. Select and delete the patterns or statements that are not relevant for your analysis.

Copy a Pattern

  1. Select a pattern.
  2. From the shortcut toolbar, click Copy .
  3. Select the location for your new pattern.
  4. From the shortcut toolbar, click Paste .

Create a Pattern Definition from a Pattern

Pattern definitions are used to organize or reuse patterns.

  1. Select a pattern.
  2. From the shortcut toolbar, click Extract Pattern .