Showing
1 changed file
with
141 additions
and
80 deletions
| ... | @@ -22,62 +22,7 @@ arg:kindRef | ... | @@ -22,62 +22,7 @@ arg:kindRef |
| 22 | rdfs:label "kind ref"^^xsd:string ; | 22 | rdfs:label "kind ref"^^xsd:string ; |
| 23 | rdfs:subPropertyOf sp:arg . | 23 | rdfs:subPropertyOf sp:arg . |
| 24 | 24 | ||
| 25 | -<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 25 | +<http://www.epim.no/schemas/mprml/1#Cs_wellContext> |
| 26 | - spin:constraint | ||
| 27 | - [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 28 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 29 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 30 | - ] ; | ||
| 31 | - spin:constraint | ||
| 32 | - [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 33 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 34 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 35 | - ] ; | ||
| 36 | - spin:constraint | ||
| 37 | - [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 38 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 39 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 40 | - ] ; | ||
| 41 | - spin:constraint | ||
| 42 | - [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 43 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 44 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 45 | - ] ; | ||
| 46 | - spin:constraint | ||
| 47 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 48 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 49 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 50 | - ] ; | ||
| 51 | - spin:constraint | ||
| 52 | - [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 53 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 54 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 55 | - ] ; | ||
| 56 | - spin:constraint | ||
| 57 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 58 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 59 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 60 | - ] ; | ||
| 61 | - spin:constraint | ||
| 62 | - [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 63 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 64 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 65 | - ] ; | ||
| 66 | - spin:constraint | ||
| 67 | - [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 68 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 69 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 70 | - ] ; | ||
| 71 | - spin:constraint | ||
| 72 | - [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 73 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 74 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 75 | - ] ; | ||
| 76 | - spin:constraint | ||
| 77 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 78 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 79 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | ||
| 80 | - ] ; | ||
| 81 | spin:constraint | 26 | spin:constraint |
| 82 | [ rdf:type sp:Construct ; | 27 | [ rdf:type sp:Construct ; |
| 83 | sp:templates ([ sp:object spin:ConstraintViolation ; | 28 | sp:templates ([ sp:object spin:ConstraintViolation ; |
| ... | @@ -89,34 +34,65 @@ arg:kindRef | ... | @@ -89,34 +34,65 @@ arg:kindRef |
| 89 | sp:predicate rdfs:label ; | 34 | sp:predicate rdfs:label ; |
| 90 | sp:subject _:b1 | 35 | sp:subject _:b1 |
| 91 | ]) ; | 36 | ]) ; |
| 92 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 37 | + sp:where ([ sp:object |
| 93 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 38 | + [ sp:varName "struct"^^xsd:string |
| 39 | + ] ; | ||
| 40 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | ||
| 94 | sp:subject spin:_this | 41 | sp:subject spin:_this |
| 42 | + ] [ sp:object "NPD"^^xsd:string ; | ||
| 43 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 44 | + sp:subject | ||
| 45 | + [ sp:varName "struct"^^xsd:string | ||
| 46 | + ] | ||
| 95 | ] [ sp:object | 47 | ] [ sp:object |
| 96 | - [ sp:varName "fieldName"^^xsd:string | 48 | + [ sp:varName "name"^^xsd:string |
| 97 | ] ; | 49 | ] ; |
| 98 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 50 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 99 | - sp:subject spin:_this | 51 | + sp:subject |
| 52 | + [ sp:varName "struct"^^xsd:string | ||
| 53 | + ] | ||
| 54 | + ] [ rdf:type sp:Bind ; | ||
| 55 | + sp:expression | ||
| 56 | + [ rdf:type rhspin:npdIndividualByName ; | ||
| 57 | + arg:name | ||
| 58 | + [ sp:varName "name"^^xsd:string | ||
| 59 | + ] ; | ||
| 60 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 61 | + ] ; | ||
| 62 | + sp:variable | ||
| 63 | + [ sp:varName "npd"^^xsd:string | ||
| 64 | + ] | ||
| 100 | ] [ rdf:type sp:Filter ; | 65 | ] [ rdf:type sp:Filter ; |
| 101 | sp:expression | 66 | sp:expression |
| 102 | [ rdf:type sp:not ; | 67 | [ rdf:type sp:not ; |
| 103 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | 68 | + sp:arg1 [ rdf:type sp:bound ; |
| 104 | - arg:fieldName | 69 | + sp:arg1 [ sp:varName "npd"^^xsd:string |
| 105 | - [ sp:varName "fieldName"^^xsd:string | ||
| 106 | ] | 70 | ] |
| 107 | ] | 71 | ] |
| 108 | ] | 72 | ] |
| 109 | ] [ rdf:type sp:Bind ; | 73 | ] [ rdf:type sp:Bind ; |
| 110 | sp:expression | 74 | sp:expression |
| 111 | [ rdf:type fn:concat ; | 75 | [ rdf:type fn:concat ; |
| 112 | - sp:arg1 "Your company is not the operator of field with name " ; | 76 | + sp:arg1 "[RH-19] Invalid Field name " ; |
| 113 | - sp:arg2 [ sp:varName "fieldName"^^xsd:string | 77 | + sp:arg2 [ sp:varName "name"^^xsd:string |
| 114 | ] | 78 | ] |
| 115 | ] ; | 79 | ] ; |
| 116 | sp:variable | 80 | sp:variable |
| 117 | [ sp:varName "message"^^xsd:string | 81 | [ sp:varName "message"^^xsd:string |
| 118 | ] | 82 | ] |
| 119 | ]) | 83 | ]) |
| 84 | + ] . | ||
| 85 | + | ||
| 86 | +<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | ||
| 87 | + spin:constraint | ||
| 88 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 89 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 90 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | ||
| 91 | + ] ; | ||
| 92 | + spin:constraint | ||
| 93 | + [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 94 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 95 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 120 | ] ; | 96 | ] ; |
| 121 | spin:constraint | 97 | spin:constraint |
| 122 | [ rdf:type sp:Construct ; | 98 | [ rdf:type sp:Construct ; |
| ... | @@ -175,9 +151,94 @@ arg:kindRef | ... | @@ -175,9 +151,94 @@ arg:kindRef |
| 175 | ]) | 151 | ]) |
| 176 | ] ; | 152 | ] ; |
| 177 | spin:constraint | 153 | spin:constraint |
| 154 | + [ rdf:type sp:Construct ; | ||
| 155 | + sp:templates ([ sp:object spin:ConstraintViolation ; | ||
| 156 | + sp:predicate rdf:type ; | ||
| 157 | + sp:subject _:b3 | ||
| 158 | + ] [ sp:object | ||
| 159 | + [ sp:varName "message"^^xsd:string | ||
| 160 | + ] ; | ||
| 161 | + sp:predicate rdfs:label ; | ||
| 162 | + sp:subject _:b3 | ||
| 163 | + ]) ; | ||
| 164 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 165 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 166 | + sp:subject spin:_this | ||
| 167 | + ] [ sp:object | ||
| 168 | + [ sp:varName "fieldName"^^xsd:string | ||
| 169 | + ] ; | ||
| 170 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 171 | + sp:subject spin:_this | ||
| 172 | + ] [ rdf:type sp:Filter ; | ||
| 173 | + sp:expression | ||
| 174 | + [ rdf:type sp:not ; | ||
| 175 | + sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | ||
| 176 | + arg:fieldName | ||
| 177 | + [ sp:varName "fieldName"^^xsd:string | ||
| 178 | + ] | ||
| 179 | + ] | ||
| 180 | + ] | ||
| 181 | + ] [ rdf:type sp:Bind ; | ||
| 182 | + sp:expression | ||
| 183 | + [ rdf:type fn:concat ; | ||
| 184 | + sp:arg1 "Your company is not the operator of field with name " ; | ||
| 185 | + sp:arg2 [ sp:varName "fieldName"^^xsd:string | ||
| 186 | + ] | ||
| 187 | + ] ; | ||
| 188 | + sp:variable | ||
| 189 | + [ sp:varName "message"^^xsd:string | ||
| 190 | + ] | ||
| 191 | + ]) | ||
| 192 | + ] ; | ||
| 193 | + spin:constraint | ||
| 194 | + [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 195 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 196 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 197 | + ] ; | ||
| 198 | + spin:constraint | ||
| 199 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 200 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 201 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 202 | + ] ; | ||
| 203 | + spin:constraint | ||
| 204 | + [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 205 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 206 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 207 | + ] ; | ||
| 208 | + spin:constraint | ||
| 209 | + [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 210 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 211 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 212 | + ] ; | ||
| 213 | + spin:constraint | ||
| 214 | + [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 215 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 216 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 217 | + ] ; | ||
| 218 | + spin:constraint | ||
| 219 | + [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 220 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 221 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 222 | + ] ; | ||
| 223 | + spin:constraint | ||
| 224 | + [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 225 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 226 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 227 | + ] ; | ||
| 228 | + spin:constraint | ||
| 178 | [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 229 | [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 179 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 230 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 180 | arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 231 | arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> |
| 232 | + ] ; | ||
| 233 | + spin:constraint | ||
| 234 | + [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 235 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 236 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | ||
| 237 | + ] ; | ||
| 238 | + spin:constraint | ||
| 239 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 240 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 241 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 181 | ] . | 242 | ] . |
| 182 | 243 | ||
| 183 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> | 244 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> |
| ... | @@ -185,12 +246,12 @@ arg:kindRef | ... | @@ -185,12 +246,12 @@ arg:kindRef |
| 185 | [ rdf:type sp:Construct ; | 246 | [ rdf:type sp:Construct ; |
| 186 | sp:templates ([ sp:object spin:ConstraintViolation ; | 247 | sp:templates ([ sp:object spin:ConstraintViolation ; |
| 187 | sp:predicate rdf:type ; | 248 | sp:predicate rdf:type ; |
| 188 | - sp:subject _:b3 | 249 | + sp:subject _:b4 |
| 189 | ] [ sp:object | 250 | ] [ sp:object |
| 190 | [ sp:varName "message"^^xsd:string | 251 | [ sp:varName "message"^^xsd:string |
| 191 | ] ; | 252 | ] ; |
| 192 | sp:predicate rdfs:label ; | 253 | sp:predicate rdfs:label ; |
| 193 | - sp:subject _:b3 | 254 | + sp:subject _:b4 |
| 194 | ]) ; | 255 | ]) ; |
| 195 | sp:where ([ rdf:type sp:TriplePath ; | 256 | sp:where ([ rdf:type sp:TriplePath ; |
| 196 | sp:object | 257 | sp:object |
| ... | @@ -236,7 +297,7 @@ arg:kindRef | ... | @@ -236,7 +297,7 @@ arg:kindRef |
| 236 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> | 297 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> |
| 237 | rdf:type owl:Ontology ; | 298 | rdf:type owl:Ontology ; |
| 238 | rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; | 299 | rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; |
| 239 | - owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; | 300 | + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ; |
| 240 | owl:versionInfo "0.1.0"^^xsd:string . | 301 | owl:versionInfo "0.1.0"^^xsd:string . |
| 241 | 302 | ||
| 242 | mpr-proxy-constraints:CheckId | 303 | mpr-proxy-constraints:CheckId |
| ... | @@ -247,12 +308,12 @@ mpr-proxy-constraints:CheckId | ... | @@ -247,12 +308,12 @@ mpr-proxy-constraints:CheckId |
| 247 | [ rdf:type sp:Construct ; | 308 | [ rdf:type sp:Construct ; |
| 248 | sp:templates ([ sp:object spin:ConstraintViolation ; | 309 | sp:templates ([ sp:object spin:ConstraintViolation ; |
| 249 | sp:predicate rdf:type ; | 310 | sp:predicate rdf:type ; |
| 250 | - sp:subject _:b4 | 311 | + sp:subject _:b5 |
| 251 | ] [ sp:object | 312 | ] [ sp:object |
| 252 | [ sp:varName "message"^^xsd:string | 313 | [ sp:varName "message"^^xsd:string |
| 253 | ] ; | 314 | ] ; |
| 254 | sp:predicate rdfs:label ; | 315 | sp:predicate rdfs:label ; |
| 255 | - sp:subject _:b4 | 316 | + sp:subject _:b5 |
| 256 | ]) ; | 317 | ]) ; |
| 257 | sp:where ([ sp:object | 318 | sp:where ([ sp:object |
| 258 | [ sp:varName "kindRef"^^xsd:string | 319 | [ sp:varName "kindRef"^^xsd:string |
| ... | @@ -314,12 +375,12 @@ mpr-proxy-constraints:CheckIdAndNameMatch | ... | @@ -314,12 +375,12 @@ mpr-proxy-constraints:CheckIdAndNameMatch |
| 314 | [ rdf:type sp:Construct ; | 375 | [ rdf:type sp:Construct ; |
| 315 | sp:templates ([ sp:object spin:ConstraintViolation ; | 376 | sp:templates ([ sp:object spin:ConstraintViolation ; |
| 316 | sp:predicate rdf:type ; | 377 | sp:predicate rdf:type ; |
| 317 | - sp:subject _:b5 | 378 | + sp:subject _:b6 |
| 318 | ] [ sp:object | 379 | ] [ sp:object |
| 319 | [ sp:varName "message"^^xsd:string | 380 | [ sp:varName "message"^^xsd:string |
| 320 | ] ; | 381 | ] ; |
| 321 | sp:predicate rdfs:label ; | 382 | sp:predicate rdfs:label ; |
| 322 | - sp:subject _:b5 | 383 | + sp:subject _:b6 |
| 323 | ]) ; | 384 | ]) ; |
| 324 | sp:where ([ sp:object | 385 | sp:where ([ sp:object |
| 325 | [ sp:varName "kindRef"^^xsd:string | 386 | [ sp:varName "kindRef"^^xsd:string |
| ... | @@ -414,12 +475,12 @@ mpr-proxy-constraints:CheckName | ... | @@ -414,12 +475,12 @@ mpr-proxy-constraints:CheckName |
| 414 | [ rdf:type sp:Construct ; | 475 | [ rdf:type sp:Construct ; |
| 415 | sp:templates ([ sp:object spin:ConstraintViolation ; | 476 | sp:templates ([ sp:object spin:ConstraintViolation ; |
| 416 | sp:predicate rdf:type ; | 477 | sp:predicate rdf:type ; |
| 417 | - sp:subject _:b6 | 478 | + sp:subject _:b7 |
| 418 | ] [ sp:object | 479 | ] [ sp:object |
| 419 | [ sp:varName "message"^^xsd:string | 480 | [ sp:varName "message"^^xsd:string |
| 420 | ] ; | 481 | ] ; |
| 421 | sp:predicate rdfs:label ; | 482 | sp:predicate rdfs:label ; |
| 422 | - sp:subject _:b6 | 483 | + sp:subject _:b7 |
| 423 | ]) ; | 484 | ]) ; |
| 424 | sp:where ([ sp:object | 485 | sp:where ([ sp:object |
| 425 | [ sp:varName "kindRef"^^xsd:string | 486 | [ sp:varName "kindRef"^^xsd:string |
| ... | @@ -482,13 +543,13 @@ mpr-proxy-constraints:ConstraintTemplates | ... | @@ -482,13 +543,13 @@ mpr-proxy-constraints:ConstraintTemplates |
| 482 | rdfs:subClassOf spin:ConstructTemplates ; | 543 | rdfs:subClassOf spin:ConstructTemplates ; |
| 483 | spin:constraint | 544 | spin:constraint |
| 484 | [ rdf:type spl:Argument ; | 545 | [ rdf:type spl:Argument ; |
| 485 | - rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | ||
| 486 | - spl:predicate arg:type ; | ||
| 487 | - spl:valueType rdfs:Class | ||
| 488 | - ] ; | ||
| 489 | - spin:constraint | ||
| 490 | - [ rdf:type spl:Argument ; | ||
| 491 | rdfs:comment "The kind reference value."^^xsd:string ; | 546 | rdfs:comment "The kind reference value."^^xsd:string ; |
| 492 | spl:predicate arg:kindRef ; | 547 | spl:predicate arg:kindRef ; |
| 493 | spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> | 548 | spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> |
| 549 | + ] ; | ||
| 550 | + spin:constraint | ||
| 551 | + [ rdf:type spl:Argument ; | ||
| 552 | + rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | ||
| 553 | + spl:predicate arg:type ; | ||
| 554 | + spl:valueType rdfs:Class | ||
| 494 | ] . | 555 | ] . | ... | ... |
-
Please register or login to post a comment