quadstore
Version:
Quadstore is a LevelDB-backed RDF graph database / triplestore for JavaScript runtimes (browsers, Node.js, Deno, Bun, ...) that implements the RDF/JS interfaces and supports SPARQL queries and querying across named graphs.
11 lines (10 loc) • 789 B
TypeScript
import type { EventEmitter } from 'events';
import type { AbstractLevel } from 'abstract-level';
import type { TermName, StreamLike } from '../types/index.js';
export declare const isObject: (o: any) => boolean;
export declare const isAbstractLevel: <TDatabase, K, V>(o: any) => o is AbstractLevel<TDatabase, K, V>;
export declare const ensureAbstractLevel: (o: any, key: string) => void;
export declare const streamToArray: <T>(source: StreamLike<T>) => Promise<T[]>;
export declare const resolveOnEvent: (emitter: EventEmitter, event: string, rejectOnError?: boolean) => Promise<any>;
export declare const waitForEvent: (emitter: EventEmitter, event: string, rejectOnError?: boolean) => Promise<any>;
export declare const arrStartsWith: (arr: TermName[], prefix: TermName[]) => boolean;