1# TriG tests
2## Distributed under both the W3C Test Suite License[1] and the W3C 3-
3## clause BSD License[2]. To contribute to a W3C Test Suite, see the
4## policies and contribution forms [3]
5##
6## 1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
7## 2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license
8## 3. http://www.w3.org/2004/10/27-testcases
9
10@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
12@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
13@prefix qt:     <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
14
15@prefix rdft:   <http://www.w3.org/ns/rdftest#> .
16
17<>  rdf:type mf:Manifest ;
18    mf:name "TriG tests" ;
19    mf:entries
20    (
21    # TriG specific tests
22    <#anonymous_blank_node_graph>
23    <#labeled_blank_node_graph>
24    <#alternating_iri_graphs>
25    <#alternating_bnode_graphs>
26    <#trig-syntax-bad-base-04>
27    <#trig-syntax-bad-base-05>
28    <#trig-syntax-bad-prefix-06>
29    <#trig-syntax-bad-prefix-07>
30    <#trig-syntax-struct-06>
31    <#trig-syntax-struct-07>
32    <#trig-syntax-minimal-whitespace-01>
33
34    # From Turtle tests
35    # atomic tests
36    <#IRI_subject>
37    <#IRI_with_four_digit_numeric_escape>
38    <#IRI_with_eight_digit_numeric_escape>
39    <#IRI_with_all_punctuation>
40    <#bareword_a_predicate>
41    <#old_style_prefix>
42    <#SPARQL_style_prefix>
43    <#prefixed_IRI_predicate>
44    <#prefixed_IRI_object>
45    <#prefix_only_IRI>
46    <#prefix_with_PN_CHARS_BASE_character_boundaries>
47    <#prefix_with_non_leading_extras>
48    <#default_namespace_IRI>
49    <#prefix_reassigned_and_used>
50    <#reserved_escaped_localName>
51    <#percent_escaped_localName>
52    <#HYPHEN_MINUS_in_localName>
53    <#underscore_in_localName>
54    <#localname_with_COLON>
55    <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries>
56    <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries>
57    <#localName_with_nfc_PN_CHARS_BASE_character_boundaries>
58    <#localName_with_leading_underscore>
59    <#localName_with_leading_digit>
60    <#localName_with_non_leading_extras>
61    <#old_style_base>
62    <#SPARQL_style_base>
63    <#labeled_blank_node_subject>
64    <#labeled_blank_node_object>
65    <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries>
66    <#labeled_blank_node_with_leading_underscore>
67    <#labeled_blank_node_with_leading_digit>
68    <#labeled_blank_node_with_non_leading_extras>
69    <#anonymous_blank_node_subject>
70    <#anonymous_blank_node_object>
71    <#sole_blankNodePropertyList>
72    <#blankNodePropertyList_as_subject>
73    <#blankNodePropertyList_as_object>
74    <#blankNodePropertyList_with_multiple_triples>
75    <#nested_blankNodePropertyLists>
76    <#blankNodePropertyList_containing_collection>
77    <#collection_subject>
78    <#collection_object>
79    <#empty_collection>
80    <#nested_collection>
81    <#first>
82    <#last>
83    <#LITERAL1>
84    <#LITERAL1_ascii_boundaries>
85    <#LITERAL1_with_UTF8_boundaries>
86    <#LITERAL1_all_controls>
87    <#LITERAL1_all_punctuation>
88    <#LITERAL_LONG1>
89    <#LITERAL_LONG1_ascii_boundaries>
90    <#LITERAL_LONG1_with_UTF8_boundaries>
91    <#LITERAL_LONG1_with_1_squote>
92    <#LITERAL_LONG1_with_2_squotes>
93    <#LITERAL2>
94    <#LITERAL2_ascii_boundaries>
95    <#LITERAL2_with_UTF8_boundaries>
96    <#LITERAL_LONG2>
97    <#LITERAL_LONG2_ascii_boundaries>
98    <#LITERAL_LONG2_with_UTF8_boundaries>
99    <#LITERAL_LONG2_with_1_squote>
100    <#LITERAL_LONG2_with_2_squotes>
101    <#literal_with_CHARACTER_TABULATION>
102    <#literal_with_BACKSPACE>
103    <#literal_with_LINE_FEED>
104    <#literal_with_CARRIAGE_RETURN>
105    <#literal_with_FORM_FEED>
106    <#literal_with_REVERSE_SOLIDUS>
107    <#literal_with_escaped_CHARACTER_TABULATION>
108    <#literal_with_escaped_BACKSPACE>
109    <#literal_with_escaped_LINE_FEED>
110    <#literal_with_escaped_CARRIAGE_RETURN>
111    <#literal_with_escaped_FORM_FEED>
112    <#literal_with_numeric_escape4>
113    <#literal_with_numeric_escape8>
114    <#IRIREF_datatype>
115    <#prefixed_name_datatype>
116    <#bareword_integer>
117    <#bareword_decimal>
118    <#bareword_double>
119    <#double_lower_case_e>
120    <#negative_numeric>
121    <#positive_numeric>
122    <#numeric_with_leading_0>
123    <#literal_true>
124    <#literal_false>
125    <#langtagged_non_LONG>
126    <#langtagged_LONG>
127    <#lantag_with_subtag>
128    <#objectList_with_two_objects>
129    <#predicateObjectList_with_two_objectLists>
130    <#repeated_semis_at_end>
131    <#repeated_semis_not_at_end>
132
133    # tests requested by Jeremy Carroll
134    # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35
135    <#comment_following_localName>
136    <#number_sign_following_localName>
137    <#comment_following_PNAME_NS>
138    <#number_sign_following_PNAME_NS>
139
140    # tests from Dave Beckett
141    # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28
142    <#LITERAL_LONG2_with_REVERSE_SOLIDUS>
143    <#trig-syntax-bad-LITERAL2_with_langtag_and_datatype>
144    <#two_LITERAL_LONG2s>
145    <#langtagged_LONG_with_subtag>
146
147    # original tests-ttl
148    <#trig-syntax-file-01>
149    <#trig-syntax-file-02>
150    <#trig-syntax-file-03>
151    <#trig-syntax-uri-01>
152    <#trig-syntax-uri-02>
153    <#trig-syntax-uri-03>
154    <#trig-syntax-uri-04>
155    <#trig-syntax-base-01>
156    <#trig-syntax-base-02>
157    <#trig-syntax-base-03>
158    <#trig-syntax-base-04>
159    <#trig-syntax-prefix-01>
160    <#trig-syntax-prefix-02>
161    <#trig-syntax-prefix-03>
162    <#trig-syntax-prefix-04>
163    <#trig-syntax-prefix-05>
164    <#trig-syntax-prefix-06>
165    <#trig-syntax-prefix-07>
166    <#trig-syntax-prefix-08>
167    <#trig-syntax-prefix-09>
168    <#trig-syntax-string-01>
169    <#trig-syntax-string-02>
170    <#trig-syntax-string-03>
171    <#trig-syntax-string-04>
172    <#trig-syntax-string-05>
173    <#trig-syntax-string-06>
174    <#trig-syntax-string-07>
175    <#trig-syntax-string-08>
176    <#trig-syntax-string-09>
177    <#trig-syntax-string-10>
178    <#trig-syntax-string-11>
179    <#trig-syntax-str-esc-01>
180    <#trig-syntax-str-esc-02>
181    <#trig-syntax-str-esc-03>
182    <#trig-syntax-pname-esc-01>
183    <#trig-syntax-pname-esc-02>
184    <#trig-syntax-pname-esc-03>
185    <#trig-syntax-bnode-01>
186    <#trig-syntax-bnode-02>
187    <#trig-syntax-bnode-03>
188    <#trig-syntax-bnode-04>
189    <#trig-syntax-bnode-05>
190    <#trig-syntax-bnode-06>
191    <#trig-syntax-bnode-07>
192    <#trig-syntax-bnode-08>
193    <#trig-syntax-bnode-09>
194    <#trig-syntax-bnode-10>
195    <#trig-syntax-number-01>
196    <#trig-syntax-number-02>
197    <#trig-syntax-number-03>
198    <#trig-syntax-number-04>
199    <#trig-syntax-number-05>
200    <#trig-syntax-number-06>
201    <#trig-syntax-number-07>
202    <#trig-syntax-number-08>
203    <#trig-syntax-number-09>
204    <#trig-syntax-number-10>
205    <#trig-syntax-number-11>
206    <#trig-syntax-datatypes-01>
207    <#trig-syntax-datatypes-02>
208    <#trig-syntax-kw-01>
209    <#trig-syntax-kw-02>
210    <#trig-syntax-kw-03>
211    <#trig-syntax-struct-01>
212    <#trig-syntax-struct-02>
213    <#trig-syntax-struct-03>
214    <#trig-syntax-struct-04>
215    <#trig-syntax-struct-05>
216    <#trig-syntax-lists-01>
217    <#trig-syntax-lists-02>
218    <#trig-syntax-lists-03>
219    <#trig-syntax-lists-04>
220    <#trig-syntax-lists-05>
221    <#trig-syntax-bad-uri-01>
222    <#trig-syntax-bad-uri-02>
223    <#trig-syntax-bad-uri-03>
224    <#trig-syntax-bad-uri-04>
225    <#trig-syntax-bad-uri-05>
226    <#trig-syntax-bad-prefix-01>
227    <#trig-syntax-bad-prefix-02>
228    <#trig-syntax-bad-prefix-03>
229    <#trig-syntax-bad-prefix-04>
230    <#trig-syntax-bad-prefix-05>
231    <#trig-syntax-bad-base-01>
232    <#trig-syntax-bad-base-02>
233    <#trig-syntax-bad-base-03>
234    <#trig-syntax-bad-struct-02>
235    <#trig-syntax-bad-struct-03>
236    <#trig-syntax-bad-struct-04>
237    <#trig-syntax-bad-struct-05>
238    <#trig-syntax-bad-struct-06>
239    <#trig-syntax-bad-struct-07>
240    <#trig-syntax-bad-kw-01>
241    <#trig-syntax-bad-kw-02>
242    <#trig-syntax-bad-kw-03>
243    <#trig-syntax-bad-kw-04>
244    <#trig-syntax-bad-kw-05>
245    <#trig-syntax-bad-n3-extras-01>
246    <#trig-syntax-bad-n3-extras-02>
247    <#trig-syntax-bad-n3-extras-03>
248    <#trig-syntax-bad-n3-extras-04>
249    <#trig-syntax-bad-n3-extras-05>
250    <#trig-syntax-bad-n3-extras-06>
251    <#trig-syntax-bad-n3-extras-07>
252    <#trig-syntax-bad-n3-extras-08>
253    <#trig-syntax-bad-n3-extras-09>
254    <#trig-syntax-bad-n3-extras-10>
255    <#trig-syntax-bad-n3-extras-11>
256    <#trig-syntax-bad-n3-extras-12>
257    <#trig-syntax-bad-n3-extras-13>
258    <#trig-syntax-bad-struct-09>
259    <#trig-syntax-bad-struct-10>
260    <#trig-syntax-bad-struct-12>
261    <#trig-syntax-bad-struct-13>
262    <#trig-syntax-bad-struct-14>
263    <#trig-syntax-bad-struct-15>
264    <#trig-syntax-bad-struct-16>
265    <#trig-syntax-bad-struct-17>
266    <#trig-syntax-bad-lang-01>
267    <#trig-syntax-bad-esc-01>
268    <#trig-syntax-bad-esc-02>
269    <#trig-syntax-bad-esc-03>
270    <#trig-syntax-bad-esc-04>
271    <#trig-syntax-bad-pname-01>
272    <#trig-syntax-bad-pname-02>
273    <#trig-syntax-bad-pname-03>
274    <#trig-syntax-bad-string-01>
275    <#trig-syntax-bad-string-02>
276    <#trig-syntax-bad-string-03>
277    <#trig-syntax-bad-string-04>
278    <#trig-syntax-bad-string-05>
279    <#trig-syntax-bad-string-06>
280    <#trig-syntax-bad-string-07>
281    <#trig-syntax-bad-num-01>
282    <#trig-syntax-bad-num-02>
283    <#trig-syntax-bad-num-03>
284    <#trig-syntax-bad-num-04>
285    <#trig-syntax-bad-num-05>
286    <#trig-eval-struct-01>
287    <#trig-eval-struct-02>
288    <#trig-subm-01>
289    <#trig-subm-02>
290    <#trig-subm-03>
291    <#trig-subm-04>
292    <#trig-subm-05>
293    <#trig-subm-06>
294    <#trig-subm-07>
295    <#trig-subm-08>
296    <#trig-subm-09>
297    <#trig-subm-10>
298    <#trig-subm-11>
299    <#trig-subm-12>
300    <#trig-subm-13>
301    <#trig-subm-14>
302    <#trig-subm-15>
303    <#trig-subm-16>
304    <#trig-subm-17>
305    <#trig-subm-18>
306    <#trig-subm-19>
307    <#trig-subm-20>
308    <#trig-subm-21>
309    <#trig-subm-22>
310    <#trig-subm-23>
311    <#trig-subm-24>
312    <#trig-subm-25>
313    <#trig-subm-26>
314    <#trig-subm-27>
315    <#trig-eval-bad-01>
316    <#trig-eval-bad-02>
317    <#trig-eval-bad-03>
318    <#trig-eval-bad-04>
319
320    # tests from David Robillard
321    # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21
322    <#trig-syntax-bad-blank-label-dot-end>
323    <#trig-syntax-bad-ln-dash-start>
324    <#trig-syntax-bad-ln-escape-start>
325    <#trig-syntax-bad-ln-escape>
326    <#trig-syntax-bad-missing-ns-dot-end>
327    <#trig-syntax-bad-missing-ns-dot-start>
328    <#trig-syntax-bad-ns-dot-end>
329    <#trig-syntax-bad-ns-dot-start>
330    <#trig-syntax-bad-number-dot-in-anon>
331    <#trig-syntax-bad-list-01>
332    <#trig-syntax-bad-list-02>
333    <#trig-syntax-bad-list-03>
334    <#trig-syntax-bad-list-04>
335
336    <#trig-syntax-blank-label>
337    <#trig-syntax-ln-colons>
338    <#trig-syntax-ln-dots>
339    <#trig-syntax-ns-dots>
340
341    # tests for bnode graph names, optional GRAPH keyword and
342    # triples outside {}
343      <#trig-kw-graph-01>
344      <#trig-kw-graph-02>
345      <#trig-kw-graph-03>
346      <#trig-kw-graph-04>
347      <#trig-kw-graph-05>
348
349      <#trig-kw-graph-06>
350      <#trig-kw-graph-07>
351      <#trig-kw-graph-08>
352      <#trig-kw-graph-09>
353
354      <#trig-kw-graph-10>
355
356      <#trig-graph-bad-01>
357      <#trig-graph-bad-02>
358      <#trig-graph-bad-03>
359      <#trig-graph-bad-04>
360      <#trig-graph-bad-05>
361
362      <#trig-graph-bad-06>
363      <#trig-graph-bad-07>
364      <#trig-graph-bad-08>
365      <#trig-graph-bad-09>
366
367      <#trig-graph-bad-10>
368      <#trig-graph-bad-11>
369
370      <#trig-bnodeplist-graph-01>
371
372      <#trig-collection-graph-01>
373      <#trig-collection-graph-02>
374
375      <#trig-turtle-01>
376      <#trig-turtle-02>
377      <#trig-turtle-03>
378      <#trig-turtle-04>
379      <#trig-turtle-05>
380
381      <#trig-turtle-06>
382
383      <#trig-turtle-bad-01>
384      <#trig-turtle-bad-02>
385
386      # Tests from N-Triples/N-Quads
387    ) .
388
389# TriG tests
390<#anonymous_blank_node_graph> rdf:type rdft:TestTrigEval ;
391   mf:name      "anonymous_blank_node_graph" ;
392   rdfs:comment "anonymous blank node graph" ;
393   rdft:approval rdft:Approved ;
394   mf:action    <anonymous_blank_node_graph.trig> ;
395   mf:result    <anonymous_blank_node_graph.nq> ;
396   .
397
398<#labeled_blank_node_graph> rdf:type rdft:TestTrigEval ;
399   mf:name      "labeled_blank_node_graph" ;
400   rdfs:comment "labeled blank node graph" ;
401   rdft:approval rdft:Approved ;
402   mf:action    <labeled_blank_node_graph.trig> ;
403   mf:result    <labeled_blank_node_graph.nq> ;
404   .
405<#alternating_iri_graphs> rdf:type rdft:TestTrigEval ;
406   mf:name      "alternating_iri_graphs" ;
407   rdfs:comment "alternating graphs with IRI names" ;
408   rdft:approval rdft:Approved ;
409   mf:action    <alternating_iri_graphs.trig> ;
410   mf:result    <alternating_iri_graphs.nq> ;
411   .
412
413<#alternating_bnode_graphs> rdf:type rdft:TestTrigEval ;
414   mf:name      "alternating_bnode_graphs" ;
415   rdfs:comment "alternating graphs with BNode names" ;
416   rdft:approval rdft:Approved ;
417   mf:action    <alternating_bnode_graphs.trig> ;
418   mf:result    <alternating_bnode_graphs.nq> ;
419   .
420
421<#trig-syntax-bad-base-04> rdf:type rdft:TestTrigNegativeSyntax ;
422   mf:name    "trig-syntax-bad-base-04" ;
423   rdfs:comment "@base inside graph (negative test)" ;
424   rdft:approval rdft:Approved ;
425   mf:action    <trig-syntax-bad-base-04.trig> ;
426   .
427
428<#trig-syntax-bad-base-05> rdf:type rdft:TestTrigNegativeSyntax ;
429   mf:name    "trig-syntax-bad-base-05" ;
430   rdfs:comment "BASE inside graph (negative test)" ;
431   rdft:approval rdft:Approved ;
432   mf:action    <trig-syntax-bad-base-05.trig> ;
433   .
434
435<#trig-syntax-bad-prefix-06> rdf:type rdft:TestTrigNegativeSyntax ;
436   mf:name    "trig-syntax-bad-prefix-06" ;
437   rdfs:comment "@prefix inside graph (negative test)" ;
438   rdft:approval rdft:Approved ;
439   mf:action    <trig-syntax-bad-prefix-06.trig> ;
440   .
441
442<#trig-syntax-bad-prefix-07> rdf:type rdft:TestTrigNegativeSyntax ;
443   mf:name    "trig-syntax-bad-prefix-07" ;
444   rdfs:comment "PREFIX inside graph (negative test)" ;
445   rdft:approval rdft:Approved ;
446   mf:action    <trig-syntax-bad-prefix-07.trig> ;
447   .
448
449<#trig-syntax-struct-06> rdf:type rdft:TestTrigPositiveSyntax ;
450   mf:name    "trig-syntax-struct-06" ;
451   rdfs:comment "missing '.'" ;
452   rdft:approval rdft:Approved ;
453   mf:action    <trig-syntax-struct-06.trig> ;
454   .
455
456<#trig-syntax-struct-07> rdf:type rdft:TestTrigPositiveSyntax ;
457   mf:name    "trig-syntax-struct-07" ;
458   rdfs:comment "trailing ';' no '.'" ;
459   rdft:approval rdft:Approved ;
460   mf:action    <trig-syntax-struct-07.trig> ;
461   .
462
463<#trig-syntax-minimal-whitespace-01> a rdft:TestTrigPositiveSyntax ;
464   mf:name      "trig-syntax-minimal-whitespace-01" ;
465   rdfs:comment "tests absense of whitespace in various positions" ;
466   rdft:approval rdft:Approved ;
467   mf:action    <trig-syntax-minimal-whitespace-01.trig> ;
468   .
469# Original Turtle tests
470# atomic tests
471<#IRI_subject> rdf:type rdft:TestTrigEval ;
472   mf:name      "IRI_subject" ;
473   rdfs:comment "IRI subject" ;
474   rdft:approval rdft:Approved ;
475   mf:action    <IRI_subject.trig> ;
476   mf:result    <IRI_spo.nq> ;
477   .
478
479<#IRI_with_four_digit_numeric_escape> rdf:type rdft:TestTrigEval ;
480   mf:name      "IRI_with_four_digit_numeric_escape" ;
481   rdfs:comment "IRI with four digit numeric escape (\\u)" ;
482   rdft:approval rdft:Approved ;
483   mf:action    <IRI_with_four_digit_numeric_escape.trig> ;
484   mf:result    <IRI_spo.nq> ;
485   .
486
487<#IRI_with_eight_digit_numeric_escape> rdf:type rdft:TestTrigEval ;
488   mf:name      "IRI_with_eight_digit_numeric_escape" ;
489   rdfs:comment "IRI with eight digit numeric escape (\\U)" ;
490   rdft:approval rdft:Approved ;
491   mf:action    <IRI_with_eight_digit_numeric_escape.trig> ;
492   mf:result    <IRI_spo.nq> ;
493   .
494
495<#IRI_with_all_punctuation> rdf:type rdft:TestTrigEval ;
496   mf:name      "IRI_with_all_punctuation" ;
497   rdfs:comment "IRI with all punctuation" ;
498   rdft:approval rdft:Approved ;
499   mf:action    <IRI_with_all_punctuation.trig> ;
500   mf:result    <IRI_with_all_punctuation.nq> ;
501   .
502
503<#bareword_a_predicate> rdf:type rdft:TestTrigEval ;
504   mf:name      "bareword_a_predicate" ;
505   rdfs:comment "bareword a predicate" ;
506   rdft:approval rdft:Approved ;
507   mf:action    <bareword_a_predicate.trig> ;
508   mf:result    <bareword_a_predicate.nq> ;
509   .
510
511<#old_style_prefix> rdf:type rdft:TestTrigEval ;
512   mf:name      "old_style_prefix" ;
513   rdfs:comment "old-style prefix" ;
514   rdft:approval rdft:Approved ;
515   mf:action    <old_style_prefix.trig> ;
516   mf:result    <IRI_spo.nq> ;
517   .
518
519<#SPARQL_style_prefix> rdf:type rdft:TestTrigEval ;
520   mf:name      "SPARQL_style_prefix" ;
521   rdfs:comment "SPARQL-style prefix" ;
522   rdft:approval rdft:Approved ;
523   mf:action    <SPARQL_style_prefix.trig> ;
524   mf:result    <IRI_spo.nq> ;
525   .
526
527<#prefixed_IRI_predicate> rdf:type rdft:TestTrigEval ;
528   mf:name      "prefixed_IRI_predicate" ;
529   rdfs:comment "prefixed IRI predicate" ;
530   rdft:approval rdft:Approved ;
531   mf:action    <prefixed_IRI_predicate.trig> ;
532   mf:result    <IRI_spo.nq> ;
533   .
534
535<#prefixed_IRI_object> rdf:type rdft:TestTrigEval ;
536   mf:name      "prefixed_IRI_object" ;
537   rdfs:comment "prefixed IRI object" ;
538   rdft:approval rdft:Approved ;
539   mf:action    <prefixed_IRI_object.trig> ;
540   mf:result    <IRI_spo.nq> ;
541   .
542
543<#prefix_only_IRI> rdf:type rdft:TestTrigEval ;
544   mf:name      "prefix_only_IRI" ;
545   rdfs:comment "prefix-only IRI (p:)" ;
546   rdft:approval rdft:Approved ;
547   mf:action    <prefix_only_IRI.trig> ;
548   mf:result    <IRI_spo.nq> ;
549   .
550
551<#prefix_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ;
552   mf:name      "prefix_with_PN_CHARS_BASE_character_boundaries" ;
553   rdfs:comment "prefix with PN CHARS BASE character boundaries (prefix: AZazÀÖØöø...:)" ;
554   rdft:approval rdft:Approved ;
555   mf:action    <prefix_with_PN_CHARS_BASE_character_boundaries.trig> ;
556   mf:result    <IRI_spo.nq> ;
557   .
558
559<#prefix_with_non_leading_extras> rdf:type rdft:TestTrigEval ;
560   mf:name      "prefix_with_non_leading_extras" ;
561   rdfs:comment "prefix with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
562   rdft:approval rdft:Approved ;
563   mf:action    <prefix_with_non_leading_extras.trig> ;
564   mf:result    <IRI_spo.nq> ;
565   .
566
567<#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ;
568   mf:name      "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries" ;
569   rdfs:comment "localName with assigned, NFC-normalized, basic-multilingual-plane PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
570   rdft:approval rdft:Approved ;
571   mf:action    <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.trig> ;
572   mf:result    <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nq> ;
573   .
574
575<#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ;
576   mf:name      "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries" ;
577   rdfs:comment "localName with assigned, NFC-normalized PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
578   rdft:approval rdft:Approved ;
579   mf:action    <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.trig> ;
580   mf:result    <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nq> ;
581   .
582
583<#localName_with_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ;
584   mf:name      "localName_with_nfc_PN_CHARS_BASE_character_boundaries" ;
585   rdfs:comment "localName with nfc-normalize PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
586   rdft:approval rdft:Approved ;
587   mf:action    <localName_with_nfc_PN_CHARS_BASE_character_boundaries.trig> ;
588   mf:result    <localName_with_nfc_PN_CHARS_BASE_character_boundaries.nq> ;
589   .
590
591<#default_namespace_IRI> rdf:type rdft:TestTrigEval ;
592   mf:name      "default_namespace_IRI" ;
593   rdfs:comment "default namespace IRI (:ln)" ;
594   rdft:approval rdft:Approved ;
595   mf:action    <default_namespace_IRI.trig> ;
596   mf:result    <IRI_spo.nq> ;
597   .
598
599<#prefix_reassigned_and_used> rdf:type rdft:TestTrigEval ;
600   mf:name      "prefix_reassigned_and_used" ;
601   rdfs:comment "prefix reassigned and used" ;
602   rdft:approval rdft:Approved ;
603   mf:action    <prefix_reassigned_and_used.trig> ;
604   mf:result    <prefix_reassigned_and_used.nq> ;
605   .
606
607<#reserved_escaped_localName> rdf:type rdft:TestTrigEval ;
608   mf:name      "reserved_escaped_localName" ;
609   rdfs:comment "reserved-escaped local name" ;
610   rdft:approval rdft:Approved ;
611   mf:action    <reserved_escaped_localName.trig> ;
612   mf:result    <reserved_escaped_localName.nq> ;
613   .
614
615<#percent_escaped_localName> rdf:type rdft:TestTrigEval ;
616   mf:name      "percent_escaped_localName" ;
617   rdfs:comment "percent-escaped local name" ;
618   rdft:approval rdft:Approved ;
619   mf:action    <percent_escaped_localName.trig> ;
620   mf:result    <percent_escaped_localName.nq> ;
621   .
622
623<#HYPHEN_MINUS_in_localName> rdf:type rdft:TestTrigEval ;
624   mf:name      "HYPHEN_MINUS_in_localName" ;
625   rdfs:comment "HYPHEN-MINUS in local name" ;
626   rdft:approval rdft:Approved ;
627   mf:action    <HYPHEN_MINUS_in_localName.trig> ;
628   mf:result    <HYPHEN_MINUS_in_localName.nq> ;
629   .
630
631<#underscore_in_localName> rdf:type rdft:TestTrigEval ;
632   mf:name      "underscore_in_localName" ;
633   rdfs:comment "underscore in local name" ;
634   rdft:approval rdft:Approved ;
635   mf:action    <underscore_in_localName.trig> ;
636   mf:result    <underscore_in_localName.nq> ;
637   .
638
639<#localname_with_COLON> rdf:type rdft:TestTrigEval ;
640   mf:name      "localname_with_COLON" ;
641   rdfs:comment "localname with COLON" ;
642   rdft:approval rdft:Approved ;
643   mf:action    <localname_with_COLON.trig> ;
644   mf:result    <localname_with_COLON.nq> ;
645   .
646
647<#localName_with_leading_underscore> rdf:type rdft:TestTrigEval ;
648   mf:name      "localName_with_leading_underscore" ;
649   rdfs:comment "localName with leading underscore (p:_)" ;
650   rdft:approval rdft:Approved ;
651   mf:action    <localName_with_leading_underscore.trig> ;
652   mf:result    <localName_with_leading_underscore.nq> ;
653   .
654
655<#localName_with_leading_digit> rdf:type rdft:TestTrigEval ;
656   mf:name      "localName_with_leading_digit" ;
657   rdfs:comment "localName with leading digit (p:_)" ;
658   rdft:approval rdft:Approved ;
659   mf:action    <localName_with_leading_digit.trig> ;
660   mf:result    <localName_with_leading_digit.nq> ;
661   .
662
663<#localName_with_non_leading_extras> rdf:type rdft:TestTrigEval ;
664   mf:name      "localName_with_non_leading_extras" ;
665   rdfs:comment "localName with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
666   rdft:approval rdft:Approved ;
667   mf:action    <localName_with_non_leading_extras.trig> ;
668   mf:result    <localName_with_non_leading_extras.nq> ;
669   .
670
671<#old_style_base> rdf:type rdft:TestTrigEval ;
672   mf:name      "old_style_base" ;
673   rdfs:comment "old-style base" ;
674   rdft:approval rdft:Approved ;
675   mf:action    <old_style_base.trig> ;
676   mf:result    <IRI_spo.nq> ;
677   .
678
679<#SPARQL_style_base> rdf:type rdft:TestTrigEval ;
680   mf:name      "SPARQL_style_base" ;
681   rdfs:comment "SPARQL-style base" ;
682   rdft:approval rdft:Approved ;
683   mf:action    <SPARQL_style_base.trig> ;
684   mf:result    <IRI_spo.nq> ;
685   .
686
687<#labeled_blank_node_subject> rdf:type rdft:TestTrigEval ;
688   mf:name      "labeled_blank_node_subject" ;
689   rdfs:comment "labeled blank node subject" ;
690   rdft:approval rdft:Approved ;
691   mf:action    <labeled_blank_node_subject.trig> ;
692   mf:result    <labeled_blank_node_subject.nq> ;
693   .
694
695<#labeled_blank_node_object> rdf:type rdft:TestTrigEval ;
696   mf:name      "labeled_blank_node_object" ;
697   rdfs:comment "labeled blank node object" ;
698   rdft:approval rdft:Approved ;
699   mf:action    <labeled_blank_node_object.trig> ;
700   mf:result    <labeled_blank_node_object.nq> ;
701   .
702
703<#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ;
704   mf:name      "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries" ;
705   rdfs:comment "labeled blank node with PN_CHARS_BASE character boundaries (_:AZazÀÖØöø...)" ;
706   rdft:approval rdft:Approved ;
707   mf:action    <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.trig> ;
708   mf:result    <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nq> ;
709   .
710
711<#labeled_blank_node_with_leading_underscore> rdf:type rdft:TestTrigEval ;
712   mf:name      "labeled_blank_node_with_leading_underscore" ;
713   rdfs:comment "labeled blank node with_leading_underscore (_:_)" ;
714   rdft:approval rdft:Approved ;
715   mf:action    <labeled_blank_node_with_leading_underscore.trig> ;
716   mf:result    <labeled_blank_node_with_leading_underscore.nq> ;
717   .
718
719<#labeled_blank_node_with_leading_digit> rdf:type rdft:TestTrigEval ;
720   mf:name      "labeled_blank_node_with_leading_digit" ;
721   rdfs:comment "labeled blank node with_leading_digit (_:0)" ;
722   rdft:approval rdft:Approved ;
723   mf:action    <labeled_blank_node_with_leading_digit.trig> ;
724   mf:result    <labeled_blank_node_with_leading_digit.nq> ;
725   .
726
727<#labeled_blank_node_with_non_leading_extras> rdf:type rdft:TestTrigEval ;
728   mf:name      "labeled_blank_node_with_non_leading_extras" ;
729   rdfs:comment "labeled blank node with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
730   rdft:approval rdft:Approved ;
731   mf:action    <labeled_blank_node_with_non_leading_extras.trig> ;
732   mf:result    <labeled_blank_node_with_non_leading_extras.nq> ;
733   .
734
735<#anonymous_blank_node_subject> rdf:type rdft:TestTrigEval ;
736   mf:name      "anonymous_blank_node_subject" ;
737   rdfs:comment "anonymous blank node subject" ;
738   rdft:approval rdft:Approved ;
739   mf:action    <anonymous_blank_node_subject.trig> ;
740   mf:result    <anonymous_blank_node_subject.nq> ;
741   .
742
743<#anonymous_blank_node_object> rdf:type rdft:TestTrigEval ;
744   mf:name      "anonymous_blank_node_object" ;
745   rdfs:comment "anonymous blank node object" ;
746   rdft:approval rdft:Approved ;
747   mf:action    <anonymous_blank_node_object.trig> ;
748   mf:result    <anonymous_blank_node_object.nq> ;
749   .
750
751<#sole_blankNodePropertyList> rdf:type rdft:TestTrigEval ;
752   mf:name      "sole_blankNodePropertyList" ;
753   rdfs:comment "sole blankNodePropertyList [ <p> <o> ] ." ;
754   rdft:approval rdft:Approved ;
755   mf:action    <sole_blankNodePropertyList.trig> ;
756   mf:result    <sole_blankNodePropertyList.nq> ;
757   .
758
759<#blankNodePropertyList_as_subject> rdf:type rdft:TestTrigEval ;
760   mf:name      "blankNodePropertyList_as_subject" ;
761   rdfs:comment "blankNodePropertyList as subject [ … ] <p> <o> ." ;
762   rdft:approval rdft:Approved ;
763   mf:action    <blankNodePropertyList_as_subject.trig> ;
764   mf:result    <blankNodePropertyList_as_subject.nq> ;
765   .
766
767<#blankNodePropertyList_as_object> rdf:type rdft:TestTrigEval ;
768   mf:name      "blankNodePropertyList_as_object" ;
769   rdfs:comment "blankNodePropertyList as object <s> <p> [ … ] ." ;
770   rdft:approval rdft:Approved ;
771   mf:action    <blankNodePropertyList_as_object.trig> ;
772   mf:result    <blankNodePropertyList_as_object.nq> ;
773   .
774
775<#blankNodePropertyList_with_multiple_triples> rdf:type rdft:TestTrigEval ;
776   mf:name      "blankNodePropertyList_with_multiple_triples" ;
777   rdfs:comment "blankNodePropertyList with multiple triples [ <s> <p> ; <s2> <p2> ]" ;
778   rdft:approval rdft:Approved ;
779   mf:action    <blankNodePropertyList_with_multiple_triples.trig> ;
780   mf:result    <blankNodePropertyList_with_multiple_triples.nq> ;
781   .
782
783<#nested_blankNodePropertyLists> rdf:type rdft:TestTrigEval ;
784   mf:name      "nested_blankNodePropertyLists" ;
785   rdfs:comment "nested blankNodePropertyLists [ <p1> [ <p2> <o2> ] ; <p3> <o3> ]" ;
786   rdft:approval rdft:Approved ;
787   mf:action    <nested_blankNodePropertyLists.trig> ;
788   mf:result    <nested_blankNodePropertyLists.nq> ;
789   .
790
791<#blankNodePropertyList_containing_collection> rdf:type rdft:TestTrigEval ;
792   mf:name      "blankNodePropertyList_containing_collection" ;
793   rdfs:comment "blankNodePropertyList containing collection [ <p1> ( … ) ]" ;
794   rdft:approval rdft:Approved ;
795   mf:action    <blankNodePropertyList_containing_collection.trig> ;
796   mf:result    <blankNodePropertyList_containing_collection.nq> ;
797   .
798
799<#collection_subject> rdf:type rdft:TestTrigEval ;
800   mf:name      "collection_subject" ;
801   rdfs:comment "collection subject" ;
802   rdft:approval rdft:Approved ;
803   mf:action    <collection_subject.trig> ;
804   mf:result    <collection_subject.nq> ;
805   .
806
807<#collection_object> rdf:type rdft:TestTrigEval ;
808   mf:name      "collection_object" ;
809   rdfs:comment "collection object" ;
810   rdft:approval rdft:Approved ;
811   mf:action    <collection_object.trig> ;
812   mf:result    <collection_object.nq> ;
813   .
814
815<#empty_collection> rdf:type rdft:TestTrigEval ;
816   mf:name      "empty_collection" ;
817   rdfs:comment "empty collection ()" ;
818   rdft:approval rdft:Approved ;
819   mf:action    <empty_collection.trig> ;
820   mf:result    <empty_collection.nq> ;
821   .
822
823<#nested_collection> rdf:type rdft:TestTrigEval ;
824   mf:name      "nested_collection" ;
825   rdfs:comment "nested collection (())" ;
826   rdft:approval rdft:Approved ;
827   mf:action    <nested_collection.trig> ;
828   mf:result    <nested_collection.nq> ;
829   .
830
831<#first> rdf:type rdft:TestTrigEval ;
832   mf:name      "first" ;
833   rdfs:comment "first, not last, non-empty nested collection" ;
834   rdft:approval rdft:Approved ;
835   mf:action    <first.trig> ;
836   mf:result    <first.nq> ;
837   .
838
839<#last> rdf:type rdft:TestTrigEval ;
840   mf:name      "last" ;
841   rdfs:comment "last, not first, non-empty nested collection" ;
842   rdft:approval rdft:Approved ;
843   mf:action    <last.trig> ;
844   mf:result    <last.nq> ;
845   .
846
847<#LITERAL1> rdf:type rdft:TestTrigEval ;
848   mf:name      "LITERAL1" ;
849   rdfs:comment "LITERAL1 'x'" ;
850   rdft:approval rdft:Approved ;
851   mf:action    <LITERAL1.trig> ;
852   mf:result    <LITERAL1.nq> ;
853   .
854
855<#LITERAL1_ascii_boundaries> rdf:type rdft:TestTrigEval ;
856   mf:name      "LITERAL1_ascii_boundaries" ;
857   rdfs:comment "LITERAL1_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x26\\x28...'" ;
858   rdft:approval rdft:Approved ;
859   mf:action    <LITERAL1_ascii_boundaries.trig> ;
860   mf:result    <LITERAL1_ascii_boundaries.nq> ;
861   .
862
863<#LITERAL1_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ;
864   mf:name      "LITERAL1_with_UTF8_boundaries" ;
865   rdfs:comment "LITERAL1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
866   rdft:approval rdft:Approved ;
867   mf:action    <LITERAL1_with_UTF8_boundaries.trig> ;
868   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
869   .
870
871<#LITERAL1_all_controls> rdf:type rdft:TestTrigEval ;
872   mf:name      "LITERAL1_all_controls" ;
873   rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ;
874   rdft:approval rdft:Approved ;
875   mf:action    <LITERAL1_all_controls.trig> ;
876   mf:result    <LITERAL1_all_controls.nq> ;
877   .
878
879<#LITERAL1_all_punctuation> rdf:type rdft:TestTrigEval ;
880   mf:name      "LITERAL1_all_punctuation" ;
881   rdfs:comment "LITERAL1_all_punctuation '!\"#$%&()...'" ;
882   rdft:approval rdft:Approved ;
883   mf:action    <LITERAL1_all_punctuation.trig> ;
884   mf:result    <LITERAL1_all_punctuation.nq> ;
885   .
886
887<#LITERAL_LONG1> rdf:type rdft:TestTrigEval ;
888   mf:name      "LITERAL_LONG1" ;
889   rdfs:comment "LITERAL_LONG1 '''x'''" ;
890   rdft:approval rdft:Approved ;
891   mf:action    <LITERAL_LONG1.trig> ;
892   mf:result    <LITERAL1.nq> ;
893   .
894
895<#LITERAL_LONG1_ascii_boundaries> rdf:type rdft:TestTrigEval ;
896   mf:name      "LITERAL_LONG1_ascii_boundaries" ;
897   rdfs:comment "LITERAL_LONG1_ascii_boundaries '\\x00\\x26\\x28...'" ;
898   rdft:approval rdft:Approved ;
899   mf:action    <LITERAL_LONG1_ascii_boundaries.trig> ;
900   mf:result    <LITERAL_LONG1_ascii_boundaries.nq> ;
901   .
902
903<#LITERAL_LONG1_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ;
904   mf:name      "LITERAL_LONG1_with_UTF8_boundaries" ;
905   rdfs:comment "LITERAL_LONG1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
906   rdft:approval rdft:Approved ;
907   mf:action    <LITERAL_LONG1_with_UTF8_boundaries.trig> ;
908   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
909   .
910
911<#LITERAL_LONG1_with_1_squote> rdf:type rdft:TestTrigEval ;
912   mf:name      "LITERAL_LONG1_with_1_squote" ;
913   rdfs:comment "LITERAL_LONG1 with 1 squote '''a'b'''" ;
914   rdft:approval rdft:Approved ;
915   mf:action    <LITERAL_LONG1_with_1_squote.trig> ;
916   mf:result    <LITERAL_LONG1_with_1_squote.nq> ;
917   .
918
919<#LITERAL_LONG1_with_2_squotes> rdf:type rdft:TestTrigEval ;
920   mf:name      "LITERAL_LONG1_with_2_squotes" ;
921   rdfs:comment "LITERAL_LONG1 with 2 squotes '''a''b'''" ;
922   rdft:approval rdft:Approved ;
923   mf:action    <LITERAL_LONG1_with_2_squotes.trig> ;
924   mf:result    <LITERAL_LONG1_with_2_squotes.nq> ;
925   .
926
927<#LITERAL2> rdf:type rdft:TestTrigEval ;
928   mf:name      "LITERAL2" ;
929   rdfs:comment "LITERAL2 \"x\"" ;
930   rdft:approval rdft:Approved ;
931   mf:action    <LITERAL2.trig> ;
932   mf:result    <LITERAL1.nq> ;
933   .
934
935<#LITERAL2_ascii_boundaries> rdf:type rdft:TestTrigEval ;
936   mf:name      "LITERAL2_ascii_boundaries" ;
937   rdfs:comment "LITERAL2_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x21\\x23...'" ;
938   rdft:approval rdft:Approved ;
939   mf:action    <LITERAL2_ascii_boundaries.trig> ;
940   mf:result    <LITERAL2_ascii_boundaries.nq> ;
941   .
942
943<#LITERAL2_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ;
944   mf:name      "LITERAL2_with_UTF8_boundaries" ;
945   rdfs:comment "LITERAL2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
946   rdft:approval rdft:Approved ;
947   mf:action    <LITERAL2_with_UTF8_boundaries.trig> ;
948   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
949   .
950
951<#LITERAL_LONG2> rdf:type rdft:TestTrigEval ;
952   mf:name      "LITERAL_LONG2" ;
953   rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ;
954   rdft:approval rdft:Approved ;
955   mf:action    <LITERAL_LONG2.trig> ;
956   mf:result    <LITERAL1.nq> ;
957   .
958
959<#LITERAL_LONG2_ascii_boundaries> rdf:type rdft:TestTrigEval ;
960   mf:name      "LITERAL_LONG2_ascii_boundaries" ;
961   rdfs:comment "LITERAL_LONG2_ascii_boundaries '\\x00\\x21\\x23...'" ;
962   rdft:approval rdft:Approved ;
963   mf:action    <LITERAL_LONG2_ascii_boundaries.trig> ;
964   mf:result    <LITERAL_LONG2_ascii_boundaries.nq> ;
965   .
966
967<#LITERAL_LONG2_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ;
968   mf:name      "LITERAL_LONG2_with_UTF8_boundaries" ;
969   rdfs:comment "LITERAL_LONG2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
970   rdft:approval rdft:Approved ;
971   mf:action    <LITERAL_LONG2_with_UTF8_boundaries.trig> ;
972   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
973   .
974
975<#LITERAL_LONG2_with_1_squote> rdf:type rdft:TestTrigEval ;
976   mf:name      "LITERAL_LONG2_with_1_squote" ;
977   rdfs:comment "LITERAL_LONG2 with 1 squote \"\"\"a\"b\"\"\"" ;
978   rdft:approval rdft:Approved ;
979   mf:action    <LITERAL_LONG2_with_1_squote.trig> ;
980   mf:result    <LITERAL_LONG2_with_1_squote.nq> ;
981   .
982
983<#LITERAL_LONG2_with_2_squotes> rdf:type rdft:TestTrigEval ;
984   mf:name      "LITERAL_LONG2_with_2_squotes" ;
985   rdfs:comment "LITERAL_LONG2 with 2 squotes \"\"\"a\"\"b\"\"\"" ;
986   rdft:approval rdft:Approved ;
987   mf:action    <LITERAL_LONG2_with_2_squotes.trig> ;
988   mf:result    <LITERAL_LONG2_with_2_squotes.nq> ;
989   .
990
991<#literal_with_CHARACTER_TABULATION> rdf:type rdft:TestTrigEval ;
992   mf:name      "literal_with_CHARACTER_TABULATION" ;
993   rdfs:comment "literal with CHARACTER TABULATION" ;
994   rdft:approval rdft:Approved ;
995   mf:action    <literal_with_CHARACTER_TABULATION.trig> ;
996   mf:result    <literal_with_CHARACTER_TABULATION.nq> ;
997   .
998
999<#literal_with_BACKSPACE> rdf:type rdft:TestTrigEval ;
1000   mf:name      "literal_with_BACKSPACE" ;
1001   rdfs:comment "literal with BACKSPACE" ;
1002   rdft:approval rdft:Approved ;
1003   mf:action    <literal_with_BACKSPACE.trig> ;
1004   mf:result    <literal_with_BACKSPACE.nq> ;
1005   .
1006
1007<#literal_with_LINE_FEED> rdf:type rdft:TestTrigEval ;
1008   mf:name      "literal_with_LINE_FEED" ;
1009   rdfs:comment "literal with LINE FEED" ;
1010   rdft:approval rdft:Approved ;
1011   mf:action    <literal_with_LINE_FEED.trig> ;
1012   mf:result    <literal_with_LINE_FEED.nq> ;
1013   .
1014
1015<#literal_with_CARRIAGE_RETURN> rdf:type rdft:TestTrigEval ;
1016   mf:name      "literal_with_CARRIAGE_RETURN" ;
1017   rdfs:comment "literal with CARRIAGE RETURN" ;
1018   rdft:approval rdft:Approved ;
1019   mf:action    <literal_with_CARRIAGE_RETURN.trig> ;
1020   mf:result    <literal_with_CARRIAGE_RETURN.nq> ;
1021   .
1022
1023<#literal_with_FORM_FEED> rdf:type rdft:TestTrigEval ;
1024   mf:name      "literal_with_FORM_FEED" ;
1025   rdfs:comment "literal with FORM FEED" ;
1026   rdft:approval rdft:Approved ;
1027   mf:action    <literal_with_FORM_FEED.trig> ;
1028   mf:result    <literal_with_FORM_FEED.nq> ;
1029   .
1030
1031<#literal_with_REVERSE_SOLIDUS> rdf:type rdft:TestTrigEval ;
1032   mf:name      "literal_with_REVERSE_SOLIDUS" ;
1033   rdfs:comment "literal with REVERSE SOLIDUS" ;
1034   rdft:approval rdft:Approved ;
1035   mf:action    <literal_with_REVERSE_SOLIDUS.trig> ;
1036   mf:result    <literal_with_REVERSE_SOLIDUS.nq> ;
1037   .
1038
1039<#literal_with_escaped_CHARACTER_TABULATION> rdf:type rdft:TestTrigEval ;
1040   mf:name      "literal_with_escaped_CHARACTER_TABULATION" ;
1041   rdfs:comment "literal with escaped CHARACTER TABULATION" ;
1042   rdft:approval rdft:Approved ;
1043   mf:action    <literal_with_escaped_CHARACTER_TABULATION.trig> ;
1044   mf:result    <literal_with_CHARACTER_TABULATION.nq> ;
1045   .
1046
1047<#literal_with_escaped_BACKSPACE> rdf:type rdft:TestTrigEval ;
1048   mf:name      "literal_with_escaped_BACKSPACE" ;
1049   rdfs:comment "literal with escaped BACKSPACE" ;
1050   rdft:approval rdft:Approved ;
1051   mf:action    <literal_with_escaped_BACKSPACE.trig> ;
1052   mf:result    <literal_with_BACKSPACE.nq> ;
1053   .
1054
1055<#literal_with_escaped_LINE_FEED> rdf:type rdft:TestTrigEval ;
1056   mf:name      "literal_with_escaped_LINE_FEED" ;
1057   rdfs:comment "literal with escaped LINE FEED" ;
1058   rdft:approval rdft:Approved ;
1059   mf:action    <literal_with_escaped_LINE_FEED.trig> ;
1060   mf:result    <literal_with_LINE_FEED.nq> ;
1061   .
1062
1063<#literal_with_escaped_CARRIAGE_RETURN> rdf:type rdft:TestTrigEval ;
1064   mf:name      "literal_with_escaped_CARRIAGE_RETURN" ;
1065   rdfs:comment "literal with escaped CARRIAGE RETURN" ;
1066   rdft:approval rdft:Approved ;
1067   mf:action    <literal_with_escaped_CARRIAGE_RETURN.trig> ;
1068   mf:result    <literal_with_CARRIAGE_RETURN.nq> ;
1069   .
1070
1071<#literal_with_escaped_FORM_FEED> rdf:type rdft:TestTrigEval ;
1072   mf:name      "literal_with_escaped_FORM_FEED" ;
1073   rdfs:comment "literal with escaped FORM FEED" ;
1074   rdft:approval rdft:Approved ;
1075   mf:action    <literal_with_escaped_FORM_FEED.trig> ;
1076   mf:result    <literal_with_FORM_FEED.nq> ;
1077   .
1078
1079<#literal_with_numeric_escape4> rdf:type rdft:TestTrigEval ;
1080   mf:name      "literal_with_numeric_escape4" ;
1081   rdfs:comment "literal with numeric escape4 \\u" ;
1082   rdft:approval rdft:Approved ;
1083   mf:action    <literal_with_numeric_escape4.trig> ;
1084   mf:result    <literal_with_numeric_escape4.nq> ;
1085   .
1086
1087<#literal_with_numeric_escape8> rdf:type rdft:TestTrigEval ;
1088   mf:name      "literal_with_numeric_escape8" ;
1089   rdfs:comment "literal with numeric escape8 \\U" ;
1090   rdft:approval rdft:Approved ;
1091   mf:action    <literal_with_numeric_escape8.trig> ;
1092   mf:result    <literal_with_numeric_escape4.nq> ;
1093   .
1094
1095<#IRIREF_datatype> rdf:type rdft:TestTrigEval ;
1096   mf:name      "IRIREF_datatype" ;
1097   rdfs:comment "IRIREF datatype \"\"^^<t>" ;
1098   rdft:approval rdft:Approved ;
1099   mf:action    <IRIREF_datatype.trig> ;
1100   mf:result    <IRIREF_datatype.nq> ;
1101   .
1102
1103<#prefixed_name_datatype> rdf:type rdft:TestTrigEval ;
1104   mf:name      "prefixed_name_datatype" ;
1105   rdfs:comment "prefixed name datatype \"\"^^p:t" ;
1106   rdft:approval rdft:Approved ;
1107   mf:action    <prefixed_name_datatype.trig> ;
1108   mf:result    <IRIREF_datatype.nq> ;
1109   .
1110
1111<#bareword_integer> rdf:type rdft:TestTrigEval ;
1112   mf:name      "bareword_integer" ;
1113   rdfs:comment "bareword integer" ;
1114   rdft:approval rdft:Approved ;
1115   mf:action    <bareword_integer.trig> ;
1116   mf:result    <IRIREF_datatype.nq> ;
1117   .
1118
1119<#bareword_decimal> rdf:type rdft:TestTrigEval ;
1120   mf:name      "bareword_decimal" ;
1121   rdfs:comment "bareword decimal" ;
1122   rdft:approval rdft:Approved ;
1123   mf:action    <bareword_decimal.trig> ;
1124   mf:result    <bareword_decimal.nq> ;
1125   .
1126
1127<#bareword_double> rdf:type rdft:TestTrigEval ;
1128   mf:name      "bareword_double" ;
1129   rdfs:comment "bareword double" ;
1130   rdft:approval rdft:Approved ;
1131   mf:action    <bareword_double.trig> ;
1132   mf:result    <bareword_double.nq> ;
1133   .
1134
1135<#double_lower_case_e> rdf:type rdft:TestTrigEval ;
1136   mf:name      "double_lower_case_e" ;
1137   rdfs:comment "double lower case e" ;
1138   rdft:approval rdft:Approved ;
1139   mf:action    <double_lower_case_e.trig> ;
1140   mf:result    <double_lower_case_e.nq> ;
1141   .
1142
1143<#negative_numeric> rdf:type rdft:TestTrigEval ;
1144   mf:name      "negative_numeric" ;
1145   rdfs:comment "negative numeric" ;
1146   rdft:approval rdft:Approved ;
1147   mf:action    <negative_numeric.trig> ;
1148   mf:result    <negative_numeric.nq> ;
1149   .
1150
1151<#positive_numeric> rdf:type rdft:TestTrigEval ;
1152   mf:name      "positive_numeric" ;
1153   rdfs:comment "positive numeric" ;
1154   rdft:approval rdft:Approved ;
1155   mf:action    <positive_numeric.trig> ;
1156   mf:result    <positive_numeric.nq> ;
1157   .
1158
1159<#numeric_with_leading_0> rdf:type rdft:TestTrigEval ;
1160   mf:name      "numeric_with_leading_0" ;
1161   rdfs:comment "numeric with leading 0" ;
1162   rdft:approval rdft:Approved ;
1163   mf:action    <numeric_with_leading_0.trig> ;
1164   mf:result    <numeric_with_leading_0.nq> ;
1165   .
1166
1167<#literal_true> rdf:type rdft:TestTrigEval ;
1168   mf:name      "literal_true" ;
1169   rdfs:comment "literal true" ;
1170   rdft:approval rdft:Approved ;
1171   mf:action    <literal_true.trig> ;
1172   mf:result    <literal_true.nq> ;
1173   .
1174
1175<#literal_false> rdf:type rdft:TestTrigEval ;
1176   mf:name      "literal_false" ;
1177   rdfs:comment "literal false" ;
1178   rdft:approval rdft:Approved ;
1179   mf:action    <literal_false.trig> ;
1180   mf:result    <literal_false.nq> ;
1181   .
1182
1183<#langtagged_non_LONG> rdf:type rdft:TestTrigEval ;
1184   mf:name      "langtagged_non_LONG" ;
1185   rdfs:comment "langtagged non-LONG \"x\"@en" ;
1186   rdft:approval rdft:Approved ;
1187   mf:action    <langtagged_non_LONG.trig> ;
1188   mf:result    <langtagged_non_LONG.nq> ;
1189   .
1190
1191<#langtagged_LONG> rdf:type rdft:TestTrigEval ;
1192   mf:name      "langtagged_LONG" ;
1193   rdfs:comment "langtagged LONG \"\"\"x\"\"\"@en" ;
1194   rdft:approval rdft:Approved ;
1195   mf:action    <langtagged_LONG.trig> ;
1196   mf:result    <langtagged_non_LONG.nq> ;
1197   .
1198
1199<#lantag_with_subtag> rdf:type rdft:TestTrigEval ;
1200   mf:name      "lantag_with_subtag" ;
1201   rdfs:comment "lantag with subtag \"x\"@en-us" ;
1202   rdft:approval rdft:Approved ;
1203   mf:action    <lantag_with_subtag.trig> ;
1204   mf:result    <lantag_with_subtag.nq> ;
1205   .
1206
1207<#objectList_with_two_objects> rdf:type rdft:TestTrigEval ;
1208   mf:name      "objectList_with_two_objects" ;
1209   rdfs:comment "objectList with two objects … <o1>,<o2>" ;
1210   rdft:approval rdft:Approved ;
1211   mf:action    <objectList_with_two_objects.trig> ;
1212   mf:result    <objectList_with_two_objects.nq> ;
1213   .
1214
1215<#predicateObjectList_with_two_objectLists> rdf:type rdft:TestTrigEval ;
1216   mf:name      "predicateObjectList_with_two_objectLists" ;
1217   rdfs:comment "predicateObjectList with two objectLists … <o1>,<o2>" ;
1218   rdft:approval rdft:Approved ;
1219   mf:action    <predicateObjectList_with_two_objectLists.trig> ;
1220   mf:result    <predicateObjectList_with_two_objectLists.nq> ;
1221   .
1222
1223<#repeated_semis_at_end> rdf:type rdft:TestTrigEval ;
1224   mf:name      "repeated_semis_at_end" ;
1225   rdfs:comment "repeated semis at end <s> <p> <o> ;; <p2> <o2> ." ;
1226   rdft:approval rdft:Approved ;
1227   mf:action    <repeated_semis_at_end.trig> ;
1228   mf:result    <predicateObjectList_with_two_objectLists.nq> ;
1229   .
1230
1231<#repeated_semis_not_at_end> rdf:type rdft:TestTrigEval ;
1232   mf:name      "repeated_semis_not_at_end" ;
1233   rdfs:comment "repeated semis not at end <s> <p> <o> ;;." ;
1234   rdft:approval rdft:Approved ;
1235   mf:action    <repeated_semis_not_at_end.trig> ;
1236   mf:result    <repeated_semis_not_at_end.nq> ;
1237   .
1238
1239# original tests-ttl
1240<#trig-syntax-file-01> rdf:type rdft:TestTrigPositiveSyntax ;
1241   mf:name    "trig-syntax-file-01" ;
1242   rdfs:comment "Empty file" ;
1243   rdft:approval rdft:Approved ;
1244   mf:action    <trig-syntax-file-01.trig> ;
1245   .
1246
1247<#trig-syntax-file-02> rdf:type rdft:TestTrigPositiveSyntax ;
1248   mf:name    "trig-syntax-file-02" ;
1249   rdfs:comment "Only comment" ;
1250   rdft:approval rdft:Approved ;
1251   mf:action    <trig-syntax-file-02.trig> ;
1252   .
1253
1254<#trig-syntax-file-03> rdf:type rdft:TestTrigPositiveSyntax ;
1255   mf:name    "trig-syntax-file-03" ;
1256   rdfs:comment "One comment, one empty line" ;
1257   rdft:approval rdft:Approved ;
1258   mf:action    <trig-syntax-file-03.trig> ;
1259   .
1260
1261<#trig-syntax-uri-01> rdf:type rdft:TestTrigPositiveSyntax ;
1262   mf:name    "trig-syntax-uri-01" ;
1263   rdfs:comment "Only IRIs" ;
1264   rdft:approval rdft:Approved ;
1265   mf:action    <trig-syntax-uri-01.trig> ;
1266   .
1267
1268<#trig-syntax-uri-02> rdf:type rdft:TestTrigPositiveSyntax ;
1269   mf:name    "trig-syntax-uri-02" ;
1270   rdfs:comment "IRIs with Unicode escape" ;
1271   rdft:approval rdft:Approved ;
1272   mf:action    <trig-syntax-uri-02.trig> ;
1273   .
1274
1275<#trig-syntax-uri-03> rdf:type rdft:TestTrigPositiveSyntax ;
1276   mf:name    "trig-syntax-uri-03" ;
1277   rdfs:comment "IRIs with long Unicode escape" ;
1278   rdft:approval rdft:Approved ;
1279   mf:action    <trig-syntax-uri-03.trig> ;
1280   .
1281
1282<#trig-syntax-uri-04> rdf:type rdft:TestTrigPositiveSyntax ;
1283   mf:name    "trig-syntax-uri-04" ;
1284   rdfs:comment "Legal IRIs" ;
1285   rdft:approval rdft:Approved ;
1286   mf:action    <trig-syntax-uri-04.trig> ;
1287   .
1288
1289<#trig-syntax-base-01> rdf:type rdft:TestTrigPositiveSyntax ;
1290   mf:name    "trig-syntax-base-01" ;
1291   rdfs:comment "@base" ;
1292   rdft:approval rdft:Approved ;
1293   mf:action    <trig-syntax-base-01.trig> ;
1294   .
1295
1296<#trig-syntax-base-02> rdf:type rdft:TestTrigPositiveSyntax ;
1297   mf:name    "trig-syntax-base-02" ;
1298   rdfs:comment "BASE" ;
1299   rdft:approval rdft:Approved ;
1300   mf:action    <trig-syntax-base-02.trig> ;
1301   .
1302
1303<#trig-syntax-base-03> rdf:type rdft:TestTrigPositiveSyntax ;
1304   mf:name    "trig-syntax-base-03" ;
1305   rdfs:comment "@base with relative IRIs" ;
1306   rdft:approval rdft:Approved ;
1307   mf:action    <trig-syntax-base-03.trig> ;
1308   .
1309
1310<#trig-syntax-base-04> rdf:type rdft:TestTrigPositiveSyntax ;
1311   mf:name    "trig-syntax-base-04" ;
1312   rdfs:comment "base with relative IRIs" ;
1313   rdft:approval rdft:Approved ;
1314   mf:action    <trig-syntax-base-04.trig> ;
1315   .
1316
1317<#trig-syntax-prefix-01> rdf:type rdft:TestTrigPositiveSyntax ;
1318   mf:name    "trig-syntax-prefix-01" ;
1319   rdfs:comment "@prefix" ;
1320   rdft:approval rdft:Approved ;
1321   mf:action    <trig-syntax-prefix-01.trig> ;
1322   .
1323
1324<#trig-syntax-prefix-02> rdf:type rdft:TestTrigPositiveSyntax ;
1325   mf:name    "trig-syntax-prefix-02" ;
1326   rdfs:comment "PreFIX" ;
1327   rdft:approval rdft:Approved ;
1328   mf:action    <trig-syntax-prefix-02.trig> ;
1329   .
1330
1331<#trig-syntax-prefix-03> rdf:type rdft:TestTrigPositiveSyntax ;
1332   mf:name    "trig-syntax-prefix-03" ;
1333   rdfs:comment "Empty PREFIX" ;
1334   rdft:approval rdft:Approved ;
1335   mf:action    <trig-syntax-prefix-03.trig> ;
1336   .
1337
1338<#trig-syntax-prefix-04> rdf:type rdft:TestTrigPositiveSyntax ;
1339   mf:name    "trig-syntax-prefix-04" ;
1340   rdfs:comment "Empty @prefix with % escape" ;
1341   rdft:approval rdft:Approved ;
1342   mf:action    <trig-syntax-prefix-04.trig> ;
1343   .
1344
1345<#trig-syntax-prefix-05> rdf:type rdft:TestTrigPositiveSyntax ;
1346   mf:name    "trig-syntax-prefix-05" ;
1347   rdfs:comment "@prefix with no suffix" ;
1348   rdft:approval rdft:Approved ;
1349   mf:action    <trig-syntax-prefix-05.trig> ;
1350   .
1351
1352<#trig-syntax-prefix-06> rdf:type rdft:TestTrigPositiveSyntax ;
1353   mf:name    "trig-syntax-prefix-06" ;
1354   rdfs:comment "colon is a legal pname character" ;
1355   rdft:approval rdft:Approved ;
1356   mf:action    <trig-syntax-prefix-06.trig> ;
1357   .
1358
1359<#trig-syntax-prefix-07> rdf:type rdft:TestTrigPositiveSyntax ;
1360   mf:name    "trig-syntax-prefix-07" ;
1361   rdfs:comment "dash is a legal pname character" ;
1362   rdft:approval rdft:Approved ;
1363   mf:action    <trig-syntax-prefix-07.trig> ;
1364   .
1365
1366<#trig-syntax-prefix-08> rdf:type rdft:TestTrigPositiveSyntax ;
1367   mf:name    "trig-syntax-prefix-08" ;
1368   rdfs:comment "underscore is a legal pname character" ;
1369   rdft:approval rdft:Approved ;
1370   mf:action    <trig-syntax-prefix-08.trig> ;
1371   .
1372
1373<#trig-syntax-prefix-09> rdf:type rdft:TestTrigPositiveSyntax ;
1374   mf:name    "trig-syntax-prefix-09" ;
1375   rdfs:comment "percents in pnames" ;
1376   rdft:approval rdft:Approved ;
1377   mf:action    <trig-syntax-prefix-09.trig> ;
1378   .
1379
1380<#trig-syntax-string-01> rdf:type rdft:TestTrigPositiveSyntax ;
1381   mf:name    "trig-syntax-string-01" ;
1382   rdfs:comment "string literal" ;
1383   rdft:approval rdft:Approved ;
1384   mf:action    <trig-syntax-string-01.trig> ;
1385   .
1386
1387<#trig-syntax-string-02> rdf:type rdft:TestTrigPositiveSyntax ;
1388   mf:name    "trig-syntax-string-02" ;
1389   rdfs:comment "langString literal" ;
1390   rdft:approval rdft:Approved ;
1391   mf:action    <trig-syntax-string-02.trig> ;
1392   .
1393
1394<#trig-syntax-string-03> rdf:type rdft:TestTrigPositiveSyntax ;
1395   mf:name    "trig-syntax-string-03" ;
1396   rdfs:comment "langString literal with region" ;
1397   rdft:approval rdft:Approved ;
1398   mf:action    <trig-syntax-string-03.trig> ;
1399   .
1400
1401<#trig-syntax-string-04> rdf:type rdft:TestTrigPositiveSyntax ;
1402   mf:name    "trig-syntax-string-04" ;
1403   rdfs:comment "squote string literal" ;
1404   rdft:approval rdft:Approved ;
1405   mf:action    <trig-syntax-string-04.trig> ;
1406   .
1407
1408<#trig-syntax-string-05> rdf:type rdft:TestTrigPositiveSyntax ;
1409   mf:name    "trig-syntax-string-05" ;
1410   rdfs:comment "squote langString literal" ;
1411   rdft:approval rdft:Approved ;
1412   mf:action    <trig-syntax-string-05.trig> ;
1413   .
1414
1415<#trig-syntax-string-06> rdf:type rdft:TestTrigPositiveSyntax ;
1416   mf:name    "trig-syntax-string-06" ;
1417   rdfs:comment "squote langString literal with region" ;
1418   rdft:approval rdft:Approved ;
1419   mf:action    <trig-syntax-string-06.trig> ;
1420   .
1421
1422<#trig-syntax-string-07> rdf:type rdft:TestTrigPositiveSyntax ;
1423   mf:name    "trig-syntax-string-07" ;
1424   rdfs:comment "long string literal with embedded single- and double-quotes" ;
1425   rdft:approval rdft:Approved ;
1426   mf:action    <trig-syntax-string-07.trig> ;
1427   .
1428
1429<#trig-syntax-string-08> rdf:type rdft:TestTrigPositiveSyntax ;
1430   mf:name    "trig-syntax-string-08" ;
1431   rdfs:comment "long string literal with embedded newline" ;
1432   rdft:approval rdft:Approved ;
1433   mf:action    <trig-syntax-string-08.trig> ;
1434   .
1435
1436<#trig-syntax-string-09> rdf:type rdft:TestTrigPositiveSyntax ;
1437   mf:name    "trig-syntax-string-09" ;
1438   rdfs:comment "squote long string literal with embedded single- and double-quotes" ;
1439   rdft:approval rdft:Approved ;
1440   mf:action    <trig-syntax-string-09.trig> ;
1441   .
1442
1443<#trig-syntax-string-10> rdf:type rdft:TestTrigPositiveSyntax ;
1444   mf:name    "trig-syntax-string-10" ;
1445   rdfs:comment "long langString literal with embedded newline" ;
1446   rdft:approval rdft:Approved ;
1447   mf:action    <trig-syntax-string-10.trig> ;
1448   .
1449
1450<#trig-syntax-string-11> rdf:type rdft:TestTrigPositiveSyntax ;
1451   mf:name    "trig-syntax-string-11" ;
1452   rdfs:comment "squote long langString literal with embedded newline" ;
1453   rdft:approval rdft:Approved ;
1454   mf:action    <trig-syntax-string-11.trig> ;
1455   .
1456
1457<#trig-syntax-str-esc-01> rdf:type rdft:TestTrigPositiveSyntax ;
1458   mf:name    "trig-syntax-str-esc-01" ;
1459   rdfs:comment "string literal with escaped newline" ;
1460   rdft:approval rdft:Approved ;
1461   mf:action    <trig-syntax-str-esc-01.trig> ;
1462   .
1463
1464<#trig-syntax-str-esc-02> rdf:type rdft:TestTrigPositiveSyntax ;
1465   mf:name    "trig-syntax-str-esc-02" ;
1466   rdfs:comment "string literal with Unicode escape" ;
1467   rdft:approval rdft:Approved ;
1468   mf:action    <trig-syntax-str-esc-02.trig> ;
1469   .
1470
1471<#trig-syntax-str-esc-03> rdf:type rdft:TestTrigPositiveSyntax ;
1472   mf:name    "trig-syntax-str-esc-03" ;
1473   rdfs:comment "string literal with long Unicode escape" ;
1474   rdft:approval rdft:Approved ;
1475   mf:action    <trig-syntax-str-esc-03.trig> ;
1476   .
1477
1478<#trig-syntax-pname-esc-01> rdf:type rdft:TestTrigPositiveSyntax ;
1479   mf:name    "trig-syntax-pname-esc-01" ;
1480   rdfs:comment "pname with back-slash escapes" ;
1481   rdft:approval rdft:Approved ;
1482   mf:action    <trig-syntax-pname-esc-01.trig> ;
1483   .
1484
1485<#trig-syntax-pname-esc-02> rdf:type rdft:TestTrigPositiveSyntax ;
1486   mf:name    "trig-syntax-pname-esc-02" ;
1487   rdfs:comment "pname with back-slash escapes (2)" ;
1488   rdft:approval rdft:Approved ;
1489   mf:action    <trig-syntax-pname-esc-02.trig> ;
1490   .
1491
1492<#trig-syntax-pname-esc-03> rdf:type rdft:TestTrigPositiveSyntax ;
1493   mf:name    "trig-syntax-pname-esc-03" ;
1494   rdfs:comment "pname with back-slash escapes (3)" ;
1495   rdft:approval rdft:Approved ;
1496   mf:action    <trig-syntax-pname-esc-03.trig> ;
1497   .
1498
1499<#trig-syntax-bnode-01> rdf:type rdft:TestTrigPositiveSyntax ;
1500   mf:name    "trig-syntax-bnode-01" ;
1501   rdfs:comment "bnode subject" ;
1502   rdft:approval rdft:Approved ;
1503   mf:action    <trig-syntax-bnode-01.trig> ;
1504   .
1505
1506<#trig-syntax-bnode-02> rdf:type rdft:TestTrigPositiveSyntax ;
1507   mf:name    "trig-syntax-bnode-02" ;
1508   rdfs:comment "bnode object" ;
1509   rdft:approval rdft:Approved ;
1510   mf:action    <trig-syntax-bnode-02.trig> ;
1511   .
1512
1513<#trig-syntax-bnode-03> rdf:type rdft:TestTrigPositiveSyntax ;
1514   mf:name    "trig-syntax-bnode-03" ;
1515   rdfs:comment "bnode property list object" ;
1516   rdft:approval rdft:Approved ;
1517   mf:action    <trig-syntax-bnode-03.trig> ;
1518   .
1519
1520<#trig-syntax-bnode-04> rdf:type rdft:TestTrigPositiveSyntax ;
1521   mf:name    "trig-syntax-bnode-04" ;
1522   rdfs:comment "bnode property list object (2)" ;
1523   rdft:approval rdft:Approved ;
1524   mf:action    <trig-syntax-bnode-04.trig> ;
1525   .
1526
1527<#trig-syntax-bnode-05> rdf:type rdft:TestTrigPositiveSyntax ;
1528   mf:name    "trig-syntax-bnode-05" ;
1529   rdfs:comment "bnode property list subject" ;
1530   rdft:approval rdft:Approved ;
1531   mf:action    <trig-syntax-bnode-05.trig> ;
1532   .
1533
1534<#trig-syntax-bnode-06> rdf:type rdft:TestTrigPositiveSyntax ;
1535   mf:name    "trig-syntax-bnode-06" ;
1536   rdfs:comment "labeled bnode subject" ;
1537   rdft:approval rdft:Approved ;
1538   mf:action    <trig-syntax-bnode-06.trig> ;
1539   .
1540
1541<#trig-syntax-bnode-07> rdf:type rdft:TestTrigPositiveSyntax ;
1542   mf:name    "trig-syntax-bnode-07" ;
1543   rdfs:comment "labeled bnode subject and object" ;
1544   rdft:approval rdft:Approved ;
1545   mf:action    <trig-syntax-bnode-07.trig> ;
1546   .
1547
1548<#trig-syntax-bnode-08> rdf:type rdft:TestTrigPositiveSyntax ;
1549   mf:name    "trig-syntax-bnode-08" ;
1550   rdfs:comment "bare bnode property list" ;
1551   rdft:approval rdft:Approved ;
1552   mf:action    <trig-syntax-bnode-08.trig> ;
1553   .
1554
1555<#trig-syntax-bnode-09> rdf:type rdft:TestTrigPositiveSyntax ;
1556   mf:name    "trig-syntax-bnode-09" ;
1557   rdfs:comment "bnode property list" ;
1558   rdft:approval rdft:Approved ;
1559   mf:action    <trig-syntax-bnode-09.trig> ;
1560   .
1561
1562<#trig-syntax-bnode-10> rdf:type rdft:TestTrigPositiveSyntax ;
1563   mf:name    "trig-syntax-bnode-10" ;
1564   rdfs:comment "mixed bnode property list and triple" ;
1565   rdft:approval rdft:Approved ;
1566   mf:action    <trig-syntax-bnode-10.trig> ;
1567   .
1568
1569<#trig-syntax-number-01> rdf:type rdft:TestTrigPositiveSyntax ;
1570   mf:name    "trig-syntax-number-01" ;
1571   rdfs:comment "integer literal" ;
1572   rdft:approval rdft:Approved ;
1573   mf:action    <trig-syntax-number-01.trig> ;
1574   .
1575
1576<#trig-syntax-number-02> rdf:type rdft:TestTrigPositiveSyntax ;
1577   mf:name    "trig-syntax-number-02" ;
1578   rdfs:comment "negative integer literal" ;
1579   rdft:approval rdft:Approved ;
1580   mf:action    <trig-syntax-number-02.trig> ;
1581   .
1582
1583<#trig-syntax-number-03> rdf:type rdft:TestTrigPositiveSyntax ;
1584   mf:name    "trig-syntax-number-03" ;
1585   rdfs:comment "positive integer literal" ;
1586   rdft:approval rdft:Approved ;
1587   mf:action    <trig-syntax-number-03.trig> ;
1588   .
1589
1590<#trig-syntax-number-04> rdf:type rdft:TestTrigPositiveSyntax ;
1591   mf:name    "trig-syntax-number-04" ;
1592   rdfs:comment "decimal literal" ;
1593   rdft:approval rdft:Approved ;
1594   mf:action    <trig-syntax-number-04.trig> ;
1595   .
1596
1597<#trig-syntax-number-05> rdf:type rdft:TestTrigPositiveSyntax ;
1598   mf:name    "trig-syntax-number-05" ;
1599   rdfs:comment "decimal literal (no leading digits)" ;
1600   rdft:approval rdft:Approved ;
1601   mf:action    <trig-syntax-number-05.trig> ;
1602   .
1603
1604<#trig-syntax-number-06> rdf:type rdft:TestTrigPositiveSyntax ;
1605   mf:name    "trig-syntax-number-06" ;
1606   rdfs:comment "negative decimal literal" ;
1607   rdft:approval rdft:Approved ;
1608   mf:action    <trig-syntax-number-06.trig> ;
1609   .
1610
1611<#trig-syntax-number-07> rdf:type rdft:TestTrigPositiveSyntax ;
1612   mf:name    "trig-syntax-number-07" ;
1613   rdfs:comment "positive decimal literal" ;
1614   rdft:approval rdft:Approved ;
1615   mf:action    <trig-syntax-number-07.trig> ;
1616   .
1617
1618<#trig-syntax-number-08> rdf:type rdft:TestTrigPositiveSyntax ;
1619   mf:name    "trig-syntax-number-08" ;
1620   rdfs:comment "integer literal with decimal lexical confusion" ;
1621   rdft:approval rdft:Approved ;
1622   mf:action    <trig-syntax-number-08.trig> ;
1623   .
1624
1625<#trig-syntax-number-09> rdf:type rdft:TestTrigPositiveSyntax ;
1626   mf:name    "trig-syntax-number-09" ;
1627   rdfs:comment "double literal" ;
1628   rdft:approval rdft:Approved ;
1629   mf:action    <trig-syntax-number-09.trig> ;
1630   .
1631
1632<#trig-syntax-number-10> rdf:type rdft:TestTrigPositiveSyntax ;
1633   mf:name    "trig-syntax-number-10" ;
1634   rdfs:comment "negative double literal" ;
1635   rdft:approval rdft:Approved ;
1636   mf:action    <trig-syntax-number-10.trig> ;
1637   .
1638
1639<#trig-syntax-number-11> rdf:type rdft:TestTrigPositiveSyntax ;
1640   mf:name    "trig-syntax-number-11" ;
1641   rdfs:comment "double literal no fraction" ;
1642   rdft:approval rdft:Approved ;
1643   mf:action    <trig-syntax-number-11.trig> ;
1644   .
1645
1646<#trig-syntax-datatypes-01> rdf:type rdft:TestTrigPositiveSyntax ;
1647   mf:name    "trig-syntax-datatypes-01" ;
1648   rdfs:comment "xsd:byte literal" ;
1649   rdft:approval rdft:Approved ;
1650   mf:action    <trig-syntax-datatypes-01.trig> ;
1651   .
1652
1653<#trig-syntax-datatypes-02> rdf:type rdft:TestTrigPositiveSyntax ;
1654   mf:name    "trig-syntax-datatypes-02" ;
1655   rdfs:comment "integer as xsd:string" ;
1656   rdft:approval rdft:Approved ;
1657   mf:action    <trig-syntax-datatypes-02.trig> ;
1658   .
1659
1660<#trig-syntax-kw-01> rdf:type rdft:TestTrigPositiveSyntax ;
1661   mf:name    "trig-syntax-kw-01" ;
1662   rdfs:comment "boolean literal (true)" ;
1663   rdft:approval rdft:Approved ;
1664   mf:action    <trig-syntax-kw-01.trig> ;
1665   .
1666
1667<#trig-syntax-kw-02> rdf:type rdft:TestTrigPositiveSyntax ;
1668   mf:name    "trig-syntax-kw-02" ;
1669   rdfs:comment "boolean literal (false)" ;
1670   rdft:approval rdft:Approved ;
1671   mf:action    <trig-syntax-kw-02.trig> ;
1672   .
1673
1674<#trig-syntax-kw-03> rdf:type rdft:TestTrigPositiveSyntax ;
1675   mf:name    "trig-syntax-kw-03" ;
1676   rdfs:comment "'a' as keyword" ;
1677   rdft:approval rdft:Approved ;
1678   mf:action    <trig-syntax-kw-03.trig> ;
1679   .
1680
1681<#trig-syntax-struct-01> rdf:type rdft:TestTrigPositiveSyntax ;
1682   mf:name    "trig-syntax-struct-01" ;
1683   rdfs:comment "object list" ;
1684   rdft:approval rdft:Approved ;
1685   mf:action    <trig-syntax-struct-01.trig> ;
1686   .
1687
1688<#trig-syntax-struct-02> rdf:type rdft:TestTrigPositiveSyntax ;
1689   mf:name    "trig-syntax-struct-02" ;
1690   rdfs:comment "predicate list with object list" ;
1691   rdft:approval rdft:Approved ;
1692   mf:action    <trig-syntax-struct-02.trig> ;
1693   .
1694
1695<#trig-syntax-struct-03> rdf:type rdft:TestTrigPositiveSyntax ;
1696   mf:name    "trig-syntax-struct-03" ;
1697   rdfs:comment "predicate list with object list and dangling ';'" ;
1698   rdft:approval rdft:Approved ;
1699   mf:action    <trig-syntax-struct-03.trig> ;
1700   .
1701
1702<#trig-syntax-struct-04> rdf:type rdft:TestTrigPositiveSyntax ;
1703   mf:name    "trig-syntax-struct-04" ;
1704   rdfs:comment "predicate list with multiple ;;" ;
1705   rdft:approval rdft:Approved ;
1706   mf:action    <trig-syntax-struct-04.trig> ;
1707   .
1708
1709<#trig-syntax-struct-05> rdf:type rdft:TestTrigPositiveSyntax ;
1710   mf:name    "trig-syntax-struct-05" ;
1711   rdfs:comment "predicate list with multiple ;;" ;
1712   rdft:approval rdft:Approved ;
1713   mf:action    <trig-syntax-struct-05.trig> ;
1714   .
1715
1716<#trig-syntax-lists-01> rdf:type rdft:TestTrigPositiveSyntax ;
1717   mf:name    "trig-syntax-lists-01" ;
1718   rdfs:comment "empty list" ;
1719   rdft:approval rdft:Approved ;
1720   mf:action    <trig-syntax-lists-01.trig> ;
1721   .
1722
1723<#trig-syntax-lists-02> rdf:type rdft:TestTrigPositiveSyntax ;
1724   mf:name    "trig-syntax-lists-02" ;
1725   rdfs:comment "mixed list" ;
1726   rdft:approval rdft:Approved ;
1727   mf:action    <trig-syntax-lists-02.trig> ;
1728   .
1729
1730<#trig-syntax-lists-03> rdf:type rdft:TestTrigPositiveSyntax ;
1731   mf:name    "trig-syntax-lists-03" ;
1732   rdfs:comment "isomorphic list as subject and object" ;
1733   rdft:approval rdft:Approved ;
1734   mf:action    <trig-syntax-lists-03.trig> ;
1735   .
1736
1737<#trig-syntax-lists-04> rdf:type rdft:TestTrigPositiveSyntax ;
1738   mf:name    "trig-syntax-lists-04" ;
1739   rdfs:comment "lists of lists" ;
1740   rdft:approval rdft:Approved ;
1741   mf:action    <trig-syntax-lists-04.trig> ;
1742   .
1743
1744<#trig-syntax-lists-05> rdf:type rdft:TestTrigPositiveSyntax ;
1745   mf:name    "trig-syntax-lists-05" ;
1746   rdfs:comment "mixed lists with embedded lists" ;
1747   rdft:approval rdft:Approved ;
1748   mf:action    <trig-syntax-lists-05.trig> ;
1749   .
1750
1751<#trig-syntax-bad-uri-01> rdf:type rdft:TestTrigNegativeSyntax ;
1752   mf:name    "trig-syntax-bad-uri-01" ;
1753   rdfs:comment "Bad IRI : space (negative test)" ;
1754   rdft:approval rdft:Approved ;
1755   mf:action    <trig-syntax-bad-uri-01.trig> ;
1756   .
1757
1758<#trig-syntax-bad-uri-02> rdf:type rdft:TestTrigNegativeSyntax ;
1759   mf:name    "trig-syntax-bad-uri-02" ;
1760   rdfs:comment "Bad IRI : bad escape (negative test)" ;
1761   rdft:approval rdft:Approved ;
1762   mf:action    <trig-syntax-bad-uri-02.trig> ;
1763   .
1764
1765<#trig-syntax-bad-uri-03> rdf:type rdft:TestTrigNegativeSyntax ;
1766   mf:name    "trig-syntax-bad-uri-03" ;
1767   rdfs:comment "Bad IRI : bad long escape (negative test)" ;
1768   rdft:approval rdft:Approved ;
1769   mf:action    <trig-syntax-bad-uri-03.trig> ;
1770   .
1771
1772<#trig-syntax-bad-uri-04> rdf:type rdft:TestTrigNegativeSyntax ;
1773   mf:name    "trig-syntax-bad-uri-04" ;
1774   rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ;
1775   rdft:approval rdft:Approved ;
1776   mf:action    <trig-syntax-bad-uri-04.trig> ;
1777   .
1778
1779<#trig-syntax-bad-uri-05> rdf:type rdft:TestTrigNegativeSyntax ;
1780   mf:name    "trig-syntax-bad-uri-05" ;
1781   rdfs:comment "Bad IRI : character escapes not allowed (2) (negative test)" ;
1782   rdft:approval rdft:Approved ;
1783   mf:action    <trig-syntax-bad-uri-05.trig> ;
1784   .
1785
1786<#trig-syntax-bad-prefix-01> rdf:type rdft:TestTrigNegativeSyntax ;
1787   mf:name    "trig-syntax-bad-prefix-01" ;
1788   rdfs:comment "No prefix (negative test)" ;
1789   rdft:approval rdft:Approved ;
1790   mf:action    <trig-syntax-bad-prefix-01.trig> ;
1791   .
1792
1793<#trig-syntax-bad-prefix-02> rdf:type rdft:TestTrigNegativeSyntax ;
1794   mf:name    "trig-syntax-bad-prefix-02" ;
1795   rdfs:comment "No prefix (2) (negative test)" ;
1796   rdft:approval rdft:Approved ;
1797   mf:action    <trig-syntax-bad-prefix-02.trig> ;
1798   .
1799
1800<#trig-syntax-bad-prefix-03> rdf:type rdft:TestTrigNegativeSyntax ;
1801   mf:name    "trig-syntax-bad-prefix-03" ;
1802   rdfs:comment "@prefix without URI (negative test)" ;
1803   rdft:approval rdft:Approved ;
1804   mf:action    <trig-syntax-bad-prefix-03.trig> ;
1805   .
1806
1807<#trig-syntax-bad-prefix-04> rdf:type rdft:TestTrigNegativeSyntax ;
1808   mf:name    "trig-syntax-bad-prefix-04" ;
1809   rdfs:comment "@prefix without prefix name (negative test)" ;
1810   rdft:approval rdft:Approved ;
1811   mf:action    <trig-syntax-bad-prefix-04.trig> ;
1812   .
1813
1814<#trig-syntax-bad-prefix-05> rdf:type rdft:TestTrigNegativeSyntax ;
1815   mf:name    "trig-syntax-bad-prefix-05" ;
1816   rdfs:comment "@prefix without ':' (negative test)" ;
1817   rdft:approval rdft:Approved ;
1818   mf:action    <trig-syntax-bad-prefix-05.trig> ;
1819   .
1820
1821<#trig-syntax-bad-base-01> rdf:type rdft:TestTrigNegativeSyntax ;
1822   mf:name    "trig-syntax-bad-base-01" ;
1823   rdfs:comment "@base without URI (negative test)" ;
1824   rdft:approval rdft:Approved ;
1825   mf:action    <trig-syntax-bad-base-01.trig> ;
1826   .
1827
1828<#trig-syntax-bad-base-02> rdf:type rdft:TestTrigNegativeSyntax ;
1829   mf:name    "trig-syntax-bad-base-02" ;
1830   rdfs:comment "@base in wrong case (negative test)" ;
1831   rdft:approval rdft:Approved ;
1832   mf:action    <trig-syntax-bad-base-02.trig> ;
1833   .
1834
1835<#trig-syntax-bad-base-03> rdf:type rdft:TestTrigNegativeSyntax ;
1836   mf:name    "trig-syntax-bad-base-03" ;
1837   rdfs:comment "BASE without URI (negative test)" ;
1838   rdft:approval rdft:Approved ;
1839   mf:action    <trig-syntax-bad-base-03.trig> ;
1840   .
1841
1842<#trig-syntax-bad-struct-02> rdf:type rdft:TestTrigNegativeSyntax ;
1843   mf:name    "trig-syntax-bad-struct-02" ;
1844   rdfs:comment "Turtle is not N3 (negative test)" ;
1845   rdft:approval rdft:Approved ;
1846   mf:action    <trig-syntax-bad-struct-02.trig> ;
1847   .
1848
1849<#trig-syntax-bad-struct-03> rdf:type rdft:TestTrigNegativeSyntax ;
1850   mf:name    "trig-syntax-bad-struct-03" ;
1851   rdfs:comment "Turtle is not NQuads (negative test)" ;
1852   rdft:approval rdft:Approved ;
1853   mf:action    <trig-syntax-bad-struct-03.trig> ;
1854   .
1855
1856<#trig-syntax-bad-struct-04> rdf:type rdft:TestTrigNegativeSyntax ;
1857   mf:name    "trig-syntax-bad-struct-04" ;
1858   rdfs:comment "Turtle does not allow literals-as-subjects (negative test)" ;
1859   rdft:approval rdft:Approved ;
1860   mf:action    <trig-syntax-bad-struct-04.trig> ;
1861   .
1862
1863<#trig-syntax-bad-struct-05> rdf:type rdft:TestTrigNegativeSyntax ;
1864   mf:name    "trig-syntax-bad-struct-05" ;
1865   rdfs:comment "Turtle does not allow literals-as-predicates (negative test)" ;
1866   rdft:approval rdft:Approved ;
1867   mf:action    <trig-syntax-bad-struct-05.trig> ;
1868   .
1869
1870<#trig-syntax-bad-struct-06> rdf:type rdft:TestTrigNegativeSyntax ;
1871   mf:name    "trig-syntax-bad-struct-06" ;
1872   rdfs:comment "Turtle does not allow bnodes-as-predicates (negative test)" ;
1873   rdft:approval rdft:Approved ;
1874   mf:action    <trig-syntax-bad-struct-06.trig> ;
1875   .
1876
1877<#trig-syntax-bad-struct-07> rdf:type rdft:TestTrigNegativeSyntax ;
1878   mf:name    "trig-syntax-bad-struct-07" ;
1879   rdfs:comment "Turtle does not allow labeled bnodes-as-predicates (negative test)" ;
1880   rdft:approval rdft:Approved ;
1881   mf:action    <trig-syntax-bad-struct-07.trig> ;
1882   .
1883
1884<#trig-syntax-bad-kw-01> rdf:type rdft:TestTrigNegativeSyntax ;
1885   mf:name    "trig-syntax-bad-kw-01" ;
1886   rdfs:comment "'A' is not a keyword (negative test)" ;
1887   rdft:approval rdft:Approved ;
1888   mf:action    <trig-syntax-bad-kw-01.trig> ;
1889   .
1890
1891<#trig-syntax-bad-kw-02> rdf:type rdft:TestTrigNegativeSyntax ;
1892   mf:name    "trig-syntax-bad-kw-02" ;
1893   rdfs:comment "'a' cannot be used as subject (negative test)" ;
1894   rdft:approval rdft:Approved ;
1895   mf:action    <trig-syntax-bad-kw-02.trig> ;
1896   .
1897
1898<#trig-syntax-bad-kw-03> rdf:type rdft:TestTrigNegativeSyntax ;
1899   mf:name    "trig-syntax-bad-kw-03" ;
1900   rdfs:comment "'a' cannot be used as object (negative test)" ;
1901   rdft:approval rdft:Approved ;
1902   mf:action    <trig-syntax-bad-kw-03.trig> ;
1903   .
1904
1905<#trig-syntax-bad-kw-04> rdf:type rdft:TestTrigNegativeSyntax ;
1906   mf:name    "trig-syntax-bad-kw-04" ;
1907   rdfs:comment "'true' cannot be used as subject (negative test)" ;
1908   rdft:approval rdft:Approved ;
1909   mf:action    <trig-syntax-bad-kw-04.trig> ;
1910   .
1911
1912<#trig-syntax-bad-kw-05> rdf:type rdft:TestTrigNegativeSyntax ;
1913   mf:name    "trig-syntax-bad-kw-05" ;
1914   rdfs:comment "'true' cannot be used as object (negative test)" ;
1915   rdft:approval rdft:Approved ;
1916   mf:action    <trig-syntax-bad-kw-05.trig> ;
1917   .
1918
1919<#trig-syntax-bad-n3-extras-01> rdf:type rdft:TestTrigNegativeSyntax ;
1920   mf:name    "trig-syntax-bad-n3-extras-01" ;
1921   rdfs:comment "{} fomulae not in Turtle (negative test)" ;
1922   rdft:approval rdft:Approved ;
1923   mf:action    <trig-syntax-bad-n3-extras-01.trig> ;
1924   .
1925
1926<#trig-syntax-bad-n3-extras-02> rdf:type rdft:TestTrigNegativeSyntax ;
1927   mf:name    "trig-syntax-bad-n3-extras-02" ;
1928   rdfs:comment "= is not Turtle (negative test)" ;
1929   rdft:approval rdft:Approved ;
1930   mf:action    <trig-syntax-bad-n3-extras-02.trig> ;
1931   .
1932
1933<#trig-syntax-bad-n3-extras-03> rdf:type rdft:TestTrigNegativeSyntax ;
1934   mf:name    "trig-syntax-bad-n3-extras-03" ;
1935   rdfs:comment "N3 paths not in Turtle (negative test)" ;
1936   rdft:approval rdft:Approved ;
1937   mf:action    <trig-syntax-bad-n3-extras-03.trig> ;
1938   .
1939
1940<#trig-syntax-bad-n3-extras-04> rdf:type rdft:TestTrigNegativeSyntax ;
1941   mf:name    "trig-syntax-bad-n3-extras-04" ;
1942   rdfs:comment "N3 paths not in Turtle (negative test)" ;
1943   rdft:approval rdft:Approved ;
1944   mf:action    <trig-syntax-bad-n3-extras-04.trig> ;
1945   .
1946
1947<#trig-syntax-bad-n3-extras-05> rdf:type rdft:TestTrigNegativeSyntax ;
1948   mf:name    "trig-syntax-bad-n3-extras-05" ;
1949   rdfs:comment "N3 is...of not in Turtle (negative test)" ;
1950   rdft:approval rdft:Approved ;
1951   mf:action    <trig-syntax-bad-n3-extras-05.trig> ;
1952   .
1953
1954<#trig-syntax-bad-n3-extras-06> rdf:type rdft:TestTrigNegativeSyntax ;
1955   mf:name    "trig-syntax-bad-n3-extras-06" ;
1956   rdfs:comment "N3 paths not in Turtle (negative test)" ;
1957   rdft:approval rdft:Approved ;
1958   mf:action    <trig-syntax-bad-n3-extras-06.trig> ;
1959   .
1960
1961<#trig-syntax-bad-n3-extras-07> rdf:type rdft:TestTrigNegativeSyntax ;
1962   mf:name    "trig-syntax-bad-n3-extras-07" ;
1963   rdfs:comment "@keywords is not Turtle (negative test)" ;
1964   rdft:approval rdft:Approved ;
1965   mf:action    <trig-syntax-bad-n3-extras-07.trig> ;
1966   .
1967
1968<#trig-syntax-bad-n3-extras-08> rdf:type rdft:TestTrigNegativeSyntax ;
1969   mf:name    "trig-syntax-bad-n3-extras-08" ;
1970   rdfs:comment "@keywords is not Turtle (negative test)" ;
1971   rdft:approval rdft:Approved ;
1972   mf:action    <trig-syntax-bad-n3-extras-08.trig> ;
1973   .
1974
1975<#trig-syntax-bad-n3-extras-09> rdf:type rdft:TestTrigNegativeSyntax ;
1976   mf:name    "trig-syntax-bad-n3-extras-09" ;
1977   rdfs:comment "=> is not Turtle (negative test)" ;
1978   rdft:approval rdft:Approved ;
1979   mf:action    <trig-syntax-bad-n3-extras-09.trig> ;
1980   .
1981
1982<#trig-syntax-bad-n3-extras-10> rdf:type rdft:TestTrigNegativeSyntax ;
1983   mf:name    "trig-syntax-bad-n3-extras-10" ;
1984   rdfs:comment "<= is not Turtle (negative test)" ;
1985   rdft:approval rdft:Approved ;
1986   mf:action    <trig-syntax-bad-n3-extras-10.trig> ;
1987   .
1988
1989<#trig-syntax-bad-n3-extras-11> rdf:type rdft:TestTrigNegativeSyntax ;
1990   mf:name    "trig-syntax-bad-n3-extras-11" ;
1991   rdfs:comment "@forSome is not Turtle (negative test)" ;
1992   rdft:approval rdft:Approved ;
1993   mf:action    <trig-syntax-bad-n3-extras-11.trig> ;
1994   .
1995
1996<#trig-syntax-bad-n3-extras-12> rdf:type rdft:TestTrigNegativeSyntax ;
1997   mf:name    "trig-syntax-bad-n3-extras-12" ;
1998   rdfs:comment "@forAll is not Turtle (negative test)" ;
1999   rdft:approval rdft:Approved ;
2000   mf:action    <trig-syntax-bad-n3-extras-12.trig> ;
2001   .
2002
2003<#trig-syntax-bad-n3-extras-13> rdf:type rdft:TestTrigNegativeSyntax ;
2004   mf:name    "trig-syntax-bad-n3-extras-13" ;
2005   rdfs:comment "@keywords is not Turtle (negative test)" ;
2006   rdft:approval rdft:Approved ;
2007   mf:action    <trig-syntax-bad-n3-extras-13.trig> ;
2008   .
2009
2010<#trig-syntax-bad-struct-09> rdf:type rdft:TestTrigNegativeSyntax ;
2011   mf:name    "trig-syntax-bad-struct-09" ;
2012   rdfs:comment "extra '.' (negative test)" ;
2013   rdft:approval rdft:Approved ;
2014   mf:action    <trig-syntax-bad-struct-09.trig> ;
2015   .
2016
2017<#trig-syntax-bad-struct-10> rdf:type rdft:TestTrigNegativeSyntax ;
2018   mf:name    "trig-syntax-bad-struct-10" ;
2019   rdfs:comment "extra '.' (negative test)" ;
2020   rdft:approval rdft:Approved ;
2021   mf:action    <trig-syntax-bad-struct-10.trig> ;
2022   .
2023
2024<#trig-syntax-bad-struct-12> rdf:type rdft:TestTrigNegativeSyntax ;
2025   mf:name    "trig-syntax-bad-struct-12" ;
2026   rdfs:comment "subject, predicate, no object (negative test)" ;
2027   rdft:approval rdft:Approved ;
2028   mf:action    <trig-syntax-bad-struct-12.trig> ;
2029   .
2030
2031<#trig-syntax-bad-struct-13> rdf:type rdft:TestTrigNegativeSyntax ;
2032   mf:name    "trig-syntax-bad-struct-13" ;
2033   rdfs:comment "subject, predicate, no object (negative test)" ;
2034   rdft:approval rdft:Approved ;
2035   mf:action    <trig-syntax-bad-struct-13.trig> ;
2036   .
2037
2038<#trig-syntax-bad-struct-14> rdf:type rdft:TestTrigNegativeSyntax ;
2039   mf:name    "trig-syntax-bad-struct-14" ;
2040   rdfs:comment "literal as subject (negative test)" ;
2041   rdft:approval rdft:Approved ;
2042   mf:action    <trig-syntax-bad-struct-14.trig> ;
2043   .
2044
2045<#trig-syntax-bad-struct-15> rdf:type rdft:TestTrigNegativeSyntax ;
2046   mf:name    "trig-syntax-bad-struct-15" ;
2047   rdfs:comment "literal as predicate (negative test)" ;
2048   rdft:approval rdft:Approved ;
2049   mf:action    <trig-syntax-bad-struct-15.trig> ;
2050   .
2051
2052<#trig-syntax-bad-struct-16> rdf:type rdft:TestTrigNegativeSyntax ;
2053   mf:name    "trig-syntax-bad-struct-16" ;
2054   rdfs:comment "bnode as predicate (negative test)" ;
2055   rdft:approval rdft:Approved ;
2056   mf:action    <trig-syntax-bad-struct-16.trig> ;
2057   .
2058
2059<#trig-syntax-bad-struct-17> rdf:type rdft:TestTrigNegativeSyntax ;
2060   mf:name    "trig-syntax-bad-struct-17" ;
2061   rdfs:comment "labeled bnode as predicate (negative test)" ;
2062   rdft:approval rdft:Approved ;
2063   mf:action    <trig-syntax-bad-struct-17.trig> ;
2064   .
2065
2066<#trig-syntax-bad-lang-01> rdf:type rdft:TestTrigNegativeSyntax ;
2067   mf:name    "trig-syntax-bad-lang-01" ;
2068   rdfs:comment "langString with bad lang (negative test)" ;
2069   rdft:approval rdft:Approved ;
2070   mf:action    <trig-syntax-bad-lang-01.trig> ;
2071   .
2072
2073<#trig-syntax-bad-esc-01> rdf:type rdft:TestTrigNegativeSyntax ;
2074   mf:name    "trig-syntax-bad-esc-01" ;
2075   rdfs:comment "Bad string escape (negative test)" ;
2076   rdft:approval rdft:Approved ;
2077   mf:action    <trig-syntax-bad-esc-01.trig> ;
2078   .
2079
2080<#trig-syntax-bad-esc-02> rdf:type rdft:TestTrigNegativeSyntax ;
2081   mf:name    "trig-syntax-bad-esc-02" ;
2082   rdfs:comment "Bad string escape (negative test)" ;
2083   rdft:approval rdft:Approved ;
2084   mf:action    <trig-syntax-bad-esc-02.trig> ;
2085   .
2086
2087<#trig-syntax-bad-esc-03> rdf:type rdft:TestTrigNegativeSyntax ;
2088   mf:name    "trig-syntax-bad-esc-03" ;
2089   rdfs:comment "Bad string escape (negative test)" ;
2090   rdft:approval rdft:Approved ;
2091   mf:action    <trig-syntax-bad-esc-03.trig> ;
2092   .
2093
2094<#trig-syntax-bad-esc-04> rdf:type rdft:TestTrigNegativeSyntax ;
2095   mf:name    "trig-syntax-bad-esc-04" ;
2096   rdfs:comment "Bad string escape (negative test)" ;
2097   rdft:approval rdft:Approved ;
2098   mf:action    <trig-syntax-bad-esc-04.trig> ;
2099   .
2100
2101<#trig-syntax-bad-pname-01> rdf:type rdft:TestTrigNegativeSyntax ;
2102   mf:name    "trig-syntax-bad-pname-01" ;
2103   rdfs:comment "'~' must be escaped in pname (negative test)" ;
2104   rdft:approval rdft:Approved ;
2105   mf:action    <trig-syntax-bad-pname-01.trig> ;
2106   .
2107
2108<#trig-syntax-bad-pname-02> rdf:type rdft:TestTrigNegativeSyntax ;
2109   mf:name    "trig-syntax-bad-pname-02" ;
2110   rdfs:comment "Bad %-sequence in pname (negative test)" ;
2111   rdft:approval rdft:Approved ;
2112   mf:action    <trig-syntax-bad-pname-02.trig> ;
2113   .
2114
2115<#trig-syntax-bad-pname-03> rdf:type rdft:TestTrigNegativeSyntax ;
2116   mf:name    "trig-syntax-bad-pname-03" ;
2117   rdfs:comment "Bad unicode escape in pname (negative test)" ;
2118   rdft:approval rdft:Approved ;
2119   mf:action    <trig-syntax-bad-pname-03.trig> ;
2120   .
2121
2122<#trig-syntax-bad-string-01> rdf:type rdft:TestTrigNegativeSyntax ;
2123   mf:name    "trig-syntax-bad-string-01" ;
2124   rdfs:comment "mismatching string literal open/close (negative test)" ;
2125   rdft:approval rdft:Approved ;
2126   mf:action    <trig-syntax-bad-string-01.trig> ;
2127   .
2128
2129<#trig-syntax-bad-string-02> rdf:type rdft:TestTrigNegativeSyntax ;
2130   mf:name    "trig-syntax-bad-string-02" ;
2131   rdfs:comment "mismatching string literal open/close (negative test)" ;
2132   rdft:approval rdft:Approved ;
2133   mf:action    <trig-syntax-bad-string-02.trig> ;
2134   .
2135
2136<#trig-syntax-bad-string-03> rdf:type rdft:TestTrigNegativeSyntax ;
2137   mf:name    "trig-syntax-bad-string-03" ;
2138   rdfs:comment "mismatching string literal long/short (negative test)" ;
2139   rdft:approval rdft:Approved ;
2140   mf:action    <trig-syntax-bad-string-03.trig> ;
2141   .
2142
2143<#trig-syntax-bad-string-04> rdf:type rdft:TestTrigNegativeSyntax ;
2144   mf:name    "trig-syntax-bad-string-04" ;
2145   rdfs:comment "mismatching long string literal open/close (negative test)" ;
2146   rdft:approval rdft:Approved ;
2147   mf:action    <trig-syntax-bad-string-04.trig> ;
2148   .
2149
2150<#trig-syntax-bad-string-05> rdf:type rdft:TestTrigNegativeSyntax ;
2151   mf:name    "trig-syntax-bad-string-05" ;
2152   rdfs:comment "Long literal with missing end (negative test)" ;
2153   rdft:approval rdft:Approved ;
2154   mf:action    <trig-syntax-bad-string-05.trig> ;
2155   .
2156
2157<#trig-syntax-bad-string-06> rdf:type rdft:TestTrigNegativeSyntax ;
2158   mf:name    "trig-syntax-bad-string-06" ;
2159   rdfs:comment "Long literal with extra quote (negative test)" ;
2160   rdft:approval rdft:Approved ;
2161   mf:action    <trig-syntax-bad-string-06.trig> ;
2162   .
2163
2164<#trig-syntax-bad-string-07> rdf:type rdft:TestTrigNegativeSyntax ;
2165   mf:name    "trig-syntax-bad-string-07" ;
2166   rdfs:comment "Long literal with extra squote (negative test)" ;
2167   rdft:approval rdft:Approved ;
2168   mf:action    <trig-syntax-bad-string-07.trig> ;
2169   .
2170
2171<#trig-syntax-bad-num-01> rdf:type rdft:TestTrigNegativeSyntax ;
2172   mf:name    "trig-syntax-bad-num-01" ;
2173   rdfs:comment "Bad number format (negative test)" ;
2174   rdft:approval rdft:Approved ;
2175   mf:action    <trig-syntax-bad-num-01.trig> ;
2176   .
2177
2178<#trig-syntax-bad-num-02> rdf:type rdft:TestTrigNegativeSyntax ;
2179   mf:name    "trig-syntax-bad-num-02" ;
2180   rdfs:comment "Bad number format (negative test)" ;
2181   rdft:approval rdft:Approved ;
2182   mf:action    <trig-syntax-bad-num-02.trig> ;
2183   .
2184
2185<#trig-syntax-bad-num-03> rdf:type rdft:TestTrigNegativeSyntax ;
2186   mf:name    "trig-syntax-bad-num-03" ;
2187   rdfs:comment "Bad number format (negative test)" ;
2188   rdft:approval rdft:Approved ;
2189   mf:action    <trig-syntax-bad-num-03.trig> ;
2190   .
2191
2192<#trig-syntax-bad-num-04> rdf:type rdft:TestTrigNegativeSyntax ;
2193   mf:name    "trig-syntax-bad-num-04" ;
2194   rdfs:comment "Bad number format (negative test)" ;
2195   rdft:approval rdft:Approved ;
2196   mf:action    <trig-syntax-bad-num-04.trig> ;
2197   .
2198
2199<#trig-syntax-bad-num-05> rdf:type rdft:TestTrigNegativeSyntax ;
2200   mf:name    "trig-syntax-bad-num-05" ;
2201   rdfs:comment "Bad number format (negative test)" ;
2202   rdft:approval rdft:Approved ;
2203   mf:action    <trig-syntax-bad-num-05.trig> ;
2204   .
2205
2206<#trig-eval-struct-01> rdf:type rdft:TestTrigEval ;
2207   mf:name    "trig-eval-struct-01" ;
2208   rdfs:comment "triple with IRIs" ;
2209   rdft:approval rdft:Approved ;
2210   mf:action    <trig-eval-struct-01.trig> ;
2211   mf:result    <trig-eval-struct-01.nq> ;
2212   .
2213
2214<#trig-eval-struct-02> rdf:type rdft:TestTrigEval ;
2215   mf:name    "trig-eval-struct-02" ;
2216   rdfs:comment "triple with IRIs and embedded whitespace" ;
2217   rdft:approval rdft:Approved ;
2218   mf:action    <trig-eval-struct-02.trig> ;
2219   mf:result    <trig-eval-struct-02.nq> ;
2220   .
2221
2222<#trig-subm-01> rdf:type rdft:TestTrigEval ;
2223   mf:name    "trig-subm-01" ;
2224   rdfs:comment "Blank subject" ;
2225   rdft:approval rdft:Approved ;
2226   mf:action    <trig-subm-01.trig> ;
2227   mf:result    <trig-subm-01.nq> ;
2228   .
2229
2230<#trig-subm-02> rdf:type rdft:TestTrigEval ;
2231   mf:name    "trig-subm-02" ;
2232   rdfs:comment "@prefix and qnames" ;
2233   rdft:approval rdft:Approved ;
2234   mf:action    <trig-subm-02.trig> ;
2235   mf:result    <trig-subm-02.nq> ;
2236   .
2237
2238<#trig-subm-03> rdf:type rdft:TestTrigEval ;
2239   mf:name    "trig-subm-03" ;
2240   rdfs:comment ", operator" ;
2241   rdft:approval rdft:Approved ;
2242   mf:action    <trig-subm-03.trig> ;
2243   mf:result    <trig-subm-03.nq> ;
2244   .
2245
2246<#trig-subm-04> rdf:type rdft:TestTrigEval ;
2247   mf:name    "trig-subm-04" ;
2248   rdfs:comment "; operator" ;
2249   rdft:approval rdft:Approved ;
2250   mf:action    <trig-subm-04.trig> ;
2251   mf:result    <trig-subm-04.nq> ;
2252   .
2253
2254<#trig-subm-05> rdf:type rdft:TestTrigEval ;
2255   mf:name    "trig-subm-05" ;
2256   rdfs:comment "empty [] as subject and object" ;
2257   rdft:approval rdft:Approved ;
2258   mf:action    <trig-subm-05.trig> ;
2259   mf:result    <trig-subm-05.nq> ;
2260   .
2261
2262<#trig-subm-06> rdf:type rdft:TestTrigEval ;
2263   mf:name    "trig-subm-06" ;
2264   rdfs:comment "non-empty [] as subject and object" ;
2265   rdft:approval rdft:Approved ;
2266   mf:action    <trig-subm-06.trig> ;
2267   mf:result    <trig-subm-06.nq> ;
2268   .
2269
2270<#trig-subm-07> rdf:type rdft:TestTrigEval ;
2271   mf:name    "trig-subm-07" ;
2272   rdfs:comment "'a' as predicate" ;
2273   rdft:approval rdft:Approved ;
2274   mf:action    <trig-subm-07.trig> ;
2275   mf:result    <trig-subm-07.nq> ;
2276   .
2277
2278<#trig-subm-08> rdf:type rdft:TestTrigEval ;
2279   mf:name    "trig-subm-08" ;
2280   rdfs:comment "simple collection" ;
2281   rdft:approval rdft:Approved ;
2282   mf:action    <trig-subm-08.trig> ;
2283   mf:result    <trig-subm-08.nq> ;
2284   .
2285
2286<#trig-subm-09> rdf:type rdft:TestTrigEval ;
2287   mf:name    "trig-subm-09" ;
2288   rdfs:comment "empty collection" ;
2289   rdft:approval rdft:Approved ;
2290   mf:action    <trig-subm-09.trig> ;
2291   mf:result    <trig-subm-09.nq> ;
2292   .
2293
2294<#trig-subm-10> rdf:type rdft:TestTrigEval ;
2295   mf:name    "trig-subm-10" ;
2296   rdfs:comment "integer datatyped literal" ;
2297   rdft:approval rdft:Approved ;
2298   mf:action    <trig-subm-10.trig> ;
2299   mf:result    <trig-subm-10.nq> ;
2300   .
2301
2302<#trig-subm-11> rdf:type rdft:TestTrigEval ;
2303   mf:name    "trig-subm-11" ;
2304   rdfs:comment "decimal integer canonicalization" ;
2305   rdft:approval rdft:Approved ;
2306   mf:action    <trig-subm-11.trig> ;
2307   mf:result    <trig-subm-11.nq> ;
2308   .
2309
2310<#trig-subm-12> rdf:type rdft:TestTrigEval ;
2311   mf:name    "trig-subm-12" ;
2312   rdfs:comment "- and _ in names and qnames" ;
2313   rdft:approval rdft:Approved ;
2314   mf:action    <trig-subm-12.trig> ;
2315   mf:result    <trig-subm-12.nq> ;
2316   .
2317
2318<#trig-subm-13> rdf:type rdft:TestTrigEval ;
2319   mf:name    "trig-subm-13" ;
2320   rdfs:comment "tests for rdf:_<numbers> and other qnames starting with _" ;
2321   rdft:approval rdft:Approved ;
2322   mf:action    <trig-subm-13.trig> ;
2323   mf:result    <trig-subm-13.nq> ;
2324   .
2325
2326<#trig-subm-14> rdf:type rdft:TestTrigEval ;
2327   mf:name    "trig-subm-14" ;
2328   rdfs:comment "bare : allowed" ;
2329   rdft:approval rdft:Approved ;
2330   mf:action    <trig-subm-14.trig> ;
2331   mf:result    <trig-subm-14.nq> ;
2332   .
2333
2334<#trig-subm-15> rdf:type rdft:TestTrigEval ;
2335   mf:name    "trig-subm-15" ;
2336   rdfs:comment "simple long literal" ;
2337   rdft:approval rdft:Approved ;
2338   mf:action    <trig-subm-15.trig> ;
2339   mf:result    <trig-subm-15.nq> ;
2340   .
2341
2342<#trig-subm-16> rdf:type rdft:TestTrigEval ;
2343   mf:name    "trig-subm-16" ;
2344   rdfs:comment "long literals with escapes" ;
2345   rdft:approval rdft:Approved ;
2346   mf:action    <trig-subm-16.trig> ;
2347   mf:result    <trig-subm-16.nq> ;
2348   .
2349
2350<#trig-subm-17> rdf:type rdft:TestTrigEval ;
2351   mf:name    "trig-subm-17" ;
2352   rdfs:comment "floating point number" ;
2353   rdft:approval rdft:Approved ;
2354   mf:action    <trig-subm-17.trig> ;
2355   mf:result    <trig-subm-17.nq> ;
2356   .
2357
2358<#trig-subm-18> rdf:type rdft:TestTrigEval ;
2359   mf:name    "trig-subm-18" ;
2360   rdfs:comment "empty literals, normal and long variant" ;
2361   rdft:approval rdft:Approved ;
2362   mf:action    <trig-subm-18.trig> ;
2363   mf:result    <trig-subm-18.nq> ;
2364   .
2365
2366<#trig-subm-19> rdf:type rdft:TestTrigEval ;
2367   mf:name    "trig-subm-19" ;
2368   rdfs:comment "positive integer, decimal and doubles" ;
2369   rdft:approval rdft:Approved ;
2370   mf:action    <trig-subm-19.trig> ;
2371   mf:result    <trig-subm-19.nq> ;
2372   .
2373
2374<#trig-subm-20> rdf:type rdft:TestTrigEval ;
2375   mf:name    "trig-subm-20" ;
2376   rdfs:comment "negative integer, decimal and doubles" ;
2377   rdft:approval rdft:Approved ;
2378   mf:action    <trig-subm-20.trig> ;
2379   mf:result    <trig-subm-20.nq> ;
2380   .
2381
2382<#trig-subm-21> rdf:type rdft:TestTrigEval ;
2383   mf:name    "trig-subm-21" ;
2384   rdfs:comment "long literal ending in double quote" ;
2385   rdft:approval rdft:Approved ;
2386   mf:action    <trig-subm-21.trig> ;
2387   mf:result    <trig-subm-21.nq> ;
2388   .
2389
2390<#trig-subm-22> rdf:type rdft:TestTrigEval ;
2391   mf:name    "trig-subm-22" ;
2392   rdfs:comment "boolean literals" ;
2393   rdft:approval rdft:Approved ;
2394   mf:action    <trig-subm-22.trig> ;
2395   mf:result    <trig-subm-22.nq> ;
2396   .
2397
2398<#trig-subm-23> rdf:type rdft:TestTrigEval ;
2399   mf:name    "trig-subm-23" ;
2400   rdfs:comment "comments" ;
2401   rdft:approval rdft:Approved ;
2402   mf:action    <trig-subm-23.trig> ;
2403   mf:result    <trig-subm-23.nq> ;
2404   .
2405
2406<#trig-subm-24> rdf:type rdft:TestTrigEval ;
2407   mf:name    "trig-subm-24" ;
2408   rdfs:comment "no final mewline" ;
2409   rdft:approval rdft:Approved ;
2410   mf:action    <trig-subm-24.trig> ;
2411   mf:result    <trig-subm-24.nq> ;
2412   .
2413
2414<#trig-subm-25> rdf:type rdft:TestTrigEval ;
2415   mf:name    "trig-subm-25" ;
2416   rdfs:comment "repeating a @prefix changes pname definition" ;
2417   rdft:approval rdft:Approved ;
2418   mf:action    <trig-subm-25.trig> ;
2419   mf:result    <trig-subm-25.nq> ;
2420   .
2421
2422<#trig-subm-26> rdf:type rdft:TestTrigEval ;
2423   mf:name    "trig-subm-26" ;
2424   rdfs:comment "Variations on decimal canonicalization" ;
2425   rdft:approval rdft:Approved ;
2426   mf:action    <trig-subm-26.trig> ;
2427   mf:result    <trig-subm-26.nq> ;
2428   .
2429
2430<#trig-subm-27> rdf:type rdft:TestTrigEval ;
2431   mf:name    "trig-subm-27" ;
2432   rdfs:comment "Repeating @base changes base for relative IRI lookup" ;
2433   rdft:approval rdft:Approved ;
2434   mf:action    <trig-subm-27.trig> ;
2435   mf:result    <trig-subm-27.nq> ;
2436   .
2437
2438<#trig-eval-bad-01> rdf:type rdft:TestTrigNegativeEval ;
2439   mf:name    "trig-eval-bad-01" ;
2440   rdfs:comment "Bad IRI : good escape, bad charcater (negative evaluation test)" ;
2441   rdft:approval rdft:Approved ;
2442   mf:action    <trig-eval-bad-01.trig> ;
2443   .
2444
2445<#trig-eval-bad-02> rdf:type rdft:TestTrigNegativeEval ;
2446   mf:name    "trig-eval-bad-02" ;
2447   rdfs:comment "Bad IRI : hex 3C is < (negative evaluation test)" ;
2448   rdft:approval rdft:Approved ;
2449   mf:action    <trig-eval-bad-02.trig> ;
2450   .
2451
2452<#trig-eval-bad-03> rdf:type rdft:TestTrigNegativeEval ;
2453   mf:name    "trig-eval-bad-03" ;
2454   rdfs:comment "Bad IRI : hex 3E is  (negative evaluation test)" ;
2455   rdft:approval rdft:Approved ;
2456   mf:action    <trig-eval-bad-03.trig> ;
2457   .
2458
2459<#trig-eval-bad-04> rdf:type rdft:TestTrigNegativeEval ;
2460   mf:name    "trig-eval-bad-04" ;
2461   rdfs:comment "Bad IRI : {abc} (negative evaluation test)" ;
2462   rdft:approval rdft:Approved ;
2463   mf:action    <trig-eval-bad-04.trig> ;
2464   .
2465
2466# tests requested by Jeremy Carroll
2467# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35
2468<#comment_following_localName> rdf:type rdft:TestTrigEval ;
2469   mf:name      "comment_following_localName" ;
2470   rdfs:comment "comment following localName" ;
2471   rdft:approval rdft:Approved ;
2472   mf:action    <comment_following_localName.trig> ;
2473   mf:result    <IRI_spo.nq> ;
2474   .
2475
2476<#number_sign_following_localName> rdf:type rdft:TestTrigEval ;
2477   mf:name      "number_sign_following_localName" ;
2478   rdfs:comment "number sign following localName" ;
2479   rdft:approval rdft:Approved ;
2480   mf:action    <number_sign_following_localName.trig> ;
2481   mf:result    <number_sign_following_localName.nq> ;
2482   .
2483
2484<#comment_following_PNAME_NS> rdf:type rdft:TestTrigEval ;
2485   mf:name      "comment_following_PNAME_NS" ;
2486   rdfs:comment "comment following PNAME_NS" ;
2487   rdft:approval rdft:Approved ;
2488   mf:action    <comment_following_PNAME_NS.trig> ;
2489   mf:result    <comment_following_PNAME_NS.nq> ;
2490   .
2491
2492<#number_sign_following_PNAME_NS> rdf:type rdft:TestTrigEval ;
2493   mf:name      "number_sign_following_PNAME_NS" ;
2494   rdfs:comment "number sign following PNAME_NS" ;
2495   rdft:approval rdft:Approved ;
2496   mf:action    <number_sign_following_PNAME_NS.trig> ;
2497   mf:result    <number_sign_following_PNAME_NS.nq> ;
2498   .
2499
2500# tests from Dave Beckett
2501# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28
2502<#LITERAL_LONG2_with_REVERSE_SOLIDUS> rdf:type rdft:TestTrigEval ;
2503   mf:name    "LITERAL_LONG2_with_REVERSE_SOLIDUS" ;
2504   rdfs:comment "REVERSE SOLIDUS at end of LITERAL_LONG2" ;
2505   rdft:approval rdft:Approved ;
2506   mf:action    <LITERAL_LONG2_with_REVERSE_SOLIDUS.trig> ;
2507   mf:result    <LITERAL_LONG2_with_REVERSE_SOLIDUS.nq> ;
2508   .
2509
2510<#trig-syntax-bad-LITERAL2_with_langtag_and_datatype> rdf:type rdft:TestTrigNegativeSyntax ;
2511   mf:name    "trig-syntax-bad-num-05" ;
2512   rdfs:comment "Bad number format (negative test)" ;
2513   rdft:approval rdft:Approved ;
2514   mf:action    <trig-syntax-bad-LITERAL2_with_langtag_and_datatype.trig> ;
2515   .
2516
2517<#two_LITERAL_LONG2s> rdf:type rdft:TestTrigEval ;
2518   mf:name    "two_LITERAL_LONG2s" ;
2519   rdfs:comment "two LITERAL_LONG2s testing quote delimiter overrun" ;
2520   rdft:approval rdft:Approved ;
2521   mf:action    <two_LITERAL_LONG2s.trig> ;
2522   mf:result    <two_LITERAL_LONG2s.nq> ;
2523   .
2524
2525<#langtagged_LONG_with_subtag> rdf:type rdft:TestTrigEval ;
2526   mf:name      "langtagged_LONG_with_subtag" ;
2527   rdfs:comment "langtagged LONG with subtag \"\"\"Cheers\"\"\"@en-UK" ;
2528   rdft:approval rdft:Approved ;
2529   mf:action    <langtagged_LONG_with_subtag.trig> ;
2530   mf:result    <langtagged_LONG_with_subtag.nq> ;
2531   .
2532
2533# tests from David Robillard
2534# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21
2535<#trig-syntax-bad-blank-label-dot-end>
2536	rdf:type rdft:TestTrigNegativeSyntax ;
2537	rdfs:comment "Blank node label must not end in dot" ;
2538	mf:name "trig-syntax-bad-blank-label-dot-end" ;
2539        rdft:approval rdft:Approved ;
2540	mf:action <trig-syntax-bad-blank-label-dot-end.trig> .
2541
2542<#trig-syntax-bad-number-dot-in-anon>
2543	rdf:type rdft:TestTrigNegativeSyntax ;
2544	rdfs:comment "Dot delimeter may not appear in anonymous nodes" ;
2545	mf:name "trig-syntax-bad-number-dot-in-anon" ;
2546        rdft:approval rdft:Approved ;
2547	mf:action <trig-syntax-bad-number-dot-in-anon.trig> .
2548
2549<#trig-syntax-bad-ln-dash-start>
2550	rdf:type rdft:TestTrigNegativeSyntax ;
2551	rdfs:comment "Local name must not begin with dash" ;
2552	mf:name "trig-syntax-bad-ln-dash-start" ;
2553        rdft:approval rdft:Approved ;
2554	mf:action <trig-syntax-bad-ln-dash-start.trig> .
2555
2556<#trig-syntax-bad-ln-escape>
2557	rdf:type rdft:TestTrigNegativeSyntax ;
2558	rdfs:comment "Bad hex escape in local name" ;
2559	mf:name "trig-syntax-bad-ln-escape" ;
2560        rdft:approval rdft:Approved ;
2561	mf:action <trig-syntax-bad-ln-escape.trig> .
2562
2563<#trig-syntax-bad-ln-escape-start>
2564	rdf:type rdft:TestTrigNegativeSyntax ;
2565	rdfs:comment "Bad hex escape at start of local name" ;
2566	mf:name "trig-syntax-bad-ln-escape-start" ;
2567        rdft:approval rdft:Approved ;
2568	mf:action <trig-syntax-bad-ln-escape-start.trig> .
2569
2570<#trig-syntax-bad-ns-dot-end>
2571	rdf:type rdft:TestTrigNegativeSyntax ;
2572	rdfs:comment "Prefix must not end in dot" ;
2573	mf:name "trig-syntax-bad-ns-dot-end" ;
2574        rdft:approval rdft:Approved ;
2575	mf:action <trig-syntax-bad-ns-dot-end.trig> .
2576
2577<#trig-syntax-bad-ns-dot-start>
2578	rdf:type rdft:TestTrigNegativeSyntax ;
2579	rdfs:comment "Prefix must not start with dot" ;
2580	mf:name "trig-syntax-bad-ns-dot-start" ;
2581        rdft:approval rdft:Approved ;
2582	mf:action <trig-syntax-bad-ns-dot-start.trig> .
2583
2584<#trig-syntax-bad-missing-ns-dot-end>
2585	rdf:type rdft:TestTrigNegativeSyntax ;
2586	rdfs:comment "Prefix must not end in dot (error in triple, not prefix directive like trig-syntax-bad-ns-dot-end)" ;
2587	mf:name "trig-syntax-bad-missing-ns-dot-end" ;
2588        rdft:approval rdft:Approved ;
2589	mf:action <trig-syntax-bad-missing-ns-dot-end.trig> .
2590
2591<#trig-syntax-bad-missing-ns-dot-start>
2592	rdf:type rdft:TestTrigNegativeSyntax ;
2593	rdfs:comment "Prefix must not start with dot (error in triple, not prefix directive like trig-syntax-bad-ns-dot-end)" ;
2594	mf:name "trig-syntax-bad-missing-ns-dot-start" ;
2595        rdft:approval rdft:Approved ;
2596	mf:action <trig-syntax-bad-missing-ns-dot-start.trig> .
2597
2598<#trig-syntax-bad-list-01>
2599    rdf:type rdft:TestTrigNegativeSyntax ;
2600    rdfs:comment "Free-standing list outside {} : bad syntax" ;
2601   	mf:name "trig-syntax-bad-list-01" ;
2602    rdft:approval rdft:Approved ;
2603    mf:action <trig-syntax-bad-list-01.trig>
2604    .
2605
2606<#trig-syntax-bad-list-02>
2607    rdf:type rdft:TestTrigNegativeSyntax ;
2608    rdfs:comment "Free-standing list of zero-elements outside {} : bad syntax" ;
2609   	mf:name "trig-syntax-bad-list-02" ;
2610    rdft:approval rdft:Approved ;
2611    mf:action <trig-syntax-bad-list-02.trig>
2612    .
2613
2614<#trig-syntax-bad-list-03>
2615    rdf:type rdft:TestTrigNegativeSyntax ;
2616    rdfs:comment "Free-standing list inside {} : bad syntax" ;
2617   	mf:name "trig-syntax-bad-list-03" ;
2618    rdft:approval rdft:Approved ;
2619    mf:action <trig-syntax-bad-list-03.trig>
2620    .
2621
2622<#trig-syntax-bad-list-04>
2623    rdf:type rdft:TestTrigNegativeSyntax ;
2624    rdfs:comment "Free-standing list of zero elements : bad syntax" ;
2625   	mf:name "trig-syntax-bad-list-04" ;
2626    rdft:approval rdft:Approved ;
2627    mf:action <trig-syntax-bad-list-04.trig>
2628    .
2629
2630<#trig-syntax-ln-dots>
2631	rdf:type rdft:TestTrigPositiveSyntax ;
2632	rdfs:comment "Dots in pname local names" ;
2633	mf:name "trig-syntax-ln-dots" ;
2634        rdft:approval rdft:Approved ;
2635	mf:action <trig-syntax-ln-dots.trig> .
2636
2637<#trig-syntax-ln-colons>
2638	rdf:type rdft:TestTrigPositiveSyntax ;
2639	rdfs:comment "Colons in pname local names" ;
2640	mf:name "trig-syntax-ln-colons" ;
2641        rdft:approval rdft:Approved ;
2642	mf:action <trig-syntax-ln-colons.trig> .
2643
2644<#trig-syntax-ns-dots>
2645	rdf:type rdft:TestTrigPositiveSyntax ;
2646	rdfs:comment "Dots in namespace names" ;
2647	mf:name "trig-syntax-ns-dots" ;
2648        rdft:approval rdft:Approved ;
2649	mf:action <trig-syntax-ns-dots.trig> .
2650
2651<#trig-syntax-blank-label>
2652	rdf:type rdft:TestTrigPositiveSyntax ;
2653	rdfs:comment "Characters allowed in blank node labels" ;
2654	mf:name "trig-syntax-blank-label" ;
2655        rdft:approval rdft:Approved ;
2656	mf:action <trig-syntax-blank-label.trig> .
2657
2658# tests for bnode graph names, optional GRAPH keyword and
2659# triples outside {}
2660
2661<#trig-kw-graph-01> rdf:type rdft:TestTrigPositiveSyntax ;
2662   mf:name      "trig-kw-graph-01" ;
2663   rdfs:comment "Named graphs can be proceeded by GRAPH" ;
2664   rdft:approval rdft:Approved ;
2665   mf:action    <trig-kw-graph-01.trig> ;
2666   .
2667
2668<#trig-kw-graph-02> rdf:type rdft:TestTrigPositiveSyntax ;
2669   mf:name      "trig-kw-graph-02" ;
2670   rdfs:comment "Trailing . not necessary inside {}" ;
2671   rdft:approval rdft:Approved ;
2672   mf:action    <trig-kw-graph-02.trig> ;
2673   .
2674
2675<#trig-kw-graph-03> rdf:type rdft:TestTrigPositiveSyntax ;
2676   mf:name      "trig-kw-graph-03" ;
2677   rdfs:comment "Named graph may be empty" ;
2678   rdft:approval rdft:Approved ;
2679   mf:action    <trig-kw-graph-03.trig> ;
2680   .
2681
2682<#trig-kw-graph-04> rdf:type rdft:TestTrigPositiveSyntax ;
2683   mf:name      "trig-kw-graph-04" ;
2684   rdfs:comment "" ;
2685   rdft:approval rdft:Approved ;
2686   mf:action    <trig-kw-graph-04.trig> ;
2687   .
2688
2689<#trig-kw-graph-05> rdf:type rdft:TestTrigPositiveSyntax ;
2690   mf:name      "trig-kw-graph-05" ;
2691   rdfs:comment "Use of empty prefix inside named graph" ;
2692   rdft:approval rdft:Approved ;
2693   mf:action    <trig-kw-graph-05.trig> ;
2694   .
2695
2696<#trig-kw-graph-06> rdf:type rdft:TestTrigPositiveSyntax ;
2697   mf:name      "trig-kw-graph-06" ;
2698   rdfs:comment "" ;
2699   rdft:approval rdft:Approved ;
2700   mf:action    <trig-kw-graph-06.trig> ;
2701   .
2702
2703<#trig-kw-graph-07> rdf:type rdft:TestTrigPositiveSyntax ;
2704   mf:name      "trig-kw-graph-07" ;
2705   rdfs:comment "Named graph may be named with BNode _:a" ;
2706   rdft:approval rdft:Approved ;
2707   mf:action    <trig-kw-graph-07.trig> ;
2708   .
2709
2710<#trig-kw-graph-08> rdf:type rdft:TestTrigPositiveSyntax ;
2711   mf:name      "trig-kw-graph-08" ;
2712   rdfs:comment "Named graph may be named with BNode []" ;
2713   rdft:approval rdft:Approved ;
2714   mf:action    <trig-kw-graph-08.trig> ;
2715   .
2716
2717<#trig-kw-graph-09> rdf:type rdft:TestTrigPositiveSyntax ;
2718   mf:name      "trig-kw-graph-09" ;
2719   rdfs:comment "Named graph may be named with PNAME" ;
2720   rdft:approval rdft:Approved ;
2721   mf:action    <trig-kw-graph-09.trig> ;
2722   .
2723
2724<#trig-kw-graph-10> rdf:type rdft:TestTrigPositiveSyntax ;
2725   mf:name      "trig-kw-graph-10" ;
2726   rdfs:comment "Named graph with PNAME and empty graph" ;
2727   rdft:approval rdft:Approved ;
2728   mf:action    <trig-kw-graph-10.trig> ;
2729   .
2730
2731<#trig-graph-bad-01> rdf:type rdft:TestTrigNegativeSyntax ;
2732   mf:name      "trig-graph-bad-01" ;
2733   rdfs:comment "GRAPH but no name - GRAPH is not used with the default graph" ;
2734   rdft:approval rdft:Approved ;
2735   mf:action    <trig-graph-bad-01.trig> ;
2736   .
2737
2738<#trig-graph-bad-02> rdf:type rdft:TestTrigNegativeSyntax ;
2739   mf:name      "trig-graph-bad-02" ;
2740   rdfs:comment "GRAPH not followed by DOT" ;
2741   rdft:approval rdft:Approved ;
2742   mf:action    <trig-graph-bad-02.trig> ;
2743   .
2744
2745<#trig-graph-bad-03> rdf:type rdft:TestTrigNegativeSyntax ;
2746   mf:name      "trig-graph-bad-03" ;
2747   rdfs:comment "GRAPH needs {}" ;
2748   rdft:approval rdft:Approved ;
2749   mf:action    <trig-graph-bad-03.trig> ;
2750   .
2751
2752<#trig-graph-bad-04> rdf:type rdft:TestTrigNegativeSyntax ;
2753   mf:name      "trig-graph-bad-04" ;
2754   rdfs:comment "GRAPH needs {}" ;
2755   rdft:approval rdft:Approved ;
2756   mf:action    <trig-graph-bad-04.trig> ;
2757   .
2758
2759<#trig-graph-bad-05> rdf:type rdft:TestTrigNegativeSyntax ;
2760   mf:name      "trig-graph-bad-05" ;
2761   rdfs:comment "GRAPH and a name, not several" ;
2762   rdft:approval rdft:Approved ;
2763   mf:action    <trig-graph-bad-05.trig> ;
2764   .
2765
2766<#trig-graph-bad-06> rdf:type rdft:TestTrigNegativeSyntax ;
2767   mf:name      "trig-graph-bad-06" ;
2768   rdfs:comment "GRAPH - Must close {}" ;
2769   rdft:approval rdft:Approved ;
2770   mf:action    <trig-graph-bad-06.trig> ;
2771   .
2772
2773<#trig-graph-bad-07> rdf:type rdft:TestTrigNegativeSyntax ;
2774   mf:name      "trig-graph-bad-07" ;
2775   rdfs:comment "GRAPH may not include a GRAPH" ;
2776   rdft:approval rdft:Approved ;
2777   mf:action    <trig-graph-bad-07.trig> ;
2778   .
2779
2780<#trig-graph-bad-08> rdf:type rdft:TestTrigNegativeSyntax ;
2781   mf:name      "trig-graph-bad-08" ;
2782   rdfs:comment "@graph is not a keyword" ;
2783   rdft:approval rdft:Approved ;
2784   mf:action    <trig-graph-bad-08.trig> ;
2785   .
2786
2787<#trig-graph-bad-09> rdf:type rdft:TestTrigNegativeSyntax ;
2788   mf:name      "trig-graph-bad-09" ;
2789   rdfs:comment "Directives not allowed inside GRAPH" ;
2790   rdft:approval rdft:Approved ;
2791   mf:action    <trig-graph-bad-09.trig> ;
2792   .
2793
2794<#trig-graph-bad-10> rdf:type rdft:TestTrigNegativeSyntax ;
2795   mf:name      "trig-graph-bad-10" ;
2796   rdfs:comment "A graph may not be named with an empty collection" ;
2797   rdft:approval rdft:Approved ;
2798   mf:action    <trig-graph-bad-10.trig> ;
2799   .
2800
2801<#trig-graph-bad-11> rdf:type rdft:TestTrigNegativeSyntax ;
2802   mf:name      "trig-graph-bad-11" ;
2803   rdfs:comment "A graph may not be named with a collection" ;
2804   rdft:approval rdft:Approved ;
2805   mf:action    <trig-graph-bad-11.trig> ;
2806   .
2807
2808<#trig-bnodeplist-graph-01> rdf:type rdft:TestTrigNegativeSyntax ;
2809   mf:name      "trig-bnodeplist-graph-bad-01" ;
2810   rdfs:comment "A graph may not be named with a blankNodePropertyList" ;
2811   rdft:approval rdft:Approved ;
2812   mf:action    <trig-bnodeplist-graph-bad-01.trig> ;
2813   .
2814
2815<#trig-collection-graph-01> rdf:type rdft:TestTrigNegativeSyntax ;
2816   mf:name      "trig-collection-graph-bad-01" ;
2817   rdfs:comment "A graph may not be named with an empty collection" ;
2818   rdft:approval rdft:Approved ;
2819   mf:action    <trig-collection-graph-bad-01.trig> ;
2820   .
2821
2822<#trig-collection-graph-02> rdf:type rdft:TestTrigNegativeSyntax ;
2823   mf:name      "trig-collection-graph-bad-02" ;
2824   rdfs:comment "A graph may not be named with a collection" ;
2825   rdft:approval rdft:Approved ;
2826   mf:action    <trig-collection-graph-bad-02.trig> ;
2827   .
2828
2829<#trig-turtle-01> rdf:type rdft:TestTrigPositiveSyntax ;
2830   mf:name      "trig-turtle-01" ;
2831   rdfs:comment "TriG can parse Turtle" ;
2832   rdft:approval rdft:Approved ;
2833   mf:action    <trig-turtle-01.trig> ;
2834   .
2835
2836<#trig-turtle-02> rdf:type rdft:TestTrigPositiveSyntax ;
2837   mf:name      "trig-turtle-02" ;
2838   rdfs:comment "TriG can parse Turtle (repeated PREFIX)" ;
2839   rdft:approval rdft:Approved ;
2840   mf:action    <trig-turtle-02.trig> ;
2841   .
2842
2843<#trig-turtle-03> rdf:type rdft:TestTrigPositiveSyntax ;
2844   mf:name      "trig-turtle-03" ;
2845   rdfs:comment "TriG can parse Turtle (blankNodePropertyList subject)" ;
2846   rdft:approval rdft:Approved ;
2847   mf:action    <trig-turtle-03.trig> ;
2848   .
2849
2850<#trig-turtle-04> rdf:type rdft:TestTrigPositiveSyntax ;
2851   mf:name      "trig-turtle-04" ;
2852   rdfs:comment "TriG can parse Turtle (blankNodePropertyList subject)" ;
2853   rdft:approval rdft:Approved ;
2854   mf:action    <trig-turtle-04.trig> ;
2855   .
2856
2857<#trig-turtle-05> rdf:type rdft:TestTrigPositiveSyntax ;
2858   mf:name      "trig-turtle-05" ;
2859   rdfs:comment "TriG can parse Turtle (bare blankNodePropertyList)" ;
2860   rdft:approval rdft:Approved ;
2861   mf:action    <trig-turtle-05.trig> ;
2862   .
2863
2864<#trig-turtle-06> rdf:type rdft:TestTrigPositiveSyntax ;
2865   mf:name      "trig-turtle-06" ;
2866   rdfs:comment "TriG can parse Turtle (collection subject and object)" ;
2867   rdft:approval rdft:Approved ;
2868   mf:action    <trig-turtle-06.trig> ;
2869   .
2870
2871<#trig-turtle-bad-01> rdf:type rdft:TestTrigNegativeSyntax ;
2872   mf:name      "trig-turtle-bad-01" ;
2873   rdfs:comment "Trailing dot required in Turtle block" ;
2874   rdft:approval rdft:Approved ;
2875   mf:action    <trig-turtle-bad-01.trig> ;
2876   .
2877
2878<#trig-turtle-bad-02> rdf:type rdft:TestTrigNegativeSyntax ;
2879   mf:name      "trig-turtle-bad-02" ;
2880   rdfs:comment "TriG is not N-Quads" ;
2881   rdft:approval rdft:Approved ;
2882   mf:action    <trig-turtle-bad-02.trig> ;
2883   .
2884