summaryrefslogtreecommitdiffstats
path: root/tests/turtle/manifest-bad.ttl
blob: 3a9d0e89e3840fcc02e4e849b351176b8a5bfd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf:     <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt:     <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .

<>  rdf:type mf:Manifest ;
    rdfs:comment "Turtle bad syntax test cases (must fail)" ;
    mf:entries
    (

     [  mf:name      "bad-00" ;
        rdfs:comment "prefix name must end in a :" ;
        mf:action [ qt:data   <bad-00.ttl> ] ;
     ]

     [  mf:name      "bad-01" ;
        rdfs:comment "blank predicate forbidden" ;
        mf:action [ qt:data   <bad-01.ttl> ] ;
     ]

     [  mf:name      "bad-02" ;
        rdfs:comment "blank predicate forbidden" ;
        mf:action [ qt:data   <bad-02.ttl> ] ;
     ]

     [  mf:name      "bad-03" ;
        rdfs:comment "a forbidden as subject" ;
        mf:action [ qt:data   <bad-03.ttl> ] ;
     ]

     [  mf:name      "bad-04" ;
        rdfs:comment ", not allowed in collections" ;
        mf:action [ qt:data   <bad-04.ttl> ] ;
     ]

     [  mf:name      "bad-05" ;
        rdfs:comment "{} not allowed in Turtle" ;
        mf:action [ qt:data   <bad-05.ttl> ] ;
     ]

     [  mf:name      "bad-06" ;
        rdfs:comment "is and of not allowed in Turtle" ;
        mf:action [ qt:data   <bad-06.ttl> ] ;
     ]

     [  mf:name      "bad-07" ;
        rdfs:comment "paths not allowed in Turtle" ;
        mf:action [ qt:data   <bad-07.ttl> ] ;
     ]

     [  mf:name      "bad-08" ;
        rdfs:comment "@keywords not allowed in Turtle" ;
        mf:action [ qt:data   <bad-08.ttl> ] ;
     ]

     [  mf:name      "bad-09" ;
        rdfs:comment "=> not allowed in Turtle" ;
        mf:action [ qt:data   <bad-09.ttl> ] ;
     ]

     [  mf:name      "bad-10" ;
        rdfs:comment "= not allowed in Turtle" ;
        mf:action [ qt:data   <bad-10.ttl> ] ;
     ]

     [  mf:name      "bad-11" ;
        rdfs:comment "@forAll not allowed in Turtle" ;
        mf:action [ qt:data   <bad-11.ttl> ] ;
     ]

     [  mf:name      "bad-12" ;
        rdfs:comment "@forSome not allowed in Turtle" ;
        mf:action [ qt:data   <bad-12.ttl> ] ;
     ]

     [  mf:name      "bad-13" ;
        rdfs:comment "<= not allowed in Turtle" ;
        mf:action [ qt:data   <bad-13.ttl> ] ;
     ]

     [  mf:name      "bad-14" ;
        rdfs:comment "long literal with missing end" ;
        mf:action [ qt:data   <bad-14.ttl> ] ;
     ]

     [  mf:name      "bad-17" ;
        rdfs:comment "literal with ''s" ;
        mf:action [ qt:data   <bad-17.ttl> ] ;
     ]

     [  mf:name      "bad-18" ;
        rdfs:comment "long literal with '''s" ;
        mf:action [ qt:data   <bad-18.ttl> ] ;
     ]

     [  mf:name      "bad-19" ;
        rdfs:comment "Bad () in predicate position" ;
        mf:action [ qt:data   <bad-19.ttl> ] ;
     ]

     [  mf:name      "bad-20" ;
        rdfs:comment "Escape end-of-file" ;
        mf:action [ qt:data   <bad-20.ttl> ] ;
     ]

     [  mf:name      "bad-21" ;
        rdfs:comment "Turtle spec does not allow . in namespace prefix (token prefixName)" ;
        mf:action [ qt:data   <bad-21.ttl> ] ;
     ]

     [  mf:name      "bad-22" ;
        rdfs:comment "Turtle spec does not allow . in namespace name (token name)" ;
        mf:action [ qt:data   <bad-22.ttl> ] ;
     ]

     [  mf:name      "bad-23" ;
        rdfs:comment "Bad terminating long literal" ;
        mf:action [ qt:data   <bad-23.ttl> ] ;
     ]


    # End of tests
   ).