Showing
1 changed file
with
595 additions
and
407 deletions
| ... | @@ -3,6 +3,7 @@ | ... | @@ -3,6 +3,7 @@ |
| 3 | # imports: http://www.epim.no/schemas/mprml/1 | 3 | # imports: http://www.epim.no/schemas/mprml/1 |
| 4 | # imports: http://www.reportinghub.no/spin/rh | 4 | # imports: http://www.reportinghub.no/spin/rh |
| 5 | 5 | ||
| 6 | +# c14n-version: 3 | ||
| 6 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 7 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
| 7 | @prefix arg: <http://spinrdf.org/arg#> . | 8 | @prefix arg: <http://spinrdf.org/arg#> . |
| 8 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 9 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
| ... | @@ -16,580 +17,767 @@ | ... | @@ -16,580 +17,767 @@ |
| 16 | @prefix spin: <http://spinrdf.org/spin#> . | 17 | @prefix spin: <http://spinrdf.org/spin#> . |
| 17 | @prefix spl: <http://spinrdf.org/spl#> . | 18 | @prefix spl: <http://spinrdf.org/spl#> . |
| 18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 19 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 19 | - | ||
| 20 | arg:kindRef | 20 | arg:kindRef |
| 21 | rdf:type rdf:Property ; | 21 | rdf:type rdf:Property ; |
| 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#Cs_wellContext> | 25 | <http://www.epim.no/schemas/mprml/1#Cs_wellContext> |
| 26 | - spin:constraint | 26 | + spin:constraint [ |
| 27 | - [ rdf:type sp:Construct ; | 27 | + rdf:type sp:Construct ; |
| 28 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 28 | + sp:templates ( |
| 29 | + [ | ||
| 30 | + sp:object spin:ConstraintViolation ; | ||
| 29 | sp:predicate rdf:type ; | 31 | sp:predicate rdf:type ; |
| 30 | - sp:subject _:b1 | 32 | + sp:subject _:b25853 ; |
| 31 | - ] [ sp:object | 33 | + ] |
| 32 | - [ sp:varName "message"^^xsd:string | 34 | + [ |
| 35 | + sp:object [ | ||
| 36 | + sp:varName "message"^^xsd:string ; | ||
| 33 | ] ; | 37 | ] ; |
| 34 | sp:predicate rdfs:label ; | 38 | sp:predicate rdfs:label ; |
| 35 | - sp:subject _:b1 | 39 | + sp:subject _:b25853 ; |
| 36 | - ]) ; | 40 | + ] |
| 37 | - sp:where ([ sp:object | 41 | + ) ; |
| 38 | - [ sp:varName "struct"^^xsd:string | 42 | + sp:where ( |
| 43 | + [ | ||
| 44 | + sp:object [ | ||
| 45 | + sp:varName "struct"^^xsd:string ; | ||
| 39 | ] ; | 46 | ] ; |
| 40 | sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | 47 | sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; |
| 41 | - sp:subject spin:_this | 48 | + sp:subject spin:_this ; |
| 42 | - ] [ sp:object "NPD"^^xsd:string ; | 49 | + ] |
| 50 | + [ | ||
| 51 | + sp:object "NPD"^^xsd:string ; | ||
| 43 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 52 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 44 | - sp:subject | 53 | + sp:subject [ |
| 45 | - [ sp:varName "struct"^^xsd:string | 54 | + sp:varName "struct"^^xsd:string ; |
| 55 | + ] ; | ||
| 46 | ] | 56 | ] |
| 47 | - ] [ sp:object | 57 | + [ |
| 48 | - [ sp:varName "name"^^xsd:string | 58 | + sp:object [ |
| 59 | + sp:varName "name"^^xsd:string ; | ||
| 49 | ] ; | 60 | ] ; |
| 50 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 61 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 51 | - sp:subject | 62 | + sp:subject [ |
| 52 | - [ sp:varName "struct"^^xsd:string | 63 | + sp:varName "struct"^^xsd:string ; |
| 64 | + ] ; | ||
| 53 | ] | 65 | ] |
| 54 | - ] [ rdf:type sp:Bind ; | 66 | + [ |
| 55 | - sp:expression | 67 | + rdf:type sp:Bind ; |
| 56 | - [ rdf:type rhspin:npdIndividualByName ; | 68 | + sp:expression [ |
| 57 | - arg:name | 69 | + rdf:type rhspin:npdIndividualByName ; |
| 58 | - [ sp:varName "name"^^xsd:string | 70 | + arg:name [ |
| 71 | + sp:varName "name"^^xsd:string ; | ||
| 59 | ] ; | 72 | ] ; |
| 60 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 73 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 74 | + ] ; | ||
| 75 | + sp:variable [ | ||
| 76 | + sp:varName "npd"^^xsd:string ; | ||
| 61 | ] ; | 77 | ] ; |
| 62 | - sp:variable | ||
| 63 | - [ sp:varName "npd"^^xsd:string | ||
| 64 | - ] | ||
| 65 | - ] [ rdf:type sp:Filter ; | ||
| 66 | - sp:expression | ||
| 67 | - [ rdf:type sp:not ; | ||
| 68 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 69 | - sp:arg1 [ sp:varName "npd"^^xsd:string | ||
| 70 | - ] | ||
| 71 | ] | 78 | ] |
| 79 | + [ | ||
| 80 | + rdf:type sp:Filter ; | ||
| 81 | + sp:expression [ | ||
| 82 | + rdf:type sp:not ; | ||
| 83 | + sp:arg1 [ | ||
| 84 | + rdf:type sp:bound ; | ||
| 85 | + sp:arg1 [ | ||
| 86 | + sp:varName "npd"^^xsd:string ; | ||
| 87 | + ] ; | ||
| 88 | + ] ; | ||
| 89 | + ] ; | ||
| 72 | ] | 90 | ] |
| 73 | - ] [ rdf:type sp:Bind ; | 91 | + [ |
| 74 | - sp:expression | 92 | + rdf:type sp:Bind ; |
| 75 | - [ rdf:type fn:concat ; | 93 | + sp:expression [ |
| 94 | + rdf:type fn:concat ; | ||
| 76 | sp:arg1 "[RH-19] Invalid Field name " ; | 95 | sp:arg1 "[RH-19] Invalid Field name " ; |
| 77 | - sp:arg2 [ sp:varName "name"^^xsd:string | 96 | + sp:arg2 [ |
| 78 | - ] | 97 | + sp:varName "name"^^xsd:string ; |
| 98 | + ] ; | ||
| 99 | + ] ; | ||
| 100 | + sp:variable [ | ||
| 101 | + sp:varName "message"^^xsd:string ; | ||
| 79 | ] ; | 102 | ] ; |
| 80 | - sp:variable | ||
| 81 | - [ sp:varName "message"^^xsd:string | ||
| 82 | ] | 103 | ] |
| 83 | - ]) | 104 | + ) ; |
| 84 | - ] . | 105 | + ] ; |
| 85 | - | 106 | +. |
| 86 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 107 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
| 87 | - spin:constraint | 108 | + spin:constraint [ |
| 88 | - [ rdf:type sp:Construct ; | 109 | + rdf:type sp:Construct ; |
| 89 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 110 | + sp:templates ( |
| 111 | + [ | ||
| 112 | + sp:object spin:ConstraintViolation ; | ||
| 90 | sp:predicate rdf:type ; | 113 | sp:predicate rdf:type ; |
| 91 | - sp:subject _:b2 | 114 | + sp:subject _:b62802 ; |
| 92 | - ] [ sp:object | 115 | + ] |
| 93 | - [ sp:varName "message"^^xsd:string | 116 | + [ |
| 117 | + sp:object [ | ||
| 118 | + sp:varName "message"^^xsd:string ; | ||
| 94 | ] ; | 119 | ] ; |
| 95 | sp:predicate rdfs:label ; | 120 | sp:predicate rdfs:label ; |
| 96 | - sp:subject _:b2 | 121 | + sp:subject _:b62802 ; |
| 97 | - ]) ; | 122 | + ] |
| 98 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 123 | + ) ; |
| 124 | + sp:where ( | ||
| 125 | + [ | ||
| 126 | + sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 99 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 127 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 100 | - sp:subject spin:_this | 128 | + sp:subject spin:_this ; |
| 101 | - ] [ sp:object | 129 | + ] |
| 102 | - [ sp:varName "fieldName"^^xsd:string | 130 | + [ |
| 131 | + sp:object [ | ||
| 132 | + sp:varName "fieldName"^^xsd:string ; | ||
| 103 | ] ; | 133 | ] ; |
| 104 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 134 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 105 | - sp:subject spin:_this | 135 | + sp:subject spin:_this ; |
| 106 | - ] [ rdf:type sp:Filter ; | ||
| 107 | - sp:expression | ||
| 108 | - [ rdf:type sp:not ; | ||
| 109 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | ||
| 110 | - arg:fieldName | ||
| 111 | - [ sp:varName "fieldName"^^xsd:string | ||
| 112 | - ] | ||
| 113 | ] | 136 | ] |
| 137 | + [ | ||
| 138 | + rdf:type sp:Filter ; | ||
| 139 | + sp:expression [ | ||
| 140 | + rdf:type sp:not ; | ||
| 141 | + sp:arg1 [ | ||
| 142 | + rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | ||
| 143 | + arg:fieldName [ | ||
| 144 | + sp:varName "fieldName"^^xsd:string ; | ||
| 145 | + ] ; | ||
| 146 | + ] ; | ||
| 147 | + ] ; | ||
| 114 | ] | 148 | ] |
| 115 | - ] [ rdf:type sp:Bind ; | 149 | + [ |
| 116 | - sp:expression | 150 | + rdf:type sp:Bind ; |
| 117 | - [ rdf:type fn:concat ; | 151 | + sp:expression [ |
| 152 | + rdf:type fn:concat ; | ||
| 118 | sp:arg1 "Your company is not the operator of field with name " ; | 153 | sp:arg1 "Your company is not the operator of field with name " ; |
| 119 | - sp:arg2 [ sp:varName "fieldName"^^xsd:string | 154 | + sp:arg2 [ |
| 120 | - ] | 155 | + sp:varName "fieldName"^^xsd:string ; |
| 156 | + ] ; | ||
| 157 | + ] ; | ||
| 158 | + sp:variable [ | ||
| 159 | + sp:varName "message"^^xsd:string ; | ||
| 121 | ] ; | 160 | ] ; |
| 122 | - sp:variable | ||
| 123 | - [ sp:varName "message"^^xsd:string | ||
| 124 | ] | 161 | ] |
| 125 | - ]) | 162 | + ) ; |
| 126 | ] ; | 163 | ] ; |
| 127 | - spin:constraint | 164 | + spin:constraint [ |
| 128 | - [ rdf:type sp:Construct ; | 165 | + rdf:type sp:Construct ; |
| 129 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 166 | + sp:templates ( |
| 167 | + [ | ||
| 168 | + sp:object spin:ConstraintViolation ; | ||
| 130 | sp:predicate rdf:type ; | 169 | sp:predicate rdf:type ; |
| 131 | - sp:subject _:b3 | 170 | + sp:subject _:b69969 ; |
| 132 | - ] [ sp:object | 171 | + ] |
| 133 | - [ sp:varName "message"^^xsd:string | 172 | + [ |
| 173 | + sp:object [ | ||
| 174 | + sp:varName "message"^^xsd:string ; | ||
| 134 | ] ; | 175 | ] ; |
| 135 | sp:predicate rdfs:label ; | 176 | sp:predicate rdfs:label ; |
| 136 | - sp:subject _:b3 | 177 | + sp:subject _:b69969 ; |
| 137 | - ]) ; | 178 | + ] |
| 138 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 179 | + ) ; |
| 180 | + sp:where ( | ||
| 181 | + [ | ||
| 182 | + sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 139 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 183 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 140 | - sp:subject spin:_this | 184 | + sp:subject spin:_this ; |
| 141 | - ] [ sp:object | 185 | + ] |
| 142 | - [ sp:varName "wellBoreName"^^xsd:string | 186 | + [ |
| 187 | + sp:object [ | ||
| 188 | + sp:varName "wellBoreName"^^xsd:string ; | ||
| 143 | ] ; | 189 | ] ; |
| 144 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 190 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 145 | - sp:subject spin:_this | 191 | + sp:subject spin:_this ; |
| 146 | - ] [ rdf:type sp:Bind ; | ||
| 147 | - sp:expression | ||
| 148 | - [ rdf:type rhspin:wellBoreByName ; | ||
| 149 | - arg:wellBoreName | ||
| 150 | - [ sp:varName "wellBoreName"^^xsd:string | ||
| 151 | ] | 192 | ] |
| 193 | + [ | ||
| 194 | + rdf:type sp:Bind ; | ||
| 195 | + sp:expression [ | ||
| 196 | + rdf:type rhspin:wellBoreByName ; | ||
| 197 | + arg:wellBoreName [ | ||
| 198 | + sp:varName "wellBoreName"^^xsd:string ; | ||
| 199 | + ] ; | ||
| 200 | + ] ; | ||
| 201 | + sp:variable [ | ||
| 202 | + sp:varName "wellBore"^^xsd:string ; | ||
| 152 | ] ; | 203 | ] ; |
| 153 | - sp:variable | ||
| 154 | - [ sp:varName "wellBore"^^xsd:string | ||
| 155 | - ] | ||
| 156 | - ] [ rdf:type sp:Filter ; | ||
| 157 | - sp:expression | ||
| 158 | - [ rdf:type sp:bound ; | ||
| 159 | - sp:arg1 [ sp:varName "wellBore"^^xsd:string | ||
| 160 | - ] | ||
| 161 | - ] | ||
| 162 | - ] [ rdf:type sp:Filter ; | ||
| 163 | - sp:expression | ||
| 164 | - [ rdf:type sp:not ; | ||
| 165 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfWellBore ; | ||
| 166 | - arg:wellBore | ||
| 167 | - [ sp:varName "wellBore"^^xsd:string | ||
| 168 | ] | 204 | ] |
| 205 | + [ | ||
| 206 | + rdf:type sp:Filter ; | ||
| 207 | + sp:expression [ | ||
| 208 | + rdf:type sp:bound ; | ||
| 209 | + sp:arg1 [ | ||
| 210 | + sp:varName "wellBore"^^xsd:string ; | ||
| 211 | + ] ; | ||
| 212 | + ] ; | ||
| 169 | ] | 213 | ] |
| 214 | + [ | ||
| 215 | + rdf:type sp:Filter ; | ||
| 216 | + sp:expression [ | ||
| 217 | + rdf:type sp:not ; | ||
| 218 | + sp:arg1 [ | ||
| 219 | + rdf:type rhspin:currentUserIsOperatorOfWellBore ; | ||
| 220 | + arg:wellBore [ | ||
| 221 | + sp:varName "wellBore"^^xsd:string ; | ||
| 222 | + ] ; | ||
| 223 | + ] ; | ||
| 224 | + ] ; | ||
| 170 | ] | 225 | ] |
| 171 | - ] [ rdf:type sp:Bind ; | 226 | + [ |
| 172 | - sp:expression | 227 | + rdf:type sp:Bind ; |
| 173 | - [ rdf:type fn:concat ; | 228 | + sp:expression [ |
| 229 | + rdf:type fn:concat ; | ||
| 174 | sp:arg1 "Your company is not the operator of well bore with name " ; | 230 | sp:arg1 "Your company is not the operator of well bore with name " ; |
| 175 | - sp:arg2 [ sp:varName "wellBoreName"^^xsd:string | 231 | + sp:arg2 [ |
| 176 | - ] | 232 | + sp:varName "wellBoreName"^^xsd:string ; |
| 177 | ] ; | 233 | ] ; |
| 178 | - sp:variable | ||
| 179 | - [ sp:varName "message"^^xsd:string | ||
| 180 | - ] | ||
| 181 | - ]) | ||
| 182 | ] ; | 234 | ] ; |
| 183 | - spin:constraint | 235 | + sp:variable [ |
| 184 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 236 | + sp:varName "message"^^xsd:string ; |
| 185 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 186 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 187 | ] ; | 237 | ] ; |
| 188 | - spin:constraint | 238 | + ] |
| 189 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 239 | + ) ; |
| 190 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 191 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 192 | ] ; | 240 | ] ; |
| 193 | - spin:constraint | 241 | + spin:constraint [ |
| 194 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 242 | + rdf:type mpr-proxy-constraints:CheckId ; |
| 195 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 243 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 196 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 244 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 197 | - ] ; | ||
| 198 | - spin:constraint | ||
| 199 | - [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 200 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 201 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 202 | ] ; | 245 | ] ; |
| 203 | - spin:constraint | 246 | + spin:constraint [ |
| 204 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 247 | + rdf:type mpr-proxy-constraints:CheckId ; |
| 205 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 248 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 206 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 249 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 207 | ] ; | 250 | ] ; |
| 208 | - spin:constraint | 251 | + spin:constraint [ |
| 209 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 252 | + rdf:type mpr-proxy-constraints:CheckId ; |
| 210 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 253 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 211 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 254 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 255 | + ] ; | ||
| 256 | + spin:constraint [ | ||
| 257 | + rdf:type mpr-proxy-constraints:CheckId ; | ||
| 258 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 259 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 212 | ] ; | 260 | ] ; |
| 213 | - spin:constraint | 261 | + spin:constraint [ |
| 214 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 262 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 215 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 263 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 216 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 264 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 217 | ] ; | 265 | ] ; |
| 218 | - spin:constraint | 266 | + spin:constraint [ |
| 219 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 267 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 220 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 268 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 221 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 269 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> ; |
| 222 | ] ; | 270 | ] ; |
| 223 | - spin:constraint | 271 | + spin:constraint [ |
| 224 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 272 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 225 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 273 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 226 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 274 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 227 | ] ; | 275 | ] ; |
| 228 | - spin:constraint | 276 | + spin:constraint [ |
| 229 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 277 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 278 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 279 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 280 | + ] ; | ||
| 281 | + spin:constraint [ | ||
| 282 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
| 230 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 283 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 231 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 284 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 232 | ] ; | 285 | ] ; |
| 233 | - spin:constraint | 286 | + spin:constraint [ |
| 234 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 287 | + rdf:type mpr-proxy-constraints:CheckName ; |
| 235 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 288 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 236 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | 289 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 290 | + ] ; | ||
| 291 | + spin:constraint [ | ||
| 292 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
| 293 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 294 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 237 | ] ; | 295 | ] ; |
| 238 | - spin:constraint | 296 | + spin:constraint [ |
| 239 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 297 | + rdf:type mpr-proxy-constraints:CheckName ; |
| 240 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 298 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
| 241 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 299 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
| 242 | - ] . | 300 | + ] ; |
| 243 | - | 301 | +. |
| 244 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> | 302 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> |
| 245 | - spin:constraint | 303 | + spin:constraint [ |
| 246 | - [ rdf:type sp:Construct ; | 304 | + rdf:type sp:Construct ; |
| 247 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 305 | + sp:templates ( |
| 306 | + [ | ||
| 307 | + sp:object spin:ConstraintViolation ; | ||
| 248 | sp:predicate rdf:type ; | 308 | sp:predicate rdf:type ; |
| 249 | - sp:subject _:b4 | 309 | + sp:subject _:b3901 ; |
| 250 | - ] [ sp:object | 310 | + ] |
| 251 | - [ sp:varName "message"^^xsd:string | 311 | + [ |
| 312 | + sp:object [ | ||
| 313 | + sp:varName "message"^^xsd:string ; | ||
| 252 | ] ; | 314 | ] ; |
| 253 | sp:predicate rdfs:label ; | 315 | sp:predicate rdfs:label ; |
| 254 | - sp:subject _:b4 | 316 | + sp:subject _:b3901 ; |
| 255 | - ]) ; | 317 | + ] |
| 256 | - sp:where ([ rdf:type sp:TriplePath ; | 318 | + ) ; |
| 257 | - sp:object | 319 | + sp:where ( |
| 258 | - [ sp:varName "name"^^xsd:string | 320 | + [ |
| 321 | + rdf:type sp:TriplePath ; | ||
| 322 | + sp:object [ | ||
| 323 | + sp:varName "name"^^xsd:string ; | ||
| 259 | ] ; | 324 | ] ; |
| 260 | - sp:path [ rdf:type sp:SeqPath ; | 325 | + sp:path [ |
| 326 | + rdf:type sp:SeqPath ; | ||
| 261 | sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; | 327 | sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 262 | - sp:path2 <http://www.linkedmodel.org/schema/dtype#value> | 328 | + sp:path2 <http://www.linkedmodel.org/schema/dtype#value> ; |
| 263 | ] ; | 329 | ] ; |
| 264 | - sp:subject spin:_this | 330 | + sp:subject spin:_this ; |
| 265 | - ] [ rdf:type sp:Bind ; | 331 | + ] |
| 266 | - sp:expression | 332 | + [ |
| 267 | - [ rdf:type rhspin:npdIndividualByName ; | 333 | + rdf:type sp:Bind ; |
| 268 | - arg:name | 334 | + sp:expression [ |
| 269 | - [ sp:varName "name"^^xsd:string | 335 | + rdf:type rhspin:npdIndividualByName ; |
| 336 | + arg:name [ | ||
| 337 | + sp:varName "name"^^xsd:string ; | ||
| 270 | ] ; | 338 | ] ; |
| 271 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 339 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 340 | + ] ; | ||
| 341 | + sp:variable [ | ||
| 342 | + sp:varName "field"^^xsd:string ; | ||
| 272 | ] ; | 343 | ] ; |
| 273 | - sp:variable | ||
| 274 | - [ sp:varName "field"^^xsd:string | ||
| 275 | - ] | ||
| 276 | - ] [ rdf:type sp:Filter ; | ||
| 277 | - sp:expression | ||
| 278 | - [ rdf:type sp:not ; | ||
| 279 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 280 | - sp:arg1 [ sp:varName "field"^^xsd:string | ||
| 281 | - ] | ||
| 282 | ] | 344 | ] |
| 345 | + [ | ||
| 346 | + rdf:type sp:Filter ; | ||
| 347 | + sp:expression [ | ||
| 348 | + rdf:type sp:not ; | ||
| 349 | + sp:arg1 [ | ||
| 350 | + rdf:type sp:bound ; | ||
| 351 | + sp:arg1 [ | ||
| 352 | + sp:varName "field"^^xsd:string ; | ||
| 353 | + ] ; | ||
| 354 | + ] ; | ||
| 355 | + ] ; | ||
| 283 | ] | 356 | ] |
| 284 | - ] [ rdf:type sp:Bind ; | 357 | + [ |
| 285 | - sp:expression | 358 | + rdf:type sp:Bind ; |
| 286 | - [ rdf:type fn:concat ; | 359 | + sp:expression [ |
| 360 | + rdf:type fn:concat ; | ||
| 287 | sp:arg1 "Invalid Field name " ; | 361 | sp:arg1 "Invalid Field name " ; |
| 288 | - sp:arg2 [ sp:varName "name"^^xsd:string | 362 | + sp:arg2 [ |
| 289 | - ] | 363 | + sp:varName "name"^^xsd:string ; |
| 364 | + ] ; | ||
| 365 | + ] ; | ||
| 366 | + sp:variable [ | ||
| 367 | + sp:varName "message"^^xsd:string ; | ||
| 290 | ] ; | 368 | ] ; |
| 291 | - sp:variable | ||
| 292 | - [ sp:varName "message"^^xsd:string | ||
| 293 | ] | 369 | ] |
| 294 | - ]) | 370 | + ) ; |
| 295 | - ] . | 371 | + ] ; |
| 296 | - | 372 | +. |
| 297 | <http://www.epim.no/schemas/mprml/1#Obj_wellTest> | 373 | <http://www.epim.no/schemas/mprml/1#Obj_wellTest> |
| 298 | - spin:constraint | 374 | + spin:constraint [ |
| 299 | - [ rdf:type sp:Construct ; | 375 | + rdf:type sp:Construct ; |
| 300 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 376 | + sp:templates ( |
| 377 | + [ | ||
| 378 | + sp:object spin:ConstraintViolation ; | ||
| 301 | sp:predicate rdf:type ; | 379 | sp:predicate rdf:type ; |
| 302 | - sp:subject _:b5 | 380 | + sp:subject _:b55110 ; |
| 303 | - ] [ sp:object | 381 | + ] |
| 304 | - [ sp:varName "message"^^xsd:string | 382 | + [ |
| 383 | + sp:object [ | ||
| 384 | + sp:varName "message"^^xsd:string ; | ||
| 305 | ] ; | 385 | ] ; |
| 306 | sp:predicate rdfs:label ; | 386 | sp:predicate rdfs:label ; |
| 307 | - sp:subject _:b5 | 387 | + sp:subject _:b55110 ; |
| 308 | - ]) ; | 388 | + ] |
| 309 | - sp:where ([ sp:object | 389 | + ) ; |
| 310 | - [ sp:varName "wellName"^^xsd:string | 390 | + sp:where ( |
| 391 | + [ | ||
| 392 | + sp:object [ | ||
| 393 | + sp:varName "wellName"^^xsd:string ; | ||
| 311 | ] ; | 394 | ] ; |
| 312 | sp:predicate <http://www.epim.no/schemas/mprml/1#nameWell> ; | 395 | sp:predicate <http://www.epim.no/schemas/mprml/1#nameWell> ; |
| 313 | - sp:subject spin:_this | 396 | + sp:subject spin:_this ; |
| 314 | - ] [ rdf:type sp:Filter ; | 397 | + ] |
| 315 | - sp:expression | 398 | + [ |
| 316 | - [ rdf:type sp:not ; | 399 | + rdf:type sp:Bind ; |
| 317 | - sp:arg1 [ rdf:type rhspin:npdIndividualByName ; | 400 | + sp:expression [ |
| 318 | - arg:name | 401 | + rdf:type rhspin:npdIndividualByName ; |
| 319 | - [ sp:varName "wellName"^^xsd:string | 402 | + arg:name [ |
| 403 | + sp:varName "wellName"^^xsd:string ; | ||
| 404 | + ] ; | ||
| 405 | + arg:type <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
| 406 | + ] ; | ||
| 407 | + sp:variable [ | ||
| 408 | + sp:varName "well"^^xsd:string ; | ||
| 320 | ] ; | 409 | ] ; |
| 321 | - arg:type <http://www.reportinghub.no/ep/schema/well#Well> | ||
| 322 | ] | 410 | ] |
| 411 | + [ | ||
| 412 | + rdf:type sp:Filter ; | ||
| 413 | + sp:expression [ | ||
| 414 | + rdf:type sp:not ; | ||
| 415 | + sp:arg1 [ | ||
| 416 | + rdf:type sp:bound ; | ||
| 417 | + sp:arg1 [ | ||
| 418 | + sp:varName "well"^^xsd:string ; | ||
| 419 | + ] ; | ||
| 420 | + ] ; | ||
| 421 | + ] ; | ||
| 323 | ] | 422 | ] |
| 324 | - ] [ rdf:type sp:Bind ; | 423 | + [ |
| 325 | - sp:expression | 424 | + rdf:type sp:Bind ; |
| 326 | - [ rdf:type fn:concat ; | 425 | + sp:expression [ |
| 426 | + rdf:type fn:concat ; | ||
| 327 | sp:arg1 "[RH-19] Invalid well name : " ; | 427 | sp:arg1 "[RH-19] Invalid well name : " ; |
| 328 | - sp:arg2 [ sp:varName "wellName"^^xsd:string | 428 | + sp:arg2 [ |
| 329 | - ] | 429 | + sp:varName "wellName"^^xsd:string ; |
| 430 | + ] ; | ||
| 431 | + ] ; | ||
| 432 | + sp:variable [ | ||
| 433 | + sp:varName "message"^^xsd:string ; | ||
| 330 | ] ; | 434 | ] ; |
| 331 | - sp:variable | ||
| 332 | - [ sp:varName "message"^^xsd:string | ||
| 333 | ] | 435 | ] |
| 334 | - ]) | 436 | + ) ; |
| 335 | - ] . | 437 | + ] ; |
| 336 | - | 438 | +. |
| 337 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> | 439 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> |
| 338 | rdf:type owl:Ontology ; | 440 | rdf:type owl:Ontology ; |
| 339 | rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; | 441 | rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; |
| 340 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ; | 442 | + owl:imports <http://spinrdf.org/spin> ; |
| 341 | - owl:versionInfo "0.1.0"^^xsd:string . | 443 | + owl:imports <http://www.epim.no/schemas/mprml/1> ; |
| 342 | - | 444 | + owl:imports <http://www.reportinghub.no/spin/rh> ; |
| 445 | + owl:versionInfo "0.1.0"^^xsd:string ; | ||
| 446 | +. | ||
| 343 | mpr-proxy-constraints:CheckId | 447 | mpr-proxy-constraints:CheckId |
| 344 | rdf:type spin:ConstructTemplate ; | 448 | rdf:type spin:ConstructTemplate ; |
| 345 | - rdfs:label "Check id"^^xsd:string ; | 449 | + spin:body [ |
| 346 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 450 | + rdf:type sp:Construct ; |
| 347 | - spin:body | 451 | + sp:templates ( |
| 348 | - [ rdf:type sp:Construct ; | 452 | + [ |
| 349 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 453 | + sp:object spin:ConstraintViolation ; |
| 350 | sp:predicate rdf:type ; | 454 | sp:predicate rdf:type ; |
| 351 | - sp:subject _:b6 | 455 | + sp:subject _:b63838 ; |
| 352 | - ] [ sp:object | 456 | + ] |
| 353 | - [ sp:varName "message"^^xsd:string | 457 | + [ |
| 458 | + sp:object [ | ||
| 459 | + sp:varName "message"^^xsd:string ; | ||
| 354 | ] ; | 460 | ] ; |
| 355 | sp:predicate rdfs:label ; | 461 | sp:predicate rdfs:label ; |
| 356 | - sp:subject _:b6 | 462 | + sp:subject _:b63838 ; |
| 357 | - ]) ; | 463 | + ] |
| 358 | - sp:where ([ sp:object | 464 | + ) ; |
| 359 | - [ sp:varName "kindRef"^^xsd:string | 465 | + sp:where ( |
| 466 | + [ | ||
| 467 | + sp:object [ | ||
| 468 | + sp:varName "kindRef"^^xsd:string ; | ||
| 360 | ] ; | 469 | ] ; |
| 361 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 470 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 362 | - sp:subject spin:_this | 471 | + sp:subject spin:_this ; |
| 363 | - ] [ sp:object "NPD" ; | 472 | + ] |
| 473 | + [ | ||
| 474 | + sp:object "NPD" ; | ||
| 364 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 475 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 365 | - sp:subject spin:_this | 476 | + sp:subject spin:_this ; |
| 366 | - ] [ sp:object | 477 | + ] |
| 367 | - [ sp:varName "id"^^xsd:string | 478 | + [ |
| 479 | + sp:object [ | ||
| 480 | + sp:varName "id"^^xsd:string ; | ||
| 368 | ] ; | 481 | ] ; |
| 369 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 482 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
| 370 | - sp:subject spin:_this | 483 | + sp:subject spin:_this ; |
| 371 | - ] [ rdf:type sp:Bind ; | ||
| 372 | - sp:expression | ||
| 373 | - [ rdf:type rhspin:npdIndividualById ; | ||
| 374 | - arg:id [ sp:varName "id"^^xsd:string | ||
| 375 | - ] ; | ||
| 376 | - arg:type | ||
| 377 | - [ sp:varName "type"^^xsd:string | ||
| 378 | ] | 484 | ] |
| 485 | + [ | ||
| 486 | + rdf:type sp:Bind ; | ||
| 487 | + sp:expression [ | ||
| 488 | + rdf:type rhspin:npdIndividualById ; | ||
| 489 | + arg:id [ | ||
| 490 | + sp:varName "id"^^xsd:string ; | ||
| 491 | + ] ; | ||
| 492 | + arg:type [ | ||
| 493 | + sp:varName "type"^^xsd:string ; | ||
| 494 | + ] ; | ||
| 495 | + ] ; | ||
| 496 | + sp:variable [ | ||
| 497 | + sp:varName "npd"^^xsd:string ; | ||
| 379 | ] ; | 498 | ] ; |
| 380 | - sp:variable | ||
| 381 | - [ sp:varName "npd"^^xsd:string | ||
| 382 | - ] | ||
| 383 | - ] [ rdf:type sp:Filter ; | ||
| 384 | - sp:expression | ||
| 385 | - [ rdf:type sp:not ; | ||
| 386 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 387 | - sp:arg1 [ sp:varName "npd"^^xsd:string | ||
| 388 | - ] | ||
| 389 | ] | 499 | ] |
| 500 | + [ | ||
| 501 | + rdf:type sp:Filter ; | ||
| 502 | + sp:expression [ | ||
| 503 | + rdf:type sp:not ; | ||
| 504 | + sp:arg1 [ | ||
| 505 | + rdf:type sp:bound ; | ||
| 506 | + sp:arg1 [ | ||
| 507 | + sp:varName "npd"^^xsd:string ; | ||
| 508 | + ] ; | ||
| 509 | + ] ; | ||
| 510 | + ] ; | ||
| 390 | ] | 511 | ] |
| 391 | - ] [ rdf:type sp:Bind ; | 512 | + [ |
| 392 | - sp:expression | 513 | + rdf:type sp:Bind ; |
| 393 | - [ rdf:type fn:concat ; | 514 | + sp:expression [ |
| 515 | + rdf:type fn:concat ; | ||
| 394 | sp:arg1 "[RH-19] Invalid " ; | 516 | sp:arg1 "[RH-19] Invalid " ; |
| 395 | - sp:arg2 [ rdf:type afn:localname ; | 517 | + sp:arg2 [ |
| 396 | - sp:arg1 [ sp:varName "type"^^xsd:string | 518 | + rdf:type afn:localname ; |
| 397 | - ] | 519 | + sp:arg1 [ |
| 520 | + sp:varName "type"^^xsd:string ; | ||
| 521 | + ] ; | ||
| 398 | ] ; | 522 | ] ; |
| 399 | sp:arg3 " id " ; | 523 | sp:arg3 " id " ; |
| 400 | - sp:arg4 [ sp:varName "id"^^xsd:string | 524 | + sp:arg4 [ |
| 401 | - ] | 525 | + sp:varName "id"^^xsd:string ; |
| 526 | + ] ; | ||
| 527 | + ] ; | ||
| 528 | + sp:variable [ | ||
| 529 | + sp:varName "message"^^xsd:string ; | ||
| 402 | ] ; | 530 | ] ; |
| 403 | - sp:variable | ||
| 404 | - [ sp:varName "message"^^xsd:string | ||
| 405 | ] | 531 | ] |
| 406 | - ]) | 532 | + ) ; |
| 407 | ] ; | 533 | ] ; |
| 408 | - spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string . | 534 | + spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string ; |
| 409 | - | 535 | + rdfs:label "Check id"^^xsd:string ; |
| 536 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
| 537 | +. | ||
| 410 | mpr-proxy-constraints:CheckIdAndNameMatch | 538 | mpr-proxy-constraints:CheckIdAndNameMatch |
| 411 | rdf:type spin:ConstructTemplate ; | 539 | rdf:type spin:ConstructTemplate ; |
| 412 | - rdfs:label "NPD id and name must match"^^xsd:string ; | 540 | + spin:body [ |
| 413 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 541 | + rdf:type sp:Construct ; |
| 414 | - spin:body | 542 | + sp:templates ( |
| 415 | - [ rdf:type sp:Construct ; | 543 | + [ |
| 416 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 544 | + sp:object spin:ConstraintViolation ; |
| 417 | sp:predicate rdf:type ; | 545 | sp:predicate rdf:type ; |
| 418 | - sp:subject _:b7 | 546 | + sp:subject _:b30672 ; |
| 419 | - ] [ sp:object | 547 | + ] |
| 420 | - [ sp:varName "message"^^xsd:string | 548 | + [ |
| 549 | + sp:object [ | ||
| 550 | + sp:varName "message"^^xsd:string ; | ||
| 421 | ] ; | 551 | ] ; |
| 422 | sp:predicate rdfs:label ; | 552 | sp:predicate rdfs:label ; |
| 423 | - sp:subject _:b7 | 553 | + sp:subject _:b30672 ; |
| 424 | - ]) ; | 554 | + ] |
| 425 | - sp:where ([ sp:object | 555 | + ) ; |
| 426 | - [ sp:varName "kindRef"^^xsd:string | 556 | + sp:where ( |
| 557 | + [ | ||
| 558 | + sp:object [ | ||
| 559 | + sp:varName "kindRef"^^xsd:string ; | ||
| 427 | ] ; | 560 | ] ; |
| 428 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 561 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 429 | - sp:subject spin:_this | 562 | + sp:subject spin:_this ; |
| 430 | - ] [ sp:object "NPD" ; | 563 | + ] |
| 564 | + [ | ||
| 565 | + sp:object "NPD" ; | ||
| 431 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 566 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 432 | - sp:subject spin:_this | 567 | + sp:subject spin:_this ; |
| 433 | - ] [ sp:object | 568 | + ] |
| 434 | - [ sp:varName "name"^^xsd:string | 569 | + [ |
| 570 | + sp:object [ | ||
| 571 | + sp:varName "name"^^xsd:string ; | ||
| 435 | ] ; | 572 | ] ; |
| 436 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 573 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 437 | - sp:subject spin:_this | 574 | + sp:subject spin:_this ; |
| 438 | - ] [ sp:object | 575 | + ] |
| 439 | - [ sp:varName "id"^^xsd:string | 576 | + [ |
| 577 | + sp:object [ | ||
| 578 | + sp:varName "id"^^xsd:string ; | ||
| 440 | ] ; | 579 | ] ; |
| 441 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 580 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
| 442 | - sp:subject spin:_this | 581 | + sp:subject spin:_this ; |
| 443 | - ] [ rdf:type sp:Bind ; | ||
| 444 | - sp:expression | ||
| 445 | - [ rdf:type rhspin:npdIndividualById ; | ||
| 446 | - arg:id [ sp:varName "id"^^xsd:string | ||
| 447 | - ] ; | ||
| 448 | - arg:type | ||
| 449 | - [ sp:varName "type"^^xsd:string | ||
| 450 | ] | 582 | ] |
| 583 | + [ | ||
| 584 | + rdf:type sp:Bind ; | ||
| 585 | + sp:expression [ | ||
| 586 | + rdf:type rhspin:npdIndividualById ; | ||
| 587 | + arg:id [ | ||
| 588 | + sp:varName "id"^^xsd:string ; | ||
| 451 | ] ; | 589 | ] ; |
| 452 | - sp:variable | 590 | + arg:type [ |
| 453 | - [ sp:varName "byId"^^xsd:string | 591 | + sp:varName "type"^^xsd:string ; |
| 454 | - ] | ||
| 455 | - ] [ rdf:type sp:Bind ; | ||
| 456 | - sp:expression | ||
| 457 | - [ rdf:type rhspin:npdIndividualByName ; | ||
| 458 | - arg:name | ||
| 459 | - [ sp:varName "name"^^xsd:string | ||
| 460 | ] ; | 592 | ] ; |
| 461 | - arg:type | ||
| 462 | - [ sp:varName "type"^^xsd:string | ||
| 463 | - ] | ||
| 464 | ] ; | 593 | ] ; |
| 465 | - sp:variable | 594 | + sp:variable [ |
| 466 | - [ sp:varName "byName"^^xsd:string | 595 | + sp:varName "byId"^^xsd:string ; |
| 467 | - ] | ||
| 468 | - ] [ rdf:type sp:Filter ; | ||
| 469 | - sp:expression | ||
| 470 | - [ rdf:type sp:and ; | ||
| 471 | - sp:arg1 [ rdf:type sp:or ; | ||
| 472 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 473 | - sp:arg1 [ sp:varName "byId"^^xsd:string | ||
| 474 | - ] | ||
| 475 | ] ; | 596 | ] ; |
| 476 | - sp:arg2 [ rdf:type sp:bound ; | ||
| 477 | - sp:arg1 [ sp:varName "byName"^^xsd:string | ||
| 478 | - ] | ||
| 479 | ] | 597 | ] |
| 598 | + [ | ||
| 599 | + rdf:type sp:Bind ; | ||
| 600 | + sp:expression [ | ||
| 601 | + rdf:type rhspin:npdIndividualByName ; | ||
| 602 | + arg:name [ | ||
| 603 | + sp:varName "name"^^xsd:string ; | ||
| 480 | ] ; | 604 | ] ; |
| 481 | - sp:arg2 [ rdf:type sp:ne ; | 605 | + arg:type [ |
| 482 | - sp:arg1 [ sp:varName "byId"^^xsd:string | 606 | + sp:varName "type"^^xsd:string ; |
| 607 | + ] ; | ||
| 608 | + ] ; | ||
| 609 | + sp:variable [ | ||
| 610 | + sp:varName "byName"^^xsd:string ; | ||
| 483 | ] ; | 611 | ] ; |
| 484 | - sp:arg2 [ sp:varName "byName"^^xsd:string | ||
| 485 | - ] | ||
| 486 | ] | 612 | ] |
| 613 | + [ | ||
| 614 | + rdf:type sp:Filter ; | ||
| 615 | + sp:expression [ | ||
| 616 | + rdf:type sp:and ; | ||
| 617 | + sp:arg1 [ | ||
| 618 | + rdf:type sp:or ; | ||
| 619 | + sp:arg1 [ | ||
| 620 | + rdf:type sp:bound ; | ||
| 621 | + sp:arg1 [ | ||
| 622 | + sp:varName "byId"^^xsd:string ; | ||
| 623 | + ] ; | ||
| 624 | + ] ; | ||
| 625 | + sp:arg2 [ | ||
| 626 | + rdf:type sp:bound ; | ||
| 627 | + sp:arg1 [ | ||
| 628 | + sp:varName "byName"^^xsd:string ; | ||
| 629 | + ] ; | ||
| 630 | + ] ; | ||
| 631 | + ] ; | ||
| 632 | + sp:arg2 [ | ||
| 633 | + rdf:type sp:ne ; | ||
| 634 | + sp:arg1 [ | ||
| 635 | + sp:varName "byId"^^xsd:string ; | ||
| 636 | + ] ; | ||
| 637 | + sp:arg2 [ | ||
| 638 | + sp:varName "byName"^^xsd:string ; | ||
| 639 | + ] ; | ||
| 640 | + ] ; | ||
| 641 | + ] ; | ||
| 487 | ] | 642 | ] |
| 488 | - ] [ rdf:type sp:Bind ; | 643 | + [ |
| 489 | - sp:expression | 644 | + rdf:type sp:Bind ; |
| 490 | - [ rdf:type fn:concat ; | 645 | + sp:expression [ |
| 646 | + rdf:type fn:concat ; | ||
| 491 | sp:arg1 "[RH-19] Mismatching " ; | 647 | sp:arg1 "[RH-19] Mismatching " ; |
| 492 | - sp:arg2 [ rdf:type afn:localname ; | 648 | + sp:arg2 [ |
| 493 | - sp:arg1 [ sp:varName "type"^^xsd:string | 649 | + rdf:type afn:localname ; |
| 494 | - ] | 650 | + sp:arg1 [ |
| 651 | + sp:varName "type"^^xsd:string ; | ||
| 652 | + ] ; | ||
| 495 | ] ; | 653 | ] ; |
| 496 | sp:arg3 " id: " ; | 654 | sp:arg3 " id: " ; |
| 497 | - sp:arg4 [ sp:varName "id"^^xsd:string | 655 | + sp:arg4 [ |
| 656 | + sp:varName "id"^^xsd:string ; | ||
| 498 | ] ; | 657 | ] ; |
| 499 | sp:arg5 " is not the NPD id of " ; | 658 | sp:arg5 " is not the NPD id of " ; |
| 500 | - sp:arg6 [ sp:varName "name"^^xsd:string | 659 | + sp:arg6 [ |
| 501 | - ] | 660 | + sp:varName "name"^^xsd:string ; |
| 661 | + ] ; | ||
| 662 | + ] ; | ||
| 663 | + sp:variable [ | ||
| 664 | + sp:varName "message"^^xsd:string ; | ||
| 502 | ] ; | 665 | ] ; |
| 503 | - sp:variable | ||
| 504 | - [ sp:varName "message"^^xsd:string | ||
| 505 | ] | 666 | ] |
| 506 | - ]) | 667 | + ) ; |
| 507 | ] ; | 668 | ] ; |
| 508 | - spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string . | 669 | + spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string ; |
| 509 | - | 670 | + rdfs:label "NPD id and name must match"^^xsd:string ; |
| 671 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
| 672 | +. | ||
| 510 | mpr-proxy-constraints:CheckName | 673 | mpr-proxy-constraints:CheckName |
| 511 | rdf:type spin:ConstructTemplate ; | 674 | rdf:type spin:ConstructTemplate ; |
| 512 | - rdfs:label "Check name"^^xsd:string ; | 675 | + spin:body [ |
| 513 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 676 | + rdf:type sp:Construct ; |
| 514 | - spin:body | 677 | + sp:templates ( |
| 515 | - [ rdf:type sp:Construct ; | 678 | + [ |
| 516 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 679 | + sp:object spin:ConstraintViolation ; |
| 517 | sp:predicate rdf:type ; | 680 | sp:predicate rdf:type ; |
| 518 | - sp:subject _:b8 | 681 | + sp:subject _:b81462 ; |
| 519 | - ] [ sp:object | 682 | + ] |
| 520 | - [ sp:varName "message"^^xsd:string | 683 | + [ |
| 684 | + sp:object [ | ||
| 685 | + sp:varName "message"^^xsd:string ; | ||
| 521 | ] ; | 686 | ] ; |
| 522 | sp:predicate rdfs:label ; | 687 | sp:predicate rdfs:label ; |
| 523 | - sp:subject _:b8 | 688 | + sp:subject _:b81462 ; |
| 524 | - ]) ; | 689 | + ] |
| 525 | - sp:where ([ sp:object | 690 | + ) ; |
| 526 | - [ sp:varName "kindRef"^^xsd:string | 691 | + sp:where ( |
| 692 | + [ | ||
| 693 | + sp:object [ | ||
| 694 | + sp:varName "kindRef"^^xsd:string ; | ||
| 527 | ] ; | 695 | ] ; |
| 528 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 696 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 529 | - sp:subject spin:_this | 697 | + sp:subject spin:_this ; |
| 530 | - ] [ sp:object "NPD" ; | 698 | + ] |
| 699 | + [ | ||
| 700 | + sp:object "NPD" ; | ||
| 531 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 701 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 532 | - sp:subject spin:_this | 702 | + sp:subject spin:_this ; |
| 533 | - ] [ sp:object | 703 | + ] |
| 534 | - [ sp:varName "name"^^xsd:string | 704 | + [ |
| 705 | + sp:object [ | ||
| 706 | + sp:varName "name"^^xsd:string ; | ||
| 535 | ] ; | 707 | ] ; |
| 536 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 708 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 537 | - sp:subject spin:_this | 709 | + sp:subject spin:_this ; |
| 538 | - ] [ rdf:type sp:Bind ; | ||
| 539 | - sp:expression | ||
| 540 | - [ rdf:type rhspin:npdIndividualByName ; | ||
| 541 | - arg:name | ||
| 542 | - [ sp:varName "name"^^xsd:string | ||
| 543 | - ] ; | ||
| 544 | - arg:type | ||
| 545 | - [ sp:varName "type"^^xsd:string | ||
| 546 | ] | 710 | ] |
| 711 | + [ | ||
| 712 | + rdf:type sp:Bind ; | ||
| 713 | + sp:expression [ | ||
| 714 | + rdf:type rhspin:npdIndividualByName ; | ||
| 715 | + arg:name [ | ||
| 716 | + sp:varName "name"^^xsd:string ; | ||
| 717 | + ] ; | ||
| 718 | + arg:type [ | ||
| 719 | + sp:varName "type"^^xsd:string ; | ||
| 720 | + ] ; | ||
| 721 | + ] ; | ||
| 722 | + sp:variable [ | ||
| 723 | + sp:varName "npd"^^xsd:string ; | ||
| 547 | ] ; | 724 | ] ; |
| 548 | - sp:variable | ||
| 549 | - [ sp:varName "npd"^^xsd:string | ||
| 550 | - ] | ||
| 551 | - ] [ rdf:type sp:Filter ; | ||
| 552 | - sp:expression | ||
| 553 | - [ rdf:type sp:not ; | ||
| 554 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 555 | - sp:arg1 [ sp:varName "npd"^^xsd:string | ||
| 556 | - ] | ||
| 557 | ] | 725 | ] |
| 726 | + [ | ||
| 727 | + rdf:type sp:Filter ; | ||
| 728 | + sp:expression [ | ||
| 729 | + rdf:type sp:not ; | ||
| 730 | + sp:arg1 [ | ||
| 731 | + rdf:type sp:bound ; | ||
| 732 | + sp:arg1 [ | ||
| 733 | + sp:varName "npd"^^xsd:string ; | ||
| 734 | + ] ; | ||
| 735 | + ] ; | ||
| 736 | + ] ; | ||
| 558 | ] | 737 | ] |
| 559 | - ] [ rdf:type sp:Bind ; | 738 | + [ |
| 560 | - sp:expression | 739 | + rdf:type sp:Bind ; |
| 561 | - [ rdf:type fn:concat ; | 740 | + sp:expression [ |
| 562 | - sp:arg1 [ rdf:type sp:add ; | 741 | + rdf:type fn:concat ; |
| 742 | + sp:arg1 [ | ||
| 743 | + rdf:type sp:add ; | ||
| 563 | sp:arg1 "[RH-19] Invalid " ; | 744 | sp:arg1 "[RH-19] Invalid " ; |
| 564 | - sp:arg2 [ rdf:type afn:localname ; | 745 | + sp:arg2 [ |
| 565 | - sp:arg1 [ sp:varName "type"^^xsd:string | 746 | + rdf:type afn:localname ; |
| 566 | - ] | 747 | + sp:arg1 [ |
| 567 | - ] | 748 | + sp:varName "type"^^xsd:string ; |
| 749 | + ] ; | ||
| 750 | + ] ; | ||
| 568 | ] ; | 751 | ] ; |
| 569 | sp:arg2 " name " ; | 752 | sp:arg2 " name " ; |
| 570 | - sp:arg3 [ sp:varName "name"^^xsd:string | 753 | + sp:arg3 [ |
| 571 | - ] | 754 | + sp:varName "name"^^xsd:string ; |
| 755 | + ] ; | ||
| 756 | + ] ; | ||
| 757 | + sp:variable [ | ||
| 758 | + sp:varName "message"^^xsd:string ; | ||
| 572 | ] ; | 759 | ] ; |
| 573 | - sp:variable | ||
| 574 | - [ sp:varName "message"^^xsd:string | ||
| 575 | ] | 760 | ] |
| 576 | - ]) | 761 | + ) ; |
| 577 | ] ; | 762 | ] ; |
| 578 | - spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string . | 763 | + spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string ; |
| 579 | - | 764 | + rdfs:label "Check name"^^xsd:string ; |
| 765 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
| 766 | +. | ||
| 580 | mpr-proxy-constraints:ConstraintTemplates | 767 | mpr-proxy-constraints:ConstraintTemplates |
| 581 | rdf:type spin:ConstructTemplate ; | 768 | rdf:type spin:ConstructTemplate ; |
| 582 | - rdfs:label "Constraint templates"^^xsd:string ; | 769 | + spin:constraint [ |
| 583 | - rdfs:subClassOf spin:ConstructTemplates ; | 770 | + rdf:type spl:Argument ; |
| 584 | - spin:constraint | ||
| 585 | - [ rdf:type spl:Argument ; | ||
| 586 | - rdfs:comment "The kind reference value."^^xsd:string ; | ||
| 587 | spl:predicate arg:kindRef ; | 771 | spl:predicate arg:kindRef ; |
| 588 | - spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> | 772 | + spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> ; |
| 773 | + rdfs:comment "The kind reference value."^^xsd:string ; | ||
| 589 | ] ; | 774 | ] ; |
| 590 | - spin:constraint | 775 | + spin:constraint [ |
| 591 | - [ rdf:type spl:Argument ; | 776 | + rdf:type spl:Argument ; |
| 592 | - rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | ||
| 593 | spl:predicate arg:type ; | 777 | spl:predicate arg:type ; |
| 594 | - spl:valueType rdfs:Class | 778 | + spl:valueType rdfs:Class ; |
| 595 | - ] . | 779 | + rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; |
| 780 | + ] ; | ||
| 781 | + rdfs:label "Constraint templates"^^xsd:string ; | ||
| 782 | + rdfs:subClassOf spin:ConstructTemplates ; | ||
| 783 | +. | ... | ... |
-
Please register or login to post a comment