Hello I’m working on my first solid app and I’m having trouble with updates and deletes with Tripledoc. I’ve reduced my problem down to this situation:
My ttl document contains a single subject of type schema.MonetaryAmount with an amount and currency fields set to 1.0 and “USD” respectively.
@prefix : <#>.
@prefix schem: < schema . org/>.
:160564406008210418706675407852
a schem:MonetaryAmount; schem:amount 1.0; schem:currency "USD".
When I invoke tripledoc document remove subject then document save I get this error:
Uncaught (in promise) Error: The patch could not be applied. Could not find to delete: <pod url#160564406008210418706675407852> <schema . org/amount> "1.0"^^<XMLSchema#decimal> .
the http PATCH request response is 409. The request body (sent from tripledoc ) is:
DELETE DATA {<pod url#160564406008210418706675407852> a <schema . org/MonetaryAmount>;
<schema . org/amount> “1.0”^^<XMLSchema#decimal>;
<schema . org/currency> “USD”.
};
If I run this same logic of (add subject, save, remove subject, save) after each other (re-using the triple doc document instance), then I don’t see the 409 problem. What is going on here?
Here is the sample code to reproduce the issue: https://github.com/abigpotostew/solid-bugs
Thank you.
ps I had to omit a bunch of URLs because the forum only allows 2 links per post for new users.
Edit: clarified some URLs