Skip to content

feat: plan the removal of a data entity - #26

Merged
St4NNi merged 5 commits into
mainfrom
feat/remove-data-entity
Nov 12, 2026
Merged

St4NNi merged 5 commits into
mainfrom
feat/remove-data-entity

Conversation

@St4NNi

@St4NNi St4NNi commented Nov 12, 2026

Copy link
Copy Markdown
Member

Adds a planned removal of one data entity from a crate, so Aruna can let plugins and users remove a file entry from a dataset's metadata.

  • CraqleNode::plan_remove_data plans the removal of one root-linked File entity (also stored as MediaObject): every triple it holds and the root's hasPart link to it. Other subjects and their references to it stay.
  • The root dataset, the metadata descriptor, # contextual entities and non-file entities are refused without a change.
  • Upserts and patches of a root data entity write its type, name and root hasPart link again under their new dot, so an edit made concurrently with a removal keeps the entity whole.

@St4NNi
St4NNi merged commit d4ac035 into main Nov 12, 2026
12 checks passed
@St4NNi
St4NNi deleted the feat/remove-data-entity branch November 12, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant