@traqula/test-utils 1.1.1 → 1.1.3

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.
Files changed (63) hide show
  1. package/package.json +2 -2
  2. package/statics/algebra/algebra/sparql12/codepoint-esc-05.json +38 -0
  3. package/statics/algebra/algebra/sparql12/codepoint-esc-06.json +38 -0
  4. package/statics/algebra/algebra/sparql12/codepoint-esc-07.json +38 -0
  5. package/statics/algebra/algebra/sparql12/select-variable-reuse.json +137 -0
  6. package/statics/algebra/algebra-blank-to-var/sparql12/codepoint-esc-05.json +38 -0
  7. package/statics/algebra/algebra-blank-to-var/sparql12/codepoint-esc-06.json +38 -0
  8. package/statics/algebra/algebra-blank-to-var/sparql12/codepoint-esc-07.json +38 -0
  9. package/statics/algebra/algebra-blank-to-var/sparql12/select-variable-reuse.json +137 -0
  10. package/statics/algebra/canonical-sparql/base/sparql12/codepoint-esc-05.sparql +3 -0
  11. package/statics/algebra/canonical-sparql/base/sparql12/codepoint-esc-06.sparql +3 -0
  12. package/statics/algebra/canonical-sparql/base/sparql12/codepoint-esc-07.sparql +3 -0
  13. package/statics/algebra/canonical-sparql/base/sparql12/select-variable-reuse.sparql +8 -0
  14. package/statics/algebra/canonical-sparql/blank-to-var/sparql12/codepoint-esc-05.sparql +3 -0
  15. package/statics/algebra/canonical-sparql/blank-to-var/sparql12/codepoint-esc-06.sparql +3 -0
  16. package/statics/algebra/canonical-sparql/blank-to-var/sparql12/codepoint-esc-07.sparql +3 -0
  17. package/statics/algebra/canonical-sparql/blank-to-var/sparql12/select-variable-reuse.sparql +8 -0
  18. package/statics/algebra/sparql/sparql12/codepoint-esc-05.sparql +6 -0
  19. package/statics/algebra/sparql/sparql12/codepoint-esc-06.sparql +6 -0
  20. package/statics/algebra/sparql/sparql12/codepoint-esc-07.sparql +6 -0
  21. package/statics/algebra/sparql/sparql12/select-variable-reuse.sparql +3 -0
  22. package/statics/ast/ast-source-tracked/sparql-1-1/note-as-var-not-in-term-subquery.json +166 -0
  23. package/statics/ast/ast-source-tracked/sparql-1-1/note-as-var-not-in-wildcard-subquery.json +164 -0
  24. package/statics/ast/ast-source-tracked/sparql-1-1/note-expression-grouped-var.json +169 -0
  25. package/statics/ast/ast-source-tracked/sparql-1-2/codepoint-esc-05.json +97 -0
  26. package/statics/ast/ast-source-tracked/sparql-1-2/codepoint-esc-06.json +97 -0
  27. package/statics/ast/ast-source-tracked/sparql-1-2/codepoint-esc-07.json +97 -0
  28. package/statics/ast/ast-source-tracked/sparql-1-2/select-variable-reuse.json +243 -0
  29. package/statics/ast/sparql/sparql-1-1/note-as-var-not-in-term-subquery.sparql +1 -0
  30. package/statics/ast/sparql/sparql-1-1/note-as-var-not-in-wildcard-subquery.sparql +1 -0
  31. package/statics/ast/sparql/sparql-1-1/note-expression-grouped-var.sparql +1 -0
  32. package/statics/ast/sparql/sparql-1-1-invalid/count-with-ungrouped-expression-variable.sparql +1 -0
  33. package/statics/ast/sparql/sparql-1-1-invalid/select-star-with-group-by.sparql +1 -0
  34. package/statics/ast/sparql/sparql-1-1-invalid/ungrouped-variable-in-expression-projection.sparql +1 -0
  35. package/statics/ast/sparql/sparql-1-2/codepoint-esc-05.sparql +6 -0
  36. package/statics/ast/sparql/sparql-1-2/codepoint-esc-06.sparql +6 -0
  37. package/statics/ast/sparql/sparql-1-2/codepoint-esc-07.sparql +6 -0
  38. package/statics/ast/sparql/sparql-1-2/select-variable-reuse.sparql +3 -0
  39. package/statics/ast/sparql/sparql-1-2-invalid/codepoint-esc-01-bad.sparql +2 -0
  40. package/statics/ast/sparql/sparql-1-2-invalid/codepoint-esc-02-bad.sparql +5 -0
  41. package/statics/ast/sparql/sparql-1-2-invalid/codepoint-esc-03-bad.sparql +6 -0
  42. package/statics/ast/sparql/sparql-1-2-invalid/codepoint-esc-04-bad.sparql +7 -0
  43. package/statics/ast/sparql/sparql-1-2-invalid/codepoint-esc-05-bad.sparql +5 -0
  44. package/statics/ast/sparql/sparql-1-2-invalid/codepoint-esc-06-bad.sparql +5 -0
  45. package/statics/ast/sparql/sparql-1-2-invalid/surrogate-esc-01-bad.sparql +5 -0
  46. package/statics/ast/sparql/sparql-1-2-invalid/surrogate-esc-02-bad.sparql +5 -0
  47. package/statics/ast/sparql/sparql-1-2-invalid/surrogate-esc-03-bad.sparql +5 -0
  48. package/statics/ast/sparql/sparql-1-2-invalid/surrogate-esc-04-bad.sparql +5 -0
  49. package/statics/ast/sparql/sparql-1-2-invalid/surrogate-esc-05-bad.sparql +5 -0
  50. package/statics/ast/sparql-generated/sparql-1-1/note-as-var-not-in-term-subquery.sparql +5 -0
  51. package/statics/ast/sparql-generated/sparql-1-1/note-as-var-not-in-wildcard-subquery.sparql +5 -0
  52. package/statics/ast/sparql-generated/sparql-1-1/note-expression-grouped-var.sparql +4 -0
  53. package/statics/ast/sparql-generated/sparql-1-2/codepoint-esc-05.sparql +3 -0
  54. package/statics/ast/sparql-generated/sparql-1-2/codepoint-esc-06.sparql +3 -0
  55. package/statics/ast/sparql-generated/sparql-1-2/codepoint-esc-07.sparql +3 -0
  56. package/statics/ast/sparql-generated/sparql-1-2/select-variable-reuse.sparql +8 -0
  57. package/statics/ast/sparql-generated-compact/sparql-1-1/note-as-var-not-in-term-subquery.sparql +1 -0
  58. package/statics/ast/sparql-generated-compact/sparql-1-1/note-as-var-not-in-wildcard-subquery.sparql +1 -0
  59. package/statics/ast/sparql-generated-compact/sparql-1-1/note-expression-grouped-var.sparql +1 -0
  60. package/statics/ast/sparql-generated-compact/sparql-1-2/codepoint-esc-05.sparql +1 -0
  61. package/statics/ast/sparql-generated-compact/sparql-1-2/codepoint-esc-06.sparql +1 -0
  62. package/statics/ast/sparql-generated-compact/sparql-1-2/codepoint-esc-07.sparql +1 -0
  63. package/statics/ast/sparql-generated-compact/sparql-1-2/select-variable-reuse.sparql +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traqula/test-utils",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.1.3",
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": "51799d80873e4f0fb0ca6ab778861f526d3a66d1"
52
+ "gitHead": "9f3269bc699a2990f2948c78883dabdac6908f26"
53
53
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "bgp",
5
+ "patterns": [
6
+ {
7
+ "type": "pattern",
8
+ "termType": "Quad",
9
+ "subject": {
10
+ "termType": "NamedNode",
11
+ "value": "http://example/abc"
12
+ },
13
+ "predicate": {
14
+ "termType": "Variable",
15
+ "value": "p"
16
+ },
17
+ "object": {
18
+ "termType": "Variable",
19
+ "value": "o"
20
+ },
21
+ "graph": {
22
+ "termType": "DefaultGraph",
23
+ "value": ""
24
+ }
25
+ }
26
+ ]
27
+ },
28
+ "variables": [
29
+ {
30
+ "termType": "Variable",
31
+ "value": "o"
32
+ },
33
+ {
34
+ "termType": "Variable",
35
+ "value": "p"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "bgp",
5
+ "patterns": [
6
+ {
7
+ "type": "pattern",
8
+ "termType": "Quad",
9
+ "subject": {
10
+ "termType": "NamedNode",
11
+ "value": "http://example/abc"
12
+ },
13
+ "predicate": {
14
+ "termType": "Variable",
15
+ "value": "p"
16
+ },
17
+ "object": {
18
+ "termType": "Literal",
19
+ "value": "abc",
20
+ "datatype": {
21
+ "termType": "NamedNode",
22
+ "value": "http://www.w3.org/2001/XMLSchema#string"
23
+ }
24
+ },
25
+ "graph": {
26
+ "termType": "DefaultGraph",
27
+ "value": ""
28
+ }
29
+ }
30
+ ]
31
+ },
32
+ "variables": [
33
+ {
34
+ "termType": "Variable",
35
+ "value": "p"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "bgp",
5
+ "patterns": [
6
+ {
7
+ "type": "pattern",
8
+ "termType": "Quad",
9
+ "subject": {
10
+ "termType": "NamedNode",
11
+ "value": "http://example/abc"
12
+ },
13
+ "predicate": {
14
+ "termType": "Variable",
15
+ "value": "p"
16
+ },
17
+ "object": {
18
+ "termType": "Literal",
19
+ "value": "abc",
20
+ "datatype": {
21
+ "termType": "NamedNode",
22
+ "value": "http://www.w3.org/2001/XMLSchema#string"
23
+ }
24
+ },
25
+ "graph": {
26
+ "termType": "DefaultGraph",
27
+ "value": ""
28
+ }
29
+ }
30
+ ]
31
+ },
32
+ "variables": [
33
+ {
34
+ "termType": "Variable",
35
+ "value": "p"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,137 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "extend",
5
+ "input": {
6
+ "type": "extend",
7
+ "input": {
8
+ "type": "group",
9
+ "input": {
10
+ "type": "values",
11
+ "variables": [
12
+ {
13
+ "termType": "Variable",
14
+ "value": "v"
15
+ }
16
+ ],
17
+ "bindings": [
18
+ {
19
+ "v": {
20
+ "termType": "Literal",
21
+ "value": "0",
22
+ "datatype": {
23
+ "termType": "NamedNode",
24
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "v": {
30
+ "termType": "Literal",
31
+ "value": "1",
32
+ "datatype": {
33
+ "termType": "NamedNode",
34
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "v": {
40
+ "termType": "Literal",
41
+ "value": "2",
42
+ "datatype": {
43
+ "termType": "NamedNode",
44
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
45
+ }
46
+ }
47
+ },
48
+ {
49
+ "v": {
50
+ "termType": "Literal",
51
+ "value": "3",
52
+ "datatype": {
53
+ "termType": "NamedNode",
54
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
55
+ }
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ "variables": [],
61
+ "aggregates": [
62
+ {
63
+ "type": "expression",
64
+ "subType": "aggregate",
65
+ "aggregator": "count",
66
+ "expression": {
67
+ "type": "expression",
68
+ "subType": "term",
69
+ "term": {
70
+ "termType": "Variable",
71
+ "value": "v"
72
+ }
73
+ },
74
+ "distinct": false,
75
+ "variable": {
76
+ "termType": "Variable",
77
+ "value": "var0"
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ "variable": {
83
+ "termType": "Variable",
84
+ "value": "count"
85
+ },
86
+ "expression": {
87
+ "type": "expression",
88
+ "subType": "term",
89
+ "term": {
90
+ "termType": "Variable",
91
+ "value": "var0"
92
+ }
93
+ }
94
+ },
95
+ "variable": {
96
+ "termType": "Variable",
97
+ "value": "countPlusOne"
98
+ },
99
+ "expression": {
100
+ "type": "expression",
101
+ "subType": "operator",
102
+ "operator": "+",
103
+ "args": [
104
+ {
105
+ "type": "expression",
106
+ "subType": "term",
107
+ "term": {
108
+ "termType": "Variable",
109
+ "value": "count"
110
+ }
111
+ },
112
+ {
113
+ "type": "expression",
114
+ "subType": "term",
115
+ "term": {
116
+ "termType": "Literal",
117
+ "value": "1",
118
+ "datatype": {
119
+ "termType": "NamedNode",
120
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
121
+ }
122
+ }
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ "variables": [
128
+ {
129
+ "termType": "Variable",
130
+ "value": "count"
131
+ },
132
+ {
133
+ "termType": "Variable",
134
+ "value": "countPlusOne"
135
+ }
136
+ ]
137
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "bgp",
5
+ "patterns": [
6
+ {
7
+ "type": "pattern",
8
+ "termType": "Quad",
9
+ "subject": {
10
+ "termType": "NamedNode",
11
+ "value": "http://example/abc"
12
+ },
13
+ "predicate": {
14
+ "termType": "Variable",
15
+ "value": "p"
16
+ },
17
+ "object": {
18
+ "termType": "Variable",
19
+ "value": "o"
20
+ },
21
+ "graph": {
22
+ "termType": "DefaultGraph",
23
+ "value": ""
24
+ }
25
+ }
26
+ ]
27
+ },
28
+ "variables": [
29
+ {
30
+ "termType": "Variable",
31
+ "value": "o"
32
+ },
33
+ {
34
+ "termType": "Variable",
35
+ "value": "p"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "bgp",
5
+ "patterns": [
6
+ {
7
+ "type": "pattern",
8
+ "termType": "Quad",
9
+ "subject": {
10
+ "termType": "NamedNode",
11
+ "value": "http://example/abc"
12
+ },
13
+ "predicate": {
14
+ "termType": "Variable",
15
+ "value": "p"
16
+ },
17
+ "object": {
18
+ "termType": "Literal",
19
+ "value": "abc",
20
+ "datatype": {
21
+ "termType": "NamedNode",
22
+ "value": "http://www.w3.org/2001/XMLSchema#string"
23
+ }
24
+ },
25
+ "graph": {
26
+ "termType": "DefaultGraph",
27
+ "value": ""
28
+ }
29
+ }
30
+ ]
31
+ },
32
+ "variables": [
33
+ {
34
+ "termType": "Variable",
35
+ "value": "p"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "bgp",
5
+ "patterns": [
6
+ {
7
+ "type": "pattern",
8
+ "termType": "Quad",
9
+ "subject": {
10
+ "termType": "NamedNode",
11
+ "value": "http://example/abc"
12
+ },
13
+ "predicate": {
14
+ "termType": "Variable",
15
+ "value": "p"
16
+ },
17
+ "object": {
18
+ "termType": "Literal",
19
+ "value": "abc",
20
+ "datatype": {
21
+ "termType": "NamedNode",
22
+ "value": "http://www.w3.org/2001/XMLSchema#string"
23
+ }
24
+ },
25
+ "graph": {
26
+ "termType": "DefaultGraph",
27
+ "value": ""
28
+ }
29
+ }
30
+ ]
31
+ },
32
+ "variables": [
33
+ {
34
+ "termType": "Variable",
35
+ "value": "p"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,137 @@
1
+ {
2
+ "type": "project",
3
+ "input": {
4
+ "type": "extend",
5
+ "input": {
6
+ "type": "extend",
7
+ "input": {
8
+ "type": "group",
9
+ "input": {
10
+ "type": "values",
11
+ "variables": [
12
+ {
13
+ "termType": "Variable",
14
+ "value": "v"
15
+ }
16
+ ],
17
+ "bindings": [
18
+ {
19
+ "v": {
20
+ "termType": "Literal",
21
+ "value": "0",
22
+ "datatype": {
23
+ "termType": "NamedNode",
24
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "v": {
30
+ "termType": "Literal",
31
+ "value": "1",
32
+ "datatype": {
33
+ "termType": "NamedNode",
34
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "v": {
40
+ "termType": "Literal",
41
+ "value": "2",
42
+ "datatype": {
43
+ "termType": "NamedNode",
44
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
45
+ }
46
+ }
47
+ },
48
+ {
49
+ "v": {
50
+ "termType": "Literal",
51
+ "value": "3",
52
+ "datatype": {
53
+ "termType": "NamedNode",
54
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
55
+ }
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ "variables": [],
61
+ "aggregates": [
62
+ {
63
+ "type": "expression",
64
+ "subType": "aggregate",
65
+ "aggregator": "count",
66
+ "expression": {
67
+ "type": "expression",
68
+ "subType": "term",
69
+ "term": {
70
+ "termType": "Variable",
71
+ "value": "v"
72
+ }
73
+ },
74
+ "distinct": false,
75
+ "variable": {
76
+ "termType": "Variable",
77
+ "value": "var0"
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ "variable": {
83
+ "termType": "Variable",
84
+ "value": "count"
85
+ },
86
+ "expression": {
87
+ "type": "expression",
88
+ "subType": "term",
89
+ "term": {
90
+ "termType": "Variable",
91
+ "value": "var0"
92
+ }
93
+ }
94
+ },
95
+ "variable": {
96
+ "termType": "Variable",
97
+ "value": "countPlusOne"
98
+ },
99
+ "expression": {
100
+ "type": "expression",
101
+ "subType": "operator",
102
+ "operator": "+",
103
+ "args": [
104
+ {
105
+ "type": "expression",
106
+ "subType": "term",
107
+ "term": {
108
+ "termType": "Variable",
109
+ "value": "count"
110
+ }
111
+ },
112
+ {
113
+ "type": "expression",
114
+ "subType": "term",
115
+ "term": {
116
+ "termType": "Literal",
117
+ "value": "1",
118
+ "datatype": {
119
+ "termType": "NamedNode",
120
+ "value": "http://www.w3.org/2001/XMLSchema#integer"
121
+ }
122
+ }
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ "variables": [
128
+ {
129
+ "termType": "Variable",
130
+ "value": "count"
131
+ },
132
+ {
133
+ "termType": "Variable",
134
+ "value": "countPlusOne"
135
+ }
136
+ ]
137
+ }
@@ -0,0 +1,3 @@
1
+ SELECT ?o ?p WHERE {
2
+ <http://example/abc> ?p ?o .
3
+ }
@@ -0,0 +1,3 @@
1
+ SELECT ?p WHERE {
2
+ <http://example/abc> ?p "abc"^^<http://www.w3.org/2001/XMLSchema#string> .
3
+ }
@@ -0,0 +1,3 @@
1
+ SELECT ?p WHERE {
2
+ <http://example/abc> ?p "abc"^^<http://www.w3.org/2001/XMLSchema#string> .
3
+ }
@@ -0,0 +1,8 @@
1
+ SELECT ( COUNT( ?v ) AS ?count ) ( ( ?count + "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?countPlusOne ) WHERE {
2
+ VALUES ?v {
3
+ "0"^^<http://www.w3.org/2001/XMLSchema#integer>
4
+ "1"^^<http://www.w3.org/2001/XMLSchema#integer>
5
+ "2"^^<http://www.w3.org/2001/XMLSchema#integer>
6
+ "3"^^<http://www.w3.org/2001/XMLSchema#integer>
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ SELECT ?o ?p WHERE {
2
+ <http://example/abc> ?p ?o .
3
+ }
@@ -0,0 +1,3 @@
1
+ SELECT ?p WHERE {
2
+ <http://example/abc> ?p "abc"^^<http://www.w3.org/2001/XMLSchema#string> .
3
+ }
@@ -0,0 +1,3 @@
1
+ SELECT ?p WHERE {
2
+ <http://example/abc> ?p "abc"^^<http://www.w3.org/2001/XMLSchema#string> .
3
+ }
@@ -0,0 +1,8 @@
1
+ SELECT ( COUNT( ?v ) AS ?count ) ( ( ?count + "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?countPlusOne ) WHERE {
2
+ VALUES ?v {
3
+ "0"^^<http://www.w3.org/2001/XMLSchema#integer>
4
+ "1"^^<http://www.w3.org/2001/XMLSchema#integer>
5
+ "2"^^<http://www.w3.org/2001/XMLSchema#integer>
6
+ "3"^^<http://www.w3.org/2001/XMLSchema#integer>
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ # Codepoint escape in an IRI
2
+
3
+ SELECT * {
4
+ ## /abc
5
+ <http://example/\u0061\U00000062\u0063> ?p ?o .
6
+ }
@@ -0,0 +1,6 @@
1
+ # Codepoint escape in a string
2
+
3
+ SELECT * {
4
+ ## "abc"
5
+ <http://example/abc> ?p "\U00000061\u0062\U00000063" .
6
+ }
@@ -0,0 +1,6 @@
1
+ # Codepoint escape in a string
2
+
3
+ SELECT * {
4
+ ## 'abc'
5
+ <http://example/abc> ?p '\U00000061\u0062\U00000063' .
6
+ }
@@ -0,0 +1,3 @@
1
+ SELECT (COUNT(?v) AS ?count) (?count + 1 AS ?countPlusOne) WHERE {
2
+ VALUES ?v { 0 1 2 3 }
3
+ }