Skip to content

🤯 Cognitarium: Prevent blank nodes conflicts #434

Closed
@amimart

Description

@amimart

When inserting triples, avoid same blank nodes being reused across insertions.

Issue description

Blank nodes allowing to create edges in graphs at insertion, their meaning is only linked to the set of triples being inserted and shall be ensured unique per insertion. Allowing to define same blank nodes across multiples insertions could affect previous ones and therefore alter unintentionally the data contained.

When inserting blank nodes, they shall be ensured unique scoped per insert message execution.

Proposal

In order to provide unique blank nodes at insertion, their identifier shall be formed with the context of this particular execution. I propose so to prefix alter their ids before writing by prefixing them with a hash representing the execution context, which shall carry the block height, the index of the transaction the message come from, and the insert message itself.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions