rdf-dataset-fragmenter
Version:
Fragments an RDF dataset into multiple parts
29 lines (28 loc) • 786 B
TypeScript
import type * as RDF from '@rdfjs/types';
import type { IQuadMatcher } from './IQuadMatcher';
/**
* Matches a quad by the given component regex, with optional probability.
*/
export declare class QuadMatcherTermValue implements IQuadMatcher {
private readonly term;
private readonly regex;
private readonly probability;
constructor(options: IQuadMatcherTermValueOptions);
matches(quad: RDF.Quad): boolean;
}
export interface IQuadMatcherTermValueOptions {
/**
* The quad component to execute regex on.
*/
term: RDF.QuadTermName;
/**
* The regex used on the component value.
*/
regex: string;
/**
* Optional probability to register a match.
* @range {float}
* @default {1.0}
*/
probability: number;
}