Skip to content
transformobject mode

Splits RDF stream on subject

Combines streamed quads into datasets. A new dataset is pushed when subject changes

From barnard59-rdf · v3.4.1

Reference

Identifier
https://barnard59.zazuko.com/operations/rdf/splitDataset/bySubjectView as Turtle ↓
Module
rdf-stream-to-dataset-stream/bySubject.js
Stream
Readable and writable — reads the stream and passes it on
Implementation
CommonJS
Install
$ npm i barnard59-rdf

Use it in a pipeline

step definition · Turtle
<> a p:Step ;
  code:implementedBy [
    a code:EcmaScript ;
    code:link <node:rdf-stream-to-dataset-stream/bySubject.js>
  ] .

Paste this into a pipeline definition to add the step. The code:link value tells barnard59 which module to load at runtime.