Showing
2 changed files
with
496 additions
and
491 deletions
This diff could not be displayed because it is too large.
| ... | @@ -22,62 +22,95 @@ | ... | @@ -22,62 +22,95 @@ |
| 22 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 22 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
| 23 | spin:rule | 23 | spin:rule |
| 24 | [ rdf:type sp:Construct ; | 24 | [ rdf:type sp:Construct ; |
| 25 | - rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ; | 25 | + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; |
| 26 | sp:templates ([ sp:object | 26 | sp:templates ([ sp:object |
| 27 | - [ sp:varName "dateStart"^^xsd:string | 27 | + [ sp:varName "dTimStart"^^xsd:string |
| 28 | ] ; | 28 | ] ; |
| 29 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 29 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 30 | sp:subject | 30 | sp:subject |
| 31 | [ sp:varName "productionFlow"^^xsd:string | 31 | [ sp:varName "productionFlow"^^xsd:string |
| 32 | ] | 32 | ] |
| 33 | ] [ sp:object | 33 | ] [ sp:object |
| 34 | - [ sp:varName "dateStart"^^xsd:string | 34 | + [ sp:varName "dTimEnd"^^xsd:string |
| 35 | + ] ; | ||
| 36 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 37 | + sp:subject | ||
| 38 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 39 | + ] | ||
| 40 | + ] [ sp:object | ||
| 41 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 42 | + ] ; | ||
| 43 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 44 | + sp:subject | ||
| 45 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 46 | + ] | ||
| 47 | + ] [ sp:object | ||
| 48 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 35 | ] ; | 49 | ] ; |
| 36 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 50 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 37 | sp:subject | 51 | sp:subject |
| 38 | [ sp:varName "productionInventory"^^xsd:string | 52 | [ sp:varName "productionInventory"^^xsd:string |
| 39 | ] | 53 | ] |
| 40 | ] [ sp:object | 54 | ] [ sp:object |
| 41 | - [ sp:varName "dateStart"^^xsd:string | 55 | + [ sp:varName "dTimEnd"^^xsd:string |
| 56 | + ] ; | ||
| 57 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 58 | + sp:subject | ||
| 59 | + [ sp:varName "productionInventory"^^xsd:string | ||
| 60 | + ] | ||
| 61 | + ] [ sp:object | ||
| 62 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 63 | + ] ; | ||
| 64 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 65 | + sp:subject | ||
| 66 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
| 67 | + ] | ||
| 68 | + ] [ sp:object | ||
| 69 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 42 | ] ; | 70 | ] ; |
| 43 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 71 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 44 | sp:subject | 72 | sp:subject |
| 45 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 73 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 46 | ] | 74 | ] |
| 75 | + ] [ sp:object | ||
| 76 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 77 | + ] ; | ||
| 78 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 79 | + sp:subject | ||
| 80 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 81 | + ] | ||
| 82 | + ] [ sp:object | ||
| 83 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 84 | + ] ; | ||
| 85 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 86 | + sp:subject | ||
| 87 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 88 | + ] | ||
| 47 | ]) ; | 89 | ]) ; |
| 48 | sp:where ([ sp:object | 90 | sp:where ([ sp:object |
| 49 | [ sp:varName "productVolumeRef"^^xsd:string | 91 | [ sp:varName "productVolumeRef"^^xsd:string |
| 50 | ] ; | 92 | ] ; |
| 51 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 93 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 52 | sp:subject spin:_this | 94 | sp:subject spin:_this |
| 53 | - ] [ sp:object | ||
| 54 | - [ sp:varName "dateStart"^^xsd:string | ||
| 55 | - ] ; | ||
| 56 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 57 | - sp:subject spin:_this | ||
| 58 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 95 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 59 | sp:predicate rdf:type ; | 96 | sp:predicate rdf:type ; |
| 60 | sp:subject | 97 | sp:subject |
| 61 | [ sp:varName "productVolumeRef"^^xsd:string | 98 | [ sp:varName "productVolumeRef"^^xsd:string |
| 62 | ] | 99 | ] |
| 63 | - ] [ rdf:type sp:NotExists ; | 100 | + ] [ sp:object |
| 64 | - sp:elements ([ sp:object | 101 | + [ sp:varName "dTimStart"^^xsd:string |
| 65 | - [ sp:varName "dateStartx"^^xsd:string | ||
| 66 | ] ; | 102 | ] ; |
| 67 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 103 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
| 68 | sp:subject | 104 | sp:subject |
| 69 | [ sp:varName "productVolumeRef"^^xsd:string | 105 | [ sp:varName "productVolumeRef"^^xsd:string |
| 70 | ] | 106 | ] |
| 71 | - ]) | 107 | + ] [ sp:object |
| 72 | - ] [ rdf:type sp:NotExists ; | 108 | + [ sp:varName "dTimEnd"^^xsd:string |
| 73 | - sp:elements ([ sp:object | ||
| 74 | - [ sp:varName "dTimStartx"^^xsd:string | ||
| 75 | ] ; | 109 | ] ; |
| 76 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 110 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
| 77 | sp:subject | 111 | sp:subject |
| 78 | [ sp:varName "productVolumeRef"^^xsd:string | 112 | [ sp:varName "productVolumeRef"^^xsd:string |
| 79 | ] | 113 | ] |
| 80 | - ]) | ||
| 81 | ] [ sp:object | 114 | ] [ sp:object |
| 82 | [ sp:varName "productVolumeRef"^^xsd:string | 115 | [ sp:varName "productVolumeRef"^^xsd:string |
| 83 | ] ; | 116 | ] ; |
| ... | @@ -154,124 +187,142 @@ | ... | @@ -154,124 +187,142 @@ |
| 154 | ] ; | 187 | ] ; |
| 155 | spin:rule | 188 | spin:rule |
| 156 | [ rdf:type sp:Construct ; | 189 | [ rdf:type sp:Construct ; |
| 157 | - rdfs:comment """STEP 20060 Set the facility operator | 190 | + rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; |
| 158 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | 191 | + sp:templates ([ sp:object |
| 159 | - sp:templates ([ sp:object _:b1 ; | 192 | + [ sp:varName "dateStart"^^xsd:string |
| 160 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 193 | + ] ; |
| 194 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 161 | sp:subject | 195 | sp:subject |
| 162 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 196 | + [ sp:varName "productionFlow"^^xsd:string |
| 163 | ] | 197 | ] |
| 164 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 165 | - sp:predicate rdf:type ; | ||
| 166 | - sp:subject _:b1 | ||
| 167 | ] [ sp:object | 198 | ] [ sp:object |
| 168 | - [ sp:varName "operator"^^xsd:string | 199 | + [ sp:varName "dateEnd"^^xsd:string |
| 169 | ] ; | 200 | ] ; |
| 170 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 201 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 171 | - sp:subject _:b1 | 202 | + sp:subject |
| 172 | - ]) ; | 203 | + [ sp:varName "productionFlow"^^xsd:string |
| 173 | - sp:where ([ sp:object | 204 | + ] |
| 174 | - [ sp:varName "productVolumeRef"^^xsd:string | 205 | + ] [ sp:object |
| 206 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 175 | ] ; | 207 | ] ; |
| 176 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 208 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 177 | - sp:subject spin:_this | 209 | + sp:subject |
| 210 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 211 | + ] | ||
| 178 | ] [ sp:object | 212 | ] [ sp:object |
| 179 | - [ sp:varName "productVolumeRef"^^xsd:string | 213 | + [ sp:varName "dateStart"^^xsd:string |
| 180 | ] ; | 214 | ] ; |
| 181 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 215 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 216 | + sp:subject | ||
| 217 | + [ sp:varName "productionInventory"^^xsd:string | ||
| 218 | + ] | ||
| 219 | + ] [ sp:object | ||
| 220 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 221 | + ] ; | ||
| 222 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 223 | + sp:subject | ||
| 224 | + [ sp:varName "productionInventory"^^xsd:string | ||
| 225 | + ] | ||
| 226 | + ] [ sp:object | ||
| 227 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 228 | + ] ; | ||
| 229 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 230 | + sp:subject | ||
| 231 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
| 232 | + ] | ||
| 233 | + ] [ sp:object | ||
| 234 | + [ sp:varName "dateStart"^^xsd:string | ||
| 235 | + ] ; | ||
| 236 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 182 | sp:subject | 237 | sp:subject |
| 183 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 238 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 184 | ] | 239 | ] |
| 185 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 240 | + ] [ sp:object |
| 186 | - sp:predicate rdf:type ; | 241 | + [ sp:varName "dateEnd"^^xsd:string |
| 242 | + ] ; | ||
| 243 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 187 | sp:subject | 244 | sp:subject |
| 188 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 245 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 189 | ] | 246 | ] |
| 247 | + ] [ sp:object | ||
| 248 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 249 | + ] ; | ||
| 250 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 251 | + sp:subject | ||
| 252 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 253 | + ] | ||
| 254 | + ]) ; | ||
| 255 | + sp:where ([ sp:object | ||
| 256 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 257 | + ] ; | ||
| 258 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 259 | + sp:subject spin:_this | ||
| 190 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 260 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 191 | sp:predicate rdf:type ; | 261 | sp:predicate rdf:type ; |
| 192 | sp:subject | 262 | sp:subject |
| 193 | [ sp:varName "productVolumeRef"^^xsd:string | 263 | [ sp:varName "productVolumeRef"^^xsd:string |
| 194 | ] | 264 | ] |
| 195 | ] [ sp:object | 265 | ] [ sp:object |
| 196 | - [ sp:varName "operatorRef"^^xsd:string | 266 | + [ sp:varName "dateStart"^^xsd:string |
| 197 | ] ; | 267 | ] ; |
| 198 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 268 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 199 | sp:subject | 269 | sp:subject |
| 200 | [ sp:varName "productVolumeRef"^^xsd:string | 270 | [ sp:varName "productVolumeRef"^^xsd:string |
| 201 | ] | 271 | ] |
| 202 | ] [ sp:object | 272 | ] [ sp:object |
| 203 | - [ sp:varName "operatorRef"^^xsd:string | 273 | + [ sp:varName "dateEnd"^^xsd:string |
| 204 | - ] ; | ||
| 205 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 206 | - sp:subject | ||
| 207 | - [ sp:varName "operator"^^xsd:string | ||
| 208 | - ] | ||
| 209 | - ]) | ||
| 210 | ] ; | 274 | ] ; |
| 211 | - spin:rule | 275 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 212 | - [ rdf:type sp:Construct ; | ||
| 213 | - rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ; | ||
| 214 | - sp:templates ([ sp:object _:b2 ; | ||
| 215 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 216 | sp:subject | 276 | sp:subject |
| 217 | - [ sp:varName "productVolumeReport"^^xsd:string | 277 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 218 | ] | 278 | ] |
| 219 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
| 220 | - sp:predicate rdf:type ; | ||
| 221 | - sp:subject _:b2 | ||
| 222 | ] [ sp:object | 279 | ] [ sp:object |
| 223 | [ sp:varName "productVolumeRef"^^xsd:string | 280 | [ sp:varName "productVolumeRef"^^xsd:string |
| 224 | ] ; | 281 | ] ; |
| 225 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 282 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 226 | - sp:subject _:b2 | ||
| 227 | - ] [ sp:object _:b3 ; | ||
| 228 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 229 | - sp:subject _:b2 | ||
| 230 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
| 231 | - sp:predicate rdf:type ; | ||
| 232 | - sp:subject _:b3 | ||
| 233 | - ] [ sp:object _:b2 ; | ||
| 234 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 235 | sp:subject | 283 | sp:subject |
| 236 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 284 | + [ sp:varName "productionFlow"^^xsd:string |
| 237 | ] | 285 | ] |
| 238 | - ] [ sp:object _:b3 ; | 286 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
| 239 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 287 | + sp:predicate rdf:type ; |
| 240 | sp:subject | 288 | sp:subject |
| 241 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 289 | + [ sp:varName "productionFlow"^^xsd:string |
| 242 | ] | 290 | ] |
| 243 | - ]) ; | 291 | + ] [ sp:object |
| 244 | - sp:where ([ sp:object spin:_this ; | 292 | + [ sp:varName "productionFlowToDate"^^xsd:string |
| 245 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 293 | + ] ; |
| 294 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 246 | sp:subject | 295 | sp:subject |
| 247 | - [ sp:varName "productionReport"^^xsd:string | 296 | + [ sp:varName "productionFlow"^^xsd:string |
| 248 | ] | 297 | ] |
| 249 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 298 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
| 250 | sp:predicate rdf:type ; | 299 | sp:predicate rdf:type ; |
| 251 | sp:subject | 300 | sp:subject |
| 252 | - [ sp:varName "productionReport"^^xsd:string | 301 | + [ sp:varName "productionFlowToDate"^^xsd:string |
| 253 | ] | 302 | ] |
| 254 | ] [ sp:object | 303 | ] [ sp:object |
| 255 | [ sp:varName "productVolumeRef"^^xsd:string | 304 | [ sp:varName "productVolumeRef"^^xsd:string |
| 256 | ] ; | 305 | ] ; |
| 257 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 306 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 258 | - sp:subject spin:_this | 307 | + sp:subject |
| 259 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 308 | + [ sp:varName "productionInventory"^^xsd:string |
| 309 | + ] | ||
| 310 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
| 260 | sp:predicate rdf:type ; | 311 | sp:predicate rdf:type ; |
| 261 | sp:subject | 312 | sp:subject |
| 262 | - [ sp:varName "productVolumeRef"^^xsd:string | 313 | + [ sp:varName "productionInventory"^^xsd:string |
| 263 | ] | 314 | ] |
| 264 | ] [ sp:object | 315 | ] [ sp:object |
| 265 | - [ sp:varName "productVolumeRef"^^xsd:string | 316 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
| 266 | ] ; | 317 | ] ; |
| 267 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 318 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 268 | sp:subject | 319 | sp:subject |
| 269 | - [ sp:varName "productVolumeReport"^^xsd:string | 320 | + [ sp:varName "productionInventory"^^xsd:string |
| 270 | ] | 321 | ] |
| 271 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 322 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; |
| 272 | sp:predicate rdf:type ; | 323 | sp:predicate rdf:type ; |
| 273 | sp:subject | 324 | sp:subject |
| 274 | - [ sp:varName "productVolumeReport"^^xsd:string | 325 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
| 275 | ] | 326 | ] |
| 276 | ] [ sp:object | 327 | ] [ sp:object |
| 277 | [ sp:varName "productVolumeRef"^^xsd:string | 328 | [ sp:varName "productVolumeRef"^^xsd:string |
| ... | @@ -301,135 +352,115 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -301,135 +352,115 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 301 | ] ; | 352 | ] ; |
| 302 | spin:rule | 353 | spin:rule |
| 303 | [ rdf:type sp:Construct ; | 354 | [ rdf:type sp:Construct ; |
| 304 | - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; | 355 | + rdfs:comment """STEP 20060 Set the facility operator |
| 305 | - sp:templates ([ sp:object | 356 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 306 | - [ sp:varName "contextFacility"^^xsd:string | 357 | + sp:templates ([ sp:object _:b1 ; |
| 307 | - ] ; | 358 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
| 308 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 309 | sp:subject | 359 | sp:subject |
| 310 | - [ sp:varName "productionFacility"^^xsd:string | 360 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 311 | ] | 361 | ] |
| 362 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 363 | + sp:predicate rdf:type ; | ||
| 364 | + sp:subject _:b1 | ||
| 365 | + ] [ sp:object | ||
| 366 | + [ sp:varName "operator"^^xsd:string | ||
| 367 | + ] ; | ||
| 368 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 369 | + sp:subject _:b1 | ||
| 312 | ]) ; | 370 | ]) ; |
| 313 | sp:where ([ sp:object | 371 | sp:where ([ sp:object |
| 314 | [ sp:varName "productVolumeRef"^^xsd:string | 372 | [ sp:varName "productVolumeRef"^^xsd:string |
| 315 | ] ; | 373 | ] ; |
| 316 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 374 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 317 | sp:subject spin:_this | 375 | sp:subject spin:_this |
| 376 | + ] [ sp:object | ||
| 377 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 378 | + ] ; | ||
| 379 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 380 | + sp:subject | ||
| 381 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 382 | + ] | ||
| 383 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 384 | + sp:predicate rdf:type ; | ||
| 385 | + sp:subject | ||
| 386 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 387 | + ] | ||
| 318 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 388 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 319 | sp:predicate rdf:type ; | 389 | sp:predicate rdf:type ; |
| 320 | sp:subject | 390 | sp:subject |
| 321 | [ sp:varName "productVolumeRef"^^xsd:string | 391 | [ sp:varName "productVolumeRef"^^xsd:string |
| 322 | ] | 392 | ] |
| 323 | ] [ sp:object | 393 | ] [ sp:object |
| 324 | - [ sp:varName "installationRef"^^xsd:string | 394 | + [ sp:varName "operatorRef"^^xsd:string |
| 325 | ] ; | 395 | ] ; |
| 326 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 396 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
| 327 | sp:subject | 397 | sp:subject |
| 328 | [ sp:varName "productVolumeRef"^^xsd:string | 398 | [ sp:varName "productVolumeRef"^^xsd:string |
| 329 | ] | 399 | ] |
| 330 | ] [ sp:object | 400 | ] [ sp:object |
| 331 | - [ sp:varName "installationRef"^^xsd:string | 401 | + [ sp:varName "operatorRef"^^xsd:string |
| 332 | ] ; | 402 | ] ; |
| 333 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 403 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 334 | sp:subject | 404 | sp:subject |
| 335 | - [ sp:varName "productionFacility"^^xsd:string | 405 | + [ sp:varName "operator"^^xsd:string |
| 336 | - ] | ||
| 337 | - ] [ sp:object | ||
| 338 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 339 | - ] ; | ||
| 340 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 341 | - sp:subject | ||
| 342 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 343 | - ] | ||
| 344 | - ] [ sp:object | ||
| 345 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 346 | - ] ; | ||
| 347 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 348 | - sp:subject | ||
| 349 | - [ sp:varName "contextFacility"^^xsd:string | ||
| 350 | ] | 406 | ] |
| 351 | ]) | 407 | ]) |
| 352 | ] ; | 408 | ] ; |
| 353 | spin:rule | 409 | spin:rule |
| 354 | [ rdf:type sp:Construct ; | 410 | [ rdf:type sp:Construct ; |
| 355 | - rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ; | 411 | + rdfs:comment "STEP 20041 Set the production facility - taken from context"^^xsd:string ; |
| 356 | sp:templates ([ sp:object | 412 | sp:templates ([ sp:object |
| 357 | - [ sp:varName "dateEnd"^^xsd:string | 413 | + [ sp:varName "productionFacility"^^xsd:string |
| 358 | ] ; | 414 | ] ; |
| 359 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 415 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 360 | sp:subject | 416 | sp:subject |
| 361 | - [ sp:varName "productionFlow"^^xsd:string | 417 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 362 | ] | 418 | ] |
| 363 | ] [ sp:object | 419 | ] [ sp:object |
| 364 | - [ sp:varName "dateEnd"^^xsd:string | 420 | + [ sp:varName "productionFacility"^^xsd:string |
| 365 | ] ; | 421 | ] ; |
| 366 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 422 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 367 | sp:subject | 423 | sp:subject |
| 368 | - [ sp:varName "productionFlowToDate"^^xsd:string | 424 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 369 | ] | 425 | ] |
| 370 | ] [ sp:object | 426 | ] [ sp:object |
| 371 | - [ sp:varName "dateEnd"^^xsd:string | 427 | + [ sp:varName "normalizedProductionFacilityName"^^xsd:string |
| 372 | ] ; | 428 | ] ; |
| 373 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 429 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 374 | sp:subject | 430 | sp:subject |
| 375 | - [ sp:varName "productionInventory"^^xsd:string | 431 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 376 | ] | 432 | ] |
| 377 | - ] [ sp:object | 433 | + ]) ; |
| 378 | - [ sp:varName "dateEnd"^^xsd:string | 434 | + sp:where ([ sp:object spin:_this ; |
| 379 | - ] ; | 435 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 380 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 381 | sp:subject | 436 | sp:subject |
| 382 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 437 | + [ sp:varName "productionFacility"^^xsd:string |
| 383 | ] | 438 | ] |
| 384 | - ] [ sp:object | 439 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
| 385 | - [ sp:varName "dateEnd"^^xsd:string | 440 | + sp:predicate rdf:type ; |
| 386 | - ] ; | ||
| 387 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 388 | sp:subject | 441 | sp:subject |
| 389 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 442 | + [ sp:varName "productionFacility"^^xsd:string |
| 390 | ] | 443 | ] |
| 391 | ] [ sp:object | 444 | ] [ sp:object |
| 392 | - [ sp:varName "dateEnd"^^xsd:string | 445 | + [ sp:varName "normalizedProductionFacilityName"^^xsd:string |
| 393 | - ] ; | ||
| 394 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 395 | - sp:subject | ||
| 396 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 397 | - ] | ||
| 398 | - ]) ; | ||
| 399 | - sp:where ([ sp:object | ||
| 400 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 401 | ] ; | 446 | ] ; |
| 402 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 447 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 403 | sp:subject spin:_this | 448 | sp:subject spin:_this |
| 404 | ] [ sp:object | 449 | ] [ sp:object |
| 405 | - [ sp:varName "dateEnd"^^xsd:string | 450 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 406 | ] ; | 451 | ] ; |
| 407 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 452 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 408 | sp:subject spin:_this | 453 | sp:subject spin:_this |
| 409 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 454 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 410 | sp:predicate rdf:type ; | 455 | sp:predicate rdf:type ; |
| 411 | sp:subject | 456 | sp:subject |
| 412 | [ sp:varName "productVolumeRef"^^xsd:string | 457 | [ sp:varName "productVolumeRef"^^xsd:string |
| 413 | ] | 458 | ] |
| 414 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 415 | - sp:predicate rdf:type ; | ||
| 416 | - sp:subject | ||
| 417 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 418 | - ] | ||
| 419 | ] [ rdf:type sp:NotExists ; | 459 | ] [ rdf:type sp:NotExists ; |
| 420 | sp:elements ([ sp:object | 460 | sp:elements ([ sp:object |
| 421 | - [ sp:varName "dateEndx"^^xsd:string | 461 | + [ sp:varName "installationRefx"^^xsd:string |
| 422 | - ] ; | ||
| 423 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 424 | - sp:subject | ||
| 425 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 426 | - ] | ||
| 427 | - ]) | ||
| 428 | - ] [ rdf:type sp:NotExists ; | ||
| 429 | - sp:elements ([ sp:object | ||
| 430 | - [ sp:varName "dTimEndx"^^xsd:string | ||
| 431 | ] ; | 462 | ] ; |
| 432 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 463 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 433 | sp:subject | 464 | sp:subject |
| 434 | [ sp:varName "productVolumeRef"^^xsd:string | 465 | [ sp:varName "productVolumeRef"^^xsd:string |
| 435 | ] | 466 | ] |
| ... | @@ -439,104 +470,84 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -439,104 +470,84 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 439 | ] ; | 470 | ] ; |
| 440 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 471 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 441 | sp:subject | 472 | sp:subject |
| 442 | - [ sp:varName "productionFlow"^^xsd:string | 473 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 443 | ] | 474 | ] |
| 444 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 475 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 445 | sp:predicate rdf:type ; | 476 | sp:predicate rdf:type ; |
| 446 | sp:subject | 477 | sp:subject |
| 447 | - [ sp:varName "productionFlow"^^xsd:string | 478 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 448 | ] | 479 | ] |
| 449 | ] [ sp:object | 480 | ] [ sp:object |
| 450 | - [ sp:varName "productionFlowToDate"^^xsd:string | 481 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 451 | ] ; | 482 | ] ; |
| 452 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 483 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 453 | sp:subject | 484 | sp:subject |
| 454 | - [ sp:varName "productionFlow"^^xsd:string | 485 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 455 | ] | 486 | ] |
| 456 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 487 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 457 | sp:predicate rdf:type ; | 488 | sp:predicate rdf:type ; |
| 458 | sp:subject | 489 | sp:subject |
| 459 | - [ sp:varName "productionFlowToDate"^^xsd:string | 490 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 460 | ] | 491 | ] |
| 461 | - ] [ sp:object | 492 | + ]) |
| 462 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 463 | ] ; | 493 | ] ; |
| 464 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 494 | + spin:rule |
| 465 | - sp:subject | 495 | + [ rdf:type sp:Construct ; |
| 466 | - [ sp:varName "productionInventory"^^xsd:string | 496 | + rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; |
| 467 | - ] | 497 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; |
| 468 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
| 469 | sp:predicate rdf:type ; | 498 | sp:predicate rdf:type ; |
| 470 | - sp:subject | 499 | + sp:subject _:b2 |
| 471 | - [ sp:varName "productionInventory"^^xsd:string | ||
| 472 | - ] | ||
| 473 | ] [ sp:object | 500 | ] [ sp:object |
| 474 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 501 | + [ sp:varName "productionReport"^^xsd:string |
| 502 | + ] ; | ||
| 503 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 504 | + sp:subject _:b2 | ||
| 505 | + ] [ sp:object | ||
| 506 | + [ sp:varName "name"^^xsd:string | ||
| 507 | + ] ; | ||
| 508 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 509 | + sp:subject _:b2 | ||
| 510 | + ] [ sp:object | ||
| 511 | + [ sp:varName "reportPeriodType"^^xsd:string | ||
| 475 | ] ; | 512 | ] ; |
| 476 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 477 | - sp:subject | ||
| 478 | - [ sp:varName "productionInventory"^^xsd:string | ||
| 479 | - ] | ||
| 480 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
| 481 | sp:predicate rdf:type ; | 513 | sp:predicate rdf:type ; |
| 482 | - sp:subject | 514 | + sp:subject _:b2 |
| 483 | - [ sp:varName "productionInventoryToDate"^^xsd:string | ||
| 484 | - ] | ||
| 485 | ] [ sp:object | 515 | ] [ sp:object |
| 486 | [ sp:varName "productVolumeRef"^^xsd:string | 516 | [ sp:varName "productVolumeRef"^^xsd:string |
| 487 | ] ; | 517 | ] ; |
| 488 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 518 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 489 | - sp:subject | 519 | + sp:subject _:b2 |
| 490 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 491 | - ] | ||
| 492 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 520 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 493 | sp:predicate rdf:type ; | 521 | sp:predicate rdf:type ; |
| 494 | - sp:subject | 522 | + sp:subject _:b3 |
| 495 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 496 | - ] | ||
| 497 | ] [ sp:object | 523 | ] [ sp:object |
| 498 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 524 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 499 | ] ; | 525 | ] ; |
| 526 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 527 | + sp:subject _:b3 | ||
| 528 | + ] [ sp:object _:b4 ; | ||
| 500 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 529 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 501 | - sp:subject | 530 | + sp:subject _:b3 |
| 502 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 503 | - ] | ||
| 504 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 531 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 505 | sp:predicate rdf:type ; | 532 | sp:predicate rdf:type ; |
| 506 | - sp:subject | 533 | + sp:subject _:b4 |
| 507 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 534 | + ] [ sp:object |
| 508 | - ] | 535 | + [ sp:varName "title"^^xsd:string |
| 509 | - ]) | ||
| 510 | - ] ; | ||
| 511 | - spin:rule | ||
| 512 | - [ rdf:type sp:Construct ; | ||
| 513 | - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; | ||
| 514 | - sp:templates ([ sp:object | ||
| 515 | - [ sp:varName "reportKind"^^xsd:string | ||
| 516 | ] ; | 536 | ] ; |
| 517 | - sp:predicate rdf:type ; | 537 | + sp:predicate <http://purl.org/dc/elements/1.1/title> ; |
| 518 | - sp:subject | 538 | + sp:subject _:b2 |
| 519 | - [ sp:varName "productVolumeReport"^^xsd:string | 539 | + ]) ; |
| 520 | - ] | 540 | + sp:where ([ sp:object spin:_this ; |
| 521 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | 541 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 522 | - sp:predicate rdf:type ; | ||
| 523 | sp:subject | 542 | sp:subject |
| 524 | - [ sp:varName "reportKind"^^xsd:string | 543 | + [ sp:varName "productionReport"^^xsd:string |
| 525 | ] | 544 | ] |
| 526 | ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 545 | ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; |
| 527 | - sp:predicate rdfs:subClassOf ; | 546 | + sp:predicate rdf:type ; |
| 528 | sp:subject | 547 | sp:subject |
| 529 | - [ sp:varName "reportKind"^^xsd:string | 548 | + [ sp:varName "productionReport"^^xsd:string |
| 530 | ] | 549 | ] |
| 531 | ] [ sp:object | 550 | ] [ sp:object |
| 532 | - [ sp:varName "kind"^^xsd:string | ||
| 533 | - ] ; | ||
| 534 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 535 | - sp:subject | ||
| 536 | - [ sp:varName "reportKind"^^xsd:string | ||
| 537 | - ] | ||
| 538 | - ]) ; | ||
| 539 | - sp:where ([ sp:object | ||
| 540 | [ sp:varName "productVolumeRef"^^xsd:string | 551 | [ sp:varName "productVolumeRef"^^xsd:string |
| 541 | ] ; | 552 | ] ; |
| 542 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 553 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| ... | @@ -547,18 +558,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -547,18 +558,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 547 | [ sp:varName "productVolumeRef"^^xsd:string | 558 | [ sp:varName "productVolumeRef"^^xsd:string |
| 548 | ] | 559 | ] |
| 549 | ] [ sp:object | 560 | ] [ sp:object |
| 550 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 551 | - ] ; | ||
| 552 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 553 | - sp:subject | ||
| 554 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 555 | - ] | ||
| 556 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
| 557 | - sp:predicate rdf:type ; | ||
| 558 | - sp:subject | ||
| 559 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 560 | - ] | ||
| 561 | - ] [ sp:object | ||
| 562 | [ sp:varName "nameRef"^^xsd:string | 561 | [ sp:varName "nameRef"^^xsd:string |
| 563 | ] ; | 562 | ] ; |
| 564 | sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 563 | sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| ... | @@ -572,50 +571,86 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -572,50 +571,86 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 572 | sp:subject | 571 | sp:subject |
| 573 | [ sp:varName "nameRef"^^xsd:string | 572 | [ sp:varName "nameRef"^^xsd:string |
| 574 | ] | 573 | ] |
| 575 | - ] [ sp:object | 574 | + ] [ rdf:type sp:Optional ; |
| 576 | - [ sp:varName "kind"^^xsd:string | 575 | + sp:elements ([ sp:object |
| 576 | + [ sp:varName "periodKindRef"^^xsd:string | ||
| 577 | ] ; | 577 | ] ; |
| 578 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | 578 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; |
| 579 | + sp:subject | ||
| 580 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 581 | + ] | ||
| 582 | + ]) | ||
| 583 | + ] [ rdf:type sp:Optional ; | ||
| 584 | + sp:elements ([ sp:object | ||
| 585 | + [ sp:varName "titleRef"^^xsd:string | ||
| 586 | + ] ; | ||
| 587 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 579 | sp:subject | 588 | sp:subject |
| 580 | [ sp:varName "productVolumeRef"^^xsd:string | 589 | [ sp:varName "productVolumeRef"^^xsd:string |
| 581 | ] | 590 | ] |
| 591 | + ] [ sp:object | ||
| 592 | + [ sp:varName "title"^^xsd:string | ||
| 593 | + ] ; | ||
| 594 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 595 | + sp:subject | ||
| 596 | + [ sp:varName "titleRef"^^xsd:string | ||
| 597 | + ] | ||
| 598 | + ]) | ||
| 582 | ] [ rdf:type sp:Bind ; | 599 | ] [ rdf:type sp:Bind ; |
| 583 | sp:expression | 600 | sp:expression |
| 584 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | 601 | + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; |
| 585 | - sp:arg1 [ sp:varName "kind"^^xsd:string | 602 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string |
| 586 | ] | 603 | ] |
| 587 | ] ; | 604 | ] ; |
| 588 | sp:variable | 605 | sp:variable |
| 589 | - [ sp:varName "reportKind"^^xsd:string | 606 | + [ sp:varName "reportPeriodType"^^xsd:string |
| 590 | ] | 607 | ] |
| 591 | ]) | 608 | ]) |
| 592 | ] ; | 609 | ] ; |
| 593 | spin:rule | 610 | spin:rule |
| 594 | [ rdf:type sp:Construct ; | 611 | [ rdf:type sp:Construct ; |
| 595 | - rdfs:comment "STEP 20040 Set the production facility - supplied"^^xsd:string ; | 612 | + rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate."^^xsd:string ; |
| 596 | - sp:templates ([ sp:object | 613 | + sp:templates ([ sp:object _:b5 ; |
| 597 | - [ sp:varName "productionFacility"^^xsd:string | 614 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
| 598 | - ] ; | ||
| 599 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 600 | sp:subject | 615 | sp:subject |
| 601 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 616 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 602 | ] | 617 | ] |
| 618 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
| 619 | + sp:predicate rdf:type ; | ||
| 620 | + sp:subject _:b5 | ||
| 603 | ] [ sp:object | 621 | ] [ sp:object |
| 604 | - [ sp:varName "productionFacility"^^xsd:string | 622 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 605 | ] ; | 623 | ] ; |
| 624 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 625 | + sp:subject _:b5 | ||
| 626 | + ] [ sp:object _:b6 ; | ||
| 606 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 627 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 628 | + sp:subject _:b5 | ||
| 629 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
| 630 | + sp:predicate rdf:type ; | ||
| 631 | + sp:subject _:b6 | ||
| 632 | + ] [ sp:object _:b5 ; | ||
| 633 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
| 607 | sp:subject | 634 | sp:subject |
| 608 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 635 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 609 | ] | 636 | ] |
| 610 | - ] [ sp:object | 637 | + ] [ sp:object _:b6 ; |
| 611 | - [ sp:varName "normalizedProductionFacilityName"^^xsd:string | 638 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
| 612 | - ] ; | ||
| 613 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 614 | sp:subject | 639 | sp:subject |
| 615 | - [ sp:varName "productVolumeRef"^^xsd:string | 640 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 616 | ] | 641 | ] |
| 617 | ]) ; | 642 | ]) ; |
| 618 | - sp:where ([ sp:object | 643 | + sp:where ([ sp:object spin:_this ; |
| 644 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 645 | + sp:subject | ||
| 646 | + [ sp:varName "productionReport"^^xsd:string | ||
| 647 | + ] | ||
| 648 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 649 | + sp:predicate rdf:type ; | ||
| 650 | + sp:subject | ||
| 651 | + [ sp:varName "productionReport"^^xsd:string | ||
| 652 | + ] | ||
| 653 | + ] [ sp:object | ||
| 619 | [ sp:varName "productVolumeRef"^^xsd:string | 654 | [ sp:varName "productVolumeRef"^^xsd:string |
| 620 | ] ; | 655 | ] ; |
| 621 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 656 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| ... | @@ -626,18 +661,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -626,18 +661,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 626 | [ sp:varName "productVolumeRef"^^xsd:string | 661 | [ sp:varName "productVolumeRef"^^xsd:string |
| 627 | ] | 662 | ] |
| 628 | ] [ sp:object | 663 | ] [ sp:object |
| 629 | - [ sp:varName "installationRef"^^xsd:string | ||
| 630 | - ] ; | ||
| 631 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 632 | - sp:subject | ||
| 633 | [ sp:varName "productVolumeRef"^^xsd:string | 664 | [ sp:varName "productVolumeRef"^^xsd:string |
| 634 | - ] | ||
| 635 | - ] [ sp:object | ||
| 636 | - [ sp:varName "installationRef"^^xsd:string | ||
| 637 | ] ; | 665 | ] ; |
| 638 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 666 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 639 | sp:subject | 667 | sp:subject |
| 640 | - [ sp:varName "productionFacility"^^xsd:string | 668 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 669 | + ] | ||
| 670 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
| 671 | + sp:predicate rdf:type ; | ||
| 672 | + sp:subject | ||
| 673 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 641 | ] | 674 | ] |
| 642 | ] [ sp:object | 675 | ] [ sp:object |
| 643 | [ sp:varName "productVolumeRef"^^xsd:string | 676 | [ sp:varName "productVolumeRef"^^xsd:string |
| ... | @@ -663,195 +696,180 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -663,195 +696,180 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 663 | sp:subject | 696 | sp:subject |
| 664 | [ sp:varName "productionFacilityToDate"^^xsd:string | 697 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 665 | ] | 698 | ] |
| 666 | - ] [ rdf:type sp:Bind ; | ||
| 667 | - sp:expression | ||
| 668 | - [ rdf:type spl:object ; | ||
| 669 | - sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
| 670 | - ] ; | ||
| 671 | - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
| 672 | - ] ; | ||
| 673 | - sp:variable | ||
| 674 | - [ sp:varName "normalizedProductionFacilityName"^^xsd:string | ||
| 675 | - ] | ||
| 676 | ]) | 699 | ]) |
| 677 | ] ; | 700 | ] ; |
| 678 | spin:rule | 701 | spin:rule |
| 679 | [ rdf:type sp:Construct ; | 702 | [ rdf:type sp:Construct ; |
| 680 | - rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 703 | + rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ; |
| 681 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 704 | + sp:templates ([ sp:object |
| 682 | - sp:predicate rdf:type ; | 705 | + [ sp:varName "dateStart"^^xsd:string |
| 683 | - sp:subject _:b4 | 706 | + ] ; |
| 707 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 708 | + sp:subject | ||
| 709 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 710 | + ] | ||
| 684 | ] [ sp:object | 711 | ] [ sp:object |
| 685 | - [ sp:varName "productionReport"^^xsd:string | 712 | + [ sp:varName "dateStart"^^xsd:string |
| 686 | ] ; | 713 | ] ; |
| 687 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 714 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 688 | - sp:subject _:b4 | 715 | + sp:subject |
| 716 | + [ sp:varName "productionInventory"^^xsd:string | ||
| 717 | + ] | ||
| 689 | ] [ sp:object | 718 | ] [ sp:object |
| 690 | - [ sp:varName "name"^^xsd:string | 719 | + [ sp:varName "dateStart"^^xsd:string |
| 691 | ] ; | 720 | ] ; |
| 692 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 721 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 693 | - sp:subject _:b4 | 722 | + sp:subject |
| 723 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 724 | + ] | ||
| 725 | + ]) ; | ||
| 726 | + sp:where ([ sp:object | ||
| 727 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 728 | + ] ; | ||
| 729 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 730 | + sp:subject spin:_this | ||
| 694 | ] [ sp:object | 731 | ] [ sp:object |
| 695 | - [ sp:varName "reportPeriodType"^^xsd:string | 732 | + [ sp:varName "dateStart"^^xsd:string |
| 696 | ] ; | 733 | ] ; |
| 734 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 735 | + sp:subject spin:_this | ||
| 736 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 697 | sp:predicate rdf:type ; | 737 | sp:predicate rdf:type ; |
| 698 | - sp:subject _:b4 | 738 | + sp:subject |
| 699 | - ] [ sp:object | ||
| 700 | [ sp:varName "productVolumeRef"^^xsd:string | 739 | [ sp:varName "productVolumeRef"^^xsd:string |
| 740 | + ] | ||
| 741 | + ] [ rdf:type sp:NotExists ; | ||
| 742 | + sp:elements ([ sp:object | ||
| 743 | + [ sp:varName "dateStartx"^^xsd:string | ||
| 701 | ] ; | 744 | ] ; |
| 702 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 745 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 703 | - sp:subject _:b4 | 746 | + sp:subject |
| 704 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 747 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 705 | - sp:predicate rdf:type ; | 748 | + ] |
| 706 | - sp:subject _:b5 | 749 | + ]) |
| 750 | + ] [ rdf:type sp:NotExists ; | ||
| 751 | + sp:elements ([ sp:object | ||
| 752 | + [ sp:varName "dTimStartx"^^xsd:string | ||
| 753 | + ] ; | ||
| 754 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 755 | + sp:subject | ||
| 756 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 757 | + ] | ||
| 758 | + ]) | ||
| 707 | ] [ sp:object | 759 | ] [ sp:object |
| 708 | [ sp:varName "productVolumeRef"^^xsd:string | 760 | [ sp:varName "productVolumeRef"^^xsd:string |
| 709 | ] ; | 761 | ] ; |
| 710 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 762 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 711 | - sp:subject _:b5 | 763 | + sp:subject |
| 712 | - ] [ sp:object _:b6 ; | 764 | + [ sp:varName "productionFlow"^^xsd:string |
| 713 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 765 | + ] |
| 714 | - sp:subject _:b5 | 766 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
| 715 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 716 | sp:predicate rdf:type ; | 767 | sp:predicate rdf:type ; |
| 717 | - sp:subject _:b6 | 768 | + sp:subject |
| 769 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 770 | + ] | ||
| 718 | ] [ sp:object | 771 | ] [ sp:object |
| 719 | - [ sp:varName "title"^^xsd:string | 772 | + [ sp:varName "productionFlowToDate"^^xsd:string |
| 720 | ] ; | 773 | ] ; |
| 721 | - sp:predicate <http://purl.org/dc/elements/1.1/title> ; | 774 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 722 | - sp:subject _:b4 | ||
| 723 | - ]) ; | ||
| 724 | - sp:where ([ sp:object spin:_this ; | ||
| 725 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 726 | sp:subject | 775 | sp:subject |
| 727 | - [ sp:varName "productionReport"^^xsd:string | 776 | + [ sp:varName "productionFlow"^^xsd:string |
| 728 | ] | 777 | ] |
| 729 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 778 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
| 730 | sp:predicate rdf:type ; | 779 | sp:predicate rdf:type ; |
| 731 | sp:subject | 780 | sp:subject |
| 732 | - [ sp:varName "productionReport"^^xsd:string | 781 | + [ sp:varName "productionFlowToDate"^^xsd:string |
| 733 | ] | 782 | ] |
| 734 | ] [ sp:object | 783 | ] [ sp:object |
| 735 | [ sp:varName "productVolumeRef"^^xsd:string | 784 | [ sp:varName "productVolumeRef"^^xsd:string |
| 736 | ] ; | 785 | ] ; |
| 737 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 786 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 738 | - sp:subject spin:_this | 787 | + sp:subject |
| 739 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 788 | + [ sp:varName "productionInventory"^^xsd:string |
| 789 | + ] | ||
| 790 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
| 740 | sp:predicate rdf:type ; | 791 | sp:predicate rdf:type ; |
| 741 | sp:subject | 792 | sp:subject |
| 742 | - [ sp:varName "productVolumeRef"^^xsd:string | 793 | + [ sp:varName "productionInventory"^^xsd:string |
| 743 | ] | 794 | ] |
| 744 | ] [ sp:object | 795 | ] [ sp:object |
| 745 | - [ sp:varName "nameRef"^^xsd:string | 796 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
| 746 | ] ; | 797 | ] ; |
| 747 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 798 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 748 | sp:subject | 799 | sp:subject |
| 749 | - [ sp:varName "productVolumeRef"^^xsd:string | 800 | + [ sp:varName "productionInventory"^^xsd:string |
| 750 | ] | 801 | ] |
| 751 | - ] [ sp:object | 802 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; |
| 752 | - [ sp:varName "name"^^xsd:string | 803 | + sp:predicate rdf:type ; |
| 753 | - ] ; | ||
| 754 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 755 | sp:subject | 804 | sp:subject |
| 756 | - [ sp:varName "nameRef"^^xsd:string | 805 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
| 757 | ] | 806 | ] |
| 758 | - ] [ rdf:type sp:Optional ; | 807 | + ] [ sp:object |
| 759 | - sp:elements ([ sp:object | 808 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 760 | - [ sp:varName "periodKindRef"^^xsd:string | ||
| 761 | ] ; | 809 | ] ; |
| 762 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | 810 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 763 | sp:subject | 811 | sp:subject |
| 764 | - [ sp:varName "productVolumeRef"^^xsd:string | 812 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 765 | ] | 813 | ] |
| 766 | - ]) | 814 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 767 | - ] [ rdf:type sp:Optional ; | 815 | + sp:predicate rdf:type ; |
| 768 | - sp:elements ([ sp:object | ||
| 769 | - [ sp:varName "titleRef"^^xsd:string | ||
| 770 | - ] ; | ||
| 771 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 772 | sp:subject | 816 | sp:subject |
| 773 | - [ sp:varName "productVolumeRef"^^xsd:string | 817 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 774 | ] | 818 | ] |
| 775 | ] [ sp:object | 819 | ] [ sp:object |
| 776 | - [ sp:varName "title"^^xsd:string | 820 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 777 | ] ; | 821 | ] ; |
| 778 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 822 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 779 | sp:subject | 823 | sp:subject |
| 780 | - [ sp:varName "titleRef"^^xsd:string | 824 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 781 | - ] | ||
| 782 | - ]) | ||
| 783 | - ] [ rdf:type sp:Bind ; | ||
| 784 | - sp:expression | ||
| 785 | - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
| 786 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 787 | ] | 825 | ] |
| 788 | - ] ; | 826 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 789 | - sp:variable | 827 | + sp:predicate rdf:type ; |
| 790 | - [ sp:varName "reportPeriodType"^^xsd:string | 828 | + sp:subject |
| 829 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 791 | ] | 830 | ] |
| 792 | ]) | 831 | ]) |
| 793 | ] ; | 832 | ] ; |
| 794 | spin:rule | 833 | spin:rule |
| 795 | [ rdf:type sp:Construct ; | 834 | [ rdf:type sp:Construct ; |
| 796 | - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | 835 | + rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ; |
| 797 | sp:templates ([ sp:object | 836 | sp:templates ([ sp:object |
| 798 | - [ sp:varName "dTimStart"^^xsd:string | 837 | + [ sp:varName "dateEnd"^^xsd:string |
| 799 | - ] ; | ||
| 800 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 801 | - sp:subject | ||
| 802 | - [ sp:varName "productionFlow"^^xsd:string | ||
| 803 | - ] | ||
| 804 | - ] [ sp:object | ||
| 805 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 806 | ] ; | 838 | ] ; |
| 807 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 839 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 808 | sp:subject | 840 | sp:subject |
| 809 | [ sp:varName "productionFlow"^^xsd:string | 841 | [ sp:varName "productionFlow"^^xsd:string |
| 810 | ] | 842 | ] |
| 811 | ] [ sp:object | 843 | ] [ sp:object |
| 812 | - [ sp:varName "dTimEnd"^^xsd:string | 844 | + [ sp:varName "dateEnd"^^xsd:string |
| 813 | ] ; | 845 | ] ; |
| 814 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 846 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 815 | sp:subject | 847 | sp:subject |
| 816 | [ sp:varName "productionFlowToDate"^^xsd:string | 848 | [ sp:varName "productionFlowToDate"^^xsd:string |
| 817 | ] | 849 | ] |
| 818 | ] [ sp:object | 850 | ] [ sp:object |
| 819 | - [ sp:varName "dTimStart"^^xsd:string | 851 | + [ sp:varName "dateEnd"^^xsd:string |
| 820 | - ] ; | ||
| 821 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 822 | - sp:subject | ||
| 823 | - [ sp:varName "productionInventory"^^xsd:string | ||
| 824 | - ] | ||
| 825 | - ] [ sp:object | ||
| 826 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 827 | ] ; | 852 | ] ; |
| 828 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 853 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 829 | sp:subject | 854 | sp:subject |
| 830 | [ sp:varName "productionInventory"^^xsd:string | 855 | [ sp:varName "productionInventory"^^xsd:string |
| 831 | ] | 856 | ] |
| 832 | ] [ sp:object | 857 | ] [ sp:object |
| 833 | - [ sp:varName "dTimEnd"^^xsd:string | 858 | + [ sp:varName "dateEnd"^^xsd:string |
| 834 | ] ; | 859 | ] ; |
| 835 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 860 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 836 | sp:subject | 861 | sp:subject |
| 837 | [ sp:varName "productionInventoryToDate"^^xsd:string | 862 | [ sp:varName "productionInventoryToDate"^^xsd:string |
| 838 | ] | 863 | ] |
| 839 | ] [ sp:object | 864 | ] [ sp:object |
| 840 | - [ sp:varName "dTimStart"^^xsd:string | 865 | + [ sp:varName "dateEnd"^^xsd:string |
| 841 | - ] ; | ||
| 842 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 843 | - sp:subject | ||
| 844 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 845 | - ] | ||
| 846 | - ] [ sp:object | ||
| 847 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 848 | ] ; | 866 | ] ; |
| 849 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 867 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 850 | sp:subject | 868 | sp:subject |
| 851 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 869 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 852 | ] | 870 | ] |
| 853 | ] [ sp:object | 871 | ] [ sp:object |
| 854 | - [ sp:varName "dTimEnd"^^xsd:string | 872 | + [ sp:varName "dateEnd"^^xsd:string |
| 855 | ] ; | 873 | ] ; |
| 856 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 874 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 857 | sp:subject | 875 | sp:subject |
| ... | @@ -863,25 +881,39 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -863,25 +881,39 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 863 | ] ; | 881 | ] ; |
| 864 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 882 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 865 | sp:subject spin:_this | 883 | sp:subject spin:_this |
| 884 | + ] [ sp:object | ||
| 885 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 886 | + ] ; | ||
| 887 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
| 888 | + sp:subject spin:_this | ||
| 866 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 889 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 867 | sp:predicate rdf:type ; | 890 | sp:predicate rdf:type ; |
| 868 | sp:subject | 891 | sp:subject |
| 869 | [ sp:varName "productVolumeRef"^^xsd:string | 892 | [ sp:varName "productVolumeRef"^^xsd:string |
| 870 | ] | 893 | ] |
| 871 | - ] [ sp:object | 894 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 872 | - [ sp:varName "dTimStart"^^xsd:string | 895 | + sp:predicate rdf:type ; |
| 896 | + sp:subject | ||
| 897 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 898 | + ] | ||
| 899 | + ] [ rdf:type sp:NotExists ; | ||
| 900 | + sp:elements ([ sp:object | ||
| 901 | + [ sp:varName "dateEndx"^^xsd:string | ||
| 873 | ] ; | 902 | ] ; |
| 874 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 903 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 875 | sp:subject | 904 | sp:subject |
| 876 | [ sp:varName "productVolumeRef"^^xsd:string | 905 | [ sp:varName "productVolumeRef"^^xsd:string |
| 877 | ] | 906 | ] |
| 878 | - ] [ sp:object | 907 | + ]) |
| 879 | - [ sp:varName "dTimEnd"^^xsd:string | 908 | + ] [ rdf:type sp:NotExists ; |
| 909 | + sp:elements ([ sp:object | ||
| 910 | + [ sp:varName "dTimEndx"^^xsd:string | ||
| 880 | ] ; | 911 | ] ; |
| 881 | sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 912 | sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
| 882 | sp:subject | 913 | sp:subject |
| 883 | [ sp:varName "productVolumeRef"^^xsd:string | 914 | [ sp:varName "productVolumeRef"^^xsd:string |
| 884 | ] | 915 | ] |
| 916 | + ]) | ||
| 885 | ] [ sp:object | 917 | ] [ sp:object |
| 886 | [ sp:varName "productVolumeRef"^^xsd:string | 918 | [ sp:varName "productVolumeRef"^^xsd:string |
| 887 | ] ; | 919 | ] ; |
| ... | @@ -958,7 +990,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -958,7 +990,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 958 | ] ; | 990 | ] ; |
| 959 | spin:rule | 991 | spin:rule |
| 960 | [ rdf:type sp:Construct ; | 992 | [ rdf:type sp:Construct ; |
| 961 | - rdfs:comment "STEP 20041 Set the production facility - taken from context"^^xsd:string ; | 993 | + rdfs:comment "STEP 20040 Set the production facility - supplied"^^xsd:string ; |
| 962 | sp:templates ([ sp:object | 994 | sp:templates ([ sp:object |
| 963 | [ sp:varName "productionFacility"^^xsd:string | 995 | [ sp:varName "productionFacility"^^xsd:string |
| 964 | ] ; | 996 | ] ; |
| ... | @@ -973,19 +1005,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -973,19 +1005,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 973 | sp:subject | 1005 | sp:subject |
| 974 | [ sp:varName "productionFacilityToDate"^^xsd:string | 1006 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 975 | ] | 1007 | ] |
| 976 | - ] [ sp:object | ||
| 977 | - [ sp:varName "normalizedProductionFacilityName"^^xsd:string | ||
| 978 | - ] ; | ||
| 979 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 980 | - sp:subject | ||
| 981 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 982 | - ] | ||
| 983 | - ]) ; | ||
| 984 | - sp:where ([ sp:object spin:_this ; | ||
| 985 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 986 | - sp:subject | ||
| 987 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 988 | - ] | ||
| 989 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 1008 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
| 990 | sp:predicate rdf:type ; | 1009 | sp:predicate rdf:type ; |
| 991 | sp:subject | 1010 | sp:subject |
| ... | @@ -995,8 +1014,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -995,8 +1014,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 995 | [ sp:varName "normalizedProductionFacilityName"^^xsd:string | 1014 | [ sp:varName "normalizedProductionFacilityName"^^xsd:string |
| 996 | ] ; | 1015 | ] ; |
| 997 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1016 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 998 | - sp:subject spin:_this | 1017 | + sp:subject |
| 999 | - ] [ sp:object | 1018 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1019 | + ] | ||
| 1020 | + ]) ; | ||
| 1021 | + sp:where ([ sp:object | ||
| 1000 | [ sp:varName "productVolumeRef"^^xsd:string | 1022 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1001 | ] ; | 1023 | ] ; |
| 1002 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 1024 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| ... | @@ -1006,15 +1028,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1006,15 +1028,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1006 | sp:subject | 1028 | sp:subject |
| 1007 | [ sp:varName "productVolumeRef"^^xsd:string | 1029 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1008 | ] | 1030 | ] |
| 1009 | - ] [ rdf:type sp:NotExists ; | 1031 | + ] [ sp:object |
| 1010 | - sp:elements ([ sp:object | 1032 | + [ sp:varName "installationRef"^^xsd:string |
| 1011 | - [ sp:varName "installationRefx"^^xsd:string | ||
| 1012 | ] ; | 1033 | ] ; |
| 1013 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 1034 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 1014 | sp:subject | 1035 | sp:subject |
| 1015 | [ sp:varName "productVolumeRef"^^xsd:string | 1036 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1016 | ] | 1037 | ] |
| 1017 | - ]) | 1038 | + ] [ sp:object |
| 1039 | + [ sp:varName "installationRef"^^xsd:string | ||
| 1040 | + ] ; | ||
| 1041 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1042 | + sp:subject | ||
| 1043 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 1044 | + ] | ||
| 1018 | ] [ sp:object | 1045 | ] [ sp:object |
| 1019 | [ sp:varName "productVolumeRef"^^xsd:string | 1046 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1020 | ] ; | 1047 | ] ; |
| ... | @@ -1039,73 +1066,95 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1039,73 +1066,95 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1039 | sp:subject | 1066 | sp:subject |
| 1040 | [ sp:varName "productionFacilityToDate"^^xsd:string | 1067 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 1041 | ] | 1068 | ] |
| 1069 | + ] [ rdf:type sp:Bind ; | ||
| 1070 | + sp:expression | ||
| 1071 | + [ rdf:type spl:object ; | ||
| 1072 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
| 1073 | + ] ; | ||
| 1074 | + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
| 1075 | + ] ; | ||
| 1076 | + sp:variable | ||
| 1077 | + [ sp:varName "normalizedProductionFacilityName"^^xsd:string | ||
| 1078 | + ] | ||
| 1042 | ]) | 1079 | ]) |
| 1043 | ] ; | 1080 | ] ; |
| 1044 | spin:rule | 1081 | spin:rule |
| 1045 | [ rdf:type sp:Construct ; | 1082 | [ rdf:type sp:Construct ; |
| 1046 | - rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; | 1083 | + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; |
| 1047 | sp:templates ([ sp:object | 1084 | sp:templates ([ sp:object |
| 1048 | - [ sp:varName "dateStart"^^xsd:string | 1085 | + [ sp:varName "contextFacility"^^xsd:string |
| 1049 | ] ; | 1086 | ] ; |
| 1050 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1087 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 1051 | sp:subject | 1088 | sp:subject |
| 1052 | - [ sp:varName "productionFlow"^^xsd:string | 1089 | + [ sp:varName "productionFacility"^^xsd:string |
| 1053 | ] | 1090 | ] |
| 1054 | - ] [ sp:object | 1091 | + ]) ; |
| 1055 | - [ sp:varName "dateEnd"^^xsd:string | 1092 | + sp:where ([ sp:object |
| 1093 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1056 | ] ; | 1094 | ] ; |
| 1057 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1095 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 1096 | + sp:subject spin:_this | ||
| 1097 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1098 | + sp:predicate rdf:type ; | ||
| 1058 | sp:subject | 1099 | sp:subject |
| 1059 | - [ sp:varName "productionFlow"^^xsd:string | 1100 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1060 | ] | 1101 | ] |
| 1061 | ] [ sp:object | 1102 | ] [ sp:object |
| 1062 | - [ sp:varName "dateEnd"^^xsd:string | 1103 | + [ sp:varName "installationRef"^^xsd:string |
| 1063 | ] ; | 1104 | ] ; |
| 1064 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1105 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 1065 | sp:subject | 1106 | sp:subject |
| 1066 | - [ sp:varName "productionFlowToDate"^^xsd:string | 1107 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1067 | ] | 1108 | ] |
| 1068 | ] [ sp:object | 1109 | ] [ sp:object |
| 1069 | - [ sp:varName "dateStart"^^xsd:string | 1110 | + [ sp:varName "installationRef"^^xsd:string |
| 1070 | ] ; | 1111 | ] ; |
| 1071 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1112 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1072 | sp:subject | 1113 | sp:subject |
| 1073 | - [ sp:varName "productionInventory"^^xsd:string | 1114 | + [ sp:varName "productionFacility"^^xsd:string |
| 1074 | ] | 1115 | ] |
| 1075 | ] [ sp:object | 1116 | ] [ sp:object |
| 1076 | - [ sp:varName "dateEnd"^^xsd:string | 1117 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 1077 | ] ; | 1118 | ] ; |
| 1078 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1119 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
| 1079 | sp:subject | 1120 | sp:subject |
| 1080 | - [ sp:varName "productionInventory"^^xsd:string | 1121 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1081 | ] | 1122 | ] |
| 1082 | ] [ sp:object | 1123 | ] [ sp:object |
| 1083 | - [ sp:varName "dateEnd"^^xsd:string | 1124 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 1084 | ] ; | 1125 | ] ; |
| 1085 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1126 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1086 | sp:subject | 1127 | sp:subject |
| 1087 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 1128 | + [ sp:varName "contextFacility"^^xsd:string |
| 1088 | ] | 1129 | ] |
| 1089 | - ] [ sp:object | 1130 | + ]) |
| 1090 | - [ sp:varName "dateStart"^^xsd:string | ||
| 1091 | ] ; | 1131 | ] ; |
| 1092 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1132 | + spin:rule |
| 1133 | + [ rdf:type sp:Construct ; | ||
| 1134 | + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; | ||
| 1135 | + sp:templates ([ sp:object | ||
| 1136 | + [ sp:varName "reportKind"^^xsd:string | ||
| 1137 | + ] ; | ||
| 1138 | + sp:predicate rdf:type ; | ||
| 1093 | sp:subject | 1139 | sp:subject |
| 1094 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1140 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 1095 | ] | 1141 | ] |
| 1096 | - ] [ sp:object | 1142 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; |
| 1097 | - [ sp:varName "dateEnd"^^xsd:string | 1143 | + sp:predicate rdf:type ; |
| 1098 | - ] ; | ||
| 1099 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1100 | sp:subject | 1144 | sp:subject |
| 1101 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1145 | + [ sp:varName "reportKind"^^xsd:string |
| 1146 | + ] | ||
| 1147 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 1148 | + sp:predicate rdfs:subClassOf ; | ||
| 1149 | + sp:subject | ||
| 1150 | + [ sp:varName "reportKind"^^xsd:string | ||
| 1102 | ] | 1151 | ] |
| 1103 | ] [ sp:object | 1152 | ] [ sp:object |
| 1104 | - [ sp:varName "dateEnd"^^xsd:string | 1153 | + [ sp:varName "kind"^^xsd:string |
| 1105 | ] ; | 1154 | ] ; |
| 1106 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1155 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 1107 | sp:subject | 1156 | sp:subject |
| 1108 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 1157 | + [ sp:varName "reportKind"^^xsd:string |
| 1109 | ] | 1158 | ] |
| 1110 | ]) ; | 1159 | ]) ; |
| 1111 | sp:where ([ sp:object | 1160 | sp:where ([ sp:object |
| ... | @@ -1119,102 +1168,58 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1119,102 +1168,58 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1119 | [ sp:varName "productVolumeRef"^^xsd:string | 1168 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1120 | ] | 1169 | ] |
| 1121 | ] [ sp:object | 1170 | ] [ sp:object |
| 1122 | - [ sp:varName "dateStart"^^xsd:string | ||
| 1123 | - ] ; | ||
| 1124 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 1125 | - sp:subject | ||
| 1126 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1127 | - ] | ||
| 1128 | - ] [ sp:object | ||
| 1129 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 1130 | - ] ; | ||
| 1131 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 1132 | - sp:subject | ||
| 1133 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1134 | - ] | ||
| 1135 | - ] [ sp:object | ||
| 1136 | [ sp:varName "productVolumeRef"^^xsd:string | 1171 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1137 | ] ; | 1172 | ] ; |
| 1138 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1173 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1139 | sp:subject | 1174 | sp:subject |
| 1140 | - [ sp:varName "productionFlow"^^xsd:string | 1175 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 1141 | ] | 1176 | ] |
| 1142 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 1177 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; |
| 1143 | sp:predicate rdf:type ; | 1178 | sp:predicate rdf:type ; |
| 1144 | sp:subject | 1179 | sp:subject |
| 1145 | - [ sp:varName "productionFlow"^^xsd:string | 1180 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 1146 | ] | 1181 | ] |
| 1147 | ] [ sp:object | 1182 | ] [ sp:object |
| 1148 | - [ sp:varName "productionFlowToDate"^^xsd:string | 1183 | + [ sp:varName "nameRef"^^xsd:string |
| 1149 | ] ; | 1184 | ] ; |
| 1150 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1185 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 1151 | - sp:subject | ||
| 1152 | - [ sp:varName "productionFlow"^^xsd:string | ||
| 1153 | - ] | ||
| 1154 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
| 1155 | - sp:predicate rdf:type ; | ||
| 1156 | sp:subject | 1186 | sp:subject |
| 1157 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1158 | - ] | ||
| 1159 | - ] [ sp:object | ||
| 1160 | [ sp:varName "productVolumeRef"^^xsd:string | 1187 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1161 | - ] ; | ||
| 1162 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1163 | - sp:subject | ||
| 1164 | - [ sp:varName "productionInventory"^^xsd:string | ||
| 1165 | - ] | ||
| 1166 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
| 1167 | - sp:predicate rdf:type ; | ||
| 1168 | - sp:subject | ||
| 1169 | - [ sp:varName "productionInventory"^^xsd:string | ||
| 1170 | ] | 1188 | ] |
| 1171 | ] [ sp:object | 1189 | ] [ sp:object |
| 1172 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 1190 | + [ sp:varName "name"^^xsd:string |
| 1173 | ] ; | 1191 | ] ; |
| 1174 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1192 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 1175 | - sp:subject | ||
| 1176 | - [ sp:varName "productionInventory"^^xsd:string | ||
| 1177 | - ] | ||
| 1178 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
| 1179 | - sp:predicate rdf:type ; | ||
| 1180 | sp:subject | 1193 | sp:subject |
| 1181 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 1194 | + [ sp:varName "nameRef"^^xsd:string |
| 1182 | ] | 1195 | ] |
| 1183 | ] [ sp:object | 1196 | ] [ sp:object |
| 1184 | - [ sp:varName "productVolumeRef"^^xsd:string | 1197 | + [ sp:varName "kind"^^xsd:string |
| 1185 | ] ; | 1198 | ] ; |
| 1186 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1199 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; |
| 1187 | sp:subject | 1200 | sp:subject |
| 1188 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1201 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1189 | ] | 1202 | ] |
| 1190 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 1203 | + ] [ rdf:type sp:Bind ; |
| 1191 | - sp:predicate rdf:type ; | 1204 | + sp:expression |
| 1192 | - sp:subject | 1205 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; |
| 1193 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1206 | + sp:arg1 [ sp:varName "kind"^^xsd:string |
| 1194 | ] | 1207 | ] |
| 1195 | - ] [ sp:object | ||
| 1196 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1197 | ] ; | 1208 | ] ; |
| 1198 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1209 | + sp:variable |
| 1199 | - sp:subject | 1210 | + [ sp:varName "reportKind"^^xsd:string |
| 1200 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1201 | - ] | ||
| 1202 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1203 | - sp:predicate rdf:type ; | ||
| 1204 | - sp:subject | ||
| 1205 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1206 | ] | 1211 | ] |
| 1207 | ]) | 1212 | ]) |
| 1208 | ] ; | 1213 | ] ; |
| 1209 | spin:rule | 1214 | spin:rule |
| 1210 | [ rdf:type sp:Construct ; | 1215 | [ rdf:type sp:Construct ; |
| 1211 | - rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ; | 1216 | + rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate."^^xsd:string ; |
| 1212 | sp:templates ([ sp:object _:b7 ; | 1217 | sp:templates ([ sp:object _:b7 ; |
| 1213 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 1218 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
| 1214 | sp:subject | 1219 | sp:subject |
| 1215 | [ sp:varName "productVolumeReport"^^xsd:string | 1220 | [ sp:varName "productVolumeReport"^^xsd:string |
| 1216 | ] | 1221 | ] |
| 1217 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | 1222 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
| 1218 | sp:predicate rdf:type ; | 1223 | sp:predicate rdf:type ; |
| 1219 | sp:subject _:b7 | 1224 | sp:subject _:b7 |
| 1220 | ] [ sp:object | 1225 | ] [ sp:object |
| ... | @@ -1225,16 +1230,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1225,16 +1230,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1225 | ] [ sp:object _:b8 ; | 1230 | ] [ sp:object _:b8 ; |
| 1226 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1231 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 1227 | sp:subject _:b7 | 1232 | sp:subject _:b7 |
| 1228 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | 1233 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
| 1229 | sp:predicate rdf:type ; | 1234 | sp:predicate rdf:type ; |
| 1230 | sp:subject _:b8 | 1235 | sp:subject _:b8 |
| 1231 | ] [ sp:object _:b7 ; | 1236 | ] [ sp:object _:b7 ; |
| 1232 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 1237 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 1233 | sp:subject | 1238 | sp:subject |
| 1234 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1239 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 1235 | ] | 1240 | ] |
| 1236 | ] [ sp:object _:b8 ; | 1241 | ] [ sp:object _:b8 ; |
| 1237 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 1242 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 1238 | sp:subject | 1243 | sp:subject |
| 1239 | [ sp:varName "productionFacilityToDate"^^xsd:string | 1244 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 1240 | ] | 1245 | ] |
| ... | @@ -1300,5 +1305,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1300,5 +1305,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1300 | 1305 | ||
| 1301 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | 1306 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> |
| 1302 | rdf:type owl:Ontology ; | 1307 | rdf:type owl:Ontology ; |
| 1303 | - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | 1308 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; |
| 1304 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1309 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment