-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
On OSX I run the example code from the README
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'});
But I get an error message:
Error: Error while executing the rules.
at ChildProcess.<anonymous> (/Users/hochsten/github.com/MellonScholarlyCommunication/eventlog-server/node_modules/@rmlio/rmlmapper-java-wrapper/lib/wrapper.js:204:23)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Pipe.<anonymous> (node:net:339:12) {
log: 'Error: Unable to access jarfile ./rmlmapper.jar\n'
}
Node.js v20.17.0
The code works when I replace const rmlmapperPath = './rmlmapper.jar'; with the absolute path to the jar file.
Metadata
Metadata
Assignees
Labels
No labels