Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rmlio/rmlmapper-java-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmlio/rmlmapper-java-wrapper - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [0.0.5] - 2019-05-20
### Fixed
- Make paths work for Windows.
- Increase time out of tests.
## [0.0.4] - 2019-05-20

@@ -24,5 +30,5 @@

[0.0.5]: https://github.com/RMLio/yarrrml-parser/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/RMLio/yarrrml-parser/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/RMLio/yarrrml-parser/compare/v0.0.2...v0.0.3
[0.0.2]: https://github.com/RMLio/yarrrml-parser/compare/v0.0.1...v0.0.2

@@ -16,2 +16,4 @@ /**

describe('Success', function() {
this.timeout(5000);
it('Simple CSV mapping', async () => {

@@ -18,0 +20,0 @@ // GIVEN a wrapper and a simple CSV mapping generating one quad

15

lib/wrapper.js

@@ -34,7 +34,7 @@ /**

// folder where the data used by the RMLMapper is stored
const processDir = this.tempFolder + path.sep + ms;
const processDir = path.resolve(this.tempFolder, '' + ms);
fs.mkdir(processDir, () => {
const logFile = processDir + path.sep + 'rmlmapper.log';
const sourceDirPrefix = processDir + path.sep + sourceFilePrefix;
const logFile = path.resolve(processDir, 'rmlmapper.log');
const sourceDirPrefix = path.resolve(processDir, sourceFilePrefix);
const self = this;

@@ -46,3 +46,3 @@

} else {
const mappingFile = processDir + path.sep + 'mapping.rml.ttl';
const mappingFile = path.resolve(processDir, 'mapping.rml.ttl');

@@ -56,4 +56,4 @@ try {

} else {
const outputFile = processDir + path.sep + "output.nq";
const metadataFile = processDir + path.sep + "metadata.nq";
const outputFile = path.resolve(processDir, "output.nq");
const metadataFile = path.resolve(processDir, "metadata.nq");

@@ -66,7 +66,6 @@ let execCommand = `java -jar ${self.path} -m ${mappingFile} -o ${outputFile}`;

execCommand += ` &> ${logFile}`;
exec(execCommand, function (error, stdout, stderr) {
if (stderr) {
fs.writeFileSync(logFile, stderr);
const err = new Error(`Error while executing the rules.`);

@@ -73,0 +72,0 @@ err.log = stderr;

{
"name": "@rmlio/rmlmapper-java-wrapper",
"version": "0.0.4",
"version": "0.0.5",
"description": "A JavaScript wrapper around the Java RMLMapper.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc