@altopelago/sansa 0.9.0

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.
@@ -0,0 +1,671 @@
1
+ {
2
+ "meta": {
3
+ "version": "0.1.0",
4
+ "description": "Sample host-neutral SANSA Query namespace fixture."
5
+ },
6
+ "root": {
7
+ "address": "$",
8
+ "representationKind": "object",
9
+ "localSpaces": {
10
+ "params": {
11
+ "address": "$.<\"params\">",
12
+ "representationKind": "object",
13
+ "children": [
14
+ {
15
+ "name": "field",
16
+ "address": "$.<\"params\">.field",
17
+ "semanticType": "sansa",
18
+ "representationKind": "sansa",
19
+ "value": {
20
+ "type": "SansaAddressLiteral",
21
+ "address": "?.sku"
22
+ }
23
+ },
24
+ {
25
+ "name": "active",
26
+ "address": "$.<\"params\">.active",
27
+ "semanticType": "sansa",
28
+ "representationKind": "sansa",
29
+ "value": {
30
+ "type": "SansaAddressLiteral",
31
+ "address": "?.active"
32
+ }
33
+ },
34
+ {
35
+ "name": "sort",
36
+ "address": "$.<\"params\">.sort",
37
+ "semanticType": "sansa",
38
+ "representationKind": "sansa",
39
+ "value": {
40
+ "type": "SansaAddressLiteral",
41
+ "address": "?.qty"
42
+ }
43
+ },
44
+ {
45
+ "name": "label",
46
+ "address": "$.<\"params\">.label",
47
+ "semanticType": "sansa",
48
+ "representationKind": "sansa",
49
+ "value": {
50
+ "type": "SansaAddressLiteral",
51
+ "address": "$.inventory.categoryLabels.tooling"
52
+ }
53
+ },
54
+ {
55
+ "name": "source",
56
+ "address": "$.<\"params\">.source",
57
+ "semanticType": "sansa",
58
+ "representationKind": "sansa",
59
+ "value": {
60
+ "type": "SansaAddressLiteral",
61
+ "address": "$.inventory.items.*"
62
+ }
63
+ },
64
+ {
65
+ "name": "fieldText",
66
+ "address": "$.<\"params\">.fieldText",
67
+ "semanticType": "string",
68
+ "representationKind": "string",
69
+ "value": "?.sku"
70
+ },
71
+ {
72
+ "name": "sourceText",
73
+ "address": "$.<\"params\">.sourceText",
74
+ "semanticType": "string",
75
+ "representationKind": "string",
76
+ "value": "$.inventory.items.*"
77
+ },
78
+ {
79
+ "name": "badPath",
80
+ "address": "$.<\"params\">.badPath",
81
+ "semanticType": "sansa",
82
+ "representationKind": "sansa",
83
+ "value": {
84
+ "type": "SansaAddressLiteral",
85
+ "address": "$.items[01]"
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "children": [
92
+ {
93
+ "name": "inventory",
94
+ "address": "$.inventory",
95
+ "representationKind": "object",
96
+ "children": [
97
+ {
98
+ "name": "items",
99
+ "address": "$.inventory.items",
100
+ "representationKind": "list",
101
+ "children": [
102
+ {
103
+ "index": 0,
104
+ "address": "$.inventory.items[0]",
105
+ "representationKind": "object",
106
+ "attributeSpace": {
107
+ "address": "$.inventory.items[0].@",
108
+ "representationKind": "attributeSpace",
109
+ "children": [
110
+ {
111
+ "name": "lane",
112
+ "address": "$.inventory.items[0].@.lane",
113
+ "semanticType": "string",
114
+ "representationKind": "string",
115
+ "value": "primary"
116
+ }
117
+ ]
118
+ },
119
+ "children": [
120
+ {
121
+ "name": "sku",
122
+ "address": "$.inventory.items[0].sku",
123
+ "semanticType": "string",
124
+ "representationKind": "string",
125
+ "value": "A-100",
126
+ "attributeSpace": {
127
+ "address": "$.inventory.items[0].sku.@",
128
+ "representationKind": "attributeSpace",
129
+ "children": [
130
+ {
131
+ "name": "origin",
132
+ "address": "$.inventory.items[0].sku.@.origin",
133
+ "semanticType": "string",
134
+ "representationKind": "string",
135
+ "value": "catalog"
136
+ }
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ "name": "name",
142
+ "address": "$.inventory.items[0].name",
143
+ "semanticType": "string",
144
+ "representationKind": "string",
145
+ "value": "Adapter"
146
+ },
147
+ {
148
+ "name": "category",
149
+ "address": "$.inventory.items[0].category",
150
+ "semanticType": "string",
151
+ "representationKind": "string",
152
+ "value": "hardware"
153
+ },
154
+ {
155
+ "name": "status",
156
+ "address": "$.inventory.items[0].status",
157
+ "semanticType": "null<string>",
158
+ "representationKind": "null",
159
+ "scalarKind": "null",
160
+ "nullReason": "notSet",
161
+ "value": null
162
+ },
163
+ {
164
+ "name": "metric",
165
+ "address": "$.inventory.items[0].metric",
166
+ "semanticType": "number",
167
+ "representationKind": "number",
168
+ "value": 10
169
+ },
170
+ {
171
+ "name": "qty",
172
+ "address": "$.inventory.items[0].qty",
173
+ "semanticType": "number",
174
+ "representationKind": "number",
175
+ "value": 1
176
+ },
177
+ {
178
+ "name": "active",
179
+ "address": "$.inventory.items[0].active",
180
+ "semanticType": "boolean",
181
+ "representationKind": "boolean",
182
+ "value": true
183
+ },
184
+ {
185
+ "name": "roles",
186
+ "address": "$.inventory.items[0].roles",
187
+ "representationKind": "list",
188
+ "children": [
189
+ {
190
+ "index": 0,
191
+ "address": "$.inventory.items[0].roles[0]",
192
+ "semanticType": "string",
193
+ "representationKind": "string",
194
+ "value": "admin"
195
+ },
196
+ {
197
+ "index": 1,
198
+ "address": "$.inventory.items[0].roles[1]",
199
+ "semanticType": "string",
200
+ "representationKind": "string",
201
+ "value": "user"
202
+ }
203
+ ]
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "index": 1,
209
+ "address": "$.inventory.items[1]",
210
+ "representationKind": "object",
211
+ "attributeSpace": {
212
+ "address": "$.inventory.items[1].@",
213
+ "representationKind": "attributeSpace",
214
+ "children": [
215
+ {
216
+ "name": "lane",
217
+ "address": "$.inventory.items[1].@.lane",
218
+ "semanticType": "string",
219
+ "representationKind": "string",
220
+ "value": "primary"
221
+ }
222
+ ]
223
+ },
224
+ "children": [
225
+ {
226
+ "name": "sku",
227
+ "address": "$.inventory.items[1].sku",
228
+ "semanticType": "string",
229
+ "representationKind": "string",
230
+ "value": "B-200",
231
+ "attributeSpace": {
232
+ "address": "$.inventory.items[1].sku.@",
233
+ "representationKind": "attributeSpace",
234
+ "children": [
235
+ {
236
+ "name": "origin",
237
+ "address": "$.inventory.items[1].sku.@.origin",
238
+ "semanticType": "string",
239
+ "representationKind": "string",
240
+ "value": "catalog"
241
+ }
242
+ ]
243
+ }
244
+ },
245
+ {
246
+ "name": "name",
247
+ "address": "$.inventory.items[1].name",
248
+ "semanticType": "string",
249
+ "representationKind": "string",
250
+ "value": "Bracket"
251
+ },
252
+ {
253
+ "name": "category",
254
+ "address": "$.inventory.items[1].category",
255
+ "semanticType": "string",
256
+ "representationKind": "string",
257
+ "value": "hardware"
258
+ },
259
+ {
260
+ "name": "status",
261
+ "address": "$.inventory.items[1].status",
262
+ "semanticType": "string",
263
+ "representationKind": "string",
264
+ "value": "active"
265
+ },
266
+ {
267
+ "name": "id",
268
+ "address": "$.inventory.items[1].id",
269
+ "semanticType": "string",
270
+ "representationKind": "string",
271
+ "value": "4"
272
+ },
273
+ {
274
+ "name": "qty",
275
+ "address": "$.inventory.items[1].qty",
276
+ "semanticType": "number",
277
+ "representationKind": "number",
278
+ "value": 4
279
+ },
280
+ {
281
+ "name": "active",
282
+ "address": "$.inventory.items[1].active",
283
+ "semanticType": "boolean",
284
+ "representationKind": "boolean",
285
+ "value": true
286
+ },
287
+ {
288
+ "name": "roles",
289
+ "address": "$.inventory.items[1].roles",
290
+ "representationKind": "list",
291
+ "children": [
292
+ {
293
+ "index": 0,
294
+ "address": "$.inventory.items[1].roles[0]",
295
+ "semanticType": "string",
296
+ "representationKind": "string",
297
+ "value": "user"
298
+ }
299
+ ]
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "index": 2,
305
+ "address": "$.inventory.items[2]",
306
+ "representationKind": "object",
307
+ "attributeSpace": {
308
+ "address": "$.inventory.items[2].@",
309
+ "representationKind": "attributeSpace",
310
+ "children": [
311
+ {
312
+ "name": "lane",
313
+ "address": "$.inventory.items[2].@.lane",
314
+ "semanticType": "string",
315
+ "representationKind": "string",
316
+ "value": "overflow"
317
+ }
318
+ ]
319
+ },
320
+ "children": [
321
+ {
322
+ "name": "sku",
323
+ "address": "$.inventory.items[2].sku",
324
+ "semanticType": "string",
325
+ "representationKind": "string",
326
+ "value": "C-300",
327
+ "attributeSpace": {
328
+ "address": "$.inventory.items[2].sku.@",
329
+ "representationKind": "attributeSpace",
330
+ "children": [
331
+ {
332
+ "name": "origin",
333
+ "address": "$.inventory.items[2].sku.@.origin",
334
+ "semanticType": "string",
335
+ "representationKind": "string",
336
+ "value": "manual"
337
+ }
338
+ ]
339
+ }
340
+ },
341
+ {
342
+ "name": "name",
343
+ "address": "$.inventory.items[2].name",
344
+ "semanticType": "string",
345
+ "representationKind": "string",
346
+ "value": "Coupler"
347
+ },
348
+ {
349
+ "name": "category",
350
+ "address": "$.inventory.items[2].category",
351
+ "semanticType": "string",
352
+ "representationKind": "string",
353
+ "value": "hardware"
354
+ },
355
+ {
356
+ "name": "metric",
357
+ "address": "$.inventory.items[2].metric",
358
+ "semanticType": "nan<number>",
359
+ "representationKind": "nan",
360
+ "scalarKind": "nan",
361
+ "value": "NaN"
362
+ },
363
+ {
364
+ "name": "qty",
365
+ "address": "$.inventory.items[2].qty",
366
+ "semanticType": "number",
367
+ "representationKind": "number",
368
+ "value": 8
369
+ },
370
+ {
371
+ "name": "active",
372
+ "address": "$.inventory.items[2].active",
373
+ "semanticType": "boolean",
374
+ "representationKind": "boolean",
375
+ "value": false
376
+ },
377
+ {
378
+ "name": "roles",
379
+ "address": "$.inventory.items[2].roles",
380
+ "representationKind": "list"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "index": 3,
386
+ "address": "$.inventory.items[3]",
387
+ "representationKind": "object",
388
+ "attributeSpace": {
389
+ "address": "$.inventory.items[3].@",
390
+ "representationKind": "attributeSpace",
391
+ "children": [
392
+ {
393
+ "name": "lane",
394
+ "address": "$.inventory.items[3].@.lane",
395
+ "semanticType": "string",
396
+ "representationKind": "string",
397
+ "value": "overflow"
398
+ }
399
+ ]
400
+ },
401
+ "children": [
402
+ {
403
+ "name": "sku",
404
+ "address": "$.inventory.items[3].sku",
405
+ "semanticType": "string",
406
+ "representationKind": "string",
407
+ "value": "D-250",
408
+ "attributeSpace": {
409
+ "address": "$.inventory.items[3].sku.@",
410
+ "representationKind": "attributeSpace",
411
+ "children": [
412
+ {
413
+ "name": "origin",
414
+ "address": "$.inventory.items[3].sku.@.origin",
415
+ "semanticType": "string",
416
+ "representationKind": "string",
417
+ "value": "catalog"
418
+ }
419
+ ]
420
+ }
421
+ },
422
+ {
423
+ "name": "name",
424
+ "address": "$.inventory.items[3].name",
425
+ "semanticType": "string",
426
+ "representationKind": "string",
427
+ "value": "Driver"
428
+ },
429
+ {
430
+ "name": "category",
431
+ "address": "$.inventory.items[3].category",
432
+ "semanticType": "string",
433
+ "representationKind": "string",
434
+ "value": "tooling"
435
+ },
436
+ {
437
+ "name": "status",
438
+ "address": "$.inventory.items[3].status",
439
+ "semanticType": "null<string>",
440
+ "representationKind": "null",
441
+ "scalarKind": "null",
442
+ "nullReason": "notApplicable",
443
+ "value": null
444
+ },
445
+ {
446
+ "name": "id",
447
+ "address": "$.inventory.items[3].id",
448
+ "semanticType": "number",
449
+ "representationKind": "number",
450
+ "value": 3
451
+ },
452
+ {
453
+ "name": "ceiling",
454
+ "address": "$.inventory.items[3].ceiling",
455
+ "semanticType": "infinity<number>",
456
+ "representationKind": "infinity",
457
+ "scalarKind": "infinity",
458
+ "value": "Infinity"
459
+ },
460
+ {
461
+ "name": "qty",
462
+ "address": "$.inventory.items[3].qty",
463
+ "semanticType": "number",
464
+ "representationKind": "number",
465
+ "value": 4
466
+ },
467
+ {
468
+ "name": "active",
469
+ "address": "$.inventory.items[3].active",
470
+ "semanticType": "boolean",
471
+ "representationKind": "boolean",
472
+ "value": false
473
+ },
474
+ {
475
+ "name": "roles",
476
+ "address": "$.inventory.items[3].roles",
477
+ "representationKind": "list",
478
+ "children": [
479
+ {
480
+ "index": 0,
481
+ "address": "$.inventory.items[3].roles[0]",
482
+ "semanticType": "string",
483
+ "representationKind": "string",
484
+ "value": "admin"
485
+ },
486
+ {
487
+ "index": 1,
488
+ "address": "$.inventory.items[3].roles[1]",
489
+ "semanticType": "string",
490
+ "representationKind": "string",
491
+ "value": "admin"
492
+ }
493
+ ]
494
+ }
495
+ ]
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "name": "categoryLabels",
501
+ "address": "$.inventory.categoryLabels",
502
+ "representationKind": "object",
503
+ "children": [
504
+ {
505
+ "name": "hardware",
506
+ "address": "$.inventory.categoryLabels.hardware",
507
+ "semanticType": "string",
508
+ "representationKind": "string",
509
+ "value": "Hardware"
510
+ },
511
+ {
512
+ "name": "tooling",
513
+ "address": "$.inventory.categoryLabels.tooling",
514
+ "semanticType": "string",
515
+ "representationKind": "string",
516
+ "value": "Tooling"
517
+ }
518
+ ]
519
+ }
520
+ ]
521
+ },
522
+ {
523
+ "name": "table",
524
+ "address": "$.table",
525
+ "representationKind": "object",
526
+ "children": [
527
+ {
528
+ "name": "header",
529
+ "address": "$.table.header",
530
+ "representationKind": "list",
531
+ "children": [
532
+ {
533
+ "index": 0,
534
+ "address": "$.table.header[0]",
535
+ "semanticType": "string",
536
+ "representationKind": "string",
537
+ "value": "name"
538
+ },
539
+ {
540
+ "index": 1,
541
+ "address": "$.table.header[1]",
542
+ "semanticType": "string",
543
+ "representationKind": "string",
544
+ "value": "age"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "name": "duplicateHeader",
550
+ "address": "$.table.duplicateHeader",
551
+ "representationKind": "list",
552
+ "children": [
553
+ {
554
+ "index": 0,
555
+ "address": "$.table.duplicateHeader[0]",
556
+ "semanticType": "string",
557
+ "representationKind": "string",
558
+ "value": "name"
559
+ },
560
+ {
561
+ "index": 1,
562
+ "address": "$.table.duplicateHeader[1]",
563
+ "semanticType": "string",
564
+ "representationKind": "string",
565
+ "value": "name"
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "name": "content",
571
+ "address": "$.table.content",
572
+ "representationKind": "list",
573
+ "children": [
574
+ {
575
+ "index": 0,
576
+ "address": "$.table.content[0]",
577
+ "representationKind": "tuple",
578
+ "children": [
579
+ {
580
+ "index": 0,
581
+ "address": "$.table.content[0][0]",
582
+ "semanticType": "string",
583
+ "representationKind": "string",
584
+ "value": "Bob"
585
+ },
586
+ {
587
+ "index": 1,
588
+ "address": "$.table.content[0][1]",
589
+ "semanticType": "number",
590
+ "representationKind": "number",
591
+ "value": 22
592
+ }
593
+ ]
594
+ },
595
+ {
596
+ "index": 1,
597
+ "address": "$.table.content[1]",
598
+ "representationKind": "tuple",
599
+ "children": [
600
+ {
601
+ "index": 0,
602
+ "address": "$.table.content[1][0]",
603
+ "semanticType": "string",
604
+ "representationKind": "string",
605
+ "value": "Alice"
606
+ },
607
+ {
608
+ "index": 1,
609
+ "address": "$.table.content[1][1]",
610
+ "semanticType": "number",
611
+ "representationKind": "number",
612
+ "value": 31
613
+ }
614
+ ]
615
+ }
616
+ ]
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ "name": "labels",
622
+ "address": "$.labels",
623
+ "representationKind": "list",
624
+ "children": [
625
+ {
626
+ "index": 0,
627
+ "address": "$.labels[0]",
628
+ "representationKind": "object",
629
+ "children": [
630
+ {
631
+ "name": "value",
632
+ "address": "$.labels[0].value",
633
+ "semanticType": "string",
634
+ "representationKind": "string",
635
+ "value": "z"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "index": 1,
641
+ "address": "$.labels[1]",
642
+ "representationKind": "object",
643
+ "children": [
644
+ {
645
+ "name": "value",
646
+ "address": "$.labels[1].value",
647
+ "semanticType": "string",
648
+ "representationKind": "string",
649
+ "value": "ä"
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "index": 2,
655
+ "address": "$.labels[2]",
656
+ "representationKind": "object",
657
+ "children": [
658
+ {
659
+ "name": "value",
660
+ "address": "$.labels[2].value",
661
+ "semanticType": "string",
662
+ "representationKind": "string",
663
+ "value": "a"
664
+ }
665
+ ]
666
+ }
667
+ ]
668
+ }
669
+ ]
670
+ }
671
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "source": {
3
+ "type": "SansaAddressLiteral",
4
+ "address": "$.inventory.items[0]"
5
+ },
6
+ "field": {
7
+ "type": "SansaAddressLiteral",
8
+ "address": "?.name"
9
+ }
10
+ }