rdf-dataset-fragmenter
Version:
Fragments an RDF dataset into multiple parts
24 lines (23 loc) • 696 B
TypeScript
import type { Readable } from 'node:stream';
import type * as RDF from '@rdfjs/types';
import type { IQuadSource } from './IQuadSource';
/**
* A quad source that loads quads from a file.
*/
export declare class QuadSourceFile implements IQuadSource {
private readonly filePath;
private readonly baseIRI?;
constructor(options: IQuadSourceFileOptions);
getQuads(): RDF.Stream & Readable;
}
export interface IQuadSourceFileOptions {
/**
* Path to a local RDF file.
* This file should include an extension so that the used format can be detected.
*/
filePath: string;
/**
* An optional baseIRI to parse the file with.
*/
baseIRI?: string;
}