Skip to content
sourceobject mode

Opens an RDF from web or local file

Web resource requires content-type header. Will try n-triples as fallback. Local paths will be relative to the current working directory

From barnard59-rdf · v3.4.1

Reference

Identifier
https://barnard59.zazuko.com/operations/rdf/openView as Turtle ↓
Module
barnard59-rdf/open.js
Export
default
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/open.js#default>
  ] .

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