@@ -36,31 +36,31 @@ const TEST_TYPES = {
36
36
// see JSON-LD 1.0 Errata
37
37
specVersion : [ 'json-ld-1.0' ] ,
38
38
// FIXME
39
- regex : [
39
+ idRegex : [
40
40
// list of lists
41
- / ^ # t l i 0 1 / ,
42
- / ^ # t l i 0 2 / ,
43
- / ^ # t l i 0 3 / ,
44
- / ^ # t l i 0 4 / ,
45
- / ^ # t l i 0 5 / ,
41
+ / c o m p a c t - m a n i f e s t . j s o n l d # t l i 0 1 $ / ,
42
+ / c o m p a c t - m a n i f e s t . j s o n l d # t l i 0 2 $ / ,
43
+ / c o m p a c t - m a n i f e s t . j s o n l d # t l i 0 3 $ / ,
44
+ / c o m p a c t - m a n i f e s t . j s o n l d # t l i 0 4 $ / ,
45
+ / c o m p a c t - m a n i f e s t . j s o n l d # t l i 0 5 $ / ,
46
46
// terms
47
- / ^ # t p 0 0 1 / ,
47
+ / c o m p a c t - m a n i f e s t . j s o n l d # t p 0 0 1 $ / ,
48
48
// rel iri
49
- / ^ # t 0 0 9 5 / ,
49
+ / c o m p a c t - m a n i f e s t . j s o n l d # t 0 0 9 5 $ / ,
50
50
// type set
51
- / ^ # t 0 1 0 4 / ,
52
- / ^ # t 0 1 0 5 / ,
51
+ / c o m p a c t - m a n i f e s t . j s o n l d # t 0 1 0 4 $ / ,
52
+ / c o m p a c t - m a n i f e s t . j s o n l d # t 0 1 0 5 $ / ,
53
53
// rel vocab
54
- / ^ # t 0 1 0 7 / ,
54
+ / c o m p a c t - m a n i f e s t . j s o n l d # t 0 1 0 7 $ / ,
55
55
// html
56
- / ^ # t h 0 0 1 / ,
57
- / ^ # t h 0 0 2 / ,
58
- / ^ # t h 0 0 3 / ,
59
- / ^ # t h 0 0 4 / ,
56
+ / c o m p a c t - m a n i f e s t . j s o n l d # t h 0 0 1 $ / ,
57
+ / c o m p a c t - m a n i f e s t . j s o n l d # t h 0 0 2 $ / ,
58
+ / c o m p a c t - m a n i f e s t . j s o n l d # t h 0 0 3 $ / ,
59
+ / c o m p a c t - m a n i f e s t . j s o n l d # t h 0 0 4 $ / ,
60
60
// @type : @none
61
- / ^ # t t n 0 1 / ,
62
- / ^ # t t n 0 2 / ,
63
- / ^ # t t n 0 3 / ,
61
+ / c o m p a c t - m a n i f e s t . j s o n l d # t t n 0 1 $ / ,
62
+ / c o m p a c t - m a n i f e s t . j s o n l d # t t n 0 2 $ / ,
63
+ / c o m p a c t - m a n i f e s t . j s o n l d # t t n 0 3 $ / ,
64
64
]
65
65
} ,
66
66
fn : 'compact' ,
@@ -74,68 +74,68 @@ const TEST_TYPES = {
74
74
'jld:ExpandTest' : {
75
75
skip : {
76
76
// FIXME
77
- regex : [
77
+ idRegex : [
78
78
// list of lists
79
- / ^ # t l i 0 1 / ,
80
- / ^ # t l i 0 2 / ,
81
- / ^ # t l i 0 3 / ,
82
- / ^ # t l i 0 4 / ,
83
- / ^ # t l i 0 5 / ,
84
- / ^ # t l i 0 6 / ,
85
- / ^ # t l i 0 7 / ,
86
- / ^ # t l i 0 8 / ,
87
- / ^ # t l i 0 9 / ,
88
- / ^ # t l i 1 0 / ,
79
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 1 $ / ,
80
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 2 $ / ,
81
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 3 $ / ,
82
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 4 $ / ,
83
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 5 $ / ,
84
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 6 $ / ,
85
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 7 $ / ,
86
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 8 $ / ,
87
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 0 9 $ / ,
88
+ / e x p a n d - m a n i f e s t . j s o n l d # t l i 1 0 $ / ,
89
89
// mode
90
- / ^ # t p 0 0 1 / ,
91
- / ^ # t p 0 0 2 / ,
90
+ / e x p a n d - m a n i f e s t . j s o n l d # t p 0 0 1 $ / ,
91
+ / e x p a n d - m a n i f e s t . j s o n l d # t p 0 0 2 $ / ,
92
92
// rel iri
93
- / ^ # t 0 0 9 2 / ,
94
- // remote
95
- / ^ # t 0 0 0 5 / ,
96
- / ^ # t 0 0 0 6 / ,
97
- / ^ # t 0 0 0 7 / ,
98
- / ^ # t 0 0 1 0 / ,
99
- / ^ # t 0 0 1 1 / ,
100
- / ^ # t 0 0 1 2 / ,
93
+ / e x p a n d - m a n i f e s t .j s o n l d # t 0 0 9 2 $ / ,
101
94
// iris
102
- / ^ # t 0 1 0 9 / ,
95
+ / e x p a n d - m a n i f e s t . j s o n l d # t 0 1 0 9 $ / ,
103
96
// rel vocab
104
- / ^ # t 0 1 1 0 / ,
105
- / ^ # t 0 1 1 1 / ,
106
- / ^ # t 0 1 1 2 / ,
97
+ / e x p a n d - m a n i f e s t . j s o n l d # t 0 1 1 0 $ / ,
98
+ / e x p a n d - m a n i f e s t . j s o n l d # t 0 1 1 1 $ / ,
99
+ / e x p a n d - m a n i f e s t . j s o n l d # t 0 1 1 2 $ / ,
107
100
// html
108
- / ^ # t h 0 0 1 / ,
109
- / ^ # t h 0 0 2 / ,
110
- / ^ # t h 0 0 3 / ,
111
- / ^ # t h 0 0 4 / ,
112
- / ^ # t h 0 0 5 / ,
113
- / ^ # t h 0 0 6 / ,
114
- / ^ # t h 0 0 7 / ,
115
- / ^ # t h 0 1 0 / ,
116
- / ^ # t h 0 1 1 / ,
117
- / ^ # t h 0 1 2 / ,
118
- / ^ # t h 0 1 3 / ,
119
- / ^ # t h 0 1 4 / ,
120
- / ^ # t h 0 1 5 / ,
121
- / ^ # t h 0 1 6 / ,
122
- / ^ # t h 0 1 7 / ,
123
- / ^ # t h 0 1 8 / ,
124
- / ^ # t h 0 1 9 / ,
125
- / ^ # t h 0 2 0 / ,
126
- / ^ # t h 0 2 1 / ,
127
- / ^ # t h 0 2 2 / ,
101
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 1 $ / ,
102
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 2 $ / ,
103
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 3 $ / ,
104
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 4 $ / ,
105
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 5 $ / ,
106
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 6 $ / ,
107
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 0 7 $ / ,
108
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 0 $ / ,
109
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 1 $ / ,
110
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 2 $ / ,
111
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 3 $ / ,
112
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 4 $ / ,
113
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 5 $ / ,
114
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 6 $ / ,
115
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 7 $ / ,
116
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 8 $ / ,
117
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 1 9 $ / ,
118
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 2 0 $ / ,
119
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 2 1 $ / ,
120
+ / e x p a n d - m a n i f e s t . j s o n l d # t h 0 2 2 $ / ,
128
121
// sealed
129
- / ^ # t s e 0 1 / ,
130
- / ^ # t s e 0 2 / ,
131
- / ^ # t s e 0 3 / ,
132
- / ^ # t s e 0 4 / ,
133
- / ^ # t s e 0 5 / ,
134
- / ^ # t s e 0 6 / ,
135
- / ^ # t s e 0 8 / ,
136
- / ^ # t s e 0 9 / ,
122
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 1 $ / ,
123
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 2 $ / ,
124
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 3 $ / ,
125
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 4 $ / ,
126
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 5 $ / ,
127
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 6 $ / ,
128
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 8 $ / ,
129
+ / e x p a n d - m a n i f e s t . j s o n l d # t s e 0 9 $ / ,
137
130
// @type : @none
138
- / ^ # t t n 0 2 / ,
131
+ / e x p a n d - m a n i f e s t .j s o n l d # t t n 0 2 $ / ,
132
+ // remote
133
+ / r e m o t e - d o c - m a n i f e s t .j s o n l d # t 0 0 0 5 $ / ,
134
+ / r e m o t e - d o c - m a n i f e s t .j s o n l d # t 0 0 0 6 $ / ,
135
+ / r e m o t e - d o c - m a n i f e s t .j s o n l d # t 0 0 0 7 $ / ,
136
+ / r e m o t e - d o c - m a n i f e s t .j s o n l d # t 0 0 1 0 $ / ,
137
+ / r e m o t e - d o c - m a n i f e s t .j s o n l d # t 0 0 1 1 $ / ,
138
+ / r e m o t e - d o c - m a n i f e s t .j s o n l d # t 0 0 1 2 $ / ,
139
139
]
140
140
} ,
141
141
fn : 'expand' ,
@@ -148,16 +148,16 @@ const TEST_TYPES = {
148
148
'jld:FlattenTest' : {
149
149
skip : {
150
150
// FIXME
151
- regex : [
151
+ idRegex : [
152
152
// list of lists
153
- / ^ # t l i 0 1 / ,
154
- / ^ # t l i 0 2 / ,
155
- / ^ # t l i 0 3 / ,
153
+ / f l a t t e n - m a n i f e s t . j s o n l d # t l i 0 1 $ / ,
154
+ / f l a t t e n - m a n i f e s t . j s o n l d # t l i 0 2 $ / ,
155
+ / f l a t t e n - m a n i f e s t . j s o n l d # t l i 0 3 $ / ,
156
156
// html
157
- / ^ # t h 0 0 1 / ,
158
- / ^ # t h 0 0 2 / ,
159
- / ^ # t h 0 0 3 / ,
160
- / ^ # t h 0 0 4 / ,
157
+ / f l a t t e n - m a n i f e s t . j s o n l d # t h 0 0 1 $ / ,
158
+ / f l a t t e n - m a n i f e s t . j s o n l d # t h 0 0 2 $ / ,
159
+ / f l a t t e n - m a n i f e s t . j s o n l d # t h 0 0 3 $ / ,
160
+ / f l a t t e n - m a n i f e s t . j s o n l d # t h 0 0 4 $ / ,
161
161
]
162
162
} ,
163
163
fn : 'flatten' ,
@@ -171,29 +171,29 @@ const TEST_TYPES = {
171
171
'jld:FrameTest' : {
172
172
skip : {
173
173
// FIXME
174
- regex : [
174
+ idRegex : [
175
175
// ex
176
- / ^ # t g 0 0 1 / ,
176
+ / f r a m e - m a n i f e s t . j s o n l d # t g 0 0 1 $ / ,
177
177
// graphs
178
- / ^ # t 0 0 1 0 / ,
179
- / ^ # t 0 0 2 0 / ,
180
- / ^ # t 0 0 4 6 / ,
181
- / ^ # t 0 0 4 9 / ,
182
- / ^ # t 0 0 5 1 / ,
183
- / ^ # t g 0 1 0 / ,
184
- / ^ # t p 0 4 6 / ,
185
- / ^ # t p 0 4 9 / ,
178
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 1 0 $ / ,
179
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 2 0 $ / ,
180
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 4 6 $ / ,
181
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 4 9 $ / ,
182
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 5 1 $ / ,
183
+ / f r a m e - m a n i f e s t . j s o n l d # t g 0 1 0 $ / ,
184
+ / f r a m e - m a n i f e s t . j s o n l d # t p 0 4 6 $ / ,
185
+ / f r a m e - m a n i f e s t . j s o n l d # t p 0 4 9 $ / ,
186
186
// blank nodes
187
- / ^ # t 0 0 5 2 / ,
188
- / ^ # t 0 0 5 3 / ,
187
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 5 2 $ / ,
188
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 5 3 $ / ,
189
189
// embed
190
- / ^ # t 0 0 5 4 / ,
190
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 5 4 $ / ,
191
191
// lists
192
- / ^ # t 0 0 5 5 / ,
193
- / ^ # t 0 0 5 8 / ,
192
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 5 5 $ / ,
193
+ / f r a m e - m a n i f e s t . j s o n l d # t 0 0 5 8 $ / ,
194
194
// misc
195
- / ^ # t p 0 1 0 / ,
196
- / ^ # t p 0 5 0 / ,
195
+ / f r a m e - m a n i f e s t . j s o n l d # t p 0 1 0 $ / ,
196
+ / f r a m e - m a n i f e s t . j s o n l d # t p 0 5 0 $ / ,
197
197
]
198
198
} ,
199
199
fn : 'frame' ,
@@ -207,11 +207,11 @@ const TEST_TYPES = {
207
207
'jld:FromRDFTest' : {
208
208
skip : {
209
209
// FIXME
210
- regex : [
210
+ idRegex : [
211
211
// list of lists
212
- / ^ # t l i 0 1 / ,
213
- / ^ # t l i 0 2 / ,
214
- / ^ # t l i 0 3 / ,
212
+ / f r o m R d f - m a n i f e s t . j s o n l d # t l i 0 1 $ / ,
213
+ / f r o m R d f - m a n i f e s t . j s o n l d # t l i 0 2 $ / ,
214
+ / f r o m R d f - m a n i f e s t . j s o n l d # t l i 0 3 $ / ,
215
215
]
216
216
} ,
217
217
fn : 'fromRDF' ,
@@ -232,24 +232,24 @@ const TEST_TYPES = {
232
232
'jld:ToRDFTest' : {
233
233
skip : {
234
234
// FIXME
235
- regex : [
235
+ idRegex : [
236
236
// list of lists
237
- / ^ # t l i 0 1 / ,
238
- / ^ # t l i 0 2 / ,
237
+ / t o R d f - m a n i f e s t . j s o n l d # t l i 0 1 $ / ,
238
+ / t o R d f - m a n i f e s t . j s o n l d # t l i 0 2 $ / ,
239
239
// blank node properties
240
- / ^ # t 0 1 1 8 / ,
240
+ / t o R d f - m a n i f e s t . j s o n l d # t 0 1 1 8 $ / ,
241
241
// well formed
242
- / ^ # t w f 0 1 / ,
243
- / ^ # t w f 0 2 / ,
244
- / ^ # t w f 0 3 / ,
245
- / ^ # t w f 0 4 / ,
246
- / ^ # t w f 0 5 / ,
247
- / ^ # t w f 0 6 / ,
248
- / ^ # t w f 0 7 / ,
242
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 1 $ / ,
243
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 2 $ / ,
244
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 3 $ / ,
245
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 4 $ / ,
246
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 5 $ / ,
247
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 6 $ / ,
248
+ / t o R d f - m a n i f e s t . j s o n l d # t w f 0 7 $ / ,
249
249
// html
250
- / ^ # t h 0 0 1 / ,
251
- / ^ # t h 0 0 2 / ,
252
- / ^ # t h 0 0 3 / ,
250
+ / t o R d f - m a n i f e s t . j s o n l d # t h 0 0 1 $ / ,
251
+ / t o R d f - m a n i f e s t . j s o n l d # t h 0 0 2 $ / ,
252
+ / t o R d f - m a n i f e s t . j s o n l d # t h 0 0 3 $ / ,
253
253
]
254
254
} ,
255
255
fn : 'toRDF' ,
@@ -460,8 +460,17 @@ function addTest(manifest, test, tests) {
460
460
self . skip ( ) ;
461
461
}
462
462
463
- if ( testInfo . skip && testInfo . skip . regex ) {
464
- testInfo . skip . regex . forEach ( function ( re ) {
463
+ if ( testInfo . skip && testInfo . skip . idRegex ) {
464
+ testInfo . skip . idRegex . forEach ( function ( re ) {
465
+ if ( re . test ( test [ '@id' ] ) ) {
466
+ //console.log('Skipping test "' + test.name + '" of description: ' + description);
467
+ self . skip ( ) ;
468
+ }
469
+ } ) ;
470
+ }
471
+
472
+ if ( testInfo . skip && testInfo . skip . descriptionRegex ) {
473
+ testInfo . skip . descriptionRegex . forEach ( function ( re ) {
465
474
if ( re . test ( description ) ) {
466
475
//console.log('Skipping test "' + test.name + '" of description: ' + description);
467
476
self . skip ( ) ;
0 commit comments