2.1.2 • Published 9 months ago

@rmlio/rmlmapper-java-wrapper v2.1.2

Weekly downloads
12
License
MIT
Repository
github
Last release
9 months ago

JavaScript wrapper for Java RMLMapper

This is a JavaScript library offering a wrapper around the Java RMLMapper.

Requirements

  • Node.js
  • Java VM
  • Jar of the RMLMapper, which you can download via npm run download:rmlmapper.

Usage

const RMLMapperWrapper = require('@rmlio/rmlmapper-java-wrapper');
const fs = require('fs');

const rmlmapperPath = './rmlmapper.jar';
const tempFolderPath = './tmp';

const wrapper = new RMLMapperWrapper(rmlmapperPath, tempFolderPath, true);
const rml = fs.readFileSync('./test/tc01/mapping.ttl', 'utf-8');
const sources = {
  'student.csv': fs.readFileSync('./test/tc01/student.csv', 'utf-8')
};

const result = await wrapper.execute(rml, {sources, generateMetadata: false, serialization: 'turtle'});

Note that you can also provide an array of quads to execute instead of a string with RDF. An example can be found in the tests.

License

This code is copyrighted by Ghent University – imec and released under the MIT license.

2.1.2

9 months ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago