From 63e51f26d74edf0915f135555dc67d5b616b77b6 Mon Sep 17 00:00:00 2001 From: Gerald Haesendonck Date: Wed, 13 Sep 2023 14:03:52 +0000 Subject: [PATCH] Resolve "Sometimes unknown prefix `rmlt`" --- CHANGELOG.md | 1 + lib/namespaces.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76c6288..1a47451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Mapping with multiple sources linked to another mapping with multiple sources only resulted in half of Referencing Objects Maps. +- Override `rmlt` and `comp` namespaces. ## [1.6.0] - 2023-08-22 diff --git a/lib/namespaces.js b/lib/namespaces.js index 744e65a..0e60633 100644 --- a/lib/namespaces.js +++ b/lib/namespaces.js @@ -2,8 +2,10 @@ // Unknown prefixes can be added here, and "wrong" prefixes can be overridden const _namespaces = require('prefix-ns').asMap(); +_namespaces['comp'] = 'http://semweb.mmlab.be/ns/rml-compression#'; _namespaces['idlab-fn'] = 'http://example.com/idlab/function/'; _namespaces['rml'] = 'http://semweb.mmlab.be/ns/rml#'; // this one is the only official one for now, but prefix.cc returns the wrong one. +_namespaces['rmlt'] = 'http://semweb.mmlab.be/ns/rml-target#'; _namespaces['dc'] = 'http://purl.org/dc/terms/'; _namespaces['ql'] = 'http://semweb.mmlab.be/ns/ql#'; _namespaces['idsa'] = 'https://w3id.org/idsa/core/';