0.3.2 • Published 15 days ago

sds-processors v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

sds-processors

Bun CI npm

Connector Architecture Typescript processors for handling operations over SDS streams. It currently exposes 4 functions:

js:Sdsify

This processor takes as input a stream non SDS entities (members) and wrap them inside SDS records. Optionally, a type can be specified to indicate the correct subject.

js:Bucketize

This processor takes as input a stream of SDS records and SDS metadata and proceeds to bucketize them according to a predefined strategy (see example). The SDS metadata will be also transformed to reflect this transformation. Multiple SDS streams can be present on the incoming data channel.

You can define bucketizers as follows:

<bucketize> a js:Bucketize;
  js:channels [
    js:dataInput <...data input>;
    js:metadataInput <... metadata input>;
    js:dataOutput <... data output>;
    js:metadataOutput <... metadata output>;
  ];
  js:bucketizeStrategy ( [            # One or more bucketize strategies
    a tree:SubjectFragmentation;      # Create a bucket based on this path
    tree:fragmentationPath ( );
  ] [
    a tree:PageFragmentation;         # Create a new bucket when the previous bucket has 2 members
    tree:pageSize 2;
  ] );
  js:savePath <./buckets_save.json>;
  js:outputStreamId <MyEpicStream>.

js:Ldesify

This processor takes a stream of raw entities (e.g., out from a RML transformation process) and creates versioned entities appending the current timestamp to the entity IRI to make it unique. It is capable of keeping a state so that unmodified entities are filtered.

js:Generate

This a simple RDF data generator function used for testing. This processor will periodically generate RDF objects with 3 to 4 predicates.

0.4.0-alpha.3

15 days ago

0.4.0-alpha.2

15 days ago

0.4.0-alpha.1

15 days ago

0.3.0-alpha.2

15 days ago

0.3.0-alpha.1

15 days ago

0.2.2

25 days ago

0.1.5

2 months ago

0.3.2

2 months ago

0.3.1

4 months ago

0.3.0

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.4

6 months ago

0.1.0

8 months ago

0.1.2

7 months ago

0.1.1

8 months ago

0.1.3

7 months ago

0.0.3

8 months ago

0.0.2

11 months ago

0.0.1

11 months ago