UNPKG

lincd

Version:

LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)

22 lines (21 loc) 1.51 kB
import { ComponentQueryPath, CustomQueryObject, GetQueryResponseType, QueryResponseToEndValues, SelectQuery, SelectQueryFactory, WhereEvaluationPath } from '../queries/SelectQuery.js'; import { UpdateQuery } from '../queries/UpdateQuery.js'; import { NamedNode } from '../models.js'; import { PropertyShape } from '../shapes/SHACL.js'; import { NodeSet } from '../collections/NodeSet.js'; import { CreateQuery } from '../queries/CreateQuery.js'; import { DeleteQuery, DeleteResponse } from '../queries/DeleteQuery.js'; export type ProcessedWhereEvaluationPath = WhereEvaluationPath & { processedArgs: any[]; }; export declare function createLocal<ResultType>(query: CreateQuery<ResultType>): Promise<ResultType>; export declare function deleteLocal(query: DeleteQuery): Promise<DeleteResponse>; export declare function updateLocal<ResultType>(query: UpdateQuery<ResultType>): Promise<ResultType>; /** * Resolves the query locally, by searching the graph in local memory, without using stores. * Returns the result immediately. * The results will be the end point reached by the query */ export declare function resolveLocal<ResultType>(query: SelectQuery): ResultType; export declare function resolveLocalEndResults<S extends SelectQueryFactory<any>>(query: S, subject?: NodeSet<NamedNode> | NamedNode, queryPaths?: CustomQueryObject | ComponentQueryPath[]): QueryResponseToEndValues<GetQueryResponseType<S>>; export declare function resolveQueryPropertyPath(node: NamedNode, property: PropertyShape): any;