@shaclmate/compiler 4.0.27 → 4.0.29
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/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +10 -10
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +4 -4
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.js +1 -1
- package/dist/ast/SetType.d.ts +2 -2
- package/dist/ast/SetType.js +1 -1
- package/dist/generators/ts/AbstractCollectionType.d.ts +2 -2
- package/dist/generators/ts/AbstractCollectionType.js +8 -8
- package/dist/generators/ts/AbstractNumericType.d.ts +1 -0
- package/dist/generators/ts/BigIntType.d.ts +1 -0
- package/dist/generators/ts/BigIntType.js +11 -0
- package/dist/generators/ts/SetType.js +3 -3
- package/dist/generators/ts/TypeFactory.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/input/generated.d.ts +60 -60
- package/dist/input/generated.js +60 -36
- package/package.json +2 -2
|
@@ -82,19 +82,19 @@ function transformPropertyShapeToAstType(propertyShape, shapeStack) {
|
|
|
82
82
|
return transformShapeToAstType
|
|
83
83
|
.call(this, propertyShape, shapeStack)
|
|
84
84
|
.chain((propertyShapeAstType) => {
|
|
85
|
-
let maxCount = propertyShape.maxCount.orDefault(Number.MAX_SAFE_INTEGER);
|
|
86
|
-
let minCount = propertyShape.minCount.orDefault(
|
|
87
|
-
if (minCount <
|
|
88
|
-
minCount =
|
|
85
|
+
let maxCount = propertyShape.maxCount.orDefault(BigInt(Number.MAX_SAFE_INTEGER));
|
|
86
|
+
let minCount = propertyShape.minCount.orDefault(0n);
|
|
87
|
+
if (minCount < 0n) {
|
|
88
|
+
minCount = 0n;
|
|
89
89
|
}
|
|
90
90
|
if (propertyShape.hasValues.length > minCount) {
|
|
91
|
-
minCount = propertyShape.hasValues.length;
|
|
91
|
+
minCount = BigInt(propertyShape.hasValues.length);
|
|
92
92
|
}
|
|
93
93
|
if (maxCount < minCount) {
|
|
94
94
|
maxCount = minCount;
|
|
95
95
|
}
|
|
96
96
|
if (propertyShapeAstType.kind === "DefaultValueType") {
|
|
97
|
-
if (minCount >
|
|
97
|
+
if (minCount > 0n) {
|
|
98
98
|
return Left(new Error(`${propertyShape}: has sh:minCount > 0 and sh:defaultValue`));
|
|
99
99
|
}
|
|
100
100
|
if (maxCount > 1) {
|
|
@@ -102,10 +102,10 @@ function transformPropertyShapeToAstType(propertyShape, shapeStack) {
|
|
|
102
102
|
}
|
|
103
103
|
return Either.of(propertyShapeAstType);
|
|
104
104
|
}
|
|
105
|
-
if (minCount ===
|
|
105
|
+
if (minCount === 1n && maxCount === 1n) {
|
|
106
106
|
return Either.of(propertyShapeAstType);
|
|
107
107
|
}
|
|
108
|
-
if (minCount ===
|
|
108
|
+
if (minCount === 0n && maxCount === 1n) {
|
|
109
109
|
if (!ast.OptionType.isItemType(propertyShapeAstType)) {
|
|
110
110
|
return Left(new Error(`${propertyShape}: ${propertyShapeAstType} is not an OptionType item type`));
|
|
111
111
|
}
|
|
@@ -228,12 +228,12 @@ export function transformPropertyShapeToAstObjectTypeProperty({ objectType, prop
|
|
|
228
228
|
...astAbstractTypeProperties,
|
|
229
229
|
partialType: new ast.SetType({
|
|
230
230
|
itemType: astPartialItemType,
|
|
231
|
-
minCount:
|
|
231
|
+
minCount: 0n,
|
|
232
232
|
mutable: false,
|
|
233
233
|
}),
|
|
234
234
|
resolveType: new ast.SetType({
|
|
235
235
|
itemType: astResolveItemType,
|
|
236
|
-
minCount:
|
|
236
|
+
minCount: 0n,
|
|
237
237
|
mutable: false,
|
|
238
238
|
}),
|
|
239
239
|
});
|
|
@@ -92,15 +92,15 @@ export function transformShapeToAstListType(shape, shapeStack) {
|
|
|
92
92
|
if (!firstPropertyShape) {
|
|
93
93
|
return empty;
|
|
94
94
|
}
|
|
95
|
-
if (firstPropertyShape.maxCount.extract() !==
|
|
96
|
-
firstPropertyShape.minCount.extract() !==
|
|
95
|
+
if (firstPropertyShape.maxCount.extract() !== 1n ||
|
|
96
|
+
firstPropertyShape.minCount.extract() !== 1n) {
|
|
97
97
|
return Left(new Error(`${nodeShape} non-empty list shape rdf:first property shape does not have sh:maxCount=1 and/or sh:minCount=1`));
|
|
98
98
|
}
|
|
99
99
|
if (!restPropertyShape) {
|
|
100
100
|
return empty;
|
|
101
101
|
}
|
|
102
|
-
if (restPropertyShape.maxCount.extract() !==
|
|
103
|
-
restPropertyShape.minCount.extract() !==
|
|
102
|
+
if (restPropertyShape.maxCount.extract() !== 1n ||
|
|
103
|
+
restPropertyShape.minCount.extract() !== 1n) {
|
|
104
104
|
return Left(new Error(`${nodeShape} non-empty list shape rdf:rest property shape does not have sh:maxCount=1 and/or sh:minCount=1`));
|
|
105
105
|
}
|
|
106
106
|
return transformPropertyShapeToAstObjectTypeProperty
|
|
@@ -17,7 +17,7 @@ function isObjectTypePropertyRequired(property) {
|
|
|
17
17
|
case "LazyObjectOptionType":
|
|
18
18
|
return false;
|
|
19
19
|
case "LazyObjectSetType":
|
|
20
|
-
return property.type.partialType.minCount >
|
|
20
|
+
return property.type.partialType.minCount > 0n;
|
|
21
21
|
case "OptionType":
|
|
22
22
|
return false;
|
|
23
23
|
case "SetType":
|
package/dist/ast/SetType.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export declare class SetType<ItemTypeT extends SetType.ItemType = SetType.ItemTy
|
|
|
7
7
|
/**
|
|
8
8
|
* Minimum number of items in the set.
|
|
9
9
|
*/
|
|
10
|
-
readonly minCount:
|
|
10
|
+
readonly minCount: bigint;
|
|
11
11
|
constructor({ itemType, minCount, ...superParameters }: {
|
|
12
|
-
minCount:
|
|
12
|
+
minCount: bigint;
|
|
13
13
|
} & Pick<ConstructorParameters<typeof AbstractCollectionType<ItemTypeT>>[0], "itemType" | "mutable">);
|
|
14
14
|
equals(other: SetType<ItemTypeT>): boolean;
|
|
15
15
|
toJSON(): {
|
package/dist/ast/SetType.js
CHANGED
|
@@ -6,12 +6,12 @@ import { type Code } from "./ts-poet-wrapper.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class AbstractCollectionType<ItemTypeT extends AbstractCollectionType.ItemType> extends AbstractContainerType<ItemTypeT> {
|
|
8
8
|
protected readonly _mutable: boolean;
|
|
9
|
-
protected readonly minCount:
|
|
9
|
+
protected readonly minCount: bigint;
|
|
10
10
|
readonly discriminantProperty: Maybe<AbstractContainerType.DiscriminantProperty>;
|
|
11
11
|
readonly graphqlArgs: AbstractContainerType<ItemTypeT>["graphqlArgs"];
|
|
12
12
|
readonly typeofs: NonEmptyList<"object">;
|
|
13
13
|
constructor({ minCount, mutable, ...superParameters }: {
|
|
14
|
-
minCount:
|
|
14
|
+
minCount: bigint;
|
|
15
15
|
mutable: boolean;
|
|
16
16
|
} & ConstructorParameters<typeof AbstractContainerType<ItemTypeT>>[0]);
|
|
17
17
|
get conversions(): readonly AbstractContainerType.Conversion[];
|
|
@@ -24,10 +24,10 @@ export class AbstractCollectionType extends AbstractContainerType {
|
|
|
24
24
|
constructor({ minCount, mutable, ...superParameters }) {
|
|
25
25
|
super(superParameters);
|
|
26
26
|
this.minCount = minCount;
|
|
27
|
-
invariant(this.minCount >=
|
|
27
|
+
invariant(this.minCount >= 0n);
|
|
28
28
|
this._mutable = mutable;
|
|
29
29
|
if (mutable) {
|
|
30
|
-
invariant(this.minCount ===
|
|
30
|
+
invariant(this.minCount === 0n);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
get conversions() {
|
|
@@ -54,7 +54,7 @@ export class AbstractCollectionType extends AbstractContainerType {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
if (this.minCount ===
|
|
57
|
+
if (this.minCount === 0n) {
|
|
58
58
|
if (Object.keys(itemTypeConversionsByTypeof).length <= 1) {
|
|
59
59
|
// There were no additional conversions with different item typeof's, so we don't need to check .every or do .map
|
|
60
60
|
// Just check that the original value is an array with typeof "object". Array.isArray() doesn't narrow types for some reason.
|
|
@@ -135,7 +135,7 @@ export class AbstractCollectionType extends AbstractContainerType {
|
|
|
135
135
|
if (this._mutable) {
|
|
136
136
|
return code `(${this.itemType.name})[]`;
|
|
137
137
|
}
|
|
138
|
-
if (this.minCount ===
|
|
138
|
+
if (this.minCount === 0n) {
|
|
139
139
|
return code `readonly (${this.itemType.name})[]`;
|
|
140
140
|
}
|
|
141
141
|
return code `${imports.NonEmptyList}<${this.itemType.name}>`;
|
|
@@ -146,15 +146,15 @@ export class AbstractCollectionType extends AbstractContainerType {
|
|
|
146
146
|
get schemaObject() {
|
|
147
147
|
return {
|
|
148
148
|
...super.schemaObject,
|
|
149
|
-
minCount: this.minCount >
|
|
149
|
+
minCount: this.minCount > 0n ? Number(this.minCount) : undefined,
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
fromJsonExpression({ variables, }) {
|
|
153
153
|
let expression = variables.value;
|
|
154
|
-
if (!this._mutable && this.minCount >
|
|
154
|
+
if (!this._mutable && this.minCount > 0n) {
|
|
155
155
|
expression = code `${imports.NonEmptyList}.fromArray(${expression}).unsafeCoerce()`;
|
|
156
156
|
}
|
|
157
|
-
if (this.minCount ===
|
|
157
|
+
if (this.minCount === 0n) {
|
|
158
158
|
expression = code `(${expression} ?? [])`;
|
|
159
159
|
}
|
|
160
160
|
const valueVariable = code `item`;
|
|
@@ -186,7 +186,7 @@ export class AbstractCollectionType extends AbstractContainerType {
|
|
|
186
186
|
}
|
|
187
187
|
jsonSchema(parameters) {
|
|
188
188
|
let schema = code `${this.itemType.jsonSchema(parameters)}.array()`;
|
|
189
|
-
if (this.minCount >
|
|
189
|
+
if (this.minCount > 0n) {
|
|
190
190
|
schema = code `${schema}.nonempty().min(${this.minCount})`;
|
|
191
191
|
}
|
|
192
192
|
else {
|
|
@@ -26,6 +26,7 @@ export declare abstract class AbstractNumericType<ValueT extends bigint | number
|
|
|
26
26
|
protected abstract literalOf(value: ValueT): string;
|
|
27
27
|
}
|
|
28
28
|
export declare namespace AbstractNumericType {
|
|
29
|
+
type Conversion = AbstractPrimitiveType.Conversion;
|
|
29
30
|
const JsonType: typeof import("./AbstractType.js").AbstractType.JsonType;
|
|
30
31
|
type JsonType = AbstractPrimitiveType.JsonType;
|
|
31
32
|
}
|
|
@@ -5,6 +5,7 @@ export declare class BigIntType extends AbstractNumericType<bigint> {
|
|
|
5
5
|
readonly graphqlType: import("./AbstractType.js").AbstractType.GraphqlType;
|
|
6
6
|
readonly kind = "BigIntType";
|
|
7
7
|
readonly typeofs: NonEmptyList<"bigint">;
|
|
8
|
+
get conversions(): readonly AbstractNumericType.Conversion[];
|
|
8
9
|
fromJsonExpression({ variables, }: Parameters<AbstractNumericType<bigint>["fromJsonExpression"]>[0]): Code;
|
|
9
10
|
jsonSchema(_parameters: Parameters<AbstractNumericType<bigint>["jsonSchema"]>[0]): Code;
|
|
10
11
|
jsonType(): AbstractNumericType.JsonType;
|
|
@@ -13,6 +13,17 @@ export class BigIntType extends AbstractNumericType {
|
|
|
13
13
|
graphqlType = new AbstractNumericType.GraphqlType(code `${imports.GraphQLBigInt}`);
|
|
14
14
|
kind = "BigIntType";
|
|
15
15
|
typeofs = NonEmptyList(["bigint"]);
|
|
16
|
+
get conversions() {
|
|
17
|
+
if (this.in_.length > 0) {
|
|
18
|
+
return super.conversions;
|
|
19
|
+
}
|
|
20
|
+
return super.conversions.concat({
|
|
21
|
+
conversionExpression: (value) => code `BigInt(${value})`,
|
|
22
|
+
sourceTypeCheckExpression: (value) => code `typeof ${value} === "number"`,
|
|
23
|
+
sourceTypeName: "number",
|
|
24
|
+
sourceTypeof: "number",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
16
27
|
fromJsonExpression({ variables, }) {
|
|
17
28
|
let expression = code `BigInt(${variables.value})`;
|
|
18
29
|
if (this.primitiveIn.length > 0) {
|
|
@@ -15,7 +15,7 @@ export class SetType extends AbstractCollectionType {
|
|
|
15
15
|
kind = "SetType";
|
|
16
16
|
get conversions() {
|
|
17
17
|
const conversions = [];
|
|
18
|
-
if (this.minCount ===
|
|
18
|
+
if (this.minCount === 0n) {
|
|
19
19
|
conversions.push({
|
|
20
20
|
conversionExpression: () => code `[]`,
|
|
21
21
|
sourceTypeCheckExpression: (value) => code `${value} === undefined`,
|
|
@@ -36,7 +36,7 @@ export class SetType extends AbstractCollectionType {
|
|
|
36
36
|
const chain = [
|
|
37
37
|
this.itemType.fromRdfResourceValuesExpression(parameters),
|
|
38
38
|
];
|
|
39
|
-
if (this.minCount ===
|
|
39
|
+
if (this.minCount === 0n || this._mutable) {
|
|
40
40
|
chain.push(code `map(values => values.toArray()${this._mutable ? ".concat()" : ""})`);
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
@@ -47,7 +47,7 @@ export class SetType extends AbstractCollectionType {
|
|
|
47
47
|
}
|
|
48
48
|
jsonType() {
|
|
49
49
|
const name = code `${!this.mutable ? "readonly " : ""}(${this.itemType.jsonType().name})[]`;
|
|
50
|
-
if (this.minCount ===
|
|
50
|
+
if (this.minCount === 0n) {
|
|
51
51
|
return new AbstractCollectionType.JsonType(name, { optional: true });
|
|
52
52
|
}
|
|
53
53
|
return new AbstractCollectionType.JsonType(name);
|
|
@@ -281,7 +281,7 @@ export class TypeFactory {
|
|
|
281
281
|
itemType,
|
|
282
282
|
label: astType.label,
|
|
283
283
|
logger: this.logger,
|
|
284
|
-
minCount:
|
|
284
|
+
minCount: 0n,
|
|
285
285
|
mutable: astType.mutable,
|
|
286
286
|
toRdfTypes: astType.toRdfTypes,
|
|
287
287
|
});
|
|
@@ -394,9 +394,9 @@ export class TypeFactory {
|
|
|
394
394
|
else if (datatypes.size > 0) {
|
|
395
395
|
this.logger.warn("literal type has multiple datatypes: %s", JSON.stringify([...datatypes].map((datatype) => datatype.value)));
|
|
396
396
|
}
|
|
397
|
-
else {
|
|
398
|
-
|
|
399
|
-
}
|
|
397
|
+
// } else {
|
|
398
|
+
// // this.logger.debug("literal type has no datatypes");
|
|
399
|
+
// }
|
|
400
400
|
return new LiteralType({
|
|
401
401
|
comment: astType.comment,
|
|
402
402
|
hasValues: astType.hasValues,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as ast from "./ast/index.js";
|
|
2
2
|
export * from "./Compiler.js";
|
|
3
3
|
export * from "./generators/index.js";
|
|
4
|
-
export * from "./input/
|
|
4
|
+
export * from "./input/index.js";
|
|
5
5
|
export * from "./ShapesGraphToAstTransformer.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as ast from "./ast/index.js";
|
|
2
2
|
export * from "./Compiler.js";
|
|
3
3
|
export * from "./generators/index.js";
|
|
4
|
-
export * from "./input/
|
|
4
|
+
export * from "./input/index.js";
|
|
5
5
|
export * from "./ShapesGraphToAstTransformer.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -145,14 +145,14 @@ export interface PropertyShape {
|
|
|
145
145
|
readonly isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
146
146
|
readonly label: Maybe<string>;
|
|
147
147
|
readonly languageIn: Maybe<readonly string[]>;
|
|
148
|
-
readonly maxCount: Maybe<
|
|
148
|
+
readonly maxCount: Maybe<bigint>;
|
|
149
149
|
readonly maxExclusive: Maybe<Literal>;
|
|
150
150
|
readonly maxInclusive: Maybe<Literal>;
|
|
151
|
-
readonly maxLength: Maybe<
|
|
152
|
-
readonly minCount: Maybe<
|
|
151
|
+
readonly maxLength: Maybe<bigint>;
|
|
152
|
+
readonly minCount: Maybe<bigint>;
|
|
153
153
|
readonly minExclusive: Maybe<Literal>;
|
|
154
154
|
readonly minInclusive: Maybe<Literal>;
|
|
155
|
-
readonly minLength: Maybe<
|
|
155
|
+
readonly minLength: Maybe<bigint>;
|
|
156
156
|
readonly mutable: Maybe<boolean>;
|
|
157
157
|
readonly name: Maybe<string>;
|
|
158
158
|
readonly node: Maybe<BlankNode | NamedNode>;
|
|
@@ -185,14 +185,14 @@ export declare namespace PropertyShape {
|
|
|
185
185
|
readonly isDefinedBy?: Maybe<BlankNode | NamedNode> | (BlankNode | NamedNode) | string;
|
|
186
186
|
readonly label?: Maybe<string> | string;
|
|
187
187
|
readonly languageIn?: Maybe<readonly string[]> | readonly string[];
|
|
188
|
-
readonly maxCount?: Maybe<
|
|
188
|
+
readonly maxCount?: Maybe<bigint> | bigint | number;
|
|
189
189
|
readonly maxExclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
190
190
|
readonly maxInclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
191
|
-
readonly maxLength?: Maybe<
|
|
192
|
-
readonly minCount?: Maybe<
|
|
191
|
+
readonly maxLength?: Maybe<bigint> | bigint | number;
|
|
192
|
+
readonly minCount?: Maybe<bigint> | bigint | number;
|
|
193
193
|
readonly minExclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
194
194
|
readonly minInclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
195
|
-
readonly minLength?: Maybe<
|
|
195
|
+
readonly minLength?: Maybe<bigint> | bigint | number;
|
|
196
196
|
readonly mutable?: Maybe<boolean> | boolean;
|
|
197
197
|
readonly name?: Maybe<string> | string;
|
|
198
198
|
readonly node?: Maybe<BlankNode | NamedNode> | (BlankNode | NamedNode) | string;
|
|
@@ -230,14 +230,14 @@ export declare namespace PropertyShape {
|
|
|
230
230
|
readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
|
|
231
231
|
readonly label?: $MaybeFilter<$StringFilter>;
|
|
232
232
|
readonly languageIn?: $MaybeFilter<$CollectionFilter<$StringFilter>>;
|
|
233
|
-
readonly maxCount?: $MaybeFilter<$NumericFilter<
|
|
233
|
+
readonly maxCount?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
234
234
|
readonly maxExclusive?: $MaybeFilter<$LiteralFilter>;
|
|
235
235
|
readonly maxInclusive?: $MaybeFilter<$LiteralFilter>;
|
|
236
|
-
readonly maxLength?: $MaybeFilter<$NumericFilter<
|
|
237
|
-
readonly minCount?: $MaybeFilter<$NumericFilter<
|
|
236
|
+
readonly maxLength?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
237
|
+
readonly minCount?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
238
238
|
readonly minExclusive?: $MaybeFilter<$LiteralFilter>;
|
|
239
239
|
readonly minInclusive?: $MaybeFilter<$LiteralFilter>;
|
|
240
|
-
readonly minLength?: $MaybeFilter<$NumericFilter<
|
|
240
|
+
readonly minLength?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
241
241
|
readonly mutable?: $MaybeFilter<$BooleanFilter>;
|
|
242
242
|
readonly name?: $MaybeFilter<$StringFilter>;
|
|
243
243
|
readonly node?: $MaybeFilter<$IdentifierFilter>;
|
|
@@ -274,14 +274,14 @@ export declare namespace PropertyShape {
|
|
|
274
274
|
isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
275
275
|
label: Maybe<string>;
|
|
276
276
|
languageIn: Maybe<readonly string[]>;
|
|
277
|
-
maxCount: Maybe<
|
|
277
|
+
maxCount: Maybe<bigint>;
|
|
278
278
|
maxExclusive: Maybe<Literal>;
|
|
279
279
|
maxInclusive: Maybe<Literal>;
|
|
280
|
-
maxLength: Maybe<
|
|
281
|
-
minCount: Maybe<
|
|
280
|
+
maxLength: Maybe<bigint>;
|
|
281
|
+
minCount: Maybe<bigint>;
|
|
282
282
|
minExclusive: Maybe<Literal>;
|
|
283
283
|
minInclusive: Maybe<Literal>;
|
|
284
|
-
minLength: Maybe<
|
|
284
|
+
minLength: Maybe<bigint>;
|
|
285
285
|
mutable: Maybe<boolean>;
|
|
286
286
|
name: Maybe<string>;
|
|
287
287
|
node: Maybe<BlankNode | NamedNode>;
|
|
@@ -476,7 +476,7 @@ export declare namespace PropertyShape {
|
|
|
476
476
|
readonly type: () => {
|
|
477
477
|
kind: "Maybe";
|
|
478
478
|
item: () => {
|
|
479
|
-
kind: "
|
|
479
|
+
kind: "BigInt";
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
482
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -506,7 +506,7 @@ export declare namespace PropertyShape {
|
|
|
506
506
|
readonly type: () => {
|
|
507
507
|
kind: "Maybe";
|
|
508
508
|
item: () => {
|
|
509
|
-
kind: "
|
|
509
|
+
kind: "BigInt";
|
|
510
510
|
};
|
|
511
511
|
};
|
|
512
512
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -516,7 +516,7 @@ export declare namespace PropertyShape {
|
|
|
516
516
|
readonly type: () => {
|
|
517
517
|
kind: "Maybe";
|
|
518
518
|
item: () => {
|
|
519
|
-
kind: "
|
|
519
|
+
kind: "BigInt";
|
|
520
520
|
};
|
|
521
521
|
};
|
|
522
522
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -546,7 +546,7 @@ export declare namespace PropertyShape {
|
|
|
546
546
|
readonly type: () => {
|
|
547
547
|
kind: "Maybe";
|
|
548
548
|
item: () => {
|
|
549
|
-
kind: "
|
|
549
|
+
kind: "BigInt";
|
|
550
550
|
};
|
|
551
551
|
};
|
|
552
552
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
@@ -903,14 +903,14 @@ export interface NodeShape {
|
|
|
903
903
|
readonly isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
904
904
|
readonly label: Maybe<string>;
|
|
905
905
|
readonly languageIn: Maybe<readonly string[]>;
|
|
906
|
-
readonly maxCount: Maybe<
|
|
906
|
+
readonly maxCount: Maybe<bigint>;
|
|
907
907
|
readonly maxExclusive: Maybe<Literal>;
|
|
908
908
|
readonly maxInclusive: Maybe<Literal>;
|
|
909
|
-
readonly maxLength: Maybe<
|
|
910
|
-
readonly minCount: Maybe<
|
|
909
|
+
readonly maxLength: Maybe<bigint>;
|
|
910
|
+
readonly minCount: Maybe<bigint>;
|
|
911
911
|
readonly minExclusive: Maybe<Literal>;
|
|
912
912
|
readonly minInclusive: Maybe<Literal>;
|
|
913
|
-
readonly minLength: Maybe<
|
|
913
|
+
readonly minLength: Maybe<bigint>;
|
|
914
914
|
readonly mutable: Maybe<boolean>;
|
|
915
915
|
readonly node: Maybe<BlankNode | NamedNode>;
|
|
916
916
|
readonly nodeKind: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
@@ -947,14 +947,14 @@ export declare namespace NodeShape {
|
|
|
947
947
|
readonly isDefinedBy?: Maybe<BlankNode | NamedNode> | (BlankNode | NamedNode) | string;
|
|
948
948
|
readonly label?: Maybe<string> | string;
|
|
949
949
|
readonly languageIn?: Maybe<readonly string[]> | readonly string[];
|
|
950
|
-
readonly maxCount?: Maybe<
|
|
950
|
+
readonly maxCount?: Maybe<bigint> | bigint | number;
|
|
951
951
|
readonly maxExclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
952
952
|
readonly maxInclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
953
|
-
readonly maxLength?: Maybe<
|
|
954
|
-
readonly minCount?: Maybe<
|
|
953
|
+
readonly maxLength?: Maybe<bigint> | bigint | number;
|
|
954
|
+
readonly minCount?: Maybe<bigint> | bigint | number;
|
|
955
955
|
readonly minExclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
956
956
|
readonly minInclusive?: Maybe<Literal> | bigint | boolean | Date | number | string | Literal;
|
|
957
|
-
readonly minLength?: Maybe<
|
|
957
|
+
readonly minLength?: Maybe<bigint> | bigint | number;
|
|
958
958
|
readonly mutable?: Maybe<boolean> | boolean;
|
|
959
959
|
readonly node?: Maybe<BlankNode | NamedNode> | (BlankNode | NamedNode) | string;
|
|
960
960
|
readonly nodeKind?: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">> | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | "http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal";
|
|
@@ -996,14 +996,14 @@ export declare namespace NodeShape {
|
|
|
996
996
|
readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
|
|
997
997
|
readonly label?: $MaybeFilter<$StringFilter>;
|
|
998
998
|
readonly languageIn?: $MaybeFilter<$CollectionFilter<$StringFilter>>;
|
|
999
|
-
readonly maxCount?: $MaybeFilter<$NumericFilter<
|
|
999
|
+
readonly maxCount?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
1000
1000
|
readonly maxExclusive?: $MaybeFilter<$LiteralFilter>;
|
|
1001
1001
|
readonly maxInclusive?: $MaybeFilter<$LiteralFilter>;
|
|
1002
|
-
readonly maxLength?: $MaybeFilter<$NumericFilter<
|
|
1003
|
-
readonly minCount?: $MaybeFilter<$NumericFilter<
|
|
1002
|
+
readonly maxLength?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
1003
|
+
readonly minCount?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
1004
1004
|
readonly minExclusive?: $MaybeFilter<$LiteralFilter>;
|
|
1005
1005
|
readonly minInclusive?: $MaybeFilter<$LiteralFilter>;
|
|
1006
|
-
readonly minLength?: $MaybeFilter<$NumericFilter<
|
|
1006
|
+
readonly minLength?: $MaybeFilter<$NumericFilter<bigint>>;
|
|
1007
1007
|
readonly mutable?: $MaybeFilter<$BooleanFilter>;
|
|
1008
1008
|
readonly node?: $MaybeFilter<$IdentifierFilter>;
|
|
1009
1009
|
readonly nodeKind?: $MaybeFilter<$IriFilter>;
|
|
@@ -1044,14 +1044,14 @@ export declare namespace NodeShape {
|
|
|
1044
1044
|
isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
1045
1045
|
label: Maybe<string>;
|
|
1046
1046
|
languageIn: Maybe<readonly string[]>;
|
|
1047
|
-
maxCount: Maybe<
|
|
1047
|
+
maxCount: Maybe<bigint>;
|
|
1048
1048
|
maxExclusive: Maybe<Literal>;
|
|
1049
1049
|
maxInclusive: Maybe<Literal>;
|
|
1050
|
-
maxLength: Maybe<
|
|
1051
|
-
minCount: Maybe<
|
|
1050
|
+
maxLength: Maybe<bigint>;
|
|
1051
|
+
minCount: Maybe<bigint>;
|
|
1052
1052
|
minExclusive: Maybe<Literal>;
|
|
1053
1053
|
minInclusive: Maybe<Literal>;
|
|
1054
|
-
minLength: Maybe<
|
|
1054
|
+
minLength: Maybe<bigint>;
|
|
1055
1055
|
mutable: Maybe<boolean>;
|
|
1056
1056
|
node: Maybe<BlankNode | NamedNode>;
|
|
1057
1057
|
nodeKind: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
@@ -1261,7 +1261,7 @@ export declare namespace NodeShape {
|
|
|
1261
1261
|
readonly type: () => {
|
|
1262
1262
|
kind: "Maybe";
|
|
1263
1263
|
item: () => {
|
|
1264
|
-
kind: "
|
|
1264
|
+
kind: "BigInt";
|
|
1265
1265
|
};
|
|
1266
1266
|
};
|
|
1267
1267
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -1291,7 +1291,7 @@ export declare namespace NodeShape {
|
|
|
1291
1291
|
readonly type: () => {
|
|
1292
1292
|
kind: "Maybe";
|
|
1293
1293
|
item: () => {
|
|
1294
|
-
kind: "
|
|
1294
|
+
kind: "BigInt";
|
|
1295
1295
|
};
|
|
1296
1296
|
};
|
|
1297
1297
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -1301,7 +1301,7 @@ export declare namespace NodeShape {
|
|
|
1301
1301
|
readonly type: () => {
|
|
1302
1302
|
kind: "Maybe";
|
|
1303
1303
|
item: () => {
|
|
1304
|
-
kind: "
|
|
1304
|
+
kind: "BigInt";
|
|
1305
1305
|
};
|
|
1306
1306
|
};
|
|
1307
1307
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -1331,7 +1331,7 @@ export declare namespace NodeShape {
|
|
|
1331
1331
|
readonly type: () => {
|
|
1332
1332
|
kind: "Maybe";
|
|
1333
1333
|
item: () => {
|
|
1334
|
-
kind: "
|
|
1334
|
+
kind: "BigInt";
|
|
1335
1335
|
};
|
|
1336
1336
|
};
|
|
1337
1337
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
@@ -1726,7 +1726,7 @@ export declare namespace Shape {
|
|
|
1726
1726
|
readonly type: () => {
|
|
1727
1727
|
kind: "Maybe";
|
|
1728
1728
|
item: () => {
|
|
1729
|
-
kind: "
|
|
1729
|
+
kind: "BigInt";
|
|
1730
1730
|
};
|
|
1731
1731
|
};
|
|
1732
1732
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -1756,7 +1756,7 @@ export declare namespace Shape {
|
|
|
1756
1756
|
readonly type: () => {
|
|
1757
1757
|
kind: "Maybe";
|
|
1758
1758
|
item: () => {
|
|
1759
|
-
kind: "
|
|
1759
|
+
kind: "BigInt";
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
1762
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -1766,7 +1766,7 @@ export declare namespace Shape {
|
|
|
1766
1766
|
readonly type: () => {
|
|
1767
1767
|
kind: "Maybe";
|
|
1768
1768
|
item: () => {
|
|
1769
|
-
kind: "
|
|
1769
|
+
kind: "BigInt";
|
|
1770
1770
|
};
|
|
1771
1771
|
};
|
|
1772
1772
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -1796,7 +1796,7 @@ export declare namespace Shape {
|
|
|
1796
1796
|
readonly type: () => {
|
|
1797
1797
|
kind: "Maybe";
|
|
1798
1798
|
item: () => {
|
|
1799
|
-
kind: "
|
|
1799
|
+
kind: "BigInt";
|
|
1800
1800
|
};
|
|
1801
1801
|
};
|
|
1802
1802
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
@@ -2155,7 +2155,7 @@ export declare namespace Shape {
|
|
|
2155
2155
|
readonly type: () => {
|
|
2156
2156
|
kind: "Maybe";
|
|
2157
2157
|
item: () => {
|
|
2158
|
-
kind: "
|
|
2158
|
+
kind: "BigInt";
|
|
2159
2159
|
};
|
|
2160
2160
|
};
|
|
2161
2161
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -2185,7 +2185,7 @@ export declare namespace Shape {
|
|
|
2185
2185
|
readonly type: () => {
|
|
2186
2186
|
kind: "Maybe";
|
|
2187
2187
|
item: () => {
|
|
2188
|
-
kind: "
|
|
2188
|
+
kind: "BigInt";
|
|
2189
2189
|
};
|
|
2190
2190
|
};
|
|
2191
2191
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -2195,7 +2195,7 @@ export declare namespace Shape {
|
|
|
2195
2195
|
readonly type: () => {
|
|
2196
2196
|
kind: "Maybe";
|
|
2197
2197
|
item: () => {
|
|
2198
|
-
kind: "
|
|
2198
|
+
kind: "BigInt";
|
|
2199
2199
|
};
|
|
2200
2200
|
};
|
|
2201
2201
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -2225,7 +2225,7 @@ export declare namespace Shape {
|
|
|
2225
2225
|
readonly type: () => {
|
|
2226
2226
|
kind: "Maybe";
|
|
2227
2227
|
item: () => {
|
|
2228
|
-
kind: "
|
|
2228
|
+
kind: "BigInt";
|
|
2229
2229
|
};
|
|
2230
2230
|
};
|
|
2231
2231
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
@@ -2491,7 +2491,7 @@ export declare namespace Shape {
|
|
|
2491
2491
|
readonly type: () => {
|
|
2492
2492
|
kind: "Maybe";
|
|
2493
2493
|
item: () => {
|
|
2494
|
-
kind: "
|
|
2494
|
+
kind: "BigInt";
|
|
2495
2495
|
};
|
|
2496
2496
|
};
|
|
2497
2497
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -2521,7 +2521,7 @@ export declare namespace Shape {
|
|
|
2521
2521
|
readonly type: () => {
|
|
2522
2522
|
kind: "Maybe";
|
|
2523
2523
|
item: () => {
|
|
2524
|
-
kind: "
|
|
2524
|
+
kind: "BigInt";
|
|
2525
2525
|
};
|
|
2526
2526
|
};
|
|
2527
2527
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -2531,7 +2531,7 @@ export declare namespace Shape {
|
|
|
2531
2531
|
readonly type: () => {
|
|
2532
2532
|
kind: "Maybe";
|
|
2533
2533
|
item: () => {
|
|
2534
|
-
kind: "
|
|
2534
|
+
kind: "BigInt";
|
|
2535
2535
|
};
|
|
2536
2536
|
};
|
|
2537
2537
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -2561,7 +2561,7 @@ export declare namespace Shape {
|
|
|
2561
2561
|
readonly type: () => {
|
|
2562
2562
|
kind: "Maybe";
|
|
2563
2563
|
item: () => {
|
|
2564
|
-
kind: "
|
|
2564
|
+
kind: "BigInt";
|
|
2565
2565
|
};
|
|
2566
2566
|
};
|
|
2567
2567
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
@@ -2882,7 +2882,7 @@ export declare namespace $Object {
|
|
|
2882
2882
|
readonly type: () => {
|
|
2883
2883
|
kind: "Maybe";
|
|
2884
2884
|
item: () => {
|
|
2885
|
-
kind: "
|
|
2885
|
+
kind: "BigInt";
|
|
2886
2886
|
};
|
|
2887
2887
|
};
|
|
2888
2888
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -2912,7 +2912,7 @@ export declare namespace $Object {
|
|
|
2912
2912
|
readonly type: () => {
|
|
2913
2913
|
kind: "Maybe";
|
|
2914
2914
|
item: () => {
|
|
2915
|
-
kind: "
|
|
2915
|
+
kind: "BigInt";
|
|
2916
2916
|
};
|
|
2917
2917
|
};
|
|
2918
2918
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -2922,7 +2922,7 @@ export declare namespace $Object {
|
|
|
2922
2922
|
readonly type: () => {
|
|
2923
2923
|
kind: "Maybe";
|
|
2924
2924
|
item: () => {
|
|
2925
|
-
kind: "
|
|
2925
|
+
kind: "BigInt";
|
|
2926
2926
|
};
|
|
2927
2927
|
};
|
|
2928
2928
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -2952,7 +2952,7 @@ export declare namespace $Object {
|
|
|
2952
2952
|
readonly type: () => {
|
|
2953
2953
|
kind: "Maybe";
|
|
2954
2954
|
item: () => {
|
|
2955
|
-
kind: "
|
|
2955
|
+
kind: "BigInt";
|
|
2956
2956
|
};
|
|
2957
2957
|
};
|
|
2958
2958
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
@@ -3423,7 +3423,7 @@ export declare namespace $Object {
|
|
|
3423
3423
|
readonly type: () => {
|
|
3424
3424
|
kind: "Maybe";
|
|
3425
3425
|
item: () => {
|
|
3426
|
-
kind: "
|
|
3426
|
+
kind: "BigInt";
|
|
3427
3427
|
};
|
|
3428
3428
|
};
|
|
3429
3429
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
@@ -3453,7 +3453,7 @@ export declare namespace $Object {
|
|
|
3453
3453
|
readonly type: () => {
|
|
3454
3454
|
kind: "Maybe";
|
|
3455
3455
|
item: () => {
|
|
3456
|
-
kind: "
|
|
3456
|
+
kind: "BigInt";
|
|
3457
3457
|
};
|
|
3458
3458
|
};
|
|
3459
3459
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
@@ -3463,7 +3463,7 @@ export declare namespace $Object {
|
|
|
3463
3463
|
readonly type: () => {
|
|
3464
3464
|
kind: "Maybe";
|
|
3465
3465
|
item: () => {
|
|
3466
|
-
kind: "
|
|
3466
|
+
kind: "BigInt";
|
|
3467
3467
|
};
|
|
3468
3468
|
};
|
|
3469
3469
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
@@ -3493,7 +3493,7 @@ export declare namespace $Object {
|
|
|
3493
3493
|
readonly type: () => {
|
|
3494
3494
|
kind: "Maybe";
|
|
3495
3495
|
item: () => {
|
|
3496
|
-
kind: "
|
|
3496
|
+
kind: "BigInt";
|
|
3497
3497
|
};
|
|
3498
3498
|
};
|
|
3499
3499
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
package/dist/input/generated.js
CHANGED
|
@@ -525,9 +525,12 @@ export var PropertyShape;
|
|
|
525
525
|
if (Maybe.isMaybe(parameters.maxCount)) {
|
|
526
526
|
maxCount = parameters.maxCount;
|
|
527
527
|
}
|
|
528
|
-
else if (typeof parameters.maxCount === "
|
|
528
|
+
else if (typeof parameters.maxCount === "bigint") {
|
|
529
529
|
maxCount = Maybe.of(parameters.maxCount);
|
|
530
530
|
}
|
|
531
|
+
else if (typeof parameters.maxCount === "number") {
|
|
532
|
+
maxCount = Maybe.of(BigInt(parameters.maxCount));
|
|
533
|
+
}
|
|
531
534
|
else if (parameters.maxCount === undefined) {
|
|
532
535
|
maxCount = Maybe.empty();
|
|
533
536
|
}
|
|
@@ -596,9 +599,12 @@ export var PropertyShape;
|
|
|
596
599
|
if (Maybe.isMaybe(parameters.maxLength)) {
|
|
597
600
|
maxLength = parameters.maxLength;
|
|
598
601
|
}
|
|
599
|
-
else if (typeof parameters.maxLength === "
|
|
602
|
+
else if (typeof parameters.maxLength === "bigint") {
|
|
600
603
|
maxLength = Maybe.of(parameters.maxLength);
|
|
601
604
|
}
|
|
605
|
+
else if (typeof parameters.maxLength === "number") {
|
|
606
|
+
maxLength = Maybe.of(BigInt(parameters.maxLength));
|
|
607
|
+
}
|
|
602
608
|
else if (parameters.maxLength === undefined) {
|
|
603
609
|
maxLength = Maybe.empty();
|
|
604
610
|
}
|
|
@@ -609,9 +615,12 @@ export var PropertyShape;
|
|
|
609
615
|
if (Maybe.isMaybe(parameters.minCount)) {
|
|
610
616
|
minCount = parameters.minCount;
|
|
611
617
|
}
|
|
612
|
-
else if (typeof parameters.minCount === "
|
|
618
|
+
else if (typeof parameters.minCount === "bigint") {
|
|
613
619
|
minCount = Maybe.of(parameters.minCount);
|
|
614
620
|
}
|
|
621
|
+
else if (typeof parameters.minCount === "number") {
|
|
622
|
+
minCount = Maybe.of(BigInt(parameters.minCount));
|
|
623
|
+
}
|
|
615
624
|
else if (parameters.minCount === undefined) {
|
|
616
625
|
minCount = Maybe.empty();
|
|
617
626
|
}
|
|
@@ -680,9 +689,12 @@ export var PropertyShape;
|
|
|
680
689
|
if (Maybe.isMaybe(parameters.minLength)) {
|
|
681
690
|
minLength = parameters.minLength;
|
|
682
691
|
}
|
|
683
|
-
else if (typeof parameters.minLength === "
|
|
692
|
+
else if (typeof parameters.minLength === "bigint") {
|
|
684
693
|
minLength = Maybe.of(parameters.minLength);
|
|
685
694
|
}
|
|
695
|
+
else if (typeof parameters.minLength === "number") {
|
|
696
|
+
minLength = Maybe.of(BigInt(parameters.minLength));
|
|
697
|
+
}
|
|
686
698
|
else if (parameters.minLength === undefined) {
|
|
687
699
|
minLength = Maybe.empty();
|
|
688
700
|
}
|
|
@@ -1398,7 +1410,7 @@ export var PropertyShape;
|
|
|
1398
1410
|
resource: $resource,
|
|
1399
1411
|
propertySchema: PropertyShape.$schema.properties.maxCount,
|
|
1400
1412
|
typeFromRdf: (resourceValues) => resourceValues
|
|
1401
|
-
.chain((values) => values.chainMap((value) => value.
|
|
1413
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
1402
1414
|
.map((values) => values.length > 0
|
|
1403
1415
|
? values.map((value) => Maybe.of(value))
|
|
1404
1416
|
: Resource.Values.fromValue({
|
|
@@ -1451,7 +1463,7 @@ export var PropertyShape;
|
|
|
1451
1463
|
propertySchema: PropertyShape.$schema.properties
|
|
1452
1464
|
.maxLength,
|
|
1453
1465
|
typeFromRdf: (resourceValues) => resourceValues
|
|
1454
|
-
.chain((values) => values.chainMap((value) => value.
|
|
1466
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
1455
1467
|
.map((values) => values.length > 0
|
|
1456
1468
|
? values.map((value) => Maybe.of(value))
|
|
1457
1469
|
: Resource.Values.fromValue({
|
|
@@ -1469,7 +1481,7 @@ export var PropertyShape;
|
|
|
1469
1481
|
propertySchema: PropertyShape.$schema.properties
|
|
1470
1482
|
.minCount,
|
|
1471
1483
|
typeFromRdf: (resourceValues) => resourceValues
|
|
1472
|
-
.chain((values) => values.chainMap((value) => value.
|
|
1484
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
1473
1485
|
.map((values) => values.length > 0
|
|
1474
1486
|
? values.map((value) => Maybe.of(value))
|
|
1475
1487
|
: Resource.Values.fromValue({
|
|
@@ -1525,7 +1537,7 @@ export var PropertyShape;
|
|
|
1525
1537
|
propertySchema: PropertyShape.$schema.properties
|
|
1526
1538
|
.minLength,
|
|
1527
1539
|
typeFromRdf: (resourceValues) => resourceValues
|
|
1528
|
-
.chain((values) => values.chainMap((value) => value.
|
|
1540
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
1529
1541
|
.map((values) => values.length >
|
|
1530
1542
|
0
|
|
1531
1543
|
? values.map((value) => Maybe.of(value))
|
|
@@ -2015,7 +2027,7 @@ export var PropertyShape;
|
|
|
2015
2027
|
kind: "Shacl",
|
|
2016
2028
|
type: () => ({
|
|
2017
2029
|
kind: "Maybe",
|
|
2018
|
-
item: () => ({ kind: "
|
|
2030
|
+
item: () => ({ kind: "BigInt" }),
|
|
2019
2031
|
}),
|
|
2020
2032
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
|
|
2021
2033
|
},
|
|
@@ -2039,7 +2051,7 @@ export var PropertyShape;
|
|
|
2039
2051
|
kind: "Shacl",
|
|
2040
2052
|
type: () => ({
|
|
2041
2053
|
kind: "Maybe",
|
|
2042
|
-
item: () => ({ kind: "
|
|
2054
|
+
item: () => ({ kind: "BigInt" }),
|
|
2043
2055
|
}),
|
|
2044
2056
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
2045
2057
|
},
|
|
@@ -2047,7 +2059,7 @@ export var PropertyShape;
|
|
|
2047
2059
|
kind: "Shacl",
|
|
2048
2060
|
type: () => ({
|
|
2049
2061
|
kind: "Maybe",
|
|
2050
|
-
item: () => ({ kind: "
|
|
2062
|
+
item: () => ({ kind: "BigInt" }),
|
|
2051
2063
|
}),
|
|
2052
2064
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
|
|
2053
2065
|
},
|
|
@@ -2071,7 +2083,7 @@ export var PropertyShape;
|
|
|
2071
2083
|
kind: "Shacl",
|
|
2072
2084
|
type: () => ({
|
|
2073
2085
|
kind: "Maybe",
|
|
2074
|
-
item: () => ({ kind: "
|
|
2086
|
+
item: () => ({ kind: "BigInt" }),
|
|
2075
2087
|
}),
|
|
2076
2088
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
2077
2089
|
},
|
|
@@ -2299,26 +2311,26 @@ export var PropertyShape;
|
|
|
2299
2311
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"), _propertyShape.maxCount
|
|
2300
2312
|
.toList()
|
|
2301
2313
|
.flatMap((value) => [
|
|
2302
|
-
$literalFactory.
|
|
2314
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2303
2315
|
]), options?.graph);
|
|
2304
2316
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"), _propertyShape.maxExclusive.toList(), options?.graph);
|
|
2305
2317
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"), _propertyShape.maxInclusive.toList(), options?.graph);
|
|
2306
2318
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"), _propertyShape.maxLength
|
|
2307
2319
|
.toList()
|
|
2308
2320
|
.flatMap((value) => [
|
|
2309
|
-
$literalFactory.
|
|
2321
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2310
2322
|
]), options?.graph);
|
|
2311
2323
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"), _propertyShape.minCount
|
|
2312
2324
|
.toList()
|
|
2313
2325
|
.flatMap((value) => [
|
|
2314
|
-
$literalFactory.
|
|
2326
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2315
2327
|
]), options?.graph);
|
|
2316
2328
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"), _propertyShape.minExclusive.toList(), options?.graph);
|
|
2317
2329
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"), _propertyShape.minInclusive.toList(), options?.graph);
|
|
2318
2330
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"), _propertyShape.minLength
|
|
2319
2331
|
.toList()
|
|
2320
2332
|
.flatMap((value) => [
|
|
2321
|
-
$literalFactory.
|
|
2333
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2322
2334
|
]), options?.graph);
|
|
2323
2335
|
resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"), _propertyShape.mutable
|
|
2324
2336
|
.toList()
|
|
@@ -3296,9 +3308,12 @@ export var NodeShape;
|
|
|
3296
3308
|
if (Maybe.isMaybe(parameters?.maxCount)) {
|
|
3297
3309
|
maxCount = parameters?.maxCount;
|
|
3298
3310
|
}
|
|
3299
|
-
else if (typeof parameters?.maxCount === "
|
|
3311
|
+
else if (typeof parameters?.maxCount === "bigint") {
|
|
3300
3312
|
maxCount = Maybe.of(parameters?.maxCount);
|
|
3301
3313
|
}
|
|
3314
|
+
else if (typeof parameters?.maxCount === "number") {
|
|
3315
|
+
maxCount = Maybe.of(BigInt(parameters?.maxCount));
|
|
3316
|
+
}
|
|
3302
3317
|
else if (parameters?.maxCount === undefined) {
|
|
3303
3318
|
maxCount = Maybe.empty();
|
|
3304
3319
|
}
|
|
@@ -3367,9 +3382,12 @@ export var NodeShape;
|
|
|
3367
3382
|
if (Maybe.isMaybe(parameters?.maxLength)) {
|
|
3368
3383
|
maxLength = parameters?.maxLength;
|
|
3369
3384
|
}
|
|
3370
|
-
else if (typeof parameters?.maxLength === "
|
|
3385
|
+
else if (typeof parameters?.maxLength === "bigint") {
|
|
3371
3386
|
maxLength = Maybe.of(parameters?.maxLength);
|
|
3372
3387
|
}
|
|
3388
|
+
else if (typeof parameters?.maxLength === "number") {
|
|
3389
|
+
maxLength = Maybe.of(BigInt(parameters?.maxLength));
|
|
3390
|
+
}
|
|
3373
3391
|
else if (parameters?.maxLength === undefined) {
|
|
3374
3392
|
maxLength = Maybe.empty();
|
|
3375
3393
|
}
|
|
@@ -3380,9 +3398,12 @@ export var NodeShape;
|
|
|
3380
3398
|
if (Maybe.isMaybe(parameters?.minCount)) {
|
|
3381
3399
|
minCount = parameters?.minCount;
|
|
3382
3400
|
}
|
|
3383
|
-
else if (typeof parameters?.minCount === "
|
|
3401
|
+
else if (typeof parameters?.minCount === "bigint") {
|
|
3384
3402
|
minCount = Maybe.of(parameters?.minCount);
|
|
3385
3403
|
}
|
|
3404
|
+
else if (typeof parameters?.minCount === "number") {
|
|
3405
|
+
minCount = Maybe.of(BigInt(parameters?.minCount));
|
|
3406
|
+
}
|
|
3386
3407
|
else if (parameters?.minCount === undefined) {
|
|
3387
3408
|
minCount = Maybe.empty();
|
|
3388
3409
|
}
|
|
@@ -3451,9 +3472,12 @@ export var NodeShape;
|
|
|
3451
3472
|
if (Maybe.isMaybe(parameters?.minLength)) {
|
|
3452
3473
|
minLength = parameters?.minLength;
|
|
3453
3474
|
}
|
|
3454
|
-
else if (typeof parameters?.minLength === "
|
|
3475
|
+
else if (typeof parameters?.minLength === "bigint") {
|
|
3455
3476
|
minLength = Maybe.of(parameters?.minLength);
|
|
3456
3477
|
}
|
|
3478
|
+
else if (typeof parameters?.minLength === "number") {
|
|
3479
|
+
minLength = Maybe.of(BigInt(parameters?.minLength));
|
|
3480
|
+
}
|
|
3457
3481
|
else if (parameters?.minLength === undefined) {
|
|
3458
3482
|
minLength = Maybe.empty();
|
|
3459
3483
|
}
|
|
@@ -4249,7 +4273,7 @@ export var NodeShape;
|
|
|
4249
4273
|
resource: $resource,
|
|
4250
4274
|
propertySchema: NodeShape.$schema.properties.maxCount,
|
|
4251
4275
|
typeFromRdf: (resourceValues) => resourceValues
|
|
4252
|
-
.chain((values) => values.chainMap((value) => value.
|
|
4276
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
4253
4277
|
.map((values) => values.length > 0
|
|
4254
4278
|
? values.map((value) => Maybe.of(value))
|
|
4255
4279
|
: Resource.Values.fromValue({
|
|
@@ -4304,7 +4328,7 @@ export var NodeShape;
|
|
|
4304
4328
|
propertySchema: NodeShape.$schema.properties
|
|
4305
4329
|
.maxLength,
|
|
4306
4330
|
typeFromRdf: (resourceValues) => resourceValues
|
|
4307
|
-
.chain((values) => values.chainMap((value) => value.
|
|
4331
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
4308
4332
|
.map((values) => values.length > 0
|
|
4309
4333
|
? values.map((value) => Maybe.of(value))
|
|
4310
4334
|
: Resource.Values.fromValue({
|
|
@@ -4322,7 +4346,7 @@ export var NodeShape;
|
|
|
4322
4346
|
propertySchema: NodeShape.$schema.properties
|
|
4323
4347
|
.minCount,
|
|
4324
4348
|
typeFromRdf: (resourceValues) => resourceValues
|
|
4325
|
-
.chain((values) => values.chainMap((value) => value.
|
|
4349
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
4326
4350
|
.map((values) => values.length > 0
|
|
4327
4351
|
? values.map((value) => Maybe.of(value))
|
|
4328
4352
|
: Resource.Values.fromValue({
|
|
@@ -4380,7 +4404,7 @@ export var NodeShape;
|
|
|
4380
4404
|
.properties
|
|
4381
4405
|
.minLength,
|
|
4382
4406
|
typeFromRdf: (resourceValues) => resourceValues
|
|
4383
|
-
.chain((values) => values.chainMap((value) => value.
|
|
4407
|
+
.chain((values) => values.chainMap((value) => value.toBigInt()))
|
|
4384
4408
|
.map((values) => values.length >
|
|
4385
4409
|
0
|
|
4386
4410
|
? values.map((value) => Maybe.of(value))
|
|
@@ -4953,7 +4977,7 @@ export var NodeShape;
|
|
|
4953
4977
|
kind: "Shacl",
|
|
4954
4978
|
type: () => ({
|
|
4955
4979
|
kind: "Maybe",
|
|
4956
|
-
item: () => ({ kind: "
|
|
4980
|
+
item: () => ({ kind: "BigInt" }),
|
|
4957
4981
|
}),
|
|
4958
4982
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
|
|
4959
4983
|
},
|
|
@@ -4977,7 +5001,7 @@ export var NodeShape;
|
|
|
4977
5001
|
kind: "Shacl",
|
|
4978
5002
|
type: () => ({
|
|
4979
5003
|
kind: "Maybe",
|
|
4980
|
-
item: () => ({ kind: "
|
|
5004
|
+
item: () => ({ kind: "BigInt" }),
|
|
4981
5005
|
}),
|
|
4982
5006
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
4983
5007
|
},
|
|
@@ -4985,7 +5009,7 @@ export var NodeShape;
|
|
|
4985
5009
|
kind: "Shacl",
|
|
4986
5010
|
type: () => ({
|
|
4987
5011
|
kind: "Maybe",
|
|
4988
|
-
item: () => ({ kind: "
|
|
5012
|
+
item: () => ({ kind: "BigInt" }),
|
|
4989
5013
|
}),
|
|
4990
5014
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
|
|
4991
5015
|
},
|
|
@@ -5009,7 +5033,7 @@ export var NodeShape;
|
|
|
5009
5033
|
kind: "Shacl",
|
|
5010
5034
|
type: () => ({
|
|
5011
5035
|
kind: "Maybe",
|
|
5012
|
-
item: () => ({ kind: "
|
|
5036
|
+
item: () => ({ kind: "BigInt" }),
|
|
5013
5037
|
}),
|
|
5014
5038
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
5015
5039
|
},
|
|
@@ -5318,26 +5342,26 @@ export var NodeShape;
|
|
|
5318
5342
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"), _nodeShape.maxCount
|
|
5319
5343
|
.toList()
|
|
5320
5344
|
.flatMap((value) => [
|
|
5321
|
-
$literalFactory.
|
|
5345
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
5322
5346
|
]), options?.graph);
|
|
5323
5347
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"), _nodeShape.maxExclusive.toList(), options?.graph);
|
|
5324
5348
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"), _nodeShape.maxInclusive.toList(), options?.graph);
|
|
5325
5349
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"), _nodeShape.maxLength
|
|
5326
5350
|
.toList()
|
|
5327
5351
|
.flatMap((value) => [
|
|
5328
|
-
$literalFactory.
|
|
5352
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
5329
5353
|
]), options?.graph);
|
|
5330
5354
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"), _nodeShape.minCount
|
|
5331
5355
|
.toList()
|
|
5332
5356
|
.flatMap((value) => [
|
|
5333
|
-
$literalFactory.
|
|
5357
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
5334
5358
|
]), options?.graph);
|
|
5335
5359
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"), _nodeShape.minExclusive.toList(), options?.graph);
|
|
5336
5360
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"), _nodeShape.minInclusive.toList(), options?.graph);
|
|
5337
5361
|
resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"), _nodeShape.minLength
|
|
5338
5362
|
.toList()
|
|
5339
5363
|
.flatMap((value) => [
|
|
5340
|
-
$literalFactory.
|
|
5364
|
+
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
5341
5365
|
]), options?.graph);
|
|
5342
5366
|
resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"), _nodeShape.mutable
|
|
5343
5367
|
.toList()
|
|
@@ -5587,7 +5611,7 @@ export var Shape;
|
|
|
5587
5611
|
kind: "Shacl",
|
|
5588
5612
|
type: () => ({
|
|
5589
5613
|
kind: "Maybe",
|
|
5590
|
-
item: () => ({ kind: "
|
|
5614
|
+
item: () => ({ kind: "BigInt" }),
|
|
5591
5615
|
}),
|
|
5592
5616
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
|
|
5593
5617
|
},
|
|
@@ -5611,7 +5635,7 @@ export var Shape;
|
|
|
5611
5635
|
kind: "Shacl",
|
|
5612
5636
|
type: () => ({
|
|
5613
5637
|
kind: "Maybe",
|
|
5614
|
-
item: () => ({ kind: "
|
|
5638
|
+
item: () => ({ kind: "BigInt" }),
|
|
5615
5639
|
}),
|
|
5616
5640
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
5617
5641
|
},
|
|
@@ -5619,7 +5643,7 @@ export var Shape;
|
|
|
5619
5643
|
kind: "Shacl",
|
|
5620
5644
|
type: () => ({
|
|
5621
5645
|
kind: "Maybe",
|
|
5622
|
-
item: () => ({ kind: "
|
|
5646
|
+
item: () => ({ kind: "BigInt" }),
|
|
5623
5647
|
}),
|
|
5624
5648
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
|
|
5625
5649
|
},
|
|
@@ -5643,7 +5667,7 @@ export var Shape;
|
|
|
5643
5667
|
kind: "Shacl",
|
|
5644
5668
|
type: () => ({
|
|
5645
5669
|
kind: "Maybe",
|
|
5646
|
-
item: () => ({ kind: "
|
|
5670
|
+
item: () => ({ kind: "BigInt" }),
|
|
5647
5671
|
}),
|
|
5648
5672
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
5649
5673
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@shaclmate/shacl-ast": "4.0.
|
|
3
|
+
"@shaclmate/shacl-ast": "4.0.29",
|
|
4
4
|
"@rdfjs/dataset": "~2.0.2",
|
|
5
5
|
"@rdfjs/prefix-map": "~0.1.2",
|
|
6
6
|
"@rdfjs/term-map": "~2.0.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
},
|
|
69
69
|
"type": "module",
|
|
70
70
|
"types": "./dist/index.d.ts",
|
|
71
|
-
"version": "4.0.
|
|
71
|
+
"version": "4.0.29"
|
|
72
72
|
}
|