Formatting XML broke white space handling, removed Platform constraints
Showing
16 changed files
with
2160 additions
and
3479 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#> . |
| ... | @@ -15,489 +16,620 @@ | ... | @@ -15,489 +16,620 @@ |
| 15 | @prefix spin: <http://spinrdf.org/spin#> . | 16 | @prefix spin: <http://spinrdf.org/spin#> . |
| 16 | @prefix spl: <http://spinrdf.org/spl#> . | 17 | @prefix spl: <http://spinrdf.org/spl#> . |
| 17 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 18 | - | ||
| 19 | arg:kindRef | 19 | arg:kindRef |
| 20 | rdf:type rdf:Property ; | 20 | rdf:type rdf:Property ; |
| 21 | rdfs:label "kind ref"^^xsd:string ; | 21 | rdfs:label "kind ref"^^xsd:string ; |
| 22 | - rdfs:subPropertyOf sp:arg . | 22 | + rdfs:subPropertyOf sp:arg ; |
| 23 | - | 23 | +. |
| 24 | <http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> | 24 | <http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> |
| 25 | - spin:constraint | 25 | + spin:constraint [ |
| 26 | - [ rdf:type sp:Construct ; | 26 | + rdf:type sp:Construct ; |
| 27 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 27 | + sp:templates ( |
| 28 | + [ | ||
| 29 | + sp:object spin:ConstraintViolation ; | ||
| 28 | sp:predicate rdf:type ; | 30 | sp:predicate rdf:type ; |
| 29 | - sp:subject _:b1 | 31 | + sp:subject _:b46474 ; |
| 30 | - ] [ sp:object | 32 | + ] |
| 31 | - [ sp:varName "message"^^xsd:string | 33 | + [ |
| 34 | + sp:object [ | ||
| 35 | + sp:varName "message"^^xsd:string ; | ||
| 32 | ] ; | 36 | ] ; |
| 33 | sp:predicate rdfs:label ; | 37 | sp:predicate rdfs:label ; |
| 34 | - sp:subject _:b1 | 38 | + sp:subject _:b46474 ; |
| 35 | - ]) ; | 39 | + ] |
| 36 | - sp:where ([ sp:object | 40 | + ) ; |
| 37 | - [ sp:varName "name"^^xsd:string | 41 | + sp:where ( |
| 42 | + [ | ||
| 43 | + sp:object [ | ||
| 44 | + sp:varName "name"^^xsd:string ; | ||
| 38 | ] ; | 45 | ] ; |
| 39 | sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | 46 | sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
| 40 | - sp:subject spin:_this | 47 | + sp:subject spin:_this ; |
| 41 | - ] [ rdf:type sp:TriplePath ; | 48 | + ] |
| 49 | + [ | ||
| 50 | + rdf:type sp:TriplePath ; | ||
| 42 | sp:object "Operating Company" ; | 51 | sp:object "Operating Company" ; |
| 43 | - sp:path [ rdf:type sp:SeqPath ; | 52 | + sp:path [ |
| 53 | + rdf:type sp:SeqPath ; | ||
| 44 | sp:path1 <http://www.epim.no/schemas/mprml/1#roleRef> ; | 54 | sp:path1 <http://www.epim.no/schemas/mprml/1#roleRef> ; |
| 45 | - sp:path2 <http://www.linkedmodel.org/schema/dtype#value> | 55 | + sp:path2 <http://www.linkedmodel.org/schema/dtype#value> ; |
| 46 | ] ; | 56 | ] ; |
| 47 | - sp:subject spin:_this | 57 | + sp:subject spin:_this ; |
| 48 | - ] [ rdf:type sp:Bind ; | ||
| 49 | - sp:expression | ||
| 50 | - [ rdf:type rhspin:companyWithName ; | ||
| 51 | - arg:name | ||
| 52 | - [ sp:varName "name"^^xsd:string | ||
| 53 | ] | 58 | ] |
| 59 | + [ | ||
| 60 | + rdf:type sp:Bind ; | ||
| 61 | + sp:expression [ | ||
| 62 | + rdf:type rhspin:companyWithName ; | ||
| 63 | + arg:name [ | ||
| 64 | + sp:varName "name"^^xsd:string ; | ||
| 65 | + ] ; | ||
| 66 | + ] ; | ||
| 67 | + sp:variable [ | ||
| 68 | + sp:varName "company"^^xsd:string ; | ||
| 54 | ] ; | 69 | ] ; |
| 55 | - sp:variable | ||
| 56 | - [ sp:varName "company"^^xsd:string | ||
| 57 | - ] | ||
| 58 | - ] [ rdf:type sp:Filter ; | ||
| 59 | - sp:expression | ||
| 60 | - [ rdf:type sp:not ; | ||
| 61 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 62 | - sp:arg1 [ sp:varName "company"^^xsd:string | ||
| 63 | - ] | ||
| 64 | ] | 70 | ] |
| 71 | + [ | ||
| 72 | + rdf:type sp:Filter ; | ||
| 73 | + sp:expression [ | ||
| 74 | + rdf:type sp:not ; | ||
| 75 | + sp:arg1 [ | ||
| 76 | + rdf:type sp:bound ; | ||
| 77 | + sp:arg1 [ | ||
| 78 | + sp:varName "company"^^xsd:string ; | ||
| 79 | + ] ; | ||
| 80 | + ] ; | ||
| 81 | + ] ; | ||
| 65 | ] | 82 | ] |
| 66 | - ] [ rdf:type sp:Bind ; | 83 | + [ |
| 67 | - sp:expression | 84 | + rdf:type sp:Bind ; |
| 68 | - [ rdf:type fn:concat ; | 85 | + sp:expression [ |
| 86 | + rdf:type fn:concat ; | ||
| 69 | sp:arg1 "Invalid company name " ; | 87 | sp:arg1 "Invalid company name " ; |
| 70 | - sp:arg2 [ sp:varName "name"^^xsd:string | 88 | + sp:arg2 [ |
| 71 | - ] | 89 | + sp:varName "name"^^xsd:string ; |
| 90 | + ] ; | ||
| 91 | + ] ; | ||
| 92 | + sp:variable [ | ||
| 93 | + sp:varName "message"^^xsd:string ; | ||
| 72 | ] ; | 94 | ] ; |
| 73 | - sp:variable | ||
| 74 | - [ sp:varName "message"^^xsd:string | ||
| 75 | ] | 95 | ] |
| 76 | - ]) | 96 | + ) ; |
| 77 | - ] . | ||
| 78 | - | ||
| 79 | -<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | ||
| 80 | - spin:constraint | ||
| 81 | - [ rdf:type mpr-proxy-constraints:CheckId ; | ||
| 82 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 83 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 84 | ] ; | 97 | ] ; |
| 85 | - spin:constraint | 98 | +. |
| 86 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 99 | +<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
| 100 | + spin:constraint [ | ||
| 101 | + rdf:type mpr-proxy-constraints:CheckId ; | ||
| 87 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 102 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 88 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 103 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 89 | ] ; | 104 | ] ; |
| 90 | - spin:constraint | 105 | + spin:constraint [ |
| 91 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 106 | + rdf:type mpr-proxy-constraints:CheckId ; |
| 92 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 107 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 93 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | 108 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 94 | ] ; | 109 | ] ; |
| 95 | - spin:constraint | 110 | + spin:constraint [ |
| 96 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 111 | + rdf:type mpr-proxy-constraints:CheckId ; |
| 97 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 112 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
| 98 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 113 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
| 99 | ] ; | 114 | ] ; |
| 100 | - spin:constraint | 115 | + spin:constraint [ |
| 101 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 116 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 102 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 103 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
| 104 | - ] ; | ||
| 105 | - spin:constraint | ||
| 106 | - [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 107 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 117 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 108 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 118 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 109 | ] ; | 119 | ] ; |
| 110 | - spin:constraint | 120 | + spin:constraint [ |
| 111 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 121 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 112 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 122 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 113 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | 123 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> ; |
| 114 | - ] ; | ||
| 115 | - spin:constraint | ||
| 116 | - [ rdf:type mpr-proxy-constraints:CheckName ; | ||
| 117 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 118 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 119 | ] ; | 124 | ] ; |
| 120 | - spin:constraint | 125 | + spin:constraint [ |
| 121 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 126 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
| 122 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 127 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 123 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 128 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 129 | + ] ; | ||
| 130 | + spin:constraint [ | ||
| 131 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
| 132 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 133 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 124 | ] ; | 134 | ] ; |
| 125 | - spin:constraint | 135 | + spin:constraint [ |
| 126 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 136 | + rdf:type mpr-proxy-constraints:CheckName ; |
| 127 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 137 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 128 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 138 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 129 | ] ; | 139 | ] ; |
| 130 | - spin:constraint | 140 | + spin:constraint [ |
| 131 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 141 | + rdf:type mpr-proxy-constraints:CheckName ; |
| 132 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 142 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 133 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | 143 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 134 | ] ; | 144 | ] ; |
| 135 | - spin:constraint | 145 | + spin:constraint [ |
| 136 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 146 | + rdf:type mpr-proxy-constraints:CheckName ; |
| 137 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 147 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
| 138 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 148 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
| 139 | - ] . | 149 | + ] ; |
| 140 | - | 150 | +. |
| 141 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> | 151 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> |
| 142 | - spin:constraint | 152 | + spin:constraint [ |
| 143 | - [ rdf:type sp:Construct ; | 153 | + rdf:type sp:Construct ; |
| 144 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 154 | + sp:templates ( |
| 155 | + [ | ||
| 156 | + sp:object spin:ConstraintViolation ; | ||
| 145 | sp:predicate rdf:type ; | 157 | sp:predicate rdf:type ; |
| 146 | - sp:subject _:b2 | 158 | + sp:subject _:b3901 ; |
| 147 | - ] [ sp:object | 159 | + ] |
| 148 | - [ sp:varName "message"^^xsd:string | 160 | + [ |
| 161 | + sp:object [ | ||
| 162 | + sp:varName "message"^^xsd:string ; | ||
| 149 | ] ; | 163 | ] ; |
| 150 | sp:predicate rdfs:label ; | 164 | sp:predicate rdfs:label ; |
| 151 | - sp:subject _:b2 | 165 | + sp:subject _:b3901 ; |
| 152 | - ]) ; | 166 | + ] |
| 153 | - sp:where ([ rdf:type sp:TriplePath ; | 167 | + ) ; |
| 154 | - sp:object | 168 | + sp:where ( |
| 155 | - [ sp:varName "name"^^xsd:string | 169 | + [ |
| 170 | + rdf:type sp:TriplePath ; | ||
| 171 | + sp:object [ | ||
| 172 | + sp:varName "name"^^xsd:string ; | ||
| 156 | ] ; | 173 | ] ; |
| 157 | - sp:path [ rdf:type sp:SeqPath ; | 174 | + sp:path [ |
| 175 | + rdf:type sp:SeqPath ; | ||
| 158 | sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; | 176 | sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 159 | - sp:path2 <http://www.linkedmodel.org/schema/dtype#value> | 177 | + sp:path2 <http://www.linkedmodel.org/schema/dtype#value> ; |
| 160 | ] ; | 178 | ] ; |
| 161 | - sp:subject spin:_this | 179 | + sp:subject spin:_this ; |
| 162 | - ] [ rdf:type sp:Bind ; | 180 | + ] |
| 163 | - sp:expression | 181 | + [ |
| 164 | - [ rdf:type rhspin:npdIndividualByName ; | 182 | + rdf:type sp:Bind ; |
| 165 | - arg:name | 183 | + sp:expression [ |
| 166 | - [ sp:varName "name"^^xsd:string | 184 | + rdf:type rhspin:npdIndividualByName ; |
| 185 | + arg:name [ | ||
| 186 | + sp:varName "name"^^xsd:string ; | ||
| 167 | ] ; | 187 | ] ; |
| 168 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 188 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 189 | + ] ; | ||
| 190 | + sp:variable [ | ||
| 191 | + sp:varName "field"^^xsd:string ; | ||
| 169 | ] ; | 192 | ] ; |
| 170 | - sp:variable | ||
| 171 | - [ sp:varName "field"^^xsd:string | ||
| 172 | - ] | ||
| 173 | - ] [ rdf:type sp:Filter ; | ||
| 174 | - sp:expression | ||
| 175 | - [ rdf:type sp:not ; | ||
| 176 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 177 | - sp:arg1 [ sp:varName "field"^^xsd:string | ||
| 178 | - ] | ||
| 179 | ] | 193 | ] |
| 194 | + [ | ||
| 195 | + rdf:type sp:Filter ; | ||
| 196 | + sp:expression [ | ||
| 197 | + rdf:type sp:not ; | ||
| 198 | + sp:arg1 [ | ||
| 199 | + rdf:type sp:bound ; | ||
| 200 | + sp:arg1 [ | ||
| 201 | + sp:varName "field"^^xsd:string ; | ||
| 202 | + ] ; | ||
| 203 | + ] ; | ||
| 204 | + ] ; | ||
| 180 | ] | 205 | ] |
| 181 | - ] [ rdf:type sp:Bind ; | 206 | + [ |
| 182 | - sp:expression | 207 | + rdf:type sp:Bind ; |
| 183 | - [ rdf:type fn:concat ; | 208 | + sp:expression [ |
| 209 | + rdf:type fn:concat ; | ||
| 184 | sp:arg1 "Invalid Field name " ; | 210 | sp:arg1 "Invalid Field name " ; |
| 185 | - sp:arg2 [ sp:varName "name"^^xsd:string | 211 | + sp:arg2 [ |
| 186 | - ] | 212 | + sp:varName "name"^^xsd:string ; |
| 213 | + ] ; | ||
| 214 | + ] ; | ||
| 215 | + sp:variable [ | ||
| 216 | + sp:varName "message"^^xsd:string ; | ||
| 187 | ] ; | 217 | ] ; |
| 188 | - sp:variable | ||
| 189 | - [ sp:varName "message"^^xsd:string | ||
| 190 | ] | 218 | ] |
| 191 | - ]) | 219 | + ) ; |
| 192 | - ] . | 220 | + ] ; |
| 193 | - | 221 | +. |
| 194 | <http://www.epim.no/schemas/mprml/1#Obj_report> | 222 | <http://www.epim.no/schemas/mprml/1#Obj_report> |
| 195 | - spin:constraint | 223 | + spin:constraint [ |
| 196 | - [ rdf:type sp:Construct ; | 224 | + rdf:type sp:Construct ; |
| 197 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 225 | + sp:templates ( |
| 226 | + [ | ||
| 227 | + sp:object spin:ConstraintViolation ; | ||
| 198 | sp:predicate rdf:type ; | 228 | sp:predicate rdf:type ; |
| 199 | - sp:subject _:b3 | 229 | + sp:subject _:b384 ; |
| 200 | - ] [ sp:object | 230 | + ] |
| 201 | - [ sp:varName "message"^^xsd:string | 231 | + [ |
| 232 | + sp:object [ | ||
| 233 | + sp:varName "message"^^xsd:string ; | ||
| 202 | ] ; | 234 | ] ; |
| 203 | sp:predicate rdfs:label ; | 235 | sp:predicate rdfs:label ; |
| 204 | - sp:subject _:b3 | 236 | + sp:subject _:b384 ; |
| 205 | - ]) ; | 237 | + ] |
| 206 | - sp:where ([ sp:object | 238 | + ) ; |
| 207 | - [ sp:varName "installation"^^xsd:string | 239 | + sp:where ( |
| 240 | + [ | ||
| 241 | + sp:object [ | ||
| 242 | + sp:varName "installation"^^xsd:string ; | ||
| 208 | ] ; | 243 | ] ; |
| 209 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 244 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 210 | - sp:subject spin:_this | 245 | + sp:subject spin:_this ; |
| 211 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 246 | + ] |
| 247 | + [ | ||
| 248 | + sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 212 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 249 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 213 | - sp:subject | 250 | + sp:subject [ |
| 214 | - [ sp:varName "installation"^^xsd:string | 251 | + sp:varName "installation"^^xsd:string ; |
| 252 | + ] ; | ||
| 215 | ] | 253 | ] |
| 216 | - ] [ sp:object | 254 | + [ |
| 217 | - [ sp:varName "fieldName"^^xsd:string | 255 | + sp:object [ |
| 256 | + sp:varName "fieldName"^^xsd:string ; | ||
| 218 | ] ; | 257 | ] ; |
| 219 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 258 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 220 | - sp:subject | 259 | + sp:subject [ |
| 221 | - [ sp:varName "installation"^^xsd:string | 260 | + sp:varName "installation"^^xsd:string ; |
| 222 | - ] | 261 | + ] ; |
| 223 | - ] [ rdf:type sp:Filter ; | ||
| 224 | - sp:expression | ||
| 225 | - [ rdf:type sp:not ; | ||
| 226 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | ||
| 227 | - arg:fieldName | ||
| 228 | - [ sp:varName "fieldName"^^xsd:string | ||
| 229 | - ] | ||
| 230 | ] | 262 | ] |
| 263 | + [ | ||
| 264 | + rdf:type sp:Filter ; | ||
| 265 | + sp:expression [ | ||
| 266 | + rdf:type sp:not ; | ||
| 267 | + sp:arg1 [ | ||
| 268 | + rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | ||
| 269 | + arg:fieldName [ | ||
| 270 | + sp:varName "fieldName"^^xsd:string ; | ||
| 271 | + ] ; | ||
| 272 | + ] ; | ||
| 273 | + ] ; | ||
| 231 | ] | 274 | ] |
| 232 | - ] [ rdf:type sp:Bind ; | 275 | + [ |
| 233 | - sp:expression | 276 | + rdf:type sp:Bind ; |
| 234 | - [ rdf:type fn:concat ; | 277 | + sp:expression [ |
| 278 | + rdf:type fn:concat ; | ||
| 235 | sp:arg1 "Your company is not the operator of field with name " ; | 279 | sp:arg1 "Your company is not the operator of field with name " ; |
| 236 | - sp:arg2 [ sp:varName "fieldName"^^xsd:string | 280 | + sp:arg2 [ |
| 237 | - ] | 281 | + sp:varName "fieldName"^^xsd:string ; |
| 282 | + ] ; | ||
| 283 | + ] ; | ||
| 284 | + sp:variable [ | ||
| 285 | + sp:varName "message"^^xsd:string ; | ||
| 238 | ] ; | 286 | ] ; |
| 239 | - sp:variable | ||
| 240 | - [ sp:varName "message"^^xsd:string | ||
| 241 | ] | 287 | ] |
| 242 | - ]) | 288 | + ) ; |
| 243 | - ] . | 289 | + ] ; |
| 244 | - | 290 | +. |
| 245 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> | 291 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> |
| 246 | rdf:type owl:Ontology ; | 292 | rdf:type owl:Ontology ; |
| 247 | rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; | 293 | rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; |
| 248 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ; | 294 | + owl:imports <http://spinrdf.org/spin> ; |
| 249 | - owl:versionInfo "0.1.0"^^xsd:string . | 295 | + owl:imports <http://www.epim.no/schemas/mprml/1> ; |
| 250 | - | 296 | + owl:imports <http://www.reportinghub.no/spin/rh> ; |
| 297 | + owl:versionInfo "0.1.0"^^xsd:string ; | ||
| 298 | +. | ||
| 251 | mpr-proxy-constraints:CheckId | 299 | mpr-proxy-constraints:CheckId |
| 252 | rdf:type spin:ConstructTemplate ; | 300 | rdf:type spin:ConstructTemplate ; |
| 253 | - rdfs:label "Check id"^^xsd:string ; | 301 | + spin:body [ |
| 254 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 302 | + rdf:type sp:Construct ; |
| 255 | - spin:body | 303 | + sp:templates ( |
| 256 | - [ rdf:type sp:Construct ; | 304 | + [ |
| 257 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 305 | + sp:object spin:ConstraintViolation ; |
| 258 | sp:predicate rdf:type ; | 306 | sp:predicate rdf:type ; |
| 259 | - sp:subject _:b4 | 307 | + sp:subject _:b63838 ; |
| 260 | - ] [ sp:object | 308 | + ] |
| 261 | - [ sp:varName "message"^^xsd:string | 309 | + [ |
| 310 | + sp:object [ | ||
| 311 | + sp:varName "message"^^xsd:string ; | ||
| 262 | ] ; | 312 | ] ; |
| 263 | sp:predicate rdfs:label ; | 313 | sp:predicate rdfs:label ; |
| 264 | - sp:subject _:b4 | 314 | + sp:subject _:b63838 ; |
| 265 | - ]) ; | 315 | + ] |
| 266 | - sp:where ([ sp:object | 316 | + ) ; |
| 267 | - [ sp:varName "kindRef"^^xsd:string | 317 | + sp:where ( |
| 318 | + [ | ||
| 319 | + sp:object [ | ||
| 320 | + sp:varName "kindRef"^^xsd:string ; | ||
| 268 | ] ; | 321 | ] ; |
| 269 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 322 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 270 | - sp:subject spin:_this | 323 | + sp:subject spin:_this ; |
| 271 | - ] [ sp:object "NPD" ; | 324 | + ] |
| 325 | + [ | ||
| 326 | + sp:object "NPD" ; | ||
| 272 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 327 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 273 | - sp:subject spin:_this | 328 | + sp:subject spin:_this ; |
| 274 | - ] [ sp:object | 329 | + ] |
| 275 | - [ sp:varName "id"^^xsd:string | 330 | + [ |
| 331 | + sp:object [ | ||
| 332 | + sp:varName "id"^^xsd:string ; | ||
| 276 | ] ; | 333 | ] ; |
| 277 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 334 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
| 278 | - sp:subject spin:_this | 335 | + sp:subject spin:_this ; |
| 279 | - ] [ rdf:type sp:Bind ; | ||
| 280 | - sp:expression | ||
| 281 | - [ rdf:type rhspin:npdIndividualById ; | ||
| 282 | - arg:id [ sp:varName "id"^^xsd:string | ||
| 283 | - ] ; | ||
| 284 | - arg:type | ||
| 285 | - [ sp:varName "type"^^xsd:string | ||
| 286 | ] | 336 | ] |
| 337 | + [ | ||
| 338 | + rdf:type sp:Bind ; | ||
| 339 | + sp:expression [ | ||
| 340 | + rdf:type rhspin:npdIndividualById ; | ||
| 341 | + arg:id [ | ||
| 342 | + sp:varName "id"^^xsd:string ; | ||
| 343 | + ] ; | ||
| 344 | + arg:type [ | ||
| 345 | + sp:varName "type"^^xsd:string ; | ||
| 346 | + ] ; | ||
| 347 | + ] ; | ||
| 348 | + sp:variable [ | ||
| 349 | + sp:varName "npd"^^xsd:string ; | ||
| 287 | ] ; | 350 | ] ; |
| 288 | - sp:variable | ||
| 289 | - [ sp:varName "npd"^^xsd:string | ||
| 290 | - ] | ||
| 291 | - ] [ rdf:type sp:Filter ; | ||
| 292 | - sp:expression | ||
| 293 | - [ rdf:type sp:not ; | ||
| 294 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 295 | - sp:arg1 [ sp:varName "npd"^^xsd:string | ||
| 296 | - ] | ||
| 297 | ] | 351 | ] |
| 352 | + [ | ||
| 353 | + rdf:type sp:Filter ; | ||
| 354 | + sp:expression [ | ||
| 355 | + rdf:type sp:not ; | ||
| 356 | + sp:arg1 [ | ||
| 357 | + rdf:type sp:bound ; | ||
| 358 | + sp:arg1 [ | ||
| 359 | + sp:varName "npd"^^xsd:string ; | ||
| 360 | + ] ; | ||
| 361 | + ] ; | ||
| 362 | + ] ; | ||
| 298 | ] | 363 | ] |
| 299 | - ] [ rdf:type sp:Bind ; | 364 | + [ |
| 300 | - sp:expression | 365 | + rdf:type sp:Bind ; |
| 301 | - [ rdf:type fn:concat ; | 366 | + sp:expression [ |
| 367 | + rdf:type fn:concat ; | ||
| 302 | sp:arg1 "[RH-19] Invalid " ; | 368 | sp:arg1 "[RH-19] Invalid " ; |
| 303 | - sp:arg2 [ rdf:type afn:localname ; | 369 | + sp:arg2 [ |
| 304 | - sp:arg1 [ sp:varName "type"^^xsd:string | 370 | + rdf:type afn:localname ; |
| 305 | - ] | 371 | + sp:arg1 [ |
| 372 | + sp:varName "type"^^xsd:string ; | ||
| 373 | + ] ; | ||
| 306 | ] ; | 374 | ] ; |
| 307 | sp:arg3 " id " ; | 375 | sp:arg3 " id " ; |
| 308 | - sp:arg4 [ sp:varName "id"^^xsd:string | 376 | + sp:arg4 [ |
| 309 | - ] | 377 | + sp:varName "id"^^xsd:string ; |
| 378 | + ] ; | ||
| 379 | + ] ; | ||
| 380 | + sp:variable [ | ||
| 381 | + sp:varName "message"^^xsd:string ; | ||
| 310 | ] ; | 382 | ] ; |
| 311 | - sp:variable | ||
| 312 | - [ sp:varName "message"^^xsd:string | ||
| 313 | ] | 383 | ] |
| 314 | - ]) | 384 | + ) ; |
| 315 | ] ; | 385 | ] ; |
| 316 | - spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string . | 386 | + spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string ; |
| 317 | - | 387 | + rdfs:label "Check id"^^xsd:string ; |
| 388 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
| 389 | +. | ||
| 318 | mpr-proxy-constraints:CheckIdAndNameMatch | 390 | mpr-proxy-constraints:CheckIdAndNameMatch |
| 319 | rdf:type spin:ConstructTemplate ; | 391 | rdf:type spin:ConstructTemplate ; |
| 320 | - rdfs:label "NPD id and name must match"^^xsd:string ; | 392 | + spin:body [ |
| 321 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 393 | + rdf:type sp:Construct ; |
| 322 | - spin:body | 394 | + sp:templates ( |
| 323 | - [ rdf:type sp:Construct ; | 395 | + [ |
| 324 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 396 | + sp:object spin:ConstraintViolation ; |
| 325 | sp:predicate rdf:type ; | 397 | sp:predicate rdf:type ; |
| 326 | - sp:subject _:b5 | 398 | + sp:subject _:b30672 ; |
| 327 | - ] [ sp:object | 399 | + ] |
| 328 | - [ sp:varName "message"^^xsd:string | 400 | + [ |
| 401 | + sp:object [ | ||
| 402 | + sp:varName "message"^^xsd:string ; | ||
| 329 | ] ; | 403 | ] ; |
| 330 | sp:predicate rdfs:label ; | 404 | sp:predicate rdfs:label ; |
| 331 | - sp:subject _:b5 | 405 | + sp:subject _:b30672 ; |
| 332 | - ]) ; | 406 | + ] |
| 333 | - sp:where ([ sp:object | 407 | + ) ; |
| 334 | - [ sp:varName "kindRef"^^xsd:string | 408 | + sp:where ( |
| 409 | + [ | ||
| 410 | + sp:object [ | ||
| 411 | + sp:varName "kindRef"^^xsd:string ; | ||
| 335 | ] ; | 412 | ] ; |
| 336 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 413 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 337 | - sp:subject spin:_this | 414 | + sp:subject spin:_this ; |
| 338 | - ] [ sp:object "NPD" ; | 415 | + ] |
| 416 | + [ | ||
| 417 | + sp:object "NPD" ; | ||
| 339 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 418 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 340 | - sp:subject spin:_this | 419 | + sp:subject spin:_this ; |
| 341 | - ] [ sp:object | 420 | + ] |
| 342 | - [ sp:varName "name"^^xsd:string | 421 | + [ |
| 422 | + sp:object [ | ||
| 423 | + sp:varName "name"^^xsd:string ; | ||
| 343 | ] ; | 424 | ] ; |
| 344 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 425 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 345 | - sp:subject spin:_this | 426 | + sp:subject spin:_this ; |
| 346 | - ] [ sp:object | 427 | + ] |
| 347 | - [ sp:varName "id"^^xsd:string | 428 | + [ |
| 429 | + sp:object [ | ||
| 430 | + sp:varName "id"^^xsd:string ; | ||
| 348 | ] ; | 431 | ] ; |
| 349 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 432 | sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
| 350 | - sp:subject spin:_this | 433 | + sp:subject spin:_this ; |
| 351 | - ] [ rdf:type sp:Bind ; | ||
| 352 | - sp:expression | ||
| 353 | - [ rdf:type rhspin:npdIndividualById ; | ||
| 354 | - arg:id [ sp:varName "id"^^xsd:string | ||
| 355 | - ] ; | ||
| 356 | - arg:type | ||
| 357 | - [ sp:varName "type"^^xsd:string | ||
| 358 | ] | 434 | ] |
| 435 | + [ | ||
| 436 | + rdf:type sp:Bind ; | ||
| 437 | + sp:expression [ | ||
| 438 | + rdf:type rhspin:npdIndividualById ; | ||
| 439 | + arg:id [ | ||
| 440 | + sp:varName "id"^^xsd:string ; | ||
| 359 | ] ; | 441 | ] ; |
| 360 | - sp:variable | 442 | + arg:type [ |
| 361 | - [ sp:varName "byId"^^xsd:string | 443 | + sp:varName "type"^^xsd:string ; |
| 362 | - ] | ||
| 363 | - ] [ rdf:type sp:Bind ; | ||
| 364 | - sp:expression | ||
| 365 | - [ rdf:type rhspin:npdIndividualByName ; | ||
| 366 | - arg:name | ||
| 367 | - [ sp:varName "name"^^xsd:string | ||
| 368 | ] ; | 444 | ] ; |
| 369 | - arg:type | ||
| 370 | - [ sp:varName "type"^^xsd:string | ||
| 371 | - ] | ||
| 372 | ] ; | 445 | ] ; |
| 373 | - sp:variable | 446 | + sp:variable [ |
| 374 | - [ sp:varName "byName"^^xsd:string | 447 | + sp:varName "byId"^^xsd:string ; |
| 375 | - ] | ||
| 376 | - ] [ rdf:type sp:Filter ; | ||
| 377 | - sp:expression | ||
| 378 | - [ rdf:type sp:and ; | ||
| 379 | - sp:arg1 [ rdf:type sp:or ; | ||
| 380 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 381 | - sp:arg1 [ sp:varName "byId"^^xsd:string | ||
| 382 | - ] | ||
| 383 | ] ; | 448 | ] ; |
| 384 | - sp:arg2 [ rdf:type sp:bound ; | ||
| 385 | - sp:arg1 [ sp:varName "byName"^^xsd:string | ||
| 386 | - ] | ||
| 387 | ] | 449 | ] |
| 450 | + [ | ||
| 451 | + rdf:type sp:Bind ; | ||
| 452 | + sp:expression [ | ||
| 453 | + rdf:type rhspin:npdIndividualByName ; | ||
| 454 | + arg:name [ | ||
| 455 | + sp:varName "name"^^xsd:string ; | ||
| 388 | ] ; | 456 | ] ; |
| 389 | - sp:arg2 [ rdf:type sp:ne ; | 457 | + arg:type [ |
| 390 | - sp:arg1 [ sp:varName "byId"^^xsd:string | 458 | + sp:varName "type"^^xsd:string ; |
| 459 | + ] ; | ||
| 460 | + ] ; | ||
| 461 | + sp:variable [ | ||
| 462 | + sp:varName "byName"^^xsd:string ; | ||
| 391 | ] ; | 463 | ] ; |
| 392 | - sp:arg2 [ sp:varName "byName"^^xsd:string | ||
| 393 | - ] | ||
| 394 | ] | 464 | ] |
| 465 | + [ | ||
| 466 | + rdf:type sp:Filter ; | ||
| 467 | + sp:expression [ | ||
| 468 | + rdf:type sp:and ; | ||
| 469 | + sp:arg1 [ | ||
| 470 | + rdf:type sp:or ; | ||
| 471 | + sp:arg1 [ | ||
| 472 | + rdf:type sp:bound ; | ||
| 473 | + sp:arg1 [ | ||
| 474 | + sp:varName "byId"^^xsd:string ; | ||
| 475 | + ] ; | ||
| 476 | + ] ; | ||
| 477 | + sp:arg2 [ | ||
| 478 | + rdf:type sp:bound ; | ||
| 479 | + sp:arg1 [ | ||
| 480 | + sp:varName "byName"^^xsd:string ; | ||
| 481 | + ] ; | ||
| 482 | + ] ; | ||
| 483 | + ] ; | ||
| 484 | + sp:arg2 [ | ||
| 485 | + rdf:type sp:ne ; | ||
| 486 | + sp:arg1 [ | ||
| 487 | + sp:varName "byId"^^xsd:string ; | ||
| 488 | + ] ; | ||
| 489 | + sp:arg2 [ | ||
| 490 | + sp:varName "byName"^^xsd:string ; | ||
| 491 | + ] ; | ||
| 492 | + ] ; | ||
| 493 | + ] ; | ||
| 395 | ] | 494 | ] |
| 396 | - ] [ rdf:type sp:Bind ; | 495 | + [ |
| 397 | - sp:expression | 496 | + rdf:type sp:Bind ; |
| 398 | - [ rdf:type fn:concat ; | 497 | + sp:expression [ |
| 498 | + rdf:type fn:concat ; | ||
| 399 | sp:arg1 "[RH-19] Mismatching " ; | 499 | sp:arg1 "[RH-19] Mismatching " ; |
| 400 | - sp:arg2 [ rdf:type afn:localname ; | 500 | + sp:arg2 [ |
| 401 | - sp:arg1 [ sp:varName "type"^^xsd:string | 501 | + rdf:type afn:localname ; |
| 402 | - ] | 502 | + sp:arg1 [ |
| 503 | + sp:varName "type"^^xsd:string ; | ||
| 504 | + ] ; | ||
| 403 | ] ; | 505 | ] ; |
| 404 | sp:arg3 " id: " ; | 506 | sp:arg3 " id: " ; |
| 405 | - sp:arg4 [ sp:varName "id"^^xsd:string | 507 | + sp:arg4 [ |
| 508 | + sp:varName "id"^^xsd:string ; | ||
| 406 | ] ; | 509 | ] ; |
| 407 | sp:arg5 " is not the NPD id of " ; | 510 | sp:arg5 " is not the NPD id of " ; |
| 408 | - sp:arg6 [ sp:varName "name"^^xsd:string | 511 | + sp:arg6 [ |
| 409 | - ] | 512 | + sp:varName "name"^^xsd:string ; |
| 513 | + ] ; | ||
| 514 | + ] ; | ||
| 515 | + sp:variable [ | ||
| 516 | + sp:varName "message"^^xsd:string ; | ||
| 410 | ] ; | 517 | ] ; |
| 411 | - sp:variable | ||
| 412 | - [ sp:varName "message"^^xsd:string | ||
| 413 | ] | 518 | ] |
| 414 | - ]) | 519 | + ) ; |
| 415 | ] ; | 520 | ] ; |
| 416 | - spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string . | 521 | + spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string ; |
| 417 | - | 522 | + rdfs:label "NPD id and name must match"^^xsd:string ; |
| 523 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
| 524 | +. | ||
| 418 | mpr-proxy-constraints:CheckName | 525 | mpr-proxy-constraints:CheckName |
| 419 | rdf:type spin:ConstructTemplate ; | 526 | rdf:type spin:ConstructTemplate ; |
| 420 | - rdfs:label "Check name"^^xsd:string ; | 527 | + spin:body [ |
| 421 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 528 | + rdf:type sp:Construct ; |
| 422 | - spin:body | 529 | + sp:templates ( |
| 423 | - [ rdf:type sp:Construct ; | 530 | + [ |
| 424 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 531 | + sp:object spin:ConstraintViolation ; |
| 425 | sp:predicate rdf:type ; | 532 | sp:predicate rdf:type ; |
| 426 | - sp:subject _:b6 | 533 | + sp:subject _:b81462 ; |
| 427 | - ] [ sp:object | 534 | + ] |
| 428 | - [ sp:varName "message"^^xsd:string | 535 | + [ |
| 536 | + sp:object [ | ||
| 537 | + sp:varName "message"^^xsd:string ; | ||
| 429 | ] ; | 538 | ] ; |
| 430 | sp:predicate rdfs:label ; | 539 | sp:predicate rdfs:label ; |
| 431 | - sp:subject _:b6 | 540 | + sp:subject _:b81462 ; |
| 432 | - ]) ; | 541 | + ] |
| 433 | - sp:where ([ sp:object | 542 | + ) ; |
| 434 | - [ sp:varName "kindRef"^^xsd:string | 543 | + sp:where ( |
| 544 | + [ | ||
| 545 | + sp:object [ | ||
| 546 | + sp:varName "kindRef"^^xsd:string ; | ||
| 435 | ] ; | 547 | ] ; |
| 436 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 548 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 437 | - sp:subject spin:_this | 549 | + sp:subject spin:_this ; |
| 438 | - ] [ sp:object "NPD" ; | 550 | + ] |
| 551 | + [ | ||
| 552 | + sp:object "NPD" ; | ||
| 439 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 553 | sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 440 | - sp:subject spin:_this | 554 | + sp:subject spin:_this ; |
| 441 | - ] [ sp:object | 555 | + ] |
| 442 | - [ sp:varName "name"^^xsd:string | 556 | + [ |
| 557 | + sp:object [ | ||
| 558 | + sp:varName "name"^^xsd:string ; | ||
| 443 | ] ; | 559 | ] ; |
| 444 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 560 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 445 | - sp:subject spin:_this | 561 | + sp:subject spin:_this ; |
| 446 | - ] [ rdf:type sp:Bind ; | ||
| 447 | - sp:expression | ||
| 448 | - [ rdf:type rhspin:npdIndividualByName ; | ||
| 449 | - arg:name | ||
| 450 | - [ sp:varName "name"^^xsd:string | ||
| 451 | - ] ; | ||
| 452 | - arg:type | ||
| 453 | - [ sp:varName "type"^^xsd:string | ||
| 454 | ] | 562 | ] |
| 563 | + [ | ||
| 564 | + rdf:type sp:Bind ; | ||
| 565 | + sp:expression [ | ||
| 566 | + rdf:type rhspin:npdIndividualByName ; | ||
| 567 | + arg:name [ | ||
| 568 | + sp:varName "name"^^xsd:string ; | ||
| 569 | + ] ; | ||
| 570 | + arg:type [ | ||
| 571 | + sp:varName "type"^^xsd:string ; | ||
| 572 | + ] ; | ||
| 573 | + ] ; | ||
| 574 | + sp:variable [ | ||
| 575 | + sp:varName "npd"^^xsd:string ; | ||
| 455 | ] ; | 576 | ] ; |
| 456 | - sp:variable | ||
| 457 | - [ sp:varName "npd"^^xsd:string | ||
| 458 | - ] | ||
| 459 | - ] [ rdf:type sp:Filter ; | ||
| 460 | - sp:expression | ||
| 461 | - [ rdf:type sp:not ; | ||
| 462 | - sp:arg1 [ rdf:type sp:bound ; | ||
| 463 | - sp:arg1 [ sp:varName "npd"^^xsd:string | ||
| 464 | - ] | ||
| 465 | ] | 577 | ] |
| 578 | + [ | ||
| 579 | + rdf:type sp:Filter ; | ||
| 580 | + sp:expression [ | ||
| 581 | + rdf:type sp:not ; | ||
| 582 | + sp:arg1 [ | ||
| 583 | + rdf:type sp:bound ; | ||
| 584 | + sp:arg1 [ | ||
| 585 | + sp:varName "npd"^^xsd:string ; | ||
| 586 | + ] ; | ||
| 587 | + ] ; | ||
| 588 | + ] ; | ||
| 466 | ] | 589 | ] |
| 467 | - ] [ rdf:type sp:Bind ; | 590 | + [ |
| 468 | - sp:expression | 591 | + rdf:type sp:Bind ; |
| 469 | - [ rdf:type fn:concat ; | 592 | + sp:expression [ |
| 470 | - sp:arg1 [ rdf:type sp:add ; | 593 | + rdf:type fn:concat ; |
| 594 | + sp:arg1 [ | ||
| 595 | + rdf:type sp:add ; | ||
| 471 | sp:arg1 "[RH-19] Invalid " ; | 596 | sp:arg1 "[RH-19] Invalid " ; |
| 472 | - sp:arg2 [ rdf:type afn:localname ; | 597 | + sp:arg2 [ |
| 473 | - sp:arg1 [ sp:varName "type"^^xsd:string | 598 | + rdf:type afn:localname ; |
| 474 | - ] | 599 | + sp:arg1 [ |
| 475 | - ] | 600 | + sp:varName "type"^^xsd:string ; |
| 601 | + ] ; | ||
| 602 | + ] ; | ||
| 476 | ] ; | 603 | ] ; |
| 477 | sp:arg2 " name " ; | 604 | sp:arg2 " name " ; |
| 478 | - sp:arg3 [ sp:varName "name"^^xsd:string | 605 | + sp:arg3 [ |
| 479 | - ] | 606 | + sp:varName "name"^^xsd:string ; |
| 607 | + ] ; | ||
| 608 | + ] ; | ||
| 609 | + sp:variable [ | ||
| 610 | + sp:varName "message"^^xsd:string ; | ||
| 480 | ] ; | 611 | ] ; |
| 481 | - sp:variable | ||
| 482 | - [ sp:varName "message"^^xsd:string | ||
| 483 | ] | 612 | ] |
| 484 | - ]) | 613 | + ) ; |
| 485 | ] ; | 614 | ] ; |
| 486 | - spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string . | 615 | + spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string ; |
| 487 | - | 616 | + rdfs:label "Check name"^^xsd:string ; |
| 617 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
| 618 | +. | ||
| 488 | mpr-proxy-constraints:ConstraintTemplates | 619 | mpr-proxy-constraints:ConstraintTemplates |
| 489 | rdf:type spin:ConstructTemplate ; | 620 | rdf:type spin:ConstructTemplate ; |
| 490 | - rdfs:label "Constraint templates"^^xsd:string ; | 621 | + spin:constraint [ |
| 491 | - rdfs:subClassOf spin:ConstructTemplates ; | 622 | + rdf:type spl:Argument ; |
| 492 | - spin:constraint | ||
| 493 | - [ rdf:type spl:Argument ; | ||
| 494 | - rdfs:comment "The kind reference value."^^xsd:string ; | ||
| 495 | spl:predicate arg:kindRef ; | 623 | spl:predicate arg:kindRef ; |
| 496 | - spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> | 624 | + spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> ; |
| 625 | + rdfs:comment "The kind reference value."^^xsd:string ; | ||
| 497 | ] ; | 626 | ] ; |
| 498 | - spin:constraint | 627 | + spin:constraint [ |
| 499 | - [ rdf:type spl:Argument ; | 628 | + rdf:type spl:Argument ; |
| 500 | - rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | ||
| 501 | spl:predicate arg:type ; | 629 | spl:predicate arg:type ; |
| 502 | - spl:valueType rdfs:Class | 630 | + spl:valueType rdfs:Class ; |
| 503 | - ] . | 631 | + rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; |
| 632 | + ] ; | ||
| 633 | + rdfs:label "Constraint templates"^^xsd:string ; | ||
| 634 | + rdfs:subClassOf spin:ConstructTemplates ; | ||
| 635 | +. | ... | ... |
www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/multi-field/ASGARD-KRISTIN-extracted.xml
0 → 100644
| 1 | +<objects version="1.0(MPRML)" xmlns="http://www.epim.no/schemas/mprml/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
| 2 | + <documentInfo> | ||
| 3 | + <DocumentName namingSystem="EC">ÅSGARD July 2012</DocumentName> | ||
| 4 | + <DocumentAlias namingSystem="EC">ÅSGARD Copex Report</DocumentAlias> | ||
| 5 | + <DocumentDate>2012-08-05T00:00:00.0Z</DocumentDate> | ||
| 6 | + <documentClass namingSystem="EC">STATOIL</documentClass> | ||
| 7 | + <documentClass namingSystem="EC">Copex</documentClass> | ||
| 8 | + <FileCreationInformation> | ||
| 9 | + <FileCreationDate>2012-08-15T00:00:00.0Z</FileCreationDate> | ||
| 10 | + <SoftwareName>Energy Components</SoftwareName> | ||
| 11 | + <FileCreator>STATOIL</FileCreator> | ||
| 12 | + <Comment>NA</Comment> | ||
| 13 | + </FileCreationInformation> | ||
| 14 | + <Owner>STATOIL</Owner> | ||
| 15 | + </documentInfo> | ||
| 16 | + <context xsi:type="obj_report"> | ||
| 17 | + <kind>Copex</kind> | ||
| 18 | + <title>ÅSGARD stock,cargo</title> | ||
| 19 | + <date>2012-07-01</date> | ||
| 20 | + <dateEnd>2012-07-31</dateEnd> | ||
| 21 | + <month>2012-07</month> | ||
| 22 | + <year>2012</year> | ||
| 23 | + <reportVersion>1.0</reportVersion> | ||
| 24 | + <reportStatus>final</reportStatus> | ||
| 25 | + <installation kind="field" namingSystem="NPD" uidRef="43765">ÅSGARD</installation> | ||
| 26 | + <operator> | ||
| 27 | + <name>STATOIL</name> | ||
| 28 | + <role>Operating company</role> | ||
| 29 | + </operator> | ||
| 30 | + </context> | ||
| 31 | + <object xsi:type="obj_productVolume"> | ||
| 32 | + <name>KRISTIN</name> | ||
| 33 | + <installation kind="field" namingSystem="NPD" uidRef="1854729">KRISTIN</installation> | ||
| 34 | + <facility> | ||
| 35 | + <name kind="field" namingSystem="NPD" uidRef="1854729">KRISTIN</name> | ||
| 36 | + <flow> | ||
| 37 | + <name>KRISTIN allocated inventory</name> | ||
| 38 | + <kind>inventory</kind> | ||
| 39 | + <qualifier>allocated</qualifier> | ||
| 40 | + <product> | ||
| 41 | + <kind>oil - net</kind> | ||
| 42 | + <period> | ||
| 43 | + <kind>month</kind> | ||
| 44 | + <dateStart>2012-07-01</dateStart> | ||
| 45 | + <dateEnd>2012-07-31</dateEnd> | ||
| 46 | + <volumeValue> | ||
| 47 | + <volume uom="m3">102230.95</volume> | ||
| 48 | + <temp uom="degC">15</temp> | ||
| 49 | + <pres uom="atm">1</pres> | ||
| 50 | + </volumeValue> | ||
| 51 | + <mass uom="kg">89775316.91</mass> | ||
| 52 | + <densityValue> | ||
| 53 | + <density uom="kg/m3">788.76</density> | ||
| 54 | + <temp uom="degC">15</temp> | ||
| 55 | + <pres uom="atm">1</pres> | ||
| 56 | + </densityValue> | ||
| 57 | + <balanceSet> | ||
| 58 | + <kind>closing balance</kind> | ||
| 59 | + <balanceDetail> | ||
| 60 | + <owner>PETORO</owner> | ||
| 61 | + <volumeValue> | ||
| 62 | + <volume uom="m3">31599.586645</volume> | ||
| 63 | + <temp uom="degC">15</temp> | ||
| 64 | + <pres uom="atm">1</pres> | ||
| 65 | + </volumeValue> | ||
| 66 | + <mass uom="kg">27749550.4569</mass> | ||
| 67 | + </balanceDetail> | ||
| 68 | + <balanceDetail> | ||
| 69 | + <owner>TOTAL</owner> | ||
| 70 | + <volumeValue> | ||
| 71 | + <volume uom="m3">22010.323535</volume> | ||
| 72 | + <temp uom="degC">15</temp> | ||
| 73 | + <pres uom="atm">1</pres> | ||
| 74 | + </volumeValue> | ||
| 75 | + <mass uom="kg">19328625.7307</mass> | ||
| 76 | + </balanceDetail> | ||
| 77 | + <balanceDetail> | ||
| 78 | + <owner>STATOIL</owner> | ||
| 79 | + <volumeValue> | ||
| 80 | + <volume uom="m3">12962.88446</volume> | ||
| 81 | + <temp uom="degC">15</temp> | ||
| 82 | + <pres uom="atm">1</pres> | ||
| 83 | + </volumeValue> | ||
| 84 | + <mass uom="kg">11383510.1842</mass> | ||
| 85 | + </balanceDetail> | ||
| 86 | + <balanceDetail> | ||
| 87 | + <owner>EXXONMOBIL PROD</owner> | ||
| 88 | + <volumeValue> | ||
| 89 | + <volume uom="m3">7738.882915</volume> | ||
| 90 | + <temp uom="degC">15</temp> | ||
| 91 | + <pres uom="atm">1</pres> | ||
| 92 | + </volumeValue> | ||
| 93 | + <mass uom="kg">6795991.49009</mass> | ||
| 94 | + </balanceDetail> | ||
| 95 | + <balanceDetail> | ||
| 96 | + <owner>ENI NORGE</owner> | ||
| 97 | + <volumeValue> | ||
| 98 | + <volume uom="m3">27919.272445</volume> | ||
| 99 | + <temp uom="degC">15</temp> | ||
| 100 | + <pres uom="atm">1</pres> | ||
| 101 | + </volumeValue> | ||
| 102 | + <mass uom="kg">24517639.0481</mass> | ||
| 103 | + </balanceDetail> | ||
| 104 | + </balanceSet> | ||
| 105 | + </period> | ||
| 106 | + </product> | ||
| 107 | + </flow> | ||
| 108 | + </facility> | ||
| 109 | + </object> | ||
| 110 | +</objects> |
-
Please register or login to post a comment