Skip to content

...add a new dataset

MariusDanner edited this page Dec 18, 2019 · 2 revisions

If you just want to add a new dataset, you can use the frontend or the endpoint (documented in swagger).

⚠️ Nodes are directly connected to datasets and have to be created on INSERT! This is currently done for you in:

If you create a dataset via the DatasetFactory the corresponding nodes are not created automatically.

For example in unit tests this is not necessary. If you need the corresponding nodes:

  1. Create the database table and content (if not already existing)
  2. Create the Dataset object (a content_hash will be created)
  3. Call add_dataset_nodes() to create corresponding nodes