1
+ [
2
+ {
3
+ "@context" : {
4
+ "actual" : {
5
+ "@id" : "http://a.ml/vocabularies/validation#actual"
6
+ } ,
7
+ "argument" : {
8
+ "@id" : "http://a.ml/vocabularies/validation#argument"
9
+ } ,
10
+ "column" : {
11
+ "@id" : "http://a.ml/vocabularies/lexical#column"
12
+ } ,
13
+ "component" : {
14
+ "@id" : "http://a.ml/vocabularies/validation#component"
15
+ } ,
16
+ "condition" : {
17
+ "@id" : "http://a.ml/vocabularies/validation#condition"
18
+ } ,
19
+ "conforms" : {
20
+ "@id" : "http://www.w3.org/ns/shacl#conforms"
21
+ } ,
22
+ "doc" : "http://a.ml/vocabularies/document#" ,
23
+ "end" : {
24
+ "@id" : "http://a.ml/vocabularies/lexical#end"
25
+ } ,
26
+ "expected" : {
27
+ "@id" : "http://a.ml/vocabularies/validation#expected"
28
+ } ,
29
+ "focusNode" : {
30
+ "@id" : "http://www.w3.org/ns/shacl#focusNode"
31
+ } ,
32
+ "lexical" : "http://a.ml/vocabularies/lexical#" ,
33
+ "lexicalSchema" : "file:///dialects/lexical.yaml#/declarations/" ,
34
+ "line" : {
35
+ "@id" : "http://a.ml/vocabularies/lexical#line"
36
+ } ,
37
+ "location" : {
38
+ "@id" : "http://a.ml/vocabularies/validation#location"
39
+ } ,
40
+ "meta" : "http://a.ml/vocabularies/meta#" ,
41
+ "negated" : {
42
+ "@id" : "http://a.ml/vocabularies/validation#negated"
43
+ } ,
44
+ "profileName" : {
45
+ "@id" : "http://a.ml/vocabularies/validation#profileName"
46
+ } ,
47
+ "range" : {
48
+ "@id" : "http://a.ml/vocabularies/lexical#range"
49
+ } ,
50
+ "reportSchema" : "file:///dialects/validation-report.yaml#/declarations/" ,
51
+ "result" : {
52
+ "@id" : "http://www.w3.org/ns/shacl#result"
53
+ } ,
54
+ "resultMessage" : {
55
+ "@id" : "http://www.w3.org/ns/shacl#resultMessage"
56
+ } ,
57
+ "resultPath" : {
58
+ "@id" : "http://www.w3.org/ns/shacl#resultPath"
59
+ } ,
60
+ "resultSeverity" : {
61
+ "@id" : "http://www.w3.org/ns/shacl#resultSeverity"
62
+ } ,
63
+ "shacl" : "http://www.w3.org/ns/shacl#" ,
64
+ "sourceShapeName" : {
65
+ "@id" : "http://a.ml/vocabularies/validation#sourceShapeName"
66
+ } ,
67
+ "start" : {
68
+ "@id" : "http://a.ml/vocabularies/lexical#start"
69
+ } ,
70
+ "subResult" : {
71
+ "@id" : "http://a.ml/vocabularies/validation#subResult"
72
+ } ,
73
+ "trace" : {
74
+ "@id" : "http://a.ml/vocabularies/validation#trace"
75
+ } ,
76
+ "traceValue" : {
77
+ "@id" : "http://www.w3.org/ns/shacl#traceValue"
78
+ } ,
79
+ "uri" : {
80
+ "@id" : "http://a.ml/vocabularies/lexical#uri"
81
+ } ,
82
+ "validation" : "http://a.ml/vocabularies/validation#"
83
+ } ,
84
+ "@id" : "dialect-instance" ,
85
+ "@type" : [
86
+ "meta:DialectInstance" ,
87
+ "doc:Document" ,
88
+ "doc:Fragment" ,
89
+ "doc:Module" ,
90
+ "doc:Unit"
91
+ ] ,
92
+ "doc:encodes" : [
93
+ {
94
+ "@id" : "validation-report" ,
95
+ "@type" : [
96
+ "reportSchema:ReportNode" ,
97
+ "shacl:ValidationReport"
98
+ ] ,
99
+ "conforms" : false ,
100
+ "profileName" : "Movie ratings" ,
101
+ "result" : [
102
+ {
103
+ "@id" : "violation_0" ,
104
+ "@type" : [
105
+ "reportSchema:ValidationResultNode" ,
106
+ "shacl:ValidationResult"
107
+ ] ,
108
+ "focusNode" : "http://0.0.0.0:8080/v1/movie/Lionsgate/Disaster+Movie#/" ,
109
+ "resultMessage" : "Movie 'Disaster Movie' has a rating of 1.9 but it does not have at least 10 reviews (actual reviews: 5) to support that rating" ,
110
+ "resultSeverity" : "http://www.w3.org/ns/shacl#Violation" ,
111
+ "sourceShapeName" : "not-enough-reviews" ,
112
+ "trace" : [
113
+ {
114
+ "@id" : "violation_0_0" ,
115
+ "@type" : [
116
+ "reportSchema:TraceMessageNode" ,
117
+ "validation:TraceMessage"
118
+ ] ,
119
+ "component" : "minimumInclusive" ,
120
+ "resultPath" : "http://anypoint.com/vocabs/movie#reviewsAmount" ,
121
+ "traceValue" : {
122
+ "@id" : "violation_0_0_traceValue" ,
123
+ "@type" : [
124
+ "reportSchema:TraceValueNode" ,
125
+ "validation:TraceValue"
126
+ ] ,
127
+ "actual" : 5 ,
128
+ "condition" : ">=" ,
129
+ "expected" : 10 ,
130
+ "negated" : false
131
+ }
132
+ } ,
133
+ {
134
+ "@id" : "violation_0_1" ,
135
+ "@type" : [
136
+ "reportSchema:TraceMessageNode" ,
137
+ "validation:TraceMessage"
138
+ ] ,
139
+ "component" : "minimumExclusive" ,
140
+ "resultPath" : "http://anypoint.com/vocabs/movie#rating" ,
141
+ "traceValue" : {
142
+ "@id" : "violation_0_1_traceValue" ,
143
+ "@type" : [
144
+ "reportSchema:TraceValueNode" ,
145
+ "validation:TraceValue"
146
+ ] ,
147
+ "actual" : 1.9 ,
148
+ "condition" : ">" ,
149
+ "expected" : 0 ,
150
+ "negated" : true
151
+ }
152
+ }
153
+ ]
154
+ }
155
+ ]
156
+ }
157
+ ] ,
158
+ "doc:processingData" : [
159
+ {
160
+ "@id" : "processing-data" ,
161
+ "@type" : [
162
+ "doc:DialectInstanceProcessingData"
163
+ ] ,
164
+ "doc:sourceSpec" : "Validation Report 1.0"
165
+ }
166
+ ]
167
+ }
168
+ ]
0 commit comments