Holger Knublauch

Added error codes to constraints

......@@ -106,7 +106,7 @@ ddr:Cs_drillReportWellboreInfo
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Mismatch for rig code " ;
sp:arg1 "[RH-19] Mismatch for rig code " ;
sp:arg2 [ sp:varName "code"^^xsd:string
] ;
sp:arg3 ": The NPD name is " ;
......@@ -125,7 +125,7 @@ ddr:Cs_drillReportWellboreInfo
ddr:Obj_drillReport
spin:constraint
[ rdf:type sp:Ask ;
rdfs:comment "DDRs can only be submitted if a user is logged in"^^xsd:string ;
rdfs:comment "[RH-10] DDRs can only be submitted if a user is logged in"^^xsd:string ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyName
......@@ -145,7 +145,7 @@ ddr:Obj_drillReport
] ;
spin:constraint
[ rdf:type sp:Ask ;
rdfs:comment "DDRs can only be submitted if the logged-in user is from a registered company"^^xsd:string ;
rdfs:comment "[RH-10] DDRs can only be submitted if the logged-in user is from a registered company"^^xsd:string ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyName
......@@ -230,7 +230,7 @@ ddr:Obj_drillReport
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Well bore number " ;
sp:arg1 "[RH-19] Well bore number " ;
sp:arg2 [ sp:varName "wellBoreNumber"^^xsd:string
] ;
sp:arg3 " mismatches well bore name " ;
......@@ -285,7 +285,7 @@ ddr:Obj_drillReport
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Unregistered well bore name " ;
sp:arg1 "[RH-21] Unregistered well bore name " ;
sp:arg2 [ sp:varName "wellBoreName"^^xsd:string
]
] ;
......
......@@ -114,7 +114,7 @@
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Your company (" ;
sp:arg1 "[RH-11] Your company (" ;
sp:arg2 [ sp:varName "companyName"^^xsd:string
] ;
sp:arg3 ") is not the operator of the BAA or licence associated with well bore " ;
......