UNPKG

@netwerk-digitaal-erfgoed/ld-workbench

Version:

LDWorkbench is a Linked Data Transformation tool designed to use only SPARQL as transformation language.

19 lines 770 B
import validate from './validate.js'; import TriplyDB from '../triply-db.js'; import File from '../file.js'; import { PreviousStage } from '../stage.js'; export const isConfiguration = (value) => value !== null && typeof value === 'object' && validate(value) === null; export const isFilePathString = (value) => { return value !== undefined && value.startsWith('file://'); }; export const isTriplyDBPathString = (value) => { if (typeof value !== 'string') return false; if (!value.startsWith('triplydb://')) return false; TriplyDB.assertValidDsn(value); return true; }; export const isPreviousStage = (value) => value instanceof PreviousStage; export const isFile = (value) => value instanceof File; //# sourceMappingURL=guards.js.map