UNPKG

rdf-dataset-fragmenter

Version:
21 lines (20 loc) 925 B
import type * as RDF from '@rdfjs/types'; import type { QuadTermName } from 'rdf-terms'; import type { IQuadMatcher } from '../quadmatcher/IQuadMatcher'; import type { IQuadTransformer } from './IQuadTransformer'; /** * A quad transformer that appends a link to matching quads. */ export declare class QuadTransformerAppendQuadLink implements IQuadTransformer { private static readonly RDF_TYPE; private readonly matcher; private readonly identifier; private readonly predicate; private readonly link; private readonly linkType?; private readonly reverse?; private readonly linkRemoveTrailingSlash?; constructor(matcher: IQuadMatcher, identifier: QuadTermName, predicate: string, link: string, linkType?: string, reverse?: boolean, linkRemoveTrailingSlash?: boolean); transform(quad: RDF.Quad): RDF.Quad[]; protected appendQuads(original: RDF.Quad, results: RDF.Quad[]): void; }