UNPKG

@treecg/curation

Version:

This library implements a class (Curator) with methods to curate an announcement LDES in LDP.

20 lines (19 loc) 926 B
/*************************************** * Title: Conversion * Description: Conversion functions * Author: Wout Slabbinck (wout.slabbinck@ugent.be) * Created on 10/12/2021 *****************************************/ import { DataService, DataSet, View } from "@treecg/ldes-announcements/dist/util/Interfaces"; import { Store } from "n3"; import { ParseOptions } from "rdf-parse/lib/RdfParser"; export declare function turtleStringToStore(text: string, baseIRI?: string): Promise<Store>; export declare function ldjsonToStore(text: string, baseIRI?: string): Promise<Store>; /** * Converts a store to turtle string * @param store * @returns {string} */ export declare function storeToString(store: Store): string; export declare function stringToStore(text: string, options: ParseOptions): Promise<Store>; export declare function memberToString(member: DataSet | DataService | View, baseIRI?: string): Promise<string>;