UNPKG

rdf-dataset-fragmenter

Version:
24 lines 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QuadSinkComposite = void 0; /** * A quad sink that combines multiple quad sinks. */ class QuadSinkComposite { sinks; constructor(sinks) { this.sinks = sinks; } async push(iri, quad) { for (const sink of this.sinks) { await sink.push(iri, quad); } } async close() { for (const sink of this.sinks) { await sink.close(); } } } exports.QuadSinkComposite = QuadSinkComposite; //# sourceMappingURL=QuadSinkComposite.js.map