"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TEMPLATE_VARIABLE = exports.TEMPLATE = void 0;
exports.isValidVariable = isValidVariable;
const rdf_vocabulary_1 = require("rdf-vocabulary");
exports.TEMPLATE = (0, rdf_vocabulary_1.createVocabulary)('urn:solid-server:template:', 'ResourceStore');
// Variables used for configuration templates
// This is not an exclusive list
exports.TEMPLATE_VARIABLE = (0, rdf_vocabulary_1.createVocabulary)(`${exports.TEMPLATE.namespace}variable:`, 'baseUrl', 'rootFilePath', 'sparqlEndpoint', 'templateConfig');
/**
 * Checks if the given variable is one that is supported.
 * This can be used to weed out irrelevant parameters in an object.
 */
function isValidVariable(variable) {
    return variable.startsWith(exports.TEMPLATE_VARIABLE.namespace);
}
//# sourceMappingURL=Variables.js.map