@rmlio/yarrrml-parser
Version:
Parse YARRRML descriptions into RML RDF statements
29 lines (25 loc) • 1.27 kB
JavaScript
// initialize (common) prefixes and namespaces from prefix.cc
// Unknown prefixes can be added here, and "wrong" prefixes can be overridden
const _namespaces = require('prefix-ns/index.cjs').asMap();
_namespaces['comp'] = 'http://semweb.mmlab.be/ns/rml-compression#';
_namespaces['idlab-fn'] = 'https://w3id.org/imec/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/';
_namespaces['ldes'] = 'https://w3id.org/ldes#'; // prefix.cc returns the http (without s) version
_namespaces['tree'] = 'https://w3id.org/tree#'; // prefix.cc returns the http (without s) version
_namespaces['rmle'] = 'https://w3id.org/imec/rml/ns/extensions#';
_namespaces['htv'] = 'http://www.w3.org/2011/http#';
_namespaces['sd'] = 'http://www.w3.org/ns/sparql-service-description#';
/**
* Returns the namespace for a given prefix.
* @returns {string} The namespace for the given prefix.
*/
function asMap() {
return _namespaces;
}
module.exports = {
asMap
};