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

@rmlio/yarrrml-parser

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmlio/yarrrml-parser - npm Package Compare versions

Comparing version 1.5.4 to 1.6.0

test/namednode/mapping.rml.ttl

11

CHANGELOG.md

@@ -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

4

lib/abstract-generator.js

@@ -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",

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