> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/cartography/generic-relationships.md).

# Generic relationships

## What is a generic relationship?

A **generic relationship** is a simple, labelled link between two elements in Dastra. It allows you to document connections between objects that are not automatically inferred by the platform — for example, linking an asset to a stakeholder, or a risk to a data breach.

A relationship is characterised by:

* a **source object** and a **target object**,
* a **relation label** (optional, e.g. "Controller", "Managed by"),
* a **summary** (optional, for additional context),
* a **direction** — which can be inverted if needed.

{% hint style="info" %}
One element can be linked to multiple other elements of different types.
{% endhint %}

## Where are generic relationships available?

Generic relationships can be created from the following elements:

* **Assets**
* **Stakeholders**
* **Security measures**
* **Data breaches**
* **Datasets**
* **Risks**

They are primarily used in the **Assets** module and the **referentials** (cartography), where the full relationship graph is visualised.

## How to add a generic relationship

1. Open an element (e.g. an asset).
2. Click the **"Linked elements"** icon in the top toolbar — it shows the current count of linked elements.
3. Click **"Add a relationship"** and select the type of object to link to (Stakeholder, Security measure, Data breach, Asset, Dataset or Risk).
4. In the dialog:
   * Toggle **"Inverse relationship"** if the direction should be reversed.
   * Choose **"Existing element"** to link to an element already in Dastra, or **"Create element"** to create a new one on the fly.
   * Select the target object from the dropdown.
   * Optionally add a **Relation label** and a **Summary**.
5. Click **"Add"** to save the relationship.

## Visualising relationships

Once relationships are created, they appear in:

* The **"Linked elements"** panel of each element, showing all direct links.
* The **node graph** in the cartography view, where all relationships are displayed as a connected network.

## Go further

{% content-ref url="/pages/7Si9PXeIqhDzMySUroa5" %}
[Data Mapping](/en/features/cartography.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.dastra.eu/en/features/cartography/generic-relationships.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
