instead of grouping statements by document, the function fail to de-duplicate st.why. With as aconsequence a duplication of statements. On remove this induces PATCH failure.
const uniqueDocs = Array.from(new Set(docs)) is incorrect because all objects are different, we must compare the content.
We can use rdflib.js sameTerm that make a node key value comparison in something like :
https://github.com/solid/contacts-pane/issues/40
instead of grouping statements by document, the function fail to de-duplicate st.why. With as aconsequence a duplication of statements. On remove this induces PATCH failure.
const uniqueDocs = Array.from(new Set(docs))
is incorrect because all objects are different, we must compare the content. We can use rdflib.jssameTerm
that make a node key value comparison in something like :