UNPKG

wn-ts-node

Version:
34 lines 1.54 kB
import { DatabaseAdapter, ValidationOptions, ValidationResult } from 'wn-ts-core'; /** * Node.js implementation of the DatabaseAdapter interface * This provides access to SQLite databases using better-sqlite3 */ export declare class NodeDatabaseAdapter implements DatabaseAdapter { private db; constructor(databasePath: string); getLexicons(): Promise<any[]>; getWords(lexiconId: string): Promise<any[]>; getSynsets(lexiconId: string): Promise<any[]>; getSenses(wordId: string): Promise<any[]>; getForms(wordId: string): Promise<any[]>; getWordTags(wordId: string): Promise<any[]>; getFormTags(formId: string): Promise<any[]>; getSenseRelations(senseId: string): Promise<any[]>; getSenseExamples(senseId: string): Promise<any[]>; getSenseCounts(_senseId: string): Promise<any[]>; getSyntacticBehaviours(_wordId: string): Promise<any[]>; getDefinitions(synsetId: string): Promise<any[]>; getILIDefinitions(_synsetId: string): Promise<any[]>; getSynsetRelations(synsetId: string): Promise<any[]>; getSynsetExamples(synsetId: string): Promise<any[]>; close(): void; } /** * Convenience function to validate LMF data integrity using a SQLite database */ export declare function validateLMFDataIntegrityFromSQLite(databasePath: string, originalXmlPath: string, options?: ValidationOptions): Promise<ValidationResult>; /** * CLI function to run validation */ export declare function runValidationCLI(args: string[]): Promise<void>; //# sourceMappingURL=validation.d.ts.map