Create a context specification (in preview)
Create a context specification to define how Collibra reads an asset type and shapes the output for a target schema. When you finish, you and your colleagues can generate governed context for any asset of that type, in the same structure every time.
Prerequisites
- The Governed Context Compiler is switched on in your environment.
- You have the Product rights > Guided Stewardship global permission.
- You have the Asset > Add resource permission on the New Context Specifications domain where Collibra saves Context Specification assets.
Steps
- On the main menu, click Stewardship.
- In the Semantic Layer section, click Context specifications.
- Click Create context specification.
- Enter the required information.
- Click Create.
The asset page of the new Context Specification asset opens on the Specification tab. The schema tree is on the left. For a predefined schema, the schema tree shows all fields of that schema. - If you selected Custom Schema, build the output structure in the schema tree:
- Click Add field in the schema tree.
- Enter the name of the field.
- To add a child item to an existing field, hover your cursor over the field and click
, then click Add child item.
- To change the order of the schema, click and drag fields in the schema tree, or click
, then Move up or Move down.
- In the schema tree, select a field.
- In the Mapping type section, select how the field gets its value. For more information, go to Context specification mapping types (in preview).
- Enter the settings for the mapping type.
- Repeat steps 7 to 9 for each field.
A green check mark appears next to each field that has a valid mapping. Collibra saves your edits automatically. - Optionally, test the context specification on a real asset. For more information, go to Test a context specification (in preview).
| Field | Description |
|---|---|
| Context name | A unique name for the context specification, up to 255 characters. |
| Description | Optional. A short description that appears in the list of context specifications. |
| Target schema type | The structure of the output: a predefined schema or Custom Schema. You cannot edit the target schema type after you create the context specification. |
| Target asset type | The asset type that the context specification reads from. You can edit the target asset type later. |
Helpful resources
- Example | Governed Context Compiler: Build a context specification for a data product (in preview)
- Manage context specifications (in preview)
- Context specification mapping types (in preview)
- Test a context specification (in preview)
- Download context from an asset page (in preview)
- Context specification YAML reference (in preview)