UNPKG

rdf-dataset-fragmenter

Version:
17 lines 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QuadMatcherPredicate = void 0; /** * Matches a quad by the given predicate regex. */ class QuadMatcherPredicate { predicate; constructor(predicateRegex) { this.predicate = new RegExp(predicateRegex, 'u'); } matches(quad) { return Boolean(this.predicate.test(quad.predicate.value)); } } exports.QuadMatcherPredicate = QuadMatcherPredicate; //# sourceMappingURL=QuadMatcherPredicate.js.map