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