@shaclmate/shacl-ast 4.0.34 → 4.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated.d.ts +8 -8
- package/dist/generated.js +94 -97
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface PropertyShape {
|
|
|
135
135
|
}
|
|
136
136
|
export declare namespace PropertyShape {
|
|
137
137
|
function create(parameters: {
|
|
138
|
-
readonly $identifier?: (() => PropertyShape.Identifier) |
|
|
138
|
+
readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | string;
|
|
139
139
|
readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
140
140
|
readonly classes?: readonly (string | NamedNode)[];
|
|
141
141
|
readonly comment?: string | Maybe<string>;
|
|
@@ -170,7 +170,7 @@ export declare namespace PropertyShape {
|
|
|
170
170
|
readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
171
171
|
}): Either<Error, PropertyShape>;
|
|
172
172
|
function createUnsafe(parameters: {
|
|
173
|
-
readonly $identifier?: (() => PropertyShape.Identifier) |
|
|
173
|
+
readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | string;
|
|
174
174
|
readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
175
175
|
readonly classes?: readonly (string | NamedNode)[];
|
|
176
176
|
readonly comment?: string | Maybe<string>;
|
|
@@ -612,12 +612,12 @@ export interface PropertyGroup {
|
|
|
612
612
|
}
|
|
613
613
|
export declare namespace PropertyGroup {
|
|
614
614
|
function create(parameters?: {
|
|
615
|
-
readonly $identifier?: (() => PropertyGroup.Identifier) |
|
|
615
|
+
readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | string;
|
|
616
616
|
readonly comment?: string | Maybe<string>;
|
|
617
617
|
readonly label?: string | Maybe<string>;
|
|
618
618
|
}): Either<Error, PropertyGroup>;
|
|
619
619
|
function createUnsafe(parameters?: {
|
|
620
|
-
readonly $identifier?: (() => PropertyGroup.Identifier) |
|
|
620
|
+
readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | string;
|
|
621
621
|
readonly comment?: string | Maybe<string>;
|
|
622
622
|
readonly label?: string | Maybe<string>;
|
|
623
623
|
}): PropertyGroup;
|
|
@@ -688,12 +688,12 @@ export interface Ontology {
|
|
|
688
688
|
}
|
|
689
689
|
export declare namespace Ontology {
|
|
690
690
|
function create(parameters?: {
|
|
691
|
-
readonly $identifier?: (() => Ontology.Identifier) |
|
|
691
|
+
readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | string;
|
|
692
692
|
readonly comment?: string | Maybe<string>;
|
|
693
693
|
readonly label?: string | Maybe<string>;
|
|
694
694
|
}): Either<Error, Ontology>;
|
|
695
695
|
function createUnsafe(parameters?: {
|
|
696
|
-
readonly $identifier?: (() => Ontology.Identifier) |
|
|
696
|
+
readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | string;
|
|
697
697
|
readonly comment?: string | Maybe<string>;
|
|
698
698
|
readonly label?: string | Maybe<string>;
|
|
699
699
|
}): Ontology;
|
|
@@ -792,7 +792,7 @@ export interface NodeShape {
|
|
|
792
792
|
}
|
|
793
793
|
export declare namespace NodeShape {
|
|
794
794
|
function create(parameters?: {
|
|
795
|
-
readonly $identifier?: (() => NodeShape.Identifier) |
|
|
795
|
+
readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | string;
|
|
796
796
|
readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
797
797
|
readonly classes?: readonly (string | NamedNode)[];
|
|
798
798
|
readonly closed?: boolean | Maybe<boolean>;
|
|
@@ -825,7 +825,7 @@ export declare namespace NodeShape {
|
|
|
825
825
|
readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
826
826
|
}): Either<Error, NodeShape>;
|
|
827
827
|
function createUnsafe(parameters?: {
|
|
828
|
-
readonly $identifier?: (() => NodeShape.Identifier) |
|
|
828
|
+
readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | string;
|
|
829
829
|
readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
830
830
|
readonly classes?: readonly (string | NamedNode)[];
|
|
831
831
|
readonly closed?: boolean | Maybe<boolean>;
|
package/dist/generated.js
CHANGED
|
@@ -15,10 +15,12 @@ function $compactRecord(record) {
|
|
|
15
15
|
return definedProperties;
|
|
16
16
|
}, {});
|
|
17
17
|
}
|
|
18
|
-
function $
|
|
19
|
-
return
|
|
18
|
+
function $convertToArray(convertToItem, _readonly) {
|
|
19
|
+
return (value) => (typeof value === "undefined"
|
|
20
|
+
? Either.of([])
|
|
21
|
+
: Either.sequence(value.map(convertToItem)));
|
|
20
22
|
}
|
|
21
|
-
function $convertToIdentifier(
|
|
23
|
+
function $convertToIdentifier(value) {
|
|
22
24
|
switch (typeof value) {
|
|
23
25
|
case "object":
|
|
24
26
|
return Either.of(value);
|
|
@@ -46,7 +48,7 @@ function $convertToIdentifierProperty(identifier) {
|
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
|
-
function $convertToIri(
|
|
51
|
+
function $convertToIri(value) {
|
|
50
52
|
switch (typeof value) {
|
|
51
53
|
case "object":
|
|
52
54
|
return Either.of(value);
|
|
@@ -54,7 +56,7 @@ function $convertToIri(_schema, value) {
|
|
|
54
56
|
return Either.of(dataFactory.namedNode(value));
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
|
-
function $convertToLiteral(
|
|
59
|
+
function $convertToLiteral(value) {
|
|
58
60
|
if (typeof value === "object") {
|
|
59
61
|
if (value instanceof Date) {
|
|
60
62
|
return Either.of($literalFactory.date(value));
|
|
@@ -64,7 +66,7 @@ function $convertToLiteral(_schema, value) {
|
|
|
64
66
|
return Either.of($literalFactory.primitive(value));
|
|
65
67
|
}
|
|
66
68
|
function $convertToMaybe(convertToItem) {
|
|
67
|
-
return (
|
|
69
|
+
return (value) => {
|
|
68
70
|
switch (typeof value) {
|
|
69
71
|
case "object": {
|
|
70
72
|
if (Maybe.isMaybe(value)) {
|
|
@@ -75,33 +77,9 @@ function $convertToMaybe(convertToItem) {
|
|
|
75
77
|
case "undefined":
|
|
76
78
|
return Either.of(Maybe.empty());
|
|
77
79
|
}
|
|
78
|
-
return convertToItem(
|
|
80
|
+
return convertToItem(value).map(Maybe.of);
|
|
79
81
|
};
|
|
80
82
|
}
|
|
81
|
-
function $convertToNumeric(_schema, value) {
|
|
82
|
-
return Either.of(value);
|
|
83
|
-
}
|
|
84
|
-
function $convertToObject(_schema, value) {
|
|
85
|
-
return Either.of(value);
|
|
86
|
-
}
|
|
87
|
-
function $convertToReadonlyArray(convertToItem) {
|
|
88
|
-
return (schema, value) => {
|
|
89
|
-
return (typeof value === "undefined"
|
|
90
|
-
? Either.of([])
|
|
91
|
-
: Either.sequence(value.map((item) => convertToItem(schema.item(), item)))).chain((array) => {
|
|
92
|
-
if (schema.minCount !== undefined && array.length < schema.minCount) {
|
|
93
|
-
return Left(new Error(`array has length (${array.length}) less than minCount (${schema.minCount})`));
|
|
94
|
-
}
|
|
95
|
-
return Either.of(array);
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function $convertToString(_schema, value) {
|
|
100
|
-
return Either.of(value);
|
|
101
|
-
}
|
|
102
|
-
function $convertToTerm(_schema, value) {
|
|
103
|
-
return Either.of(value);
|
|
104
|
-
}
|
|
105
83
|
function $filterArray(filterItem) {
|
|
106
84
|
return (filter, values) => {
|
|
107
85
|
for (const value of values) {
|
|
@@ -259,6 +237,12 @@ class $IdentifierSet {
|
|
|
259
237
|
}
|
|
260
238
|
}
|
|
261
239
|
}
|
|
240
|
+
function $identityConversionFunction(value) {
|
|
241
|
+
return Either.of(value);
|
|
242
|
+
}
|
|
243
|
+
function $identityValidationFunction(_schema, value) {
|
|
244
|
+
return Either.of(value);
|
|
245
|
+
}
|
|
262
246
|
const $literalFactory = new LiteralFactory({ dataFactory: dataFactory });
|
|
263
247
|
const $parseIdentifier = NTriplesIdentifier.parser(dataFactory);
|
|
264
248
|
export var $PropertyPath;
|
|
@@ -327,6 +311,19 @@ function $sequenceRecord(record) {
|
|
|
327
311
|
function $shaclPropertyFromRdf({ graph, propertySchema, resource, typeFromRdf, }) {
|
|
328
312
|
return typeFromRdf(Right(resource.values(propertySchema.path, { graph, unique: true }))).chain((values) => values.head());
|
|
329
313
|
}
|
|
314
|
+
function $validateArray(validateItem, _readonly) {
|
|
315
|
+
return (schema, valueArray) => {
|
|
316
|
+
if (schema.minCount !== undefined && valueArray.length < schema.minCount) {
|
|
317
|
+
return Left(new Error(`value array has length (${valueArray.length}) less than minCount (${schema.minCount})`));
|
|
318
|
+
}
|
|
319
|
+
return Either.sequence(valueArray.map((value) => validateItem(schema.item(), value)));
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
function $validateMaybe(validateItem) {
|
|
323
|
+
return (schema, valueMaybe) => valueMaybe
|
|
324
|
+
.map((value) => validateItem(schema.item(), value).map(() => valueMaybe))
|
|
325
|
+
.orDefault(Either.of(valueMaybe));
|
|
326
|
+
}
|
|
330
327
|
function $wrap_FromRdfResourceFunction(_fromRdfResourceFunction) {
|
|
331
328
|
return (resource, options) => {
|
|
332
329
|
let { context, graph, ignoreRdfType = false, objectSet, preferredLanguages, } = options ?? {};
|
|
@@ -367,38 +364,38 @@ export var PropertyShape;
|
|
|
367
364
|
function create(parameters) {
|
|
368
365
|
return $sequenceRecord({
|
|
369
366
|
$identifier: $convertToIdentifierProperty(parameters.$identifier),
|
|
370
|
-
and: $convertToMaybe($
|
|
371
|
-
classes: $
|
|
372
|
-
comment: $convertToMaybe(
|
|
373
|
-
datatype: $convertToMaybe(($convertToIri))(PropertyShape.schema.properties.datatype.type(),
|
|
374
|
-
deactivated: $convertToMaybe(
|
|
375
|
-
defaultValue: $convertToMaybe(
|
|
376
|
-
description: $convertToMaybe(
|
|
377
|
-
flags: $
|
|
378
|
-
groups: $
|
|
379
|
-
hasValues: $
|
|
380
|
-
in_: $convertToMaybe($
|
|
381
|
-
isDefinedBy: $convertToMaybe($convertToIdentifier)(PropertyShape.schema.properties.isDefinedBy.type(),
|
|
382
|
-
label: $convertToMaybe(
|
|
383
|
-
languageIn: $convertToMaybe($
|
|
384
|
-
maxCount: $convertToMaybe(
|
|
385
|
-
maxExclusive: $convertToMaybe($convertToLiteral)(PropertyShape.schema.properties.maxExclusive.type(),
|
|
386
|
-
maxInclusive: $convertToMaybe($convertToLiteral)(PropertyShape.schema.properties.maxInclusive.type(),
|
|
387
|
-
maxLength: $convertToMaybe(
|
|
388
|
-
minCount: $convertToMaybe(
|
|
389
|
-
minExclusive: $convertToMaybe($convertToLiteral)(PropertyShape.schema.properties.minExclusive.type(),
|
|
390
|
-
minInclusive: $convertToMaybe($convertToLiteral)(PropertyShape.schema.properties.minInclusive.type(),
|
|
391
|
-
minLength: $convertToMaybe(
|
|
392
|
-
name: $convertToMaybe(
|
|
393
|
-
node: $convertToMaybe($convertToIdentifier)(PropertyShape.schema.properties.node.type(),
|
|
394
|
-
nodeKind: $convertToMaybe(($convertToIri))(PropertyShape.schema.properties.nodeKind.type(),
|
|
395
|
-
not: $
|
|
396
|
-
or: $convertToMaybe($
|
|
397
|
-
order: $convertToMaybe(
|
|
398
|
-
path:
|
|
399
|
-
patterns: $
|
|
400
|
-
uniqueLang: $convertToMaybe(
|
|
401
|
-
xone: $convertToMaybe($
|
|
367
|
+
and: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.and.type(), value)),
|
|
368
|
+
classes: $convertToArray(($convertToIri), true)(parameters.classes).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.classes.type(), value)),
|
|
369
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
|
|
370
|
+
datatype: $convertToMaybe(($convertToIri))(parameters.datatype).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.datatype.type(), value)),
|
|
371
|
+
deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.deactivated.type(), value)),
|
|
372
|
+
defaultValue: $convertToMaybe($identityConversionFunction)(parameters.defaultValue).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.defaultValue.type(), value)),
|
|
373
|
+
description: $convertToMaybe($identityConversionFunction)(parameters.description).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.description.type(), value)),
|
|
374
|
+
flags: $convertToArray($identityConversionFunction, true)(parameters.flags).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.flags.type(), value)),
|
|
375
|
+
groups: $convertToArray($convertToIdentifier, true)(parameters.groups).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.groups.type(), value)),
|
|
376
|
+
hasValues: $convertToArray($identityConversionFunction, true)(parameters.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.hasValues.type(), value)),
|
|
377
|
+
in_: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.in_.type(), value)),
|
|
378
|
+
isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.isDefinedBy.type(), value)),
|
|
379
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
|
|
380
|
+
languageIn: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.languageIn.type(), value)),
|
|
381
|
+
maxCount: $convertToMaybe($identityConversionFunction)(parameters.maxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type(), value)),
|
|
382
|
+
maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxExclusive.type(), value)),
|
|
383
|
+
maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxInclusive.type(), value)),
|
|
384
|
+
maxLength: $convertToMaybe($identityConversionFunction)(parameters.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxLength.type(), value)),
|
|
385
|
+
minCount: $convertToMaybe($identityConversionFunction)(parameters.minCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type(), value)),
|
|
386
|
+
minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minExclusive.type(), value)),
|
|
387
|
+
minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minInclusive.type(), value)),
|
|
388
|
+
minLength: $convertToMaybe($identityConversionFunction)(parameters.minLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minLength.type(), value)),
|
|
389
|
+
name: $convertToMaybe($identityConversionFunction)(parameters.name).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.name.type(), value)),
|
|
390
|
+
node: $convertToMaybe($convertToIdentifier)(parameters.node).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.node.type(), value)),
|
|
391
|
+
nodeKind: $convertToMaybe(($convertToIri))(parameters.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.nodeKind.type(), value)),
|
|
392
|
+
not: $convertToArray($convertToIdentifier, true)(parameters.not).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.not.type(), value)),
|
|
393
|
+
or: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.or.type(), value)),
|
|
394
|
+
order: $convertToMaybe($identityConversionFunction)(parameters.order).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.order.type(), value)),
|
|
395
|
+
path: Either.of(parameters.path),
|
|
396
|
+
patterns: $convertToArray($identityConversionFunction, true)(parameters.patterns).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.patterns.type(), value)),
|
|
397
|
+
uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type(), value)),
|
|
398
|
+
xone: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.xone.type(), value)),
|
|
402
399
|
}).map((properties) => {
|
|
403
400
|
const finalObject = { ...properties, $type: "PropertyShape" };
|
|
404
401
|
if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
|
|
@@ -1626,8 +1623,8 @@ export var PropertyGroup;
|
|
|
1626
1623
|
function create(parameters) {
|
|
1627
1624
|
return $sequenceRecord({
|
|
1628
1625
|
$identifier: $convertToIdentifierProperty(parameters?.$identifier),
|
|
1629
|
-
comment: $convertToMaybe(
|
|
1630
|
-
label: $convertToMaybe(
|
|
1626
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
|
|
1627
|
+
label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
|
|
1631
1628
|
}).map((properties) => {
|
|
1632
1629
|
const finalObject = { ...properties, $type: "PropertyGroup" };
|
|
1633
1630
|
if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
|
|
@@ -1797,8 +1794,8 @@ export var Ontology;
|
|
|
1797
1794
|
function create(parameters) {
|
|
1798
1795
|
return $sequenceRecord({
|
|
1799
1796
|
$identifier: $convertToIdentifierProperty(parameters?.$identifier),
|
|
1800
|
-
comment: $convertToMaybe(
|
|
1801
|
-
label: $convertToMaybe(
|
|
1797
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
|
|
1798
|
+
label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
|
|
1802
1799
|
}).map((properties) => {
|
|
1803
1800
|
const finalObject = { ...properties, $type: "Ontology" };
|
|
1804
1801
|
if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
|
|
@@ -1968,36 +1965,36 @@ export var NodeShape;
|
|
|
1968
1965
|
function create(parameters) {
|
|
1969
1966
|
return $sequenceRecord({
|
|
1970
1967
|
$identifier: $convertToIdentifierProperty(parameters?.$identifier),
|
|
1971
|
-
and: $convertToMaybe($
|
|
1972
|
-
classes: $
|
|
1973
|
-
closed: $convertToMaybe(
|
|
1974
|
-
comment: $convertToMaybe(
|
|
1975
|
-
datatype: $convertToMaybe(($convertToIri))(
|
|
1976
|
-
deactivated: $convertToMaybe(
|
|
1977
|
-
flags: $
|
|
1978
|
-
hasValues: $
|
|
1979
|
-
ignoredProperties: $convertToMaybe($
|
|
1980
|
-
in_: $convertToMaybe($
|
|
1981
|
-
isDefinedBy: $convertToMaybe($convertToIdentifier)(
|
|
1982
|
-
label: $convertToMaybe(
|
|
1983
|
-
languageIn: $convertToMaybe($
|
|
1984
|
-
maxCount: $convertToMaybe(
|
|
1985
|
-
maxExclusive: $convertToMaybe($convertToLiteral)(
|
|
1986
|
-
maxInclusive: $convertToMaybe($convertToLiteral)(
|
|
1987
|
-
maxLength: $convertToMaybe(
|
|
1988
|
-
minCount: $convertToMaybe(
|
|
1989
|
-
minExclusive: $convertToMaybe($convertToLiteral)(
|
|
1990
|
-
minInclusive: $convertToMaybe($convertToLiteral)(
|
|
1991
|
-
minLength: $convertToMaybe(
|
|
1992
|
-
node: $convertToMaybe($convertToIdentifier)(
|
|
1993
|
-
nodeKind: $convertToMaybe(($convertToIri))(
|
|
1994
|
-
not: $
|
|
1995
|
-
or: $convertToMaybe($
|
|
1996
|
-
patterns: $
|
|
1997
|
-
properties: $
|
|
1998
|
-
subClassOf: $
|
|
1999
|
-
types: $
|
|
2000
|
-
xone: $convertToMaybe($
|
|
1968
|
+
and: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters?.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.and.type(), value)),
|
|
1969
|
+
classes: $convertToArray(($convertToIri), true)(parameters?.classes).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.classes.type(), value)),
|
|
1970
|
+
closed: $convertToMaybe($identityConversionFunction)(parameters?.closed).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type(), value)),
|
|
1971
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
|
|
1972
|
+
datatype: $convertToMaybe(($convertToIri))(parameters?.datatype).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.datatype.type(), value)),
|
|
1973
|
+
deactivated: $convertToMaybe($identityConversionFunction)(parameters?.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.deactivated.type(), value)),
|
|
1974
|
+
flags: $convertToArray($identityConversionFunction, true)(parameters?.flags).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.flags.type(), value)),
|
|
1975
|
+
hasValues: $convertToArray($identityConversionFunction, true)(parameters?.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.hasValues.type(), value)),
|
|
1976
|
+
ignoredProperties: $convertToMaybe($convertToArray(($convertToIri), true))(parameters?.ignoredProperties).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.ignoredProperties.type(), value)),
|
|
1977
|
+
in_: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters?.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.in_.type(), value)),
|
|
1978
|
+
isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters?.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.isDefinedBy.type(), value)),
|
|
1979
|
+
label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
|
|
1980
|
+
languageIn: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters?.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.languageIn.type(), value)),
|
|
1981
|
+
maxCount: $convertToMaybe($identityConversionFunction)(parameters?.maxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type(), value)),
|
|
1982
|
+
maxExclusive: $convertToMaybe($convertToLiteral)(parameters?.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxExclusive.type(), value)),
|
|
1983
|
+
maxInclusive: $convertToMaybe($convertToLiteral)(parameters?.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxInclusive.type(), value)),
|
|
1984
|
+
maxLength: $convertToMaybe($identityConversionFunction)(parameters?.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxLength.type(), value)),
|
|
1985
|
+
minCount: $convertToMaybe($identityConversionFunction)(parameters?.minCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type(), value)),
|
|
1986
|
+
minExclusive: $convertToMaybe($convertToLiteral)(parameters?.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minExclusive.type(), value)),
|
|
1987
|
+
minInclusive: $convertToMaybe($convertToLiteral)(parameters?.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minInclusive.type(), value)),
|
|
1988
|
+
minLength: $convertToMaybe($identityConversionFunction)(parameters?.minLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minLength.type(), value)),
|
|
1989
|
+
node: $convertToMaybe($convertToIdentifier)(parameters?.node).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.node.type(), value)),
|
|
1990
|
+
nodeKind: $convertToMaybe(($convertToIri))(parameters?.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.nodeKind.type(), value)),
|
|
1991
|
+
not: $convertToArray($convertToIdentifier, true)(parameters?.not).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.not.type(), value)),
|
|
1992
|
+
or: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters?.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.or.type(), value)),
|
|
1993
|
+
patterns: $convertToArray($identityConversionFunction, true)(parameters?.patterns).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.patterns.type(), value)),
|
|
1994
|
+
properties: $convertToArray($convertToIdentifier, true)(parameters?.properties).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.properties.type(), value)),
|
|
1995
|
+
subClassOf: $convertToArray(($convertToIri), true)(parameters?.subClassOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.subClassOf.type(), value)),
|
|
1996
|
+
types: $convertToArray(($convertToIri), true)(parameters?.types).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.types.type(), value)),
|
|
1997
|
+
xone: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters?.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.xone.type(), value)),
|
|
2001
1998
|
}).map((properties) => {
|
|
2002
1999
|
const finalObject = { ...properties, $type: "NodeShape" };
|
|
2003
2000
|
if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
|
package/package.json
CHANGED