linkeddata / rdflib.js

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

RemoveDocument() leaves link relations in the store. #640

Open jeff-zucker opened 3 months ago

jeff-zucker commented 3 months ago

As shown in https://github.com/linkeddata/rdflib.js/pull/633#issuecomment-2002200768, removeDocument() does not remove the item's link relations leaving behind triples with the acl, describedBy, and link predicates referring to the document in the store. These items have the document as subject and a blanknode as t he graph. I don't know if it is a problem to leave them, but it seems cleaner to remove them.