Holger Knublauch

Added error codes to constraints

...@@ -106,7 +106,7 @@ ddr:Cs_drillReportWellboreInfo ...@@ -106,7 +106,7 @@ ddr:Cs_drillReportWellboreInfo
106 ] [ rdf:type sp:Bind ; 106 ] [ rdf:type sp:Bind ;
107 sp:expression 107 sp:expression
108 [ rdf:type fn:concat ; 108 [ rdf:type fn:concat ;
109 - sp:arg1 "Mismatch for rig code " ; 109 + sp:arg1 "[RH-19] Mismatch for rig code " ;
110 sp:arg2 [ sp:varName "code"^^xsd:string 110 sp:arg2 [ sp:varName "code"^^xsd:string
111 ] ; 111 ] ;
112 sp:arg3 ": The NPD name is " ; 112 sp:arg3 ": The NPD name is " ;
...@@ -125,7 +125,7 @@ ddr:Cs_drillReportWellboreInfo ...@@ -125,7 +125,7 @@ ddr:Cs_drillReportWellboreInfo
125 ddr:Obj_drillReport 125 ddr:Obj_drillReport
126 spin:constraint 126 spin:constraint
127 [ rdf:type sp:Ask ; 127 [ rdf:type sp:Ask ;
128 - rdfs:comment "DDRs can only be submitted if a user is logged in"^^xsd:string ; 128 + rdfs:comment "[RH-10] DDRs can only be submitted if a user is logged in"^^xsd:string ;
129 sp:where ([ rdf:type sp:Bind ; 129 sp:where ([ rdf:type sp:Bind ;
130 sp:expression 130 sp:expression
131 [ rdf:type rhspin:companyName 131 [ rdf:type rhspin:companyName
...@@ -145,7 +145,7 @@ ddr:Obj_drillReport ...@@ -145,7 +145,7 @@ ddr:Obj_drillReport
145 ] ; 145 ] ;
146 spin:constraint 146 spin:constraint
147 [ rdf:type sp:Ask ; 147 [ rdf:type sp:Ask ;
148 - rdfs:comment "DDRs can only be submitted if the logged-in user is from a registered company"^^xsd:string ; 148 + rdfs:comment "[RH-10] DDRs can only be submitted if the logged-in user is from a registered company"^^xsd:string ;
149 sp:where ([ rdf:type sp:Bind ; 149 sp:where ([ rdf:type sp:Bind ;
150 sp:expression 150 sp:expression
151 [ rdf:type rhspin:companyName 151 [ rdf:type rhspin:companyName
...@@ -230,7 +230,7 @@ ddr:Obj_drillReport ...@@ -230,7 +230,7 @@ ddr:Obj_drillReport
230 ] [ rdf:type sp:Bind ; 230 ] [ rdf:type sp:Bind ;
231 sp:expression 231 sp:expression
232 [ rdf:type fn:concat ; 232 [ rdf:type fn:concat ;
233 - sp:arg1 "Well bore number " ; 233 + sp:arg1 "[RH-19] Well bore number " ;
234 sp:arg2 [ sp:varName "wellBoreNumber"^^xsd:string 234 sp:arg2 [ sp:varName "wellBoreNumber"^^xsd:string
235 ] ; 235 ] ;
236 sp:arg3 " mismatches well bore name " ; 236 sp:arg3 " mismatches well bore name " ;
...@@ -285,7 +285,7 @@ ddr:Obj_drillReport ...@@ -285,7 +285,7 @@ ddr:Obj_drillReport
285 ] [ rdf:type sp:Bind ; 285 ] [ rdf:type sp:Bind ;
286 sp:expression 286 sp:expression
287 [ rdf:type fn:concat ; 287 [ rdf:type fn:concat ;
288 - sp:arg1 "Unregistered well bore name " ; 288 + sp:arg1 "[RH-21] Unregistered well bore name " ;
289 sp:arg2 [ sp:varName "wellBoreName"^^xsd:string 289 sp:arg2 [ sp:varName "wellBoreName"^^xsd:string
290 ] 290 ]
291 ] ; 291 ] ;
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
114 ] [ rdf:type sp:Bind ; 114 ] [ rdf:type sp:Bind ;
115 sp:expression 115 sp:expression
116 [ rdf:type fn:concat ; 116 [ rdf:type fn:concat ;
117 - sp:arg1 "Your company (" ; 117 + sp:arg1 "[RH-11] Your company (" ;
118 sp:arg2 [ sp:varName "companyName"^^xsd:string 118 sp:arg2 [ sp:varName "companyName"^^xsd:string
119 ] ; 119 ] ;
120 sp:arg3 ") is not the operator of the BAA or licence associated with well bore " ; 120 sp:arg3 ") is not the operator of the BAA or licence associated with well bore " ;
......