Skip to main content
Solved

Creating edges with cdf toolkit

  • November 26, 2024
  • 5 replies
  • 77 views

Hey, does anyone know how to create an edge between two nodes using cdf toolkit? I am specifically looking to figure out:

  • How does the yaml need to be structured
  • does the file need a special name?
  • does the file need to be in a special folder? 

Best answer by Anders Albert

@Eirik Rathe Thank you for explaining. We will add support for edges in Toolkit. It will be introduced with an alpha flag within the next few weeks, and be in the stable `0.4.0` version that will be sometime next year.

View original
Did this topic help you find an answer to your question?

5 replies

Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 96 replies
  • November 27, 2024

@Eirik Rathe This is currently not supported in Toolkit.

The reasoning is that Toolkit is intended for configuration of resources, and not data. For example, we support setting up data models, workflows, authentication etc, but have limited support for uploading datapoints, events, and so on.

We support node as these are often used as configuration, while do not support edges as they are typically only used as part of data. 

What is your use case for wanting to use Toolkit to populate edges?


  • Author
  • Active
  • 2 replies
  • November 27, 2024

I see. We have a data model that has a set of “framework data” that we instantiate it with, which will be the same for all cdf instances as it is part of a standard. in our data model one of the properties are on the form
someprop: [another_type]

which, as far as I know has to be instantiated with edges since we can’t pass a list of direct references. I was really hoping to use cdf toolkit to set up the model in a new environment as well as populate it with static framework data, without having to setup transforms etc.


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 96 replies
  • Answer
  • November 29, 2024

@Eirik Rathe Thank you for explaining. We will add support for edges in Toolkit. It will be introduced with an alpha flag within the next few weeks, and be in the stable `0.4.0` version that will be sometime next year.


  • Author
  • Active
  • 2 replies
  • November 29, 2024

Great, thanks!


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 96 replies
  • December 2, 2024

@Eirik Rathe Supported in `0.3.17` behind an alpha flag

 

You have to set 

```

[alpha_flags]

edges = true

```

In your cdf.toml file


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings