Configuration
Breadcrumbs

Object Subtypes in Lineage Layers

Data lineage in Anjana Data allows segmenting the visualization through layers, and within each layer it is possible to define which object subtypes (entities and relationships) will be displayed in the graph.

This way, specific layers can be configured for different user profiles: for example, a technical layer that excludes Business Glossary entities, or a business layer that shows only those entities relevant to the Data Catalog, without including technical details.

This parameterization is managed in the Layer Subtype table, where the relationship between each layer and the object subtypes that should appear in it is defined.

image-20250912-123620.png
Example of entities and relationships contained in the Consumption Layer

Layer Subtype Table in the Configuration Panel (Administrator view)

Managing object subtypes per layer is performed from the Configuration Panel in the Layer Subtype table.

image-20250912-125817.png
Layer Subtype table for configuring objects in lineage layers

Structure of the Layer Subtype table

Each record in this table is characterized by the following fields:

  • layer: lineage layer in which the object subtypes are defined. Corresponds to a record in the Layer table.

  • objectSubType: object subtype (entity or relationship) that should be visualized in the selected layer. The selector displays the name field of the Object Sub-Types table along with the native relationships generated by the platform (DSA_CONTENT, STRUCTURE…) and the USER pseudo-entities.

Notes:

  • The configuration in this table does not affect governed objects or their existence in the Data Portal. It only conditions the visualization in the lineage graph.

  • If any object is not displayed in the lineage, it is recommended to check whether the corresponding native relationships have also been included in the layer configuration. For example, if DATASET_FIELDs do not appear from a DATASET view even though they have been added to the layer, the cause may be that the STRUCTURE relationship is missing from the layer configuration.

Adding objects to lineage layers in the Layer table

Adding a new subtype to a layer involves adding a record to the Layer Subtype table that associates the selected layer with the object subtype to be displayed.

image-20250912-124811.png
Example of adding the DSA entity to the Consumption Layer

To add a new subtype from the Configuration Panel:

  1. Click the New button in the upper-right corner.

  2. Fill in the fields:

    • layer: select the layer in which you want to include the subtype (e.g.: 2 - Consumption layer).

    • objectSubType: select the object subtype (e.g.: ENTITY - DSA).

  3. Click Save to save the subtype or Cancel to discard it.

Note: After adding, it is necessary to run the Clear cache action from the Configuration Panel (Actions > Clear cache) for the changes to be applied and visible in the Data Portal.


Modifying Objects in lineage layers via the Layer table

Modifying the subtypes of a layer is managed in a simple way and does not depend on the existence of governed objects, as it only affects the lineage visualization.

The modification procedure consists of:

  • Deleting the subtype record that is no longer desired in a layer.

  • Adding a new record with the subtype to be included in its place.

This way, control over which entities and relationships appear in each layer's graph is always maintained.

Note: After modification, it is necessary to run the Clear cache action from the Configuration Panel (Actions > Clear cache) for the changes to be applied and visible in the Data Portal.


Configuring objects in lineage layers via direct database access (Developer view)

Object subtypes per layer are stored in the anjana.layer_subtype table.

Column

Type

Constraints / Notes

layer_id

int4

FK to anjana.layer(id). Layer identifier.

object_subtype

varchar(255)

NOT NULL. Object subtype (name field from the object_subtype table).

Below is an example script to configure all entities and relationships included in a lineage layer:

SQL
INSERT INTO anjana.layer_subtype (layer_id, object_subtype)
VALUES
(2, 'DSA'),
(2, 'DATASET'),
(2, 'DSA_CONTENT'),
(2, 'USER'),
(2, 'ADHERENCE'),
(2, 'DATA_PRODUCT');

Important:

  • Once the insert has been executed, run the sequence update for the table. (From the Configuration Panel under Actions > Reset DQ sequences, you can update the sequences of all tables, including this one).

  • The full responsibility for the configuration logic lies with the developer executing the SQL queries directly on the tables. It is recommended to carefully review the Table Structure section.