@rmlio/yarrrml-parser
Advanced tools
Comparing version 1.5.4 to 1.6.0
@@ -10,2 +10,12 @@ # Changelog | ||
## [1.6.0] - 2023-08-22 | ||
### Added | ||
- abstract-generator: Create IRI constant if term type is IRI, in line with the specs | ||
### Fixed | ||
- (r2)rml-generator: Log error when a source tag has no definition | ||
## [1.5.4] - 2023-06-23 | ||
@@ -318,2 +328,3 @@ | ||
[1.6.0]: https://github.com/RMLio/yarrrml-parser/compare/v1.5.4...v1.6.0 | ||
[1.5.4]: https://github.com/RMLio/yarrrml-parser/compare/v1.5.3...v1.5.4 | ||
@@ -320,0 +331,0 @@ [1.5.3]: https://github.com/RMLio/yarrrml-parser/compare/v1.5.2...v1.5.3 |
@@ -336,2 +336,3 @@ /** | ||
generateNormalObjectMap(omSubject, o, targetsIRIMap) { | ||
let isIRI = false; | ||
this.quads.push(quad( | ||
@@ -345,2 +346,3 @@ omSubject, | ||
case 'iri': | ||
isIRI = true; | ||
o.type = namedNode(namespaces.rr + 'IRI'); | ||
@@ -358,3 +360,3 @@ break; | ||
if (o.value) { | ||
const {predicate, object} = this.getAppropriatePredicateAndObjectForValue(o.value); | ||
const {predicate, object} = this.getAppropriatePredicateAndObjectForValue(o.value, isIRI); | ||
@@ -361,0 +363,0 @@ this.quads.push(quad( |
@@ -50,2 +50,5 @@ /** | ||
sourceSubject = sourcesIRIMap[source]; | ||
if(!sourceSubject) { | ||
Logger.error(`No source definition found for the source tag "${source}"`); | ||
} | ||
@@ -52,0 +55,0 @@ this.quads.push(quad( |
@@ -145,2 +145,5 @@ /** | ||
sourceSubject = sourcesIRIMap[source]; | ||
if(!sourceSubject) { | ||
Logger.error(`No source definition found for the source tag "${source}"`); | ||
} | ||
@@ -147,0 +150,0 @@ this.quads.push(quad( |
@@ -344,2 +344,6 @@ /** | ||
it('works when generating a constant iri', function (done) { | ||
work('namednode/mapping.yarrrml.yml', 'namednode/mapping.rml.ttl', done, {includeMetadata: false}); | ||
}); | ||
describe('external references', function () { | ||
@@ -346,0 +350,0 @@ const options = {includeMetadata: false}; |
{ | ||
"name": "@rmlio/yarrrml-parser", | ||
"version": "1.5.4", | ||
"version": "1.6.0", | ||
"description": "Parse YARRRML descriptions into RML RDF statements", | ||
@@ -5,0 +5,0 @@ "main": "lib/yarrrml2rml.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
861865
351
6074