UNPKG

voluptatemillo

Version:

Util functions for easier RDF/JS DatasetCore handling

12 lines (8 loc) 247 B
function deleteMatch (dataset, subject, predicate, object, graph) { const matches = dataset.match(subject, predicate, object, graph) for (const quad of matches) { dataset.delete(quad) } return dataset } module.exports = deleteMatch