@traqula/test-utils 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traqula/test-utils",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "Test utils used by the Traqula monorepo",
6
6
  "lsd:module": true,
7
7
  "license": "MIT",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@rdfjs/types": "^2.0.0"
51
51
  },
52
- "gitHead": "100f8110af8ae3288390f37652e516c8d4d5d124"
52
+ "gitHead": "c00a5a57a5677e1c74e573373a183602493b6868"
53
53
  }
@@ -1,134 +1,134 @@
1
1
  {
2
2
  "context": [],
3
- "datasets": {
4
- "clauses": [],
5
- "loc": {
6
- "sourceLocationType": "noMaterialize"
7
- },
8
- "type": "datasetClauses"
9
- },
10
- "loc": {
11
- "end": 9007199254740991,
12
- "endOnNew": 50,
13
- "loc": {
14
- "end": 50,
15
- "sourceLocationType": "source",
16
- "start": 0
17
- },
18
- "newSource": "SELECT * WHERE {\n ?1s ?1p ?1o .\n ?2s ?2p ?2o .\n}\n",
19
- "sourceLocationType": "inlinedSource",
20
- "start": 0,
21
- "startOnNew": 0
22
- },
23
- "solutionModifiers": {},
24
3
  "subType": "select",
25
- "type": "query",
26
- "variables": [
27
- {
28
- "loc": {
29
- "end": 8,
30
- "sourceLocationType": "source",
31
- "start": 7
32
- },
33
- "type": "wildcard"
34
- }
35
- ],
36
4
  "where": {
37
- "loc": {
38
- "end": 50,
39
- "sourceLocationType": "source",
40
- "start": 15
41
- },
5
+ "type": "pattern",
6
+ "subType": "group",
42
7
  "patterns": [
43
8
  {
44
- "loc": {
45
- "end": 48,
46
- "sourceLocationType": "source",
47
- "start": 19
48
- },
9
+ "type": "pattern",
49
10
  "subType": "bgp",
50
11
  "triples": [
51
12
  {
52
- "loc": {
53
- "end": 30,
54
- "sourceLocationType": "source",
55
- "start": 19
56
- },
57
- "object": {
13
+ "type": "triple",
14
+ "subject": {
15
+ "type": "term",
16
+ "subType": "variable",
17
+ "value": "1s",
58
18
  "loc": {
59
- "end": 30,
60
19
  "sourceLocationType": "source",
61
- "start": 27
62
- },
63
- "subType": "variable",
64
- "type": "term",
65
- "value": "1o"
20
+ "start": 19,
21
+ "end": 22
22
+ }
66
23
  },
67
24
  "predicate": {
25
+ "type": "term",
26
+ "subType": "variable",
27
+ "value": "1p",
68
28
  "loc": {
69
- "end": 26,
70
29
  "sourceLocationType": "source",
71
- "start": 23
72
- },
73
- "subType": "variable",
74
- "type": "term",
75
- "value": "1p"
30
+ "start": 23,
31
+ "end": 26
32
+ }
76
33
  },
77
- "subject": {
34
+ "object": {
35
+ "type": "term",
36
+ "subType": "variable",
37
+ "value": "1o",
78
38
  "loc": {
79
- "end": 22,
80
39
  "sourceLocationType": "source",
81
- "start": 19
82
- },
83
- "subType": "variable",
84
- "type": "term",
85
- "value": "1s"
40
+ "start": 27,
41
+ "end": 30
42
+ }
86
43
  },
87
- "type": "triple"
88
- },
89
- {
90
44
  "loc": {
91
- "end": 46,
92
45
  "sourceLocationType": "source",
93
- "start": 35
94
- },
95
- "object": {
46
+ "start": 19,
47
+ "end": 30
48
+ }
49
+ },
50
+ {
51
+ "type": "triple",
52
+ "subject": {
53
+ "type": "term",
54
+ "subType": "variable",
55
+ "value": "2s",
96
56
  "loc": {
97
- "end": 46,
98
57
  "sourceLocationType": "source",
99
- "start": 43
100
- },
101
- "subType": "variable",
102
- "type": "term",
103
- "value": "2o"
58
+ "start": 35,
59
+ "end": 38
60
+ }
104
61
  },
105
62
  "predicate": {
63
+ "type": "term",
64
+ "subType": "variable",
65
+ "value": "2p",
106
66
  "loc": {
107
- "end": 42,
108
67
  "sourceLocationType": "source",
109
- "start": 39
110
- },
111
- "subType": "variable",
112
- "type": "term",
113
- "value": "2p"
68
+ "start": 39,
69
+ "end": 42
70
+ }
114
71
  },
115
- "subject": {
72
+ "object": {
73
+ "type": "term",
74
+ "subType": "variable",
75
+ "value": "2o",
116
76
  "loc": {
117
- "end": 38,
118
77
  "sourceLocationType": "source",
119
- "start": 35
120
- },
121
- "subType": "variable",
122
- "type": "term",
123
- "value": "2s"
78
+ "start": 43,
79
+ "end": 46
80
+ }
124
81
  },
125
- "type": "triple"
82
+ "loc": {
83
+ "sourceLocationType": "source",
84
+ "start": 35,
85
+ "end": 46
86
+ }
126
87
  }
127
88
  ],
128
- "type": "pattern"
89
+ "loc": {
90
+ "sourceLocationType": "source",
91
+ "start": 19,
92
+ "end": 48
93
+ }
129
94
  }
130
95
  ],
131
- "subType": "group",
132
- "type": "pattern"
133
- }
96
+ "loc": {
97
+ "sourceLocationType": "source",
98
+ "start": 15,
99
+ "end": 50
100
+ }
101
+ },
102
+ "solutionModifiers": {},
103
+ "datasets": {
104
+ "type": "datasetClauses",
105
+ "clauses": [],
106
+ "loc": {
107
+ "sourceLocationType": "noMaterialize"
108
+ }
109
+ },
110
+ "variables": [
111
+ {
112
+ "type": "wildcard",
113
+ "loc": {
114
+ "sourceLocationType": "source",
115
+ "start": 7,
116
+ "end": 8
117
+ }
118
+ }
119
+ ],
120
+ "loc": {
121
+ "sourceLocationType": "inlinedSource",
122
+ "newSource": "SELECT * WHERE {\n ?1s ?1p ?1o .\n ?2s ?2p ?2o .\n}\n",
123
+ "start": 0,
124
+ "end": 9007199254740991,
125
+ "loc": {
126
+ "sourceLocationType": "source",
127
+ "start": 0,
128
+ "end": 50
129
+ },
130
+ "startOnNew": 0,
131
+ "endOnNew": 50
132
+ },
133
+ "type": "query"
134
134
  }
@@ -223,12 +223,92 @@
223
223
  "start": 52,
224
224
  "end": 80
225
225
  }
226
+ },
227
+ {
228
+ "type": "pattern",
229
+ "subType": "filter",
230
+ "expression": {
231
+ "type": "expression",
232
+ "subType": "operation",
233
+ "operator": "in",
234
+ "args": [
235
+ {
236
+ "type": "term",
237
+ "subType": "variable",
238
+ "value": "a",
239
+ "loc": {
240
+ "sourceLocationType": "source",
241
+ "start": 91,
242
+ "end": 93
243
+ }
244
+ },
245
+ {
246
+ "type": "term",
247
+ "subType": "literal",
248
+ "value": "1",
249
+ "langOrIri": {
250
+ "type": "term",
251
+ "subType": "namedNode",
252
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
253
+ "loc": {
254
+ "sourceLocationType": "noMaterialize"
255
+ }
256
+ },
257
+ "loc": {
258
+ "sourceLocationType": "source",
259
+ "start": 98,
260
+ "end": 99
261
+ }
262
+ }
263
+ ],
264
+ "loc": {
265
+ "sourceLocationType": "source",
266
+ "start": 90,
267
+ "end": 101
268
+ }
269
+ },
270
+ "loc": {
271
+ "sourceLocationType": "source",
272
+ "start": 83,
273
+ "end": 101
274
+ }
275
+ },
276
+ {
277
+ "type": "pattern",
278
+ "subType": "filter",
279
+ "expression": {
280
+ "type": "expression",
281
+ "subType": "operation",
282
+ "operator": "notin",
283
+ "args": [
284
+ {
285
+ "type": "term",
286
+ "subType": "variable",
287
+ "value": "c",
288
+ "loc": {
289
+ "sourceLocationType": "source",
290
+ "start": 112,
291
+ "end": 114
292
+ }
293
+ }
294
+ ],
295
+ "loc": {
296
+ "sourceLocationType": "source",
297
+ "start": 111,
298
+ "end": 125
299
+ }
300
+ },
301
+ "loc": {
302
+ "sourceLocationType": "source",
303
+ "start": 104,
304
+ "end": 125
305
+ }
226
306
  }
227
307
  ],
228
308
  "loc": {
229
309
  "sourceLocationType": "source",
230
310
  "start": 9,
231
- "end": 82
311
+ "end": 127
232
312
  }
233
313
  },
234
314
  "solutionModifiers": {},
@@ -251,16 +331,16 @@
251
331
  ],
252
332
  "loc": {
253
333
  "sourceLocationType": "inlinedSource",
254
- "newSource": "SELECT * {\n ?a ?b ?c.\n FILTER (?a IN (1, 2, 3))\n FILTER (?c NOT IN (1, 2, 3))\n}\n",
334
+ "newSource": "SELECT * {\n ?a ?b ?c.\n FILTER (?a IN (1, 2, 3))\n FILTER (?c NOT IN (1, 2, 3))\n FILTER (?a in (1))\n FILTER (?c NOT IN ())\n}\n",
255
335
  "start": 0,
256
336
  "end": 9007199254740991,
257
337
  "loc": {
258
338
  "sourceLocationType": "source",
259
339
  "start": 0,
260
- "end": 82
340
+ "end": 127
261
341
  },
262
342
  "startOnNew": 0,
263
- "endOnNew": 82
343
+ "endOnNew": 127
264
344
  },
265
345
  "type": "query"
266
346
  }
@@ -2,4 +2,6 @@ SELECT * {
2
2
  ?a ?b ?c.
3
3
  FILTER (?a IN (1, 2, 3))
4
4
  FILTER (?c NOT IN (1, 2, 3))
5
+ FILTER (?a in (1))
6
+ FILTER (?c NOT IN ())
5
7
  }
@@ -2,4 +2,6 @@ SELECT * WHERE {
2
2
  ?a ?b ?c .
3
3
  FILTER ( ( ?a IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> , "2"^^<http://www.w3.org/2001/XMLSchema#integer> , "3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) )
4
4
  FILTER ( ( ?c NOT IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> , "2"^^<http://www.w3.org/2001/XMLSchema#integer> , "3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) )
5
- }
5
+ FILTER ( ( ?a IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) )
6
+ FILTER ( ( ?c NOT IN ( ) ) )
7
+ }
@@ -1 +1 @@
1
- SELECT * WHERE { ?a ?b ?c . FILTER ( ( ?a IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> , "2"^^<http://www.w3.org/2001/XMLSchema#integer> , "3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) FILTER ( ( ?c NOT IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> , "2"^^<http://www.w3.org/2001/XMLSchema#integer> , "3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) }
1
+ SELECT * WHERE { ?a ?b ?c . FILTER ( ( ?a IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> , "2"^^<http://www.w3.org/2001/XMLSchema#integer> , "3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) FILTER ( ( ?c NOT IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> , "2"^^<http://www.w3.org/2001/XMLSchema#integer> , "3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) FILTER ( ( ?a IN ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) FILTER ( ( ?c NOT IN ( ) ) ) }