@@ -1126,6 +1126,21 @@ describe('Parser', () => {
11261126 shouldParse ( '<d> <e> <<<<<a> <b> <c>>> <f> <g>>>.' ,
11271127 [ 'd' , 'e' , [ [ 'a' , 'b' , 'c' ] , 'f' , 'g' ] ] ) ) ;
11281128
1129+ it ( 'should not parse compound blank node inside quoted triple subject' ,
1130+ shouldNotParse ( '<< [ <x> <y> ] <a> <b> >> <c> <d>.' ,
1131+ 'Compound blank node expressions not permitted within quoted triple on line 1.'
1132+ ) ) ;
1133+
1134+ it ( 'should not parse compound blank node inside quoted triple predicate' ,
1135+ shouldNotParse ( '<< <a> [ <x> <y> ] <b> >> <c> <d>.' ,
1136+ 'Disallowed blank node as predicate on line 1.'
1137+ ) ) ;
1138+
1139+ it ( 'should not parse compound blank node inside quoted triple object' ,
1140+ shouldNotParse ( '<< <a> <b> [ <x> <y> ] >> <c> <d>.' ,
1141+ 'Compound blank node expressions not permitted within quoted triple on line 1.'
1142+ ) ) ;
1143+
11291144 it ( 'should not parse empty list inside quoted triple subject' ,
11301145 shouldNotParse ( '<< () <a> <b> >> <c> <d>.' ,
11311146 'Unexpected list inside quoted triple on line 1.'
@@ -1244,12 +1259,6 @@ describe('Parser', () => {
12441259 [ [ 'a' , 'b' , 'c' ] , 'd' , 'e' ] ,
12451260 [ [ 'a' , 'b' , 'c' ] , 'f' , 'g' ] ) ) ;
12461261
1247- // TODO: See if this is required by the spec tests
1248- // it('should parse an explicit triple with reified annotation containing punctuation',
1249- // shouldParse('<a> <b> <c> {| <d> <e> . |} .',
1250- // ['a', 'b', 'c'],
1251- // [['a', 'b', 'c'], 'd', 'e']));
1252-
12531262 it ( 'should parse an explicit triple with reified annotation in a named graph' ,
12541263 shouldParse ( '<G> { <a> <b> <c> {| <d> <e> |} . }' ,
12551264 [ 'a' , 'b' , 'c' , 'G' ] ,
0 commit comments