@@ -33,13 +33,13 @@ const TEST_TYPES = {
3333 specVersion : [ 'json-ld-1.0' ] ,
3434 // FIXME
3535 // NOTE: idRegex format:
36- //MMM-manifest.jsonld #tNNN$/,
36+ //MMM-manifest#tNNN$/,
3737 idRegex : [
3838 // html
39- / h t m l - m a n i f e s t . j s o n l d # t c 0 0 1 $ / ,
40- / h t m l - m a n i f e s t . j s o n l d # t c 0 0 2 $ / ,
41- / h t m l - m a n i f e s t . j s o n l d # t c 0 0 3 $ / ,
42- / h t m l - m a n i f e s t . j s o n l d # t c 0 0 4 $ / ,
39+ / h t m l - m a n i f e s t # t c 0 0 1 $ / ,
40+ / h t m l - m a n i f e s t # t c 0 0 2 $ / ,
41+ / h t m l - m a n i f e s t # t c 0 0 3 $ / ,
42+ / h t m l - m a n i f e s t # t c 0 0 4 $ / ,
4343 ]
4444 } ,
4545 fn : 'compact' ,
@@ -57,38 +57,38 @@ const TEST_TYPES = {
5757 specVersion : [ 'json-ld-1.0' ] ,
5858 // FIXME
5959 // NOTE: idRegex format:
60- //MMM-manifest.jsonld #tNNN$/,
60+ //MMM-manifest#tNNN$/,
6161 idRegex : [
6262 // html
63- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 1 $ / ,
64- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 2 $ / ,
65- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 3 $ / ,
66- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 4 $ / ,
67- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 5 $ / ,
68- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 6 $ / ,
69- / h t m l - m a n i f e s t . j s o n l d # t e 0 0 7 $ / ,
70- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 0 $ / ,
71- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 1 $ / ,
72- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 2 $ / ,
73- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 3 $ / ,
74- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 4 $ / ,
75- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 5 $ / ,
76- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 6 $ / ,
77- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 7 $ / ,
78- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 8 $ / ,
79- / h t m l - m a n i f e s t . j s o n l d # t e 0 1 9 $ / ,
80- / h t m l - m a n i f e s t . j s o n l d # t e 0 2 0 $ / ,
81- / h t m l - m a n i f e s t . j s o n l d # t e 0 2 1 $ / ,
82- / h t m l - m a n i f e s t . j s o n l d # t e 0 2 2 $ / ,
83- / h t m l - m a n i f e s t . j s o n l d # t e x 0 1 $ / ,
63+ / h t m l - m a n i f e s t # t e 0 0 1 $ / ,
64+ / h t m l - m a n i f e s t # t e 0 0 2 $ / ,
65+ / h t m l - m a n i f e s t # t e 0 0 3 $ / ,
66+ / h t m l - m a n i f e s t # t e 0 0 4 $ / ,
67+ / h t m l - m a n i f e s t # t e 0 0 5 $ / ,
68+ / h t m l - m a n i f e s t # t e 0 0 6 $ / ,
69+ / h t m l - m a n i f e s t # t e 0 0 7 $ / ,
70+ / h t m l - m a n i f e s t # t e 0 1 0 $ / ,
71+ / h t m l - m a n i f e s t # t e 0 1 1 $ / ,
72+ / h t m l - m a n i f e s t # t e 0 1 2 $ / ,
73+ / h t m l - m a n i f e s t # t e 0 1 3 $ / ,
74+ / h t m l - m a n i f e s t # t e 0 1 4 $ / ,
75+ / h t m l - m a n i f e s t # t e 0 1 5 $ / ,
76+ / h t m l - m a n i f e s t # t e 0 1 6 $ / ,
77+ / h t m l - m a n i f e s t # t e 0 1 7 $ / ,
78+ / h t m l - m a n i f e s t # t e 0 1 8 $ / ,
79+ / h t m l - m a n i f e s t # t e 0 1 9 $ / ,
80+ / h t m l - m a n i f e s t # t e 0 2 0 $ / ,
81+ / h t m l - m a n i f e s t # t e 0 2 1 $ / ,
82+ / h t m l - m a n i f e s t # t e 0 2 2 $ / ,
83+ / h t m l - m a n i f e s t # t e x 0 1 $ / ,
8484 // HTML extraction
85- / e x p a n d - m a n i f e s t . j s o n l d # t h c 0 1 $ / ,
86- / e x p a n d - m a n i f e s t . j s o n l d # t h c 0 2 $ / ,
87- / e x p a n d - m a n i f e s t . j s o n l d # t h c 0 3 $ / ,
88- / e x p a n d - m a n i f e s t . j s o n l d # t h c 0 4 $ / ,
89- / e x p a n d - m a n i f e s t . j s o n l d # t h c 0 5 $ / ,
85+ / e x p a n d - m a n i f e s t # t h c 0 1 $ / ,
86+ / e x p a n d - m a n i f e s t # t h c 0 2 $ / ,
87+ / e x p a n d - m a n i f e s t # t h c 0 3 $ / ,
88+ / e x p a n d - m a n i f e s t # t h c 0 4 $ / ,
89+ / e x p a n d - m a n i f e s t # t h c 0 5 $ / ,
9090 // remote
91- / 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 3 $ / , // HTML
91+ / r e m o t e - d o c - m a n i f e s t # t 0 0 1 3 $ / , // HTML
9292 ]
9393 } ,
9494 fn : 'expand' ,
@@ -105,13 +105,13 @@ const TEST_TYPES = {
105105 specVersion : [ 'json-ld-1.0' ] ,
106106 // FIXME
107107 // NOTE: idRegex format:
108- //MMM-manifest.jsonld #tNNN$/,
108+ //MMM-manifest#tNNN$/,
109109 idRegex : [
110110 // html
111- / h t m l - m a n i f e s t . j s o n l d # t f 0 0 1 $ / ,
112- / h t m l - m a n i f e s t . j s o n l d # t f 0 0 2 $ / ,
113- / h t m l - m a n i f e s t . j s o n l d # t f 0 0 3 $ / ,
114- / h t m l - m a n i f e s t . j s o n l d # t f 0 0 4 $ / ,
111+ / h t m l - m a n i f e s t # t f 0 0 1 $ / ,
112+ / h t m l - m a n i f e s t # t f 0 0 2 $ / ,
113+ / h t m l - m a n i f e s t # t f 0 0 3 $ / ,
114+ / h t m l - m a n i f e s t # t f 0 0 4 $ / ,
115115 ]
116116 } ,
117117 fn : 'flatten' ,
@@ -129,7 +129,7 @@ const TEST_TYPES = {
129129 specVersion : [ 'json-ld-1.0' ] ,
130130 // FIXME
131131 // NOTE: idRegex format:
132- //MMM-manifest.jsonld #tNNN$/,
132+ //MMM-manifest#tNNN$/,
133133 idRegex : [
134134 ]
135135 } ,
@@ -148,11 +148,11 @@ const TEST_TYPES = {
148148 specVersion : [ 'json-ld-1.0' ] ,
149149 // FIXME
150150 // NOTE: idRegex format:
151- //MMM-manifest.jsonld #tNNN$/,
151+ //MMM-manifest#tNNN$/,
152152 idRegex : [
153153 // direction (compound-literal)
154- / f r o m R d f - m a n i f e s t . j s o n l d # t d i 1 1 $ / ,
155- / f r o m R d f - m a n i f e s t . j s o n l d # t d i 1 2 $ / ,
154+ / f r o m R d f - m a n i f e s t # t d i 1 1 $ / ,
155+ / f r o m R d f - m a n i f e s t # t d i 1 2 $ / ,
156156 ]
157157 } ,
158158 fn : 'fromRDF' ,
@@ -177,38 +177,38 @@ const TEST_TYPES = {
177177 specVersion : [ 'json-ld-1.0' ] ,
178178 // FIXME
179179 // NOTE: idRegex format:
180- //MMM-manifest.jsonld #tNNN$/,
180+ //MMM-manifest#tNNN$/,
181181 idRegex : [
182182 // well formed
183- / t o R d f - m a n i f e s t . j s o n l d # t w f 0 5 $ / ,
183+ / t o R d f - m a n i f e s t # t w f 0 5 $ / ,
184184 // html
185- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 1 $ / ,
186- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 2 $ / ,
187- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 3 $ / ,
188- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 4 $ / ,
189- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 5 $ / ,
190- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 6 $ / ,
191- / h t m l - m a n i f e s t . j s o n l d # t r 0 0 7 $ / ,
192- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 0 $ / ,
193- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 1 $ / ,
194- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 2 $ / ,
195- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 3 $ / ,
196- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 4 $ / ,
197- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 5 $ / ,
198- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 6 $ / ,
199- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 7 $ / ,
200- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 8 $ / ,
201- / h t m l - m a n i f e s t . j s o n l d # t r 0 1 9 $ / ,
202- / h t m l - m a n i f e s t . j s o n l d # t r 0 2 0 $ / ,
203- / h t m l - m a n i f e s t . j s o n l d # t r 0 2 1 $ / ,
204- / h t m l - m a n i f e s t . j s o n l d # t r 0 2 2 $ / ,
185+ / h t m l - m a n i f e s t # t r 0 0 1 $ / ,
186+ / h t m l - m a n i f e s t # t r 0 0 2 $ / ,
187+ / h t m l - m a n i f e s t # t r 0 0 3 $ / ,
188+ / h t m l - m a n i f e s t # t r 0 0 4 $ / ,
189+ / h t m l - m a n i f e s t # t r 0 0 5 $ / ,
190+ / h t m l - m a n i f e s t # t r 0 0 6 $ / ,
191+ / h t m l - m a n i f e s t # t r 0 0 7 $ / ,
192+ / h t m l - m a n i f e s t # t r 0 1 0 $ / ,
193+ / h t m l - m a n i f e s t # t r 0 1 1 $ / ,
194+ / h t m l - m a n i f e s t # t r 0 1 2 $ / ,
195+ / h t m l - m a n i f e s t # t r 0 1 3 $ / ,
196+ / h t m l - m a n i f e s t # t r 0 1 4 $ / ,
197+ / h t m l - m a n i f e s t # t r 0 1 5 $ / ,
198+ / h t m l - m a n i f e s t # t r 0 1 6 $ / ,
199+ / h t m l - m a n i f e s t # t r 0 1 7 $ / ,
200+ / h t m l - m a n i f e s t # t r 0 1 8 $ / ,
201+ / h t m l - m a n i f e s t # t r 0 1 9 $ / ,
202+ / h t m l - m a n i f e s t # t r 0 2 0 $ / ,
203+ / h t m l - m a n i f e s t # t r 0 2 1 $ / ,
204+ / h t m l - m a n i f e s t # t r 0 2 2 $ / ,
205205 // Invalid Statement
206- / t o R d f - m a n i f e s t . j s o n l d # t e 0 7 5 $ / ,
207- / t o R d f - m a n i f e s t . j s o n l d # t e 1 1 1 $ / ,
208- / t o R d f - m a n i f e s t . j s o n l d # t e 1 1 2 $ / ,
206+ / t o R d f - m a n i f e s t # t e 0 7 5 $ / ,
207+ / t o R d f - m a n i f e s t # t e 1 1 1 $ / ,
208+ / t o R d f - m a n i f e s t # t e 1 1 2 $ / ,
209209 // direction (compound-literal)
210- / t o R d f - m a n i f e s t . j s o n l d # t d i 1 1 $ / ,
211- / t o R d f - m a n i f e s t . j s o n l d # t d i 1 2 $ / ,
210+ / t o R d f - m a n i f e s t # t d i 1 1 $ / ,
211+ / t o R d f - m a n i f e s t # t d i 1 2 $ / ,
212212 ]
213213 } ,
214214 fn : 'toRDF' ,
@@ -387,7 +387,7 @@ function addTest(manifest, test, tests) {
387387 // expand @id and input base
388388 const test_id = test [ '@id' ] || test [ 'id' ] ;
389389 //var number = test_id.substr(2);
390- test [ '@id' ] = manifest . baseIri + basename ( manifest . filename ) + test_id ;
390+ test [ '@id' ] = manifest . baseIri + basename ( manifest . filename ) . replace ( '.jsonld' , '' ) + test_id ;
391391 test . base = manifest . baseIri + test . input ;
392392 test . manifest = manifest ;
393393 const description = test_id + ' ' + ( test . purpose || test . name ) ;
0 commit comments