Skip to content

Conversation

@ccamel
Copy link
Member

@ccamel ccamel commented Aug 3, 2023

This PR brings addresses #307 by implementing the (missing) DeleteData message in the Cognitarium smart contract, which provides the functionality to delete triples from the contract's state.

⚠️ I had to change the contract of the DELETE message so that the delete triple patterns are now optional but the where clause is compulsory. This change aligns with the W3C's SPARQL DELETE query specification, which serves as our reference point.

@ccamel ccamel force-pushed the feat/delete-implementation branch from e25942e to a85a1b2 Compare August 3, 2023 13:22
@bot-anik
Copy link
Member

bot-anik commented Aug 3, 2023

size-limit report 📦

Path Size
target/wasm32-unknown-unknown/release/okp4_objectarium.wasm 427.68 KB (0%)
target/wasm32-unknown-unknown/release/okp4_law_stone.wasm 636.59 KB (0%)
target/wasm32-unknown-unknown/release/okp4_cognitarium.wasm 790.17 KB (+3.16% 🔺)

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #304 (7ee2610) into main (bd3470a) will increase coverage by 0.20%.
Report is 4 commits behind head on main.
The diff coverage is 99.92%.

❗ Current head 7ee2610 differs from pull request most recent head 74c9461. Consider uploading reports for the commit 74c9461 to get more accurate results

@@            Coverage Diff             @@
##             main     #304      +/-   ##
==========================================
+ Coverage   98.04%   98.25%   +0.20%     
==========================================
  Files          41       42       +1     
  Lines        8861     9696     +835     
==========================================
+ Hits         8688     9527     +839     
+ Misses        173      169       -4     
Files Changed Coverage Δ
contracts/okp4-cognitarium/src/rdf/serde.rs 89.55% <ø> (ø)
contracts/okp4-cognitarium/src/rdf/atom.rs 99.82% <99.80%> (+0.10%) ⬆️
contracts/okp4-cognitarium/src/contract.rs 99.53% <100.00%> (+0.16%) ⬆️
contracts/okp4-cognitarium/src/msg.rs 93.22% <100.00%> (+7.95%) ⬆️
contracts/okp4-cognitarium/src/querier/engine.rs 97.80% <100.00%> (ø)
contracts/okp4-cognitarium/src/querier/plan.rs 100.00% <100.00%> (ø)
...racts/okp4-cognitarium/src/querier/plan_builder.rs 100.00% <100.00%> (ø)
contracts/okp4-cognitarium/src/rdf/mapper.rs 100.00% <100.00%> (ø)
contracts/okp4-cognitarium/src/rdf/uri.rs 100.00% <100.00%> (ø)
contracts/okp4-cognitarium/src/state/triples.rs 100.00% <100.00%> (ø)
... and 1 more

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ccamel ccamel force-pushed the feat/delete-implementation branch from 51feace to 31ec289 Compare August 3, 2023 19:20
@ccamel
Copy link
Member Author

ccamel commented Aug 7, 2023

Status: implementation done. Missing tests.

@ccamel ccamel force-pushed the feat/delete-implementation branch 4 times, most recently from 6ae0136 to 9561d9d Compare August 10, 2023 20:35
@ccamel ccamel self-assigned this Aug 10, 2023
@ccamel ccamel marked this pull request as ready for review August 10, 2023 22:27
@ccamel ccamel changed the title Feat/delete implementation 🤯 Delete implementation Aug 23, 2023
@ccamel ccamel force-pushed the feat/delete-implementation branch from 7ee2610 to 4d5ee31 Compare August 30, 2023 13:41
@ccamel
Copy link
Member Author

ccamel commented Aug 30, 2023

Rebased to include #311 and #322 (among others).

Co-authored-by: Arnaud Mimart <33665250+amimart@users.noreply.github.com>
@ccamel ccamel requested a review from amimart September 5, 2023 16:16
Copy link
Contributor

@amimart amimart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚀

Copy link
Contributor

@bdeneux bdeneux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good 👍 Nice !

@ccamel ccamel merged commit 2b9d953 into main Sep 6, 2023
@ccamel ccamel deleted the feat/delete-implementation branch September 6, 2023 08:35
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.

5 participants