UNPKG

@treecg/ldes-orchestrator

Version:

Fills the gaps that a Linked Data Platform (LDP) cannot do by itself for creating a Linked Data Event Stream (LDES) in LDP.

22 lines (21 loc) 1.1 kB
import { Store } from "n3"; /** * Creates an LDES EventStream with the first relation * * @param shape Shape IRI * @param treePath IRI of the SHACL path on which the value of the relations will act * @param firstNodeName a string timestamp, which is the name the node of the first relation * @param base The base IRI (without the root.ttl suffix) * @returns {Promise<Store>} */ export declare function createEventStream(shape: string, treePath: string, firstNodeName: string, base: string): Promise<Store>; /** * Adds a relation (to a certain node) to an existing root Node * * @param store The store which consists of the current root node * @param treePath The SHACL path to used to compare the relation with * @param treeRelation The type of TREE relation * @param newNode The node to where the relation points. MUST be a string representation of an ISO timestamp (e.g. "1638353126973") * @param base The IRI of the container where the root is stored */ export declare function addRelation(store: Store, treePath: string, treeRelation: string, newNode: string, base: string): void;