UNPKG

@mnakhla/rocketrml

Version:

This is a forked rocketrml mapper for the RDF mapping language

35 lines (32 loc) 944 B
interface RocketRMLOptions { // jsonld @context for json-ld compress compress?: any; // output triples instead of json-ld toRDF?: boolean; // jsonld only: replace @ids with elements replace?: boolean; // remove xmlns in xml documents (for easier xPaths) removeNameSpace?: Record<string, string>; // xpath evaluator library xpathLib?: 'default' | 'xpath' | 'pugixml' | 'fontoxpath'; // functions functions?: Record<string, Function>; // add no triples for empty strings ignoreEmptyStrings?: boolean; // ignore values from the input ignoreValues?: string[]; // csv options csv?: { delimiter?: string; }; } export function parseFile( mappingFilePath: string, outputPath: string, options?: RocketRMLOptions, ): Promise<any>; export function parseFileLive( mappingFile: string, inputFiles: Record<string, string>, options?: RocketRMLOptions, ): Promise<any>;