Data Type Example Projects

GLASS Studio comes with several data type example projects that provide a starting point for you to begin developing new GLASS data types.

What’s In a Data Type Example Project

All the built-in GLASS Studio data type example projects are defined within a single JSON file.

GLASS Studio project data type examples

Each example project:

  1. Contains a complete data type pattern built completely in GLASS Studio Visual Builder or Code Editor mode.
  2. Includes sample test data to help you understand what is expected or not expected to match based on the data type definition.
  3. Utilizes different GLASS operators and/or keywords to speed up your understanding of the GLASS language.

Example Projects

You can choose from any of the following data type example projects when you launch GLASS Studio.

Project Description
Customer ID (ACME Corp.)
Example built in GLASS Studio Visual Builder mode
Searches for ACME Corporation's customer ID number, includes both the worldwide and regional number format. Requires contextual keywords within the proximity of the customer ID numbers for greated pattern matching accuracy and reduced false positives. Demonstrates the use of GLASS:
  • Base patterns components - WORD, RANGE, GROUP and MAP
  • Base pattern options - TIMES, NOCASE
  • Connectors - THEN, OR
  • Pattern rules - BOUND, REQUIRE, EXCLUDE
  • Check algorithms - CHECK
  • Contextual information - CONTEXT and APPLY
  • Preset keywords - DIGIT, NONALNUM

See Getting To Know ACME Corporation and Data Type Examples - ACME Corporation Customer ID for more information on the requirements and description of the data type.

Company Email Address
Example built in GLASS Studio Visual Builder mode
Searches case-insensitively for company email addresses. Demonstrates the use of GLASS:
  • Base patterns components - WORD, RANGE
  • Base pattern options - TIMES, NOCASE
  • Connectors - THEN
  • Pattern rules - BOUND
  • Preset keywords - LETTER, ALNUM, NONALNUM

See Data Type Examples - Company Email Address for more information on the requirements and description of the data type.

7-digit Club Membership ID
Example built in GLASS Studio Visual Builder mode
Searches for ACME Corporation's customer ID number, includes both the worldwide and regional number format. Requires contextual keywords within the proximity of the customer ID numbers for greated pattern matching accuracy and reduced false positives. Demonstrates the use of GLASS:
  • Base patterns components - RANGE, MAP
  • Base pattern options - TIMES, NOCASE
  • Pattern rules - BOUND, REQUIRE
  • Contextual information - CONTEXT and APPLY
  • Preset keywords - DIGIT, NONALNUM

See Data Type Examples - 7-digit Club Membership ID for more information on the requirements and description of the data type.

Customer ID (ACME Corp.)
Example built in GLASS Studio Code Editor mode
Searches for ACME Corporation's customer ID number, includes both the worldwide and regional number format. Requires contextual keywords within the proximity of the customer ID numbers for greated pattern matching accuracy and reduced false positives. Demonstrates the use of GLASS:
  • Base patterns components - WORD, RANGE, GROUP and MAP
  • Base pattern options - TIMES, NOCASE
  • Connectors - THEN, OR
  • Pattern rules - BOUND, REQUIRE, EXCLUDE
  • Reusable expressions - ALIAS and REFER
  • Check algorithms - CHECK
  • Contextual information - CONTEXT and APPLY
  • Preset keywords - DIGIT, NONALNUM

See Getting To Know ACME Corporation and Data Type Examples - ACME Corporation Customer ID for more information on the requirements and description of the data type.

Subject Access Request
Example built in GLASS Studio Code Editor mode
Searches case-insensitively for an individual's first and last name combination. Demonstrates the use of GLASS:
  • Base patterns components - RANGE, GROUP and MAP
  • Base pattern options - TIMES, NOCASE
  • Connectors - THEN, OR
  • Pattern rules - BOUND
  • Reusable expressions - ALIAS and REFER
  • Preset keywords - NONALNUM

See Data Type Examples - Subject Access Request for more information on the requirements and description of the data type.

Blood Type Records
Example built in GLASS Studio Code Editor mode
Searches case-insensitively for blood type records in two possible formats. Demonstrates the use of GLASS:
  • Base patterns components - WORD, GROUP, COPY and MAP
  • Base pattern options - TIMES, NOCASE
  • Connectors - THEN, OR
  • Pattern rules - BOUND
  • Reusable expressions - ALIAS and REFER
  • Preset keywords - NONALNUM

See Data Type Examples - Blood Type Records for more information on the requirements and description of the data type.

XYZ National ID
Example built in GLASS Studio Code Editor mode
Searches for 13-digit XYZ National ID numbers which is composed from several components inculding date of birth, a unique serial number, and Luhn check digits. Demonstrates the use of GLASS:
  • Base patterns components - WORD and RANGE
  • Base pattern options - TIMES
  • Connectors - THEN, OR
  • Pattern rules - BOUND
  • Reusable expressions - ALIAS and REFER
  • Check algorithms - CHECK
  • Scoring rules - SCORE, RANK, BEFORE, and AFTER
  • Labels - LABEL
  • Preset keywords - NONALNUM

See Data Type Examples - XYZ National ID for more information on the requirements and description of the data type.

Using a Data Type Example Project

To create a GLASS data type based on an example GLASS Studio project:

  1. Launch GLASS Studio and sign in using your Ground Labs customer portal credentials.
  2. In the start screen, click to load any of the projects in the Data Type Examples pane.
    GLASS Studio project data type examples

  3. In Visual Builder or Code Editor mode, start modifying or adding components to the data type project.
  4. Test your custom GLASS pattern.
  5. Once the data type definition is complete, click the Copy to clipboard copy button to copy the (generated) GLASS code.
  6. Go to your Enterprise Recon Master Server instance and create a custom data type for a data type profile (e.g. "ACME Corporation DTP").
  7. Click on View rules as expression to switch to the Expression Editor.
  8. Enter a descriptive label for the custom data type (e.g. "acme_cust_id_robust") in the Describe Your Data Type field.
  9. Paste the copied GLASS code into the Add Rules field and click Test Rules.
    Add the acme_cust_id_robust Data Type in Enterprise Recon
  10. If the GLASS code can be parsed successfully, click Confirm and proceed to save the data type profile.

You can now search for sensitive data that matches your custom data type when you select the newly edited data type profile (e.g. "ACME Corporation DTP").

See Building and Defining GLASS Patterns to learn more about using the GLASS Studio components to build your GLASS data type.

Saving a Project

Once a project is created, or when any changes are made, you will want to save it.

  1. In the toolbar, click on GLASS Studio at the top left and select Save.
  2. In the Save Pattern dialog box, give the project a name (e.g. "acme-data-type-v1"), and click on Save. The GLASS Studio data type project file will be appended with ".glass" and stored as a single JSON-formatted file (e.g. "acme-data-type-v1.glass.json").
  3. Choose the folder in which to save the data type project file and click Save.