@@ -14,57 +14,64 @@ ex:IRIShape a sh:NodeShape ;
14
14
ex:IRIListShape
15
15
rdf:type sh:NodeShape ;
16
16
sh:memberShape ex:IRIShape ;
17
- sh:targetNode ( ex:Alice ex:Bob ) ;
17
+ sh:targetNode ex:list0 ;
18
18
# Valid empty list
19
- sh:targetNode () ;
20
- # _:b1 is valid, the remainder trigger violations (including _:b3 which has no properties in this graph)
21
- sh:targetNode _:b1, _:b2, _:b3, _:b4, _:b5, _:b6, _:b7, _:b9 ;
19
+ sh:targetNode rdf:nil ;
20
+ # ex:list1 is valid, the remainder trigger violations (including ex:list3 which has no properties in this graph)
21
+ sh:targetNode ex:list1, ex:list2, ex:list3, ex:list4, ex:list5, ex:list6, ex:list7, ex:list9 ;
22
22
.
23
23
24
- _:b1
24
+ ex:list0
25
+ rdf:first ex:Alice ;
26
+ rdf:rest (
27
+ ex:Bob
28
+ ) ;
29
+ .
30
+
31
+ ex:list1
25
32
rdf:first ex:Alice ;
26
33
rdf:rest rdf:nil ;
27
34
ex:extraProperty " extra" ;
28
35
.
29
36
30
- _:b2
37
+ ex:list2
31
38
rdf:first ex:Alice ;
32
39
rdf:rest (
33
40
" Bob"
34
41
)
35
42
.
36
43
37
- _:b4
44
+ ex:list4
38
45
rdf:first ex:Alice ;
39
46
.
40
47
41
- _:b5
48
+ ex:list5
42
49
rdf:first " Charlie" ;
43
50
rdf:rest (
44
51
" Donna"
45
52
)
46
53
.
47
54
48
- _:b6
55
+ ex:list6
49
56
rdf:first " Charlie" ;
50
57
.
51
58
52
- _:b8 rdfs:label " Malformed SHACL List" .
59
+ ex:list8 rdfs:label " Malformed SHACL List" .
53
60
54
- _:b7
61
+ ex:list7
55
62
rdf:first " Charlie" ;
56
- rdf:rest _:b8 ;
63
+ rdf:rest ex:list8 ;
57
64
.
58
65
59
- # using _:b9 and _:b10 to test recursive list error
60
- _:b9
66
+ # using ex:list9 and ex:list10 to test recursive list error
67
+ ex:list9
61
68
rdf:first ex:Alice ;
62
- rdf:rest _:b10 ;
69
+ rdf:rest ex:list10 ;
63
70
.
64
71
65
- _:b10
72
+ ex:list10
66
73
rdf:first " Bob" ;
67
- rdf:rest _:b9 .
74
+ rdf:rest ex:list9 .
68
75
69
76
<>
70
77
rdf:type mf:Manifest ;
85
92
sh:conforms " false" ^^xsd:boolean ;
86
93
sh:result [
87
94
rdf:type sh:ValidationResult ;
88
- sh:focusNode _:b2 ;
95
+ sh:focusNode ex:list2 ;
89
96
sh:resultMessage " Value does not conform to Shape ex:IRIListShape. See details for more information." ;
90
97
sh:resultSeverity sh:Violation ;
91
98
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
@@ -102,43 +109,43 @@ _:b10
102
109
] ;
103
110
sh:result [
104
111
rdf:type sh:ValidationResult ;
105
- sh:focusNode _:b3 ;
112
+ sh:focusNode ex:list3 ;
106
113
sh:resultMessage " Value is a malformed SHACL List." ;
107
114
sh:resultSeverity sh:Violation ;
108
115
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
109
116
sh:sourceShape ex:IRIListShape ;
110
- sh:value _:b3 ;
117
+ sh:value ex:list3 ;
111
118
sh:detail [
112
119
rdf:type sh:ValidationResult ;
113
- sh:focusNode _:b3 ;
114
- sh:resultMessage " Value is a malformed SHACL List. _:b3 is missing rdf:first and rdf:rest properties." ;
120
+ sh:focusNode ex:list3 ;
121
+ sh:resultMessage " Value is a malformed SHACL List. ex:list3 is missing rdf:first and rdf:rest properties." ;
115
122
sh:resultSeverity sh:Violation ;
116
123
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
117
124
sh:sourceShape ex:IRIListShape ;
118
- sh:value _:b3 ;
125
+ sh:value ex:list3 ;
119
126
] ;
120
127
] ;
121
128
sh:result [
122
129
rdf:type sh:ValidationResult ;
123
- sh:focusNode _:b4 ;
130
+ sh:focusNode ex:list4 ;
124
131
sh:resultMessage " Value does not conform to Shape ex:IRIListShape. See details for more information." ;
125
132
sh:resultSeverity sh:Violation ;
126
133
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
127
134
sh:sourceShape ex:IRIListShape ;
128
- sh:value _:b4 ;
135
+ sh:value ex:list4 ;
129
136
sh:detail [
130
137
rdf:type sh:ValidationResult ;
131
- sh:focusNode _:b4 ;
132
- sh:resultMessage " Value is a malformed SHACL List. _:b4 is missing rdf:rest property." ;
138
+ sh:focusNode ex:list4 ;
139
+ sh:resultMessage " Value is a malformed SHACL List. ex:list4 is missing rdf:rest property." ;
133
140
sh:resultSeverity sh:Violation ;
134
141
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
135
142
sh:sourceShape ex:IRIListShape ;
136
- sh:value _:b4 ;
143
+ sh:value ex:list4 ;
137
144
] ;
138
145
] ;
139
146
sh:result [
140
147
rdf:type sh:ValidationResult ;
141
- sh:focusNode _:b5 ;
148
+ sh:focusNode ex:list5 ;
142
149
sh:resultMessage " Value does not conform to Shape ex:IRIListShape. See details for more information." ;
143
150
sh:resultSeverity sh:Violation ;
144
151
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
@@ -163,7 +170,7 @@ _:b10
163
170
] ;
164
171
sh:result [
165
172
rdf:type sh:ValidationResult ;
166
- sh:focusNode _:b6 ;
173
+ sh:focusNode ex:list6 ;
167
174
sh:resultMessage " Value does not conform to Shape ex:IRIListShape. See details for more information." ;
168
175
sh:resultSeverity sh:Violation ;
169
176
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
@@ -178,17 +185,17 @@ _:b10
178
185
sh:value " Charlie" ;
179
186
], [
180
187
rdf:type sh:ValidationResult ;
181
- sh:focusNode _:b6 ;
182
- sh:resultMessage " Value is a malformed SHACL List. _:b6 is missing rdf:rest property." ;
188
+ sh:focusNode ex:list6 ;
189
+ sh:resultMessage " Value is a malformed SHACL List. ex:list6 is missing rdf:rest property." ;
183
190
sh:resultSeverity sh:Violation ;
184
191
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
185
192
sh:sourceShape ex:IRIListShape ;
186
- sh:value _:b6 ;
193
+ sh:value ex:list6 ;
187
194
] ;
188
195
] ;
189
196
sh:result [
190
197
rdf:type sh:ValidationResult ;
191
- sh:focusNode _:b7 ;
198
+ sh:focusNode ex:list7 ;
192
199
sh:resultMessage " Value does not conform to Shape ex:IRIListShape. See details for more information." ;
193
200
sh:resultSeverity sh:Violation ;
194
201
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
@@ -203,17 +210,17 @@ _:b10
203
210
sh:value " Charlie" ;
204
211
], [
205
212
rdf:type sh:ValidationResult ;
206
- sh:focusNode _:b8 ;
207
- sh:resultMessage " Value is a malformed SHACL List. _:b8 is missing rdf:first and rdf:rest property." ;
213
+ sh:focusNode ex:list8 ;
214
+ sh:resultMessage " Value is a malformed SHACL List. ex:list8 is missing rdf:first and rdf:rest property." ;
208
215
sh:resultSeverity sh:Violation ;
209
216
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
210
217
sh:sourceShape ex:IRIListShape ;
211
- sh:value _:b8 ;
218
+ sh:value ex:list8 ;
212
219
] ;
213
220
] ;
214
221
sh:result [
215
222
rdf:type sh:ValidationResult ;
216
- sh:focusNode _:b9 ;
223
+ sh:focusNode ex:list9 ;
217
224
sh:resultMessage " Value does not conform to Shape ex:IRIListShape. See details for more information." ;
218
225
sh:resultSeverity sh:Violation ;
219
226
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
@@ -228,12 +235,12 @@ _:b10
228
235
sh:value " Charlie" ;
229
236
], [
230
237
rdf:type sh:ValidationResult ;
231
- sh:focusNode _:b10 ;
232
- sh:resultMessage " Value is a malformed SHACL List. A list cannot have itself in the rdf:rest+ path. List _:b9 follows from _:b10 ." ;
238
+ sh:focusNode ex:list10 ;
239
+ sh:resultMessage " Value is a malformed SHACL List. A list cannot have itself in the rdf:rest+ path. List ex:list9 follows from ex:list10 ." ;
233
240
sh:resultSeverity sh:Violation ;
234
241
sh:sourceConstraintComponent sh:MemberShapeConstraintComponent ;
235
242
sh:sourceShape ex:IRIListShape ;
236
- sh:value _:b9 ;
243
+ sh:value ex:list9 ;
237
244
] ;
238
245
] ;
239
246
] ;
0 commit comments