YARRRML Parser
This library allows to convert YARRRML rules to RML or R2RML rules.
Install
npm i -g @rmlio/yarrrml-parser
Usage
CLI
If you want to generate RML rules from a YARRRML document, you do the following: yarrrml-parser -i rules.yml
.
The rules will be written to standard output.
If you want to write them to a file, you can add the -o
option.
Library
npm i --save @rmlio/yarrrml-parser
let yarrrml = require('@rmlio/yarrrml-parser/lib/yarrrml2rml');
const yaml = "[yarrrml string]";
const y2r = new yarrrml();
const triples = y2r.convert(yaml);
License
This code is copyrighted by Ghent University – imec and released under the MIT license.