sds-processors v0.3.2
sds-processors
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.
15 days ago
15 days ago
15 days ago
15 days ago
15 days ago
25 days ago
2 months ago
2 months ago
4 months ago
5 months ago
5 months ago
5 months ago
6 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
11 months ago
11 months ago