@on2ts/ontologies-utils
Version:
Utility functions for generating ontology data in on2ts
9 lines (8 loc) • 389 B
TypeScript
import { JsonLdParser } from 'jsonld-streaming-parser';
import type { Quad } from 'rdf-js';
export declare function streamFactory(ontology: Object): () => JsonLdParser;
export declare function arrayFactory(stream: () => JsonLdParser): () => Promise<Quad[]>;
export declare function exportsGenerator(ontology: Object): {
stream: () => JsonLdParser;
array: () => Promise<Quad[]>;
};