@ldo/traverser-shexj 1.0.0-alpha.3 → 1.0.0-alpha.34
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/ShexJTraverser.cjs +9 -0
- package/dist/ShexJTraverser.d.cts +9 -0
- package/dist/ShexJTraverser.d.cts.map +1 -0
- package/dist/ShexJTraverser.d.ts +8 -315
- package/dist/ShexJTraverser.d.ts.map +1 -0
- package/dist/ShexJTraverser.js +8 -6
- package/dist/ShexJTraverser.js.map +1 -1
- package/dist/ShexJTraverserDefinition.cjs +253 -0
- package/dist/ShexJTraverserDefinition.d.cts +10 -0
- package/dist/ShexJTraverserDefinition.d.cts.map +1 -0
- package/dist/ShexJTraverserDefinition.d.ts +10 -3
- package/dist/ShexJTraverserDefinition.d.ts.map +1 -0
- package/dist/ShexJTraverserDefinition.js +251 -291
- package/dist/ShexJTraverserDefinition.js.map +1 -1
- package/dist/ShexJTraverserTypes.d.cts +323 -0
- package/dist/ShexJTraverserTypes.d.cts.map +1 -0
- package/dist/ShexJTraverserTypes.d.ts +322 -316
- package/dist/ShexJTraverserTypes.d.ts.map +1 -0
- package/dist/ShexJTypes.d.cts +540 -0
- package/dist/ShexJTypes.d.cts.map +1 -0
- package/dist/ShexJTypes.d.ts +540 -160
- package/dist/ShexJTypes.d.ts.map +1 -0
- package/dist/_virtual/rolldown_runtime.cjs +30 -0
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +8 -20
- package/dist/index.js.map +1 -1
- package/package.json +28 -11
- package/src/ShexJTraverserDefinition.ts +1 -1
- package/src/index.ts +1 -0
- package/dist/ShexJTraverserTypes.js +0 -3
- package/dist/ShexJTraverserTypes.js.map +0 -1
- package/dist/ShexJTypes.js +0 -3
- package/dist/ShexJTypes.js.map +0 -1
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { Annotation, BNODE, BOOL, DECIMAL, DOUBLE, EachOf, INTEGER, IRI, IRIREF, IriStem, IriStemRange, LANGTAG, Language, LanguageStem, LanguageStemRange, LiteralStem, LiteralStemRange, NodeConstraint, ObjectLiteral, OneOf, STRING, Schema, SemAct, Shape, ShapeAnd, ShapeDecl, ShapeExternal, ShapeNot, ShapeOr, TripleConstraint, Wildcard, numericLiteral, objectValue, shapeDeclLabel, shapeDeclRef, shapeExpr, shapeExprOrRef, tripleExpr, tripleExprLabel, tripleExprOrRef, tripleExprRef, valueSetValue } from "./ShexJTypes.cjs";
|
|
2
|
+
import { ValidateTraverserTypes } from "@ldo/type-traverser";
|
|
3
|
+
|
|
4
|
+
//#region src/ShexJTraverserTypes.d.ts
|
|
5
|
+
type ShexJTraverserTypes = ValidateTraverserTypes<{
|
|
6
|
+
Schema: {
|
|
7
|
+
kind: "interface";
|
|
8
|
+
type: Schema;
|
|
9
|
+
properties: {
|
|
10
|
+
startActs: "SemAct";
|
|
11
|
+
start: "shapeExprOrRef";
|
|
12
|
+
imports: "IRIREF";
|
|
13
|
+
shapes: "ShapeDecl";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
ShapeDecl: {
|
|
17
|
+
kind: "interface";
|
|
18
|
+
type: ShapeDecl;
|
|
19
|
+
properties: {
|
|
20
|
+
id: "shapeDeclLabel";
|
|
21
|
+
abstract: "BOOL";
|
|
22
|
+
restricts: "shapeExprOrRef";
|
|
23
|
+
shapeExpr: "shapeExpr";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
shapeExpr: {
|
|
27
|
+
kind: "union";
|
|
28
|
+
type: shapeExpr;
|
|
29
|
+
typeNames: "ShapeOr" | "ShapeAnd" | "ShapeNot" | "NodeConstraint" | "Shape" | "ShapeExternal";
|
|
30
|
+
};
|
|
31
|
+
shapeExprOrRef: {
|
|
32
|
+
kind: "union";
|
|
33
|
+
type: shapeExprOrRef;
|
|
34
|
+
typeNames: "shapeExpr" | "shapeDeclRef";
|
|
35
|
+
};
|
|
36
|
+
ShapeOr: {
|
|
37
|
+
kind: "interface";
|
|
38
|
+
type: ShapeOr;
|
|
39
|
+
properties: {
|
|
40
|
+
shapeExprs: "shapeExprOrRef";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
ShapeAnd: {
|
|
44
|
+
kind: "interface";
|
|
45
|
+
type: ShapeAnd;
|
|
46
|
+
properties: {
|
|
47
|
+
shapeExprs: "shapeExprOrRef";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
ShapeNot: {
|
|
51
|
+
kind: "interface";
|
|
52
|
+
type: ShapeNot;
|
|
53
|
+
properties: {
|
|
54
|
+
shapeExpr: "shapeExprOrRef";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
ShapeExternal: {
|
|
58
|
+
kind: "interface";
|
|
59
|
+
type: ShapeExternal;
|
|
60
|
+
properties: Record<string, never>;
|
|
61
|
+
};
|
|
62
|
+
shapeDeclRef: {
|
|
63
|
+
kind: "union";
|
|
64
|
+
type: shapeDeclRef;
|
|
65
|
+
typeNames: "shapeDeclLabel" | "ShapeDecl";
|
|
66
|
+
};
|
|
67
|
+
shapeDeclLabel: {
|
|
68
|
+
kind: "union";
|
|
69
|
+
type: shapeDeclLabel;
|
|
70
|
+
typeNames: "IRIREF" | "BNODE";
|
|
71
|
+
};
|
|
72
|
+
NodeConstraint: {
|
|
73
|
+
kind: "interface";
|
|
74
|
+
type: NodeConstraint;
|
|
75
|
+
properties: {
|
|
76
|
+
datatype: "IRIREF";
|
|
77
|
+
values: "valueSetValue";
|
|
78
|
+
length: "INTEGER";
|
|
79
|
+
minlength: "INTEGER";
|
|
80
|
+
maxlength: "INTEGER";
|
|
81
|
+
pattern: "STRING";
|
|
82
|
+
flags: "STRING";
|
|
83
|
+
mininclusive: "numericLiteral";
|
|
84
|
+
minexclusive: "numericLiteral";
|
|
85
|
+
totaldigits: "INTEGER";
|
|
86
|
+
fractiondigits: "INTEGER";
|
|
87
|
+
semActs: "SemAct";
|
|
88
|
+
annotations: "Annotation";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
numericLiteral: {
|
|
92
|
+
kind: "union";
|
|
93
|
+
type: numericLiteral;
|
|
94
|
+
typeNames: "INTEGER" | "DECIMAL" | "DOUBLE";
|
|
95
|
+
};
|
|
96
|
+
valueSetValue: {
|
|
97
|
+
kind: "union";
|
|
98
|
+
type: valueSetValue;
|
|
99
|
+
typeNames: "objectValue" | "IriStem" | "IriStemRange" | "LiteralStem" | "LiteralStemRange" | "Language" | "LanguageStem" | "LanguageStemRange";
|
|
100
|
+
};
|
|
101
|
+
objectValue: {
|
|
102
|
+
kind: "union";
|
|
103
|
+
type: objectValue;
|
|
104
|
+
typeNames: "IRIREF" | "ObjectLiteral";
|
|
105
|
+
};
|
|
106
|
+
ObjectLiteral: {
|
|
107
|
+
kind: "interface";
|
|
108
|
+
type: ObjectLiteral;
|
|
109
|
+
properties: {
|
|
110
|
+
value: "STRING";
|
|
111
|
+
language: "STRING";
|
|
112
|
+
type: "STRING";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
IriStem: {
|
|
116
|
+
kind: "interface";
|
|
117
|
+
type: IriStem;
|
|
118
|
+
properties: {
|
|
119
|
+
stem: "IRIREF";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
IriStemRange: {
|
|
123
|
+
kind: "interface";
|
|
124
|
+
type: IriStemRange;
|
|
125
|
+
properties: {
|
|
126
|
+
stem: "IRIREF";
|
|
127
|
+
exclusions: "IriStemRangeExclusions";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
IriStemRangeExclusions: {
|
|
131
|
+
kind: "union";
|
|
132
|
+
type: IRIREF | IriStem;
|
|
133
|
+
typeNames: "IRIREF" | "IriStem";
|
|
134
|
+
};
|
|
135
|
+
LiteralStem: {
|
|
136
|
+
kind: "interface";
|
|
137
|
+
type: LiteralStem;
|
|
138
|
+
properties: {
|
|
139
|
+
stem: "STRING";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
LiteralStemRange: {
|
|
143
|
+
kind: "interface";
|
|
144
|
+
type: LiteralStemRange;
|
|
145
|
+
properties: {
|
|
146
|
+
stem: "LiteralStemRangeStem";
|
|
147
|
+
exclusions: "LiteralStemRangeExclusions";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
LiteralStemRangeStem: {
|
|
151
|
+
kind: "union";
|
|
152
|
+
type: STRING | Wildcard;
|
|
153
|
+
typeNames: "STRING" | "Wildcard";
|
|
154
|
+
};
|
|
155
|
+
LiteralStemRangeExclusions: {
|
|
156
|
+
kind: "union";
|
|
157
|
+
type: STRING | LiteralStem;
|
|
158
|
+
typeNames: "STRING" | "LiteralStem";
|
|
159
|
+
};
|
|
160
|
+
Language: {
|
|
161
|
+
kind: "interface";
|
|
162
|
+
type: Language;
|
|
163
|
+
properties: {
|
|
164
|
+
languageTag: "LANGTAG";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
LanguageStem: {
|
|
168
|
+
kind: "interface";
|
|
169
|
+
type: LanguageStem;
|
|
170
|
+
properties: {
|
|
171
|
+
stem: "LANGTAG";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
LanguageStemRange: {
|
|
175
|
+
kind: "interface";
|
|
176
|
+
type: LanguageStemRange;
|
|
177
|
+
properties: {
|
|
178
|
+
stem: "LanguageStemRangeStem";
|
|
179
|
+
exclusions: "LanguageStemRangeExclusions";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
LanguageStemRangeStem: {
|
|
183
|
+
kind: "union";
|
|
184
|
+
type: LANGTAG | Wildcard;
|
|
185
|
+
typeNames: "LANGTAG" | "Wildcard";
|
|
186
|
+
};
|
|
187
|
+
LanguageStemRangeExclusions: {
|
|
188
|
+
kind: "union";
|
|
189
|
+
type: LANGTAG | LanguageStem;
|
|
190
|
+
typeNames: "LANGTAG" | "LanguageStem";
|
|
191
|
+
};
|
|
192
|
+
Wildcard: {
|
|
193
|
+
kind: "interface";
|
|
194
|
+
type: Wildcard;
|
|
195
|
+
properties: Record<string, never>;
|
|
196
|
+
};
|
|
197
|
+
Shape: {
|
|
198
|
+
kind: "interface";
|
|
199
|
+
type: Shape;
|
|
200
|
+
properties: {
|
|
201
|
+
closed: "BOOL";
|
|
202
|
+
extra: "IRIREF";
|
|
203
|
+
extends: "shapeExprOrRef";
|
|
204
|
+
expression: "tripleExprOrRef";
|
|
205
|
+
semActs: "SemAct";
|
|
206
|
+
annotations: "Annotation";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
tripleExpr: {
|
|
210
|
+
kind: "union";
|
|
211
|
+
type: tripleExpr;
|
|
212
|
+
typeNames: "EachOf" | "OneOf" | "TripleConstraint";
|
|
213
|
+
};
|
|
214
|
+
tripleExprOrRef: {
|
|
215
|
+
kind: "union";
|
|
216
|
+
type: tripleExprOrRef;
|
|
217
|
+
typeNames: "tripleExpr" | "tripleExprRef";
|
|
218
|
+
};
|
|
219
|
+
EachOf: {
|
|
220
|
+
kind: "interface";
|
|
221
|
+
type: EachOf;
|
|
222
|
+
properties: {
|
|
223
|
+
id: "tripleExprLabel";
|
|
224
|
+
min: "INTEGER";
|
|
225
|
+
max: "INTEGER";
|
|
226
|
+
expressions: "tripleExprOrRef";
|
|
227
|
+
semActs: "SemAct";
|
|
228
|
+
annotations: "Annotation";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
OneOf: {
|
|
232
|
+
kind: "interface";
|
|
233
|
+
type: OneOf;
|
|
234
|
+
properties: {
|
|
235
|
+
id: "tripleExprLabel";
|
|
236
|
+
min: "INTEGER";
|
|
237
|
+
max: "INTEGER";
|
|
238
|
+
expressions: "tripleExprOrRef";
|
|
239
|
+
semActs: "SemAct";
|
|
240
|
+
annotations: "Annotation";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
TripleConstraint: {
|
|
244
|
+
kind: "interface";
|
|
245
|
+
type: TripleConstraint;
|
|
246
|
+
properties: {
|
|
247
|
+
id: "tripleExprLabel";
|
|
248
|
+
min: "INTEGER";
|
|
249
|
+
max: "INTEGER";
|
|
250
|
+
inverse: "BOOL";
|
|
251
|
+
predicate: "IRIREF";
|
|
252
|
+
valueExpr: "shapeExprOrRef";
|
|
253
|
+
semActs: "SemAct";
|
|
254
|
+
annotations: "Annotation";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
tripleExprRef: {
|
|
258
|
+
kind: "union";
|
|
259
|
+
type: tripleExprRef;
|
|
260
|
+
typeNames: "tripleExprLabel";
|
|
261
|
+
};
|
|
262
|
+
tripleExprLabel: {
|
|
263
|
+
kind: "union";
|
|
264
|
+
type: tripleExprLabel;
|
|
265
|
+
typeNames: "IRIREF" | "BNODE";
|
|
266
|
+
};
|
|
267
|
+
SemAct: {
|
|
268
|
+
kind: "interface";
|
|
269
|
+
type: SemAct;
|
|
270
|
+
properties: {
|
|
271
|
+
name: "IRIREF";
|
|
272
|
+
code: "STRING";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
Annotation: {
|
|
276
|
+
kind: "interface";
|
|
277
|
+
type: Annotation;
|
|
278
|
+
properties: {
|
|
279
|
+
predicate: "IRI";
|
|
280
|
+
object: "objectValue";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
IRIREF: {
|
|
284
|
+
kind: "primitive";
|
|
285
|
+
type: IRIREF;
|
|
286
|
+
};
|
|
287
|
+
BNODE: {
|
|
288
|
+
kind: "primitive";
|
|
289
|
+
type: BNODE;
|
|
290
|
+
};
|
|
291
|
+
INTEGER: {
|
|
292
|
+
kind: "primitive";
|
|
293
|
+
type: INTEGER;
|
|
294
|
+
};
|
|
295
|
+
STRING: {
|
|
296
|
+
kind: "primitive";
|
|
297
|
+
type: STRING;
|
|
298
|
+
};
|
|
299
|
+
DECIMAL: {
|
|
300
|
+
kind: "primitive";
|
|
301
|
+
type: DECIMAL;
|
|
302
|
+
};
|
|
303
|
+
DOUBLE: {
|
|
304
|
+
kind: "primitive";
|
|
305
|
+
type: DOUBLE;
|
|
306
|
+
};
|
|
307
|
+
LANGTAG: {
|
|
308
|
+
kind: "primitive";
|
|
309
|
+
type: LANGTAG;
|
|
310
|
+
};
|
|
311
|
+
BOOL: {
|
|
312
|
+
kind: "primitive";
|
|
313
|
+
type: BOOL;
|
|
314
|
+
};
|
|
315
|
+
IRI: {
|
|
316
|
+
kind: "primitive";
|
|
317
|
+
type: IRI;
|
|
318
|
+
};
|
|
319
|
+
}>;
|
|
320
|
+
//# sourceMappingURL=ShexJTraverserTypes.d.ts.map
|
|
321
|
+
//#endregion
|
|
322
|
+
export { ShexJTraverserTypes };
|
|
323
|
+
//# sourceMappingURL=ShexJTraverserTypes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShexJTraverserTypes.d.cts","names":[],"sources":["../../src/ShexJTraverserTypes.ts"],"sourcesContent":[],"mappings":";;;;KA8CY,mBAAA,GAAsB;;IAAtB,IAAA,EAAA,WAAA;IAAmB,IAAA,EAGrB,MAHqB;IAGrB,UAAA,EAAA;MAUA,SAAA,EAAA,QAAA;MAUA,KAAA,EAAA,gBAAA;MAWA,OAAA,EAAA,QAAA;MAKA,MAAA,EAAA,WAAA;IAOA,CAAA;EAAQ,CAAA;EAOA,SAOR,EAAA;IACM,IAAA,EAAA,WAAA;IAIN,IAAA,EApDA,SAoDA;IAKA,UAAA,EAAA;MAKA,EAAA,EAAA,gBAAA;MAmBA,QAAA,EAAA,MAAA;MAKA,SAAA,EAAA,gBAAA;MAaA,SAAA,EAAA,WAAA;IAKA,CAAA;EAAa,CAAA;EASN,SAOP,EAAA;IAQA,IAAA,EAAA,OAAA;IAAS,IAAA,EAtHT,SAsHS;IAKT,SAAA,EAAA,SAAA,GAAA,UAAA,GAAA,UAAA,GAAA,gBAAA,GAAA,OAAA,GAAA,eAAA;EAAW,CAAA;EAOK,cAQhB,EAAA;IAAS,IAAA,EAAA,OAAA;IAKT,IAAA,EApIA,cAoIA;IAAS,SAAA,E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