n3-transform
v1.1.0
Published
[![npm version](https://badge.fury.io/js/n3-transform.svg)](https://www.npmjs.com/package/n3-transform)
Downloads
3
Readme
N3-Transform
This module does one thing only: transforming an RDF stream in one format to another format using UNIX streams.
Install
npm install -g n3-transform
Usage
cat some-file.ttl | n3-transform -i turtle -o nquads
cat some-file.ttl | n3-transform -i turtle -o trig -p prefixes_example.json
All parameters are optional.
The input (-i
) and output (-o
) format parameters will default to turtle.
The other allowed format values are: turtle, trig, ntriples or nquads.
The prefixes (-p
) parameter takes the path of a JSON file with prefixes that are used for the formats turtle and trig.
An example of such a file can be found in prefixes_example.json
.
License
N3-Transform is written by Ruben Taelman.
This code is copyrighted by Ghent University – imec and released under the MIT license.