Skip to main content
Question

Relationship labels in CDF. parent & child

  • August 4, 2025
  • 2 replies
  • 37 views

Forum|alt.badge.img+2

Hi,
I use “Relationship labels” to contextualize related timeseries, events, sequences from other CDF datasets.
In the example below you can see the asset called “A-03” which has 157 related timeseries. However, only approx. 30 out 157 labels belong to the asset “A-03”, the rest 127 labels belong to the children (L1, L2, L3 ...).
 


I don’t want the children’s labels to belong to the parent asset (A-03), I want the parrent asset (A-03) only having its own 30 “Relationshop labels”.
is it possible to do?

2 replies

Sofie Svartdal Berge
Seasoned Practitioner

Hi ​@belaz19 !

Hm, are you sure you have not linked, through relationships, these time series directly to A-03? Relationships are not fetched with “subtree” logic; they rely on being present on the asset directly. The label itself is just naming the relationship, and not deciding which data objects the relationship is between - that would be defined in the relationship source and target (pointing from, pointing to). 

https://api-docs.cognite.com/20230101/tag/Relationships/operation/createRelationships

 

Let me know if I misinterpreted your question:) 

 

Best, 

Sofie, product manager


Forum|alt.badge.img+2
  • Author
  • Committed
  • August 29, 2025

@Sofie Svartdal Berge ,

Thanks. You are right.

I have now looked at our python script, and yes, these relationship labels have beed coded for both, children & parents :)

 

Regards,

Dmitriy