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 context toolbar, click Create Pattern .
  2. For the purpose of 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 patterns contained in an existing element.

  1. From the tree, drag 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 context toolbar, click Copy .
  3. Select the location for you new pattern.
  4. From the context 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 context toolbar, click Extract Pattern .