linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
566 stars 143 forks source link

`updater.update()` fails on insert with error `but still can't figure out what editing protocol it supports` #637

Closed bourgeoa closed 6 months ago

bourgeoa commented 7 months ago

PR modified removeDocument() to also remove metadata.

The consequence is that for example fetcher.load() with options.clearPreviousData=true removes also metadata. https://github.com/linkeddata/rdflib.js/blob/6ab4f04a089f271af31d04c6242197cf32f3a333/src/fetcher.ts#L2005-L2008 Running updater.update() fails on insert with error but still can't figure out what editing protocol it supports. This is due to the fact that the current response is stored before being deleted just after.