UNPKG

rdf-dataset-fragmenter

Version:
21 lines 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FragmentationConstant = void 0; const FragmentationStrategyStreamAdapter_1 = require("./FragmentationStrategyStreamAdapter"); /** * A fragmentation strategy that delegates all quads towards a single path. */ class FragmentationConstant extends FragmentationStrategyStreamAdapter_1.FragmentationStrategyStreamAdapter { /** * @param {string} path - the iri of the resource where the quads going to be materialized */ constructor(path) { super(); this.path = path; } async handleQuad(quad, quadSink) { await quadSink.push(this.path, quad); } } exports.FragmentationConstant = FragmentationConstant; //# sourceMappingURL=FragmentationConstant.js.map