@rmlio/rmlmapper-java-wrapper
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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 |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14777
271