npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rdfc/sds-storage-writer-ts

v2.0.0

Published

An RDF-Connect processor to write SDS streams into a given storage system

Readme

sds-storage-writer-ts

Build and tests with Node.js
npm

TypeScript RDF-Connect processor for ingesting SDS streams and generating persistent Linked Data Event Stream (LDES) or in general TREE fragmentations.
The processor consumes an SDS stream and stores all data, metadata, and fragmentation structures into a supported storage backend.

Currently supported storage systems:

  • MongoDB
  • Redis

This repository exposes one processor:


rdfc:IngestSDS

Processor that ingests an SDS stream to generate a Linked Data Event Stream.
Uses sds:Bucket to describe fragmentation (see rdfc:Bucketize).

This processor stores:

  • SDS members (data)
  • SDS metadata
  • SDS buckets and relations
  • SDS fragmentation structure

in a persistent database backend, making the stream available for LDES servers to serve and traverse.


Import

@prefix owl: <http://www.w3.org/2002/07/owl#>.

<> owl:imports <./node_modules/@rdfc/sds-storage-writer-ts/processor.ttl>.

Example Configuration

@prefix rdfc: <https://w3id.org/rdf-connect#>.
@prefix owl:  <http://www.w3.org/2002/07/owl#>.

### Import processor definitions
<> owl:imports <./node_modules/@rdfc/sds-storage-writer-ts/processor.ttl>.

### Define readers
<dataInput> a rdfc:Reader.
<metadataInput> a rdfc:Reader.

### Configure the processor
<ingestor> a rdfc:IngestSDS;
    rdfc:dataInput <dataInput>;
    rdfc:metadataInput <metadataInput>;
    rdfc:database [
        rdfc:url "mongodb://localhost:27017/ldes";
        rdfc:metadata "meta";
        rdfc:data "data";
        rdfc:index "index";
    ].

Processor Semantics

Given an SDS stream with a predefined fragmentation:

# Member exists
ex:sample1 a ex:Object;
  ex:x "2";
  ex:y "5".

sds:DataDescription {
  [] sds:stream <bucketizedStream>;
    sds:payload ex:sample1; # Stream membership
    sds:bucket <bucket2>.

  # Bucket relations
  <bucket1> sds:relation [
    sds:relationType tree:GreaterThanRelation;
    sds:relationBucket <bucket2>;
    sds:relationValue 1;
    sds:relationPath ex:x 
  ].
}

The processor will:

  • Store the member data ex:sample1
  • Store SDS metadata sds:DataDescription and sds:RemoveDataDescription
  • Store bucket definitions sds:bucket and sds:relationBucket values
  • Store bucket relations sds:relation values
  • Persist the full fragmentation structure in the configured storage system.

Database Backends

MongoDB

Data is stored in collections defined by:

  • rdfc:metadata
  • rdfc:data
  • rdfc:index

Redis

Redis is supported as an alternative backend with the same logical structure, enabling:

  • fast ingestion
  • scalable storage

Configuration Reference

rdfc:IngestSDS

| Property | Type | Required | Description | |----------------------|---------------------|----------|-------------------------------| | rdfc:dataInput | rdfc:Reader | yes | SDS member stream | | rdfc:metadataInput | rdfc:Reader | yes | SDS metadata stream | | rdfc:database | rdfc:DatabaseConfig | yes | Storage backend configuration |


rdfc:DatabaseConfig

| Property | Type | Required | Description | |-----------------|--------|----------|--------------------------| | rdfc:metadata | string | yes | Metadata collection name | | rdfc:data | string | yes | Data collection name | | rdfc:index | string | yes | Index collection name | | rdfc:url | string | no | Database connection URL |


Role in RDF-Connect Pipelines

Typical architecture:

[SDS Stream] + [Members Stream]
↓
rdfc:IngestSDS
↓
MongoDB / Redis
↓
LDES Server

This processor acts as the persistent storage layer between streaming RDF-Connect pipelines and TREE/LDES serving infrastructure.


© Ghent University – IMEC
MIT License

Authors:

  • Arthur Vercruysse
  • Julián Rojas
  • Ieben Smessaert