Skip to content
sourceobject mode

Parse RDF file

Opens and parses an RDF file, choosing the correct parser based on the extension

From barnard59-rdf · v3.4.1

Reference

Identifier
https://barnard59.zazuko.com/operations/rdf/fs.js#parseView as Turtle ↓
Module
barnard59-rdf/fs.js
Export
parse
Stream
Readable — produces a stream
Implementation
ES module
Install
$ npm i barnard59-rdf

Use it in a pipeline

step definition · Turtle
<> a p:Step ;
  code:implementedBy [
    a code:EcmaScriptModule ;
    code:link <node:barnard59-rdf/fs.js#parse>
  ] .

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