UNPKG

@jeswr/shacl2shex

Version:
72 lines (71 loc) 1.52 kB
import { ContextDefinition } from 'jsonld'; /** * ============================================================================= * Typescript Typings for Shacl * ============================================================================= */ /** * ShapeShape Type */ export interface ShapeShape { '@id'?: string; '@context'?: ContextDefinition; targetClass?: { '@id': string; }[]; targetSubjectsOf?: { '@id': string; }[]; targetObjectsOf?: { '@id': string; }[]; severity?: { '@id': string; }; class?: { '@id': string; }[]; closed?: boolean; datatype?: { '@id': string; }; disjoint?: { '@id': string; }[]; equals?: { '@id': string; }[]; lessThan?: { '@id': string; }[]; lessThanOrEquals?: { '@id': string; }[]; maxCount?: number; maxExclusive?: string; maxInclusive?: string; maxLength?: number; minCount?: number; minExclusive?: string; minInclusive?: string; minLength?: number; nodeKind?: { '@id': 'BlankNode'; } | { '@id': 'IRI'; } | { '@id': 'Literal'; } | { '@id': 'BlankNodeOrIRI'; } | { '@id': 'BlankNodeOrLiteral'; } | { '@id': 'IRIOrLiteral'; }; pattern?: string; flags?: string; qualifiedMaxCount?: number; qualifiedMinCount?: number; qualifiedValueShapesDisjoint?: boolean; uniqueLang?: boolean; }