UNPKG

data-pipeline-information-system-sparql

Version:

Sparql function to query/update RDF through SPARQL 1.1

20 lines 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var YAML = require("yamljs"); function load(filePath) { var extension = filePath.substring(filePath.lastIndexOf('.') + 1, filePath.length) || filePath; var jsonObject; switch (extension) { case 'yaml': case 'yml': jsonObject = YAML.load(filePath); break; case 'json': jsonObject = require(filePath); break; } return jsonObject; } exports.load = load; exports.default = load; //# sourceMappingURL=load_conf.js.map