UNPKG

shacl-engine

Version:
51 lines (41 loc) 1.99 kB
import TermMap from '@rdfjs/term-map' import * as ns from './namespaces.js' import { compileMaxCount, compileMinCount } from './validations/cardinality.js' import { compileAnd, compileNot, compileOr, compileXone } from './validations/logical.js' import { compileClosedNode, compileHasValue, compileIn } from './validations/other.js' import { compileDisjoint, compileEquals, compileLessThan, compileLessThanOrEquals } from './validations/pair.js' import { compileMaxExclusive, compileMaxInclusive, compileMinExclusive, compileMinInclusive } from './validations/range.js' import { compileNode, compileProperty, compileQualifiedShape } from './validations/shape.js' import { compileLanguageIn, compileMaxLength, compileMinLength, compilePattern, compileUniqueLang } from './validations/string.js' import { compileClass, compileDatatype, compileNodeKind } from './validations/type.js' const validations = new TermMap([ [ns.sh.maxCount, compileMaxCount], [ns.sh.minCount, compileMinCount], [ns.sh.and, compileAnd], [ns.sh.not, compileNot], [ns.sh.or, compileOr], [ns.sh.xone, compileXone], [ns.sh.closed, compileClosedNode], [ns.sh.hasValue, compileHasValue], [ns.sh.in, compileIn], [ns.sh.disjoint, compileDisjoint], [ns.sh.equals, compileEquals], [ns.sh.lessThan, compileLessThan], [ns.sh.lessThanOrEquals, compileLessThanOrEquals], [ns.sh.maxExclusive, compileMaxExclusive], [ns.sh.maxInclusive, compileMaxInclusive], [ns.sh.minExclusive, compileMinExclusive], [ns.sh.minInclusive, compileMinInclusive], [ns.sh.node, compileNode], [ns.sh.property, compileProperty], [ns.sh.qualifiedValueShape, compileQualifiedShape], [ns.sh.languageIn, compileLanguageIn], [ns.sh.maxLength, compileMaxLength], [ns.sh.minLength, compileMinLength], [ns.sh.pattern, compilePattern], [ns.sh.uniqueLang, compileUniqueLang], [ns.sh.class, compileClass], [ns.sh.datatype, compileDatatype], [ns.sh.nodeKind, compileNodeKind] ]) export default validations