@rmlio/rmlmapper-java-wrapper
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -8,2 +8,7 @@ # Changelog | ||
## [0.1.1] - 2019-07-16 | ||
### Fixed | ||
- Default serialization is NQuads when serialization is not provided. | ||
## [0.1.0] - 2019-07-16 | ||
@@ -38,2 +43,3 @@ | ||
[0.1.0]: https://github.com/RMLio/rmlmapper-java-wrapper-js/compare/v0.1.0...v0.1.1 | ||
[0.1.0]: https://github.com/RMLio/rmlmapper-java-wrapper-js/compare/v0.0.5...v0.1.0 | ||
@@ -40,0 +46,0 @@ [0.0.5]: https://github.com/RMLio/rmlmapper-java-wrapper-js/compare/v0.0.4...v0.0.5 |
@@ -73,2 +73,20 @@ /** | ||
}); | ||
it('Serialization: undefined', async () => { | ||
const wrapper = new RMLMapperWrapper(rmlmapperPath, tempFolderPath, true); | ||
const rml = fs.readFileSync('./test/tc03/mapping.ttl', 'utf-8'); | ||
const sources = { | ||
'student.csv': fs.readFileSync('./test/tc03/student.csv', 'utf-8') | ||
}; | ||
let error = null; | ||
try { | ||
await wrapper.execute(rml, {sources}); | ||
} catch (err) { | ||
error = err; | ||
} | ||
assert.ok(error === null); | ||
}); | ||
}); |
@@ -36,3 +36,3 @@ /** | ||
if (!options.asQuads) { | ||
if (!options.asQuads && options.serialization) { | ||
options.serialization = this._sanitizeSerialization(options.serialization); | ||
@@ -39,0 +39,0 @@ } else { |
{ | ||
"name": "@rmlio/rmlmapper-java-wrapper", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A JavaScript wrapper around the Java RMLMapper.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
17505
314