@comake/skl-js-engine
Version:
Standard Knowledge Language Javascript Engine
10 lines (9 loc) • 873 B
TypeScript
import type { Quad, Literal, Variable } from '@rdfjs/types';
import type { GraphObject, NodeObject } from 'jsonld';
import type { Frame } from 'jsonld/jsonld-spec';
import type { FindOptionsRelations, FindOptionsWhere } from '../storage/FindOptionsTypes';
import type { OrArray, JSONArray, JSONObject } from './Types';
export declare function toJSValueFromDataType(value: string, dataType: string): number | boolean | string;
export declare function triplesToJsonld(triples: Quad[], skipFraming?: boolean, relations?: FindOptionsRelations, where?: FindOptionsWhere, orderedNodeIds?: string[]): Promise<OrArray<NodeObject>>;
export declare function triplesToJsonldWithFrame(triples: Quad[], frame?: Frame): Promise<GraphObject>;
export declare function valueToLiteral(value: string | boolean | number | Date | JSONObject | JSONArray, datatype?: string): Literal | Variable;