@ldo/traverser-shexj 1.0.0-alpha.46 → 1.0.0-alpha.50
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/README.md +1 -1
- package/dist/ShexJTraverser.d.cts +316 -1
- package/dist/ShexJTraverser.d.cts.map +1 -1
- package/dist/ShexJTraverser.d.mts +316 -1
- package/dist/ShexJTraverser.d.mts.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -886,6 +886,6 @@ This project was made possible by a grant from NGI Zero Entrust via nlnet. Learn
|
|
|
886
886
|
[<img src="https://nlnet.nl/logo/banner.png" alt="nlnet foundation logo" width="300" />](https://nlnet.nl/)
|
|
887
887
|
[<img src="https://nlnet.nl/image/logos/NGI0Entrust_tag.svg" alt="NGI Zero Entrust Logo" width="300" />](https://nlnet.nl/)
|
|
888
888
|
|
|
889
|
-
##
|
|
889
|
+
## License
|
|
890
890
|
|
|
891
891
|
MIT
|
|
@@ -1,7 +1,322 @@
|
|
|
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";
|
|
1
2
|
import { Traverser } from "@ldo/type-traverser";
|
|
2
3
|
|
|
3
4
|
//#region src/ShexJTraverser.d.ts
|
|
4
|
-
declare const ShexJTraverser: Traverser<
|
|
5
|
+
declare const ShexJTraverser: Traverser<{
|
|
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
|
+
}>;
|
|
5
320
|
//#endregion
|
|
6
321
|
export { ShexJTraverser };
|
|
7
322
|
//# sourceMappingURL=ShexJTraverser.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShexJTraverser.d.cts","names":[],"sources":["../src/ShexJTraverser.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShexJTraverser.d.cts","names":[],"sources":["../src/ShexJTraverser.ts"],"mappings":";;;;cAIa,cAAA,EAAc,SAAA;;;UAE1B,MAAA"}
|
|
@@ -1,7 +1,322 @@
|
|
|
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.mjs";
|
|
1
2
|
import { Traverser } from "@ldo/type-traverser";
|
|
2
3
|
|
|
3
4
|
//#region src/ShexJTraverser.d.ts
|
|
4
|
-
declare const ShexJTraverser: Traverser<
|
|
5
|
+
declare const ShexJTraverser: Traverser<{
|
|
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
|
+
}>;
|
|
5
320
|
//#endregion
|
|
6
321
|
export { ShexJTraverser };
|
|
7
322
|
//# sourceMappingURL=ShexJTraverser.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShexJTraverser.d.mts","names":[],"sources":["../src/ShexJTraverser.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShexJTraverser.d.mts","names":[],"sources":["../src/ShexJTraverser.ts"],"mappings":";;;;cAIa,cAAA,EAAc,SAAA;;;UAE1B,MAAA"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShexJTraverser } from "./ShexJTraverser.cjs";
|
|
2
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, iriRangeExclusion, iriRangeStem, languageRangeExclusion, languageRangeStem, literalRangeExclusion, literalRangeStem, nodeKind, numericFacets, numericLiteral, objectValue, semactsAndAnnotations, shapeDeclLabel, shapeDeclRef, shapeExpr, shapeExprOrRef, stringFacets, tripleExpr, tripleExprBase, tripleExprLabel, tripleExprOrRef, tripleExprRef, valueSetValue, xsFacets } from "./ShexJTypes.cjs";
|
|
2
|
+
import { ShexJTraverser } from "./ShexJTraverser.cjs";
|
|
3
3
|
import { ShexJTraverserTypes } from "./ShexJTraverserTypes.cjs";
|
|
4
4
|
import { ShexJTraverserDefinition } from "./ShexJTraverserDefinition.cjs";
|
|
5
5
|
export { 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, ShexJTraverserDefinition, ShexJTraverserTypes, TripleConstraint, Wildcard, ShexJTraverser as default, iriRangeExclusion, iriRangeStem, languageRangeExclusion, languageRangeStem, literalRangeExclusion, literalRangeStem, nodeKind, numericFacets, numericLiteral, objectValue, semactsAndAnnotations, shapeDeclLabel, shapeDeclRef, shapeExpr, shapeExprOrRef, stringFacets, tripleExpr, tripleExprBase, tripleExprLabel, tripleExprOrRef, tripleExprRef, valueSetValue, xsFacets };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShexJTraverser } from "./ShexJTraverser.mjs";
|
|
2
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, iriRangeExclusion, iriRangeStem, languageRangeExclusion, languageRangeStem, literalRangeExclusion, literalRangeStem, nodeKind, numericFacets, numericLiteral, objectValue, semactsAndAnnotations, shapeDeclLabel, shapeDeclRef, shapeExpr, shapeExprOrRef, stringFacets, tripleExpr, tripleExprBase, tripleExprLabel, tripleExprOrRef, tripleExprRef, valueSetValue, xsFacets } from "./ShexJTypes.mjs";
|
|
2
|
+
import { ShexJTraverser } from "./ShexJTraverser.mjs";
|
|
3
3
|
import { ShexJTraverserTypes } from "./ShexJTraverserTypes.mjs";
|
|
4
4
|
import { ShexJTraverserDefinition } from "./ShexJTraverserDefinition.mjs";
|
|
5
5
|
export { 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, ShexJTraverserDefinition, ShexJTraverserTypes, TripleConstraint, Wildcard, ShexJTraverser as default, iriRangeExclusion, iriRangeStem, languageRangeExclusion, languageRangeStem, literalRangeExclusion, literalRangeStem, nodeKind, numericFacets, numericLiteral, objectValue, semactsAndAnnotations, shapeDeclLabel, shapeDeclRef, shapeExpr, shapeExprOrRef, stringFacets, tripleExpr, tripleExprBase, tripleExprLabel, tripleExprOrRef, tripleExprRef, valueSetValue, xsFacets };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldo/traverser-shexj",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.50",
|
|
4
4
|
"description": "A type-traverser for ShexJ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"src"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ldo/type-traverser": "^1.0.0-alpha.
|
|
45
|
+
"@ldo/type-traverser": "^1.0.0-alpha.50"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "7277a6694f01cdb776495a3028a625d8386c4887"
|
|
51
51
|
}
|