Showing
2 changed files
with
521 additions
and
521 deletions
This diff could not be displayed because it is too large.
| ... | @@ -22,130 +22,59 @@ | ... | @@ -22,130 +22,59 @@ |
| 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 20020 Add the report kind ."^^xsd:string ; | 25 | + rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ; |
| 26 | sp:templates ([ sp:object | 26 | sp:templates ([ sp:object |
| 27 | - [ sp:varName "reportKind"^^xsd:string | 27 | + [ sp:varName "dateEnd"^^xsd:string |
| 28 | - ] ; | ||
| 29 | - sp:predicate rdf:type ; | ||
| 30 | - sp:subject | ||
| 31 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 32 | - ] | ||
| 33 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportType> ; | ||
| 34 | - sp:predicate rdf:type ; | ||
| 35 | - sp:subject | ||
| 36 | - [ sp:varName "reportKind"^^xsd:string | ||
| 37 | - ] | ||
| 38 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 39 | - sp:predicate rdfs:subClassOf ; | ||
| 40 | - sp:subject | ||
| 41 | - [ sp:varName "reportKind"^^xsd:string | ||
| 42 | - ] | ||
| 43 | - ] [ sp:object | ||
| 44 | - [ sp:varName "kind"^^xsd:string | ||
| 45 | - ] ; | ||
| 46 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 47 | - sp:subject | ||
| 48 | - [ sp:varName "reportKind"^^xsd:string | ||
| 49 | - ] | ||
| 50 | - ]) ; | ||
| 51 | - sp:where ([ sp:object | ||
| 52 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 53 | ] ; | 28 | ] ; |
| 54 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 29 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 55 | - sp:subject spin:_this | ||
| 56 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 57 | - sp:predicate rdf:type ; | ||
| 58 | sp:subject | 30 | sp:subject |
| 59 | - [ sp:varName "productVolumeRef"^^xsd:string | 31 | + [ sp:varName "productionFlowNetwork"^^xsd:string |
| 60 | ] | 32 | ] |
| 61 | ] [ sp:object | 33 | ] [ sp:object |
| 62 | - [ sp:varName "productVolumeRef"^^xsd:string | 34 | + [ sp:varName "dateEnd"^^xsd:string |
| 63 | ] ; | 35 | ] ; |
| 64 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 36 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 65 | - sp:subject | ||
| 66 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 67 | - ] | ||
| 68 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
| 69 | - sp:predicate rdf:type ; | ||
| 70 | sp:subject | 37 | sp:subject |
| 71 | - [ sp:varName "productVolumeReport"^^xsd:string | 38 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string |
| 72 | ] | 39 | ] |
| 73 | ] [ sp:object | 40 | ] [ sp:object |
| 74 | - [ sp:varName "nameRef"^^xsd:string | 41 | + [ sp:varName "dateEnd"^^xsd:string |
| 75 | ] ; | 42 | ] ; |
| 76 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 43 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 77 | sp:subject | 44 | sp:subject |
| 78 | - [ sp:varName "productVolumeRef"^^xsd:string | 45 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 79 | ] | 46 | ] |
| 80 | ] [ sp:object | 47 | ] [ sp:object |
| 81 | - [ sp:varName "name"^^xsd:string | 48 | + [ sp:varName "dateEnd"^^xsd:string |
| 82 | ] ; | 49 | ] ; |
| 83 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 50 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 84 | sp:subject | 51 | sp:subject |
| 85 | - [ sp:varName "nameRef"^^xsd:string | 52 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string |
| 86 | ] | 53 | ] |
| 87 | ] [ sp:object | 54 | ] [ sp:object |
| 88 | - [ sp:varName "kind"^^xsd:string | 55 | + [ sp:varName "dateEnd"^^xsd:string |
| 89 | - ] ; | ||
| 90 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 91 | - sp:subject | ||
| 92 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 93 | - ] | ||
| 94 | - ] [ rdf:type sp:Bind ; | ||
| 95 | - sp:expression | ||
| 96 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 97 | - sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 98 | - ] | ||
| 99 | - ] ; | ||
| 100 | - sp:variable | ||
| 101 | - [ sp:varName "reportKind"^^xsd:string | ||
| 102 | - ] | ||
| 103 | - ]) | ||
| 104 | - ] ; | ||
| 105 | - spin:rule | ||
| 106 | - [ rdf:type sp:Construct ; | ||
| 107 | - rdfs:comment "STEP 20041 Set the production facility - taken from context"^^xsd:string ; | ||
| 108 | - sp:templates ([ sp:object | ||
| 109 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 110 | ] ; | 56 | ] ; |
| 111 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 57 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 112 | sp:subject | 58 | sp:subject |
| 113 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 59 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 114 | ] | 60 | ] |
| 115 | ] [ sp:object | 61 | ] [ sp:object |
| 116 | - [ sp:varName "productionFacility"^^xsd:string | 62 | + [ sp:varName "dateEnd"^^xsd:string |
| 117 | ] ; | 63 | ] ; |
| 118 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 64 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 119 | sp:subject | 65 | sp:subject |
| 120 | [ sp:varName "productionFacilityToDate"^^xsd:string | 66 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 121 | ] | 67 | ] |
| 122 | - ] [ sp:object | ||
| 123 | - [ sp:varName "normalizedProductionFacilityName"^^xsd:string | ||
| 124 | - ] ; | ||
| 125 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 126 | - sp:subject | ||
| 127 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 128 | - ] | ||
| 129 | ]) ; | 68 | ]) ; |
| 130 | - sp:where ([ sp:object spin:_this ; | 69 | + sp:where ([ sp:object |
| 131 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 70 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 132 | - sp:subject | ||
| 133 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 134 | - ] | ||
| 135 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 136 | - sp:predicate rdf:type ; | ||
| 137 | - sp:subject | ||
| 138 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 139 | - ] | ||
| 140 | - ] [ sp:object | ||
| 141 | - [ sp:varName "normalizedProductionFacilityName"^^xsd:string | ||
| 142 | ] ; | 71 | ] ; |
| 143 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 72 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 144 | sp:subject spin:_this | 73 | sp:subject spin:_this |
| 145 | ] [ sp:object | 74 | ] [ sp:object |
| 146 | - [ sp:varName "productVolumeRef"^^xsd:string | 75 | + [ sp:varName "dateEnd"^^xsd:string |
| 147 | ] ; | 76 | ] ; |
| 148 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 77 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
| 149 | sp:subject spin:_this | 78 | sp:subject spin:_this |
| 150 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 79 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 151 | sp:predicate rdf:type ; | 80 | sp:predicate rdf:type ; |
| ... | @@ -154,9 +83,18 @@ | ... | @@ -154,9 +83,18 @@ |
| 154 | ] | 83 | ] |
| 155 | ] [ rdf:type sp:NotExists ; | 84 | ] [ rdf:type sp:NotExists ; |
| 156 | sp:elements ([ sp:object | 85 | sp:elements ([ sp:object |
| 157 | - [ sp:varName "installationRefx"^^xsd:string | 86 | + [ sp:varName "dateEndx"^^xsd:string |
| 158 | ] ; | 87 | ] ; |
| 159 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 88 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 89 | + sp:subject | ||
| 90 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 91 | + ] | ||
| 92 | + ]) | ||
| 93 | + ] [ rdf:type sp:NotExists ; | ||
| 94 | + sp:elements ([ sp:object | ||
| 95 | + [ sp:varName "dTimEndx"^^xsd:string | ||
| 96 | + ] ; | ||
| 97 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 160 | sp:subject | 98 | sp:subject |
| 161 | [ sp:varName "productVolumeRef"^^xsd:string | 99 | [ sp:varName "productVolumeRef"^^xsd:string |
| 162 | ] | 100 | ] |
| ... | @@ -166,168 +104,109 @@ | ... | @@ -166,168 +104,109 @@ |
| 166 | ] ; | 104 | ] ; |
| 167 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 105 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 168 | sp:subject | 106 | sp:subject |
| 169 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 107 | + [ sp:varName "productionFlowNetwork"^^xsd:string |
| 170 | ] | 108 | ] |
| 171 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 109 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ; |
| 172 | sp:predicate rdf:type ; | 110 | sp:predicate rdf:type ; |
| 173 | sp:subject | 111 | sp:subject |
| 174 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 112 | + [ sp:varName "productionFlowNetwork"^^xsd:string |
| 175 | ] | 113 | ] |
| 176 | ] [ sp:object | 114 | ] [ sp:object |
| 177 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 115 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string |
| 178 | ] ; | 116 | ] ; |
| 179 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 117 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 180 | sp:subject | 118 | sp:subject |
| 181 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 119 | + [ sp:varName "productionFlowNetwork"^^xsd:string |
| 182 | ] | 120 | ] |
| 183 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 121 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ; |
| 184 | sp:predicate rdf:type ; | 122 | sp:predicate rdf:type ; |
| 185 | sp:subject | 123 | sp:subject |
| 186 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 124 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string |
| 187 | - ] | ||
| 188 | - ]) | ||
| 189 | - ] ; | ||
| 190 | - spin:rule | ||
| 191 | - [ rdf:type sp:Construct ; | ||
| 192 | - rdfs:comment """STEP 20060 Set the facility operator | ||
| 193 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 194 | - sp:templates ([ sp:object _:b1 ; | ||
| 195 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 196 | - sp:subject | ||
| 197 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 198 | ] | 125 | ] |
| 199 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 200 | - sp:predicate rdf:type ; | ||
| 201 | - sp:subject _:b1 | ||
| 202 | - ] [ sp:object | ||
| 203 | - [ sp:varName "operator"^^xsd:string | ||
| 204 | - ] ; | ||
| 205 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 206 | - sp:subject _:b1 | ||
| 207 | - ]) ; | ||
| 208 | - sp:where ([ sp:object | ||
| 209 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 210 | - ] ; | ||
| 211 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 212 | - sp:subject spin:_this | ||
| 213 | ] [ sp:object | 126 | ] [ sp:object |
| 214 | [ sp:varName "productVolumeRef"^^xsd:string | 127 | [ sp:varName "productVolumeRef"^^xsd:string |
| 215 | ] ; | 128 | ] ; |
| 216 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 129 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 217 | sp:subject | 130 | sp:subject |
| 218 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 131 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 219 | - ] | ||
| 220 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 221 | - sp:predicate rdf:type ; | ||
| 222 | - sp:subject | ||
| 223 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 224 | ] | 132 | ] |
| 225 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 133 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ; |
| 226 | sp:predicate rdf:type ; | 134 | sp:predicate rdf:type ; |
| 227 | sp:subject | 135 | sp:subject |
| 228 | - [ sp:varName "productVolumeRef"^^xsd:string | 136 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 229 | - ] | ||
| 230 | - ] [ sp:object | ||
| 231 | - [ sp:varName "operatorRef"^^xsd:string | ||
| 232 | - ] ; | ||
| 233 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
| 234 | - sp:subject | ||
| 235 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 236 | ] | 137 | ] |
| 237 | ] [ sp:object | 138 | ] [ sp:object |
| 238 | - [ sp:varName "operatorRef"^^xsd:string | 139 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string |
| 239 | - ] ; | ||
| 240 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 241 | - sp:subject | ||
| 242 | - [ sp:varName "operator"^^xsd:string | ||
| 243 | - ] | ||
| 244 | - ]) | ||
| 245 | - ] ; | ||
| 246 | - spin:rule | ||
| 247 | - [ rdf:type sp:Construct ; | ||
| 248 | - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; | ||
| 249 | - sp:templates ([ sp:object | ||
| 250 | - [ sp:varName "contextFacility"^^xsd:string | ||
| 251 | ] ; | 140 | ] ; |
| 252 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 141 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 253 | sp:subject | 142 | sp:subject |
| 254 | - [ sp:varName "productionFacility"^^xsd:string | 143 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 255 | ] | 144 | ] |
| 256 | - ]) ; | 145 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; |
| 257 | - sp:where ([ sp:object | ||
| 258 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 259 | - ] ; | ||
| 260 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 261 | - sp:subject spin:_this | ||
| 262 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 263 | sp:predicate rdf:type ; | 146 | sp:predicate rdf:type ; |
| 264 | sp:subject | 147 | sp:subject |
| 265 | - [ sp:varName "productVolumeRef"^^xsd:string | 148 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string |
| 266 | ] | 149 | ] |
| 267 | ] [ sp:object | 150 | ] [ sp:object |
| 268 | - [ sp:varName "installationRef"^^xsd:string | ||
| 269 | - ] ; | ||
| 270 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 271 | - sp:subject | ||
| 272 | [ sp:varName "productVolumeRef"^^xsd:string | 151 | [ sp:varName "productVolumeRef"^^xsd:string |
| 273 | - ] | ||
| 274 | - ] [ sp:object | ||
| 275 | - [ sp:varName "installationRef"^^xsd:string | ||
| 276 | ] ; | 152 | ] ; |
| 277 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 153 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 278 | sp:subject | 154 | sp:subject |
| 279 | - [ sp:varName "productionFacility"^^xsd:string | 155 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 280 | ] | 156 | ] |
| 281 | - ] [ sp:object | 157 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 282 | - [ sp:varName "contextFacilityRef"^^xsd:string | 158 | + sp:predicate rdf:type ; |
| 283 | - ] ; | ||
| 284 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 285 | sp:subject | 159 | sp:subject |
| 286 | - [ sp:varName "productVolumeRef"^^xsd:string | 160 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 287 | ] | 161 | ] |
| 288 | ] [ sp:object | 162 | ] [ sp:object |
| 289 | - [ sp:varName "contextFacilityRef"^^xsd:string | 163 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 290 | ] ; | 164 | ] ; |
| 291 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 165 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 292 | sp:subject | 166 | sp:subject |
| 293 | - [ sp:varName "contextFacility"^^xsd:string | 167 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 168 | + ] | ||
| 169 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 170 | + sp:predicate rdf:type ; | ||
| 171 | + sp:subject | ||
| 172 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 294 | ] | 173 | ] |
| 295 | ]) | 174 | ]) |
| 296 | ] ; | 175 | ] ; |
| 297 | spin:rule | 176 | spin:rule |
| 298 | [ rdf:type sp:Construct ; | 177 | [ rdf:type sp:Construct ; |
| 299 | - rdfs:comment "STEP 20012 Create the period ProductionInventoryCollection and the ProductionInventoryCollectionToDate."^^xsd:string ; | 178 | + rdfs:comment "STEP 20011 Create the reporting period ProductionFlowNetwork and the ProductionFlowNetworkToDate."^^xsd:string ; |
| 300 | - sp:templates ([ sp:object _:b2 ; | 179 | + sp:templates ([ sp:object _:b1 ; |
| 301 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 180 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
| 302 | sp:subject | 181 | sp:subject |
| 303 | [ sp:varName "productVolumeReport"^^xsd:string | 182 | [ sp:varName "productVolumeReport"^^xsd:string |
| 304 | ] | 183 | ] |
| 305 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ; | 184 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ; |
| 306 | sp:predicate rdf:type ; | 185 | sp:predicate rdf:type ; |
| 307 | - sp:subject _:b2 | 186 | + sp:subject _:b1 |
| 308 | ] [ sp:object | 187 | ] [ sp:object |
| 309 | [ sp:varName "temporalPartDurationType"^^xsd:string | 188 | [ sp:varName "temporalPartDurationType"^^xsd:string |
| 310 | ] ; | 189 | ] ; |
| 311 | sp:predicate rdf:type ; | 190 | sp:predicate rdf:type ; |
| 312 | - sp:subject _:b2 | 191 | + sp:subject _:b1 |
| 313 | ] [ sp:object | 192 | ] [ sp:object |
| 314 | [ sp:varName "productVolumeRef"^^xsd:string | 193 | [ sp:varName "productVolumeRef"^^xsd:string |
| 315 | ] ; | 194 | ] ; |
| 316 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 195 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 317 | - sp:subject _:b2 | 196 | + sp:subject _:b1 |
| 318 | - ] [ sp:object _:b3 ; | ||
| 319 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 320 | - sp:subject _:b2 | ||
| 321 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; | ||
| 322 | - sp:predicate rdf:type ; | ||
| 323 | - sp:subject _:b3 | ||
| 324 | ] [ sp:object _:b2 ; | 197 | ] [ sp:object _:b2 ; |
| 325 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 198 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 199 | + sp:subject _:b1 | ||
| 200 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ; | ||
| 201 | + sp:predicate rdf:type ; | ||
| 202 | + sp:subject _:b2 | ||
| 203 | + ] [ sp:object _:b1 ; | ||
| 204 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 326 | sp:subject | 205 | sp:subject |
| 327 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 206 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 328 | ] | 207 | ] |
| 329 | - ] [ sp:object _:b3 ; | 208 | + ] [ sp:object _:b2 ; |
| 330 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 209 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 331 | sp:subject | 210 | sp:subject |
| 332 | [ sp:varName "productionFacilityToDate"^^xsd:string | 211 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 333 | ] | 212 | ] |
| ... | @@ -412,11 +291,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -412,11 +291,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 412 | sp:subject | 291 | sp:subject |
| 413 | [ sp:varName "facilityRef"^^xsd:string | 292 | [ sp:varName "facilityRef"^^xsd:string |
| 414 | ] | 293 | ] |
| 415 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; | 294 | + ] [ sp:object |
| 295 | + [ sp:varName "flowKind"^^xsd:string | ||
| 296 | + ] ; | ||
| 416 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 297 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 417 | sp:subject | 298 | sp:subject |
| 418 | [ sp:varName "flowRef"^^xsd:string | 299 | [ sp:varName "flowRef"^^xsd:string |
| 419 | ] | 300 | ] |
| 301 | + ] [ rdf:type sp:Bind ; | ||
| 302 | + sp:expression | ||
| 303 | + [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ; | ||
| 304 | + sp:arg1 [ sp:varName "flowKind"^^xsd:string | ||
| 305 | + ] | ||
| 306 | + ] ; | ||
| 307 | + sp:variable | ||
| 308 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
| 309 | + ] | ||
| 310 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ; | ||
| 311 | + sp:predicate rdf:type ; | ||
| 312 | + sp:subject | ||
| 313 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
| 314 | + ] | ||
| 420 | ]) | 315 | ]) |
| 421 | ] [ rdf:type sp:Bind ; | 316 | ] [ rdf:type sp:Bind ; |
| 422 | sp:expression | 317 | sp:expression |
| ... | @@ -431,95 +326,62 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -431,95 +326,62 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 431 | ] ; | 326 | ] ; |
| 432 | spin:rule | 327 | spin:rule |
| 433 | [ rdf:type sp:Construct ; | 328 | [ rdf:type sp:Construct ; |
| 434 | - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | 329 | + rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ; |
| 435 | sp:templates ([ sp:object | 330 | sp:templates ([ sp:object |
| 436 | - [ sp:varName "dTimStart"^^xsd:string | 331 | + [ sp:varName "dateStart"^^xsd:string |
| 437 | ] ; | 332 | ] ; |
| 438 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 333 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 439 | sp:subject | 334 | sp:subject |
| 440 | [ sp:varName "productionFlowNetwork"^^xsd:string | 335 | [ sp:varName "productionFlowNetwork"^^xsd:string |
| 441 | ] | 336 | ] |
| 442 | ] [ sp:object | 337 | ] [ sp:object |
| 443 | - [ sp:varName "dTimEnd"^^xsd:string | 338 | + [ sp:varName "dateStart"^^xsd:string |
| 444 | - ] ; | ||
| 445 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 446 | - sp:subject | ||
| 447 | - [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 448 | - ] | ||
| 449 | - ] [ sp:object | ||
| 450 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 451 | - ] ; | ||
| 452 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 453 | - sp:subject | ||
| 454 | - [ sp:varName "productionFlowNetworkToDate"^^xsd:string | ||
| 455 | - ] | ||
| 456 | - ] [ sp:object | ||
| 457 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 458 | ] ; | 339 | ] ; |
| 459 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 340 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 460 | sp:subject | 341 | sp:subject |
| 461 | [ sp:varName "productionInventoryCollection"^^xsd:string | 342 | [ sp:varName "productionInventoryCollection"^^xsd:string |
| 462 | ] | 343 | ] |
| 463 | ] [ sp:object | 344 | ] [ sp:object |
| 464 | - [ sp:varName "dTimEnd"^^xsd:string | 345 | + [ sp:varName "dateStart"^^xsd:string |
| 465 | - ] ; | ||
| 466 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 467 | - sp:subject | ||
| 468 | - [ sp:varName "productionInventoryCollection"^^xsd:string | ||
| 469 | - ] | ||
| 470 | - ] [ sp:object | ||
| 471 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 472 | - ] ; | ||
| 473 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 474 | - sp:subject | ||
| 475 | - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string | ||
| 476 | - ] | ||
| 477 | - ] [ sp:object | ||
| 478 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 479 | ] ; | 346 | ] ; |
| 480 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 347 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 481 | sp:subject | 348 | sp:subject |
| 482 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 349 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 483 | ] | 350 | ] |
| 484 | - ] [ sp:object | ||
| 485 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 486 | - ] ; | ||
| 487 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 488 | - sp:subject | ||
| 489 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 490 | - ] | ||
| 491 | - ] [ sp:object | ||
| 492 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 493 | - ] ; | ||
| 494 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 495 | - sp:subject | ||
| 496 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 497 | - ] | ||
| 498 | ]) ; | 351 | ]) ; |
| 499 | sp:where ([ sp:object | 352 | sp:where ([ sp:object |
| 500 | [ sp:varName "productVolumeRef"^^xsd:string | 353 | [ sp:varName "productVolumeRef"^^xsd:string |
| 501 | ] ; | 354 | ] ; |
| 502 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 355 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 503 | sp:subject spin:_this | 356 | sp:subject spin:_this |
| 357 | + ] [ sp:object | ||
| 358 | + [ sp:varName "dateStart"^^xsd:string | ||
| 359 | + ] ; | ||
| 360 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 361 | + sp:subject spin:_this | ||
| 504 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 362 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 505 | sp:predicate rdf:type ; | 363 | sp:predicate rdf:type ; |
| 506 | sp:subject | 364 | sp:subject |
| 507 | [ sp:varName "productVolumeRef"^^xsd:string | 365 | [ sp:varName "productVolumeRef"^^xsd:string |
| 508 | ] | 366 | ] |
| 509 | - ] [ sp:object | 367 | + ] [ rdf:type sp:NotExists ; |
| 510 | - [ sp:varName "dTimStart"^^xsd:string | 368 | + sp:elements ([ sp:object |
| 369 | + [ sp:varName "dateStartx"^^xsd:string | ||
| 511 | ] ; | 370 | ] ; |
| 512 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 371 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 513 | sp:subject | 372 | sp:subject |
| 514 | [ sp:varName "productVolumeRef"^^xsd:string | 373 | [ sp:varName "productVolumeRef"^^xsd:string |
| 515 | ] | 374 | ] |
| 516 | - ] [ sp:object | 375 | + ]) |
| 517 | - [ sp:varName "dTimEnd"^^xsd:string | 376 | + ] [ rdf:type sp:NotExists ; |
| 377 | + sp:elements ([ sp:object | ||
| 378 | + [ sp:varName "dTimStartx"^^xsd:string | ||
| 518 | ] ; | 379 | ] ; |
| 519 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 380 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
| 520 | sp:subject | 381 | sp:subject |
| 521 | [ sp:varName "productVolumeRef"^^xsd:string | 382 | [ sp:varName "productVolumeRef"^^xsd:string |
| 522 | ] | 383 | ] |
| 384 | + ]) | ||
| 523 | ] [ sp:object | 385 | ] [ sp:object |
| 524 | [ sp:varName "productVolumeRef"^^xsd:string | 386 | [ sp:varName "productVolumeRef"^^xsd:string |
| 525 | ] ; | 387 | ] ; |
| ... | @@ -566,7 +428,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -566,7 +428,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 566 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; | 428 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; |
| 567 | sp:predicate rdf:type ; | 429 | sp:predicate rdf:type ; |
| 568 | sp:subject | 430 | sp:subject |
| 569 | - [ sp:varName "productionInventoryCollecctionToDate"^^xsd:string | 431 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string |
| 570 | ] | 432 | ] |
| 571 | ] [ sp:object | 433 | ] [ sp:object |
| 572 | [ sp:varName "productVolumeRef"^^xsd:string | 434 | [ sp:varName "productVolumeRef"^^xsd:string |
| ... | @@ -599,168 +461,51 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -599,168 +461,51 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 599 | rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 461 | rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; |
| 600 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 462 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; |
| 601 | sp:predicate rdf:type ; | 463 | sp:predicate rdf:type ; |
| 602 | - sp:subject _:b4 | 464 | + sp:subject _:b3 |
| 603 | ] [ sp:object | 465 | ] [ sp:object |
| 604 | [ sp:varName "productionReport"^^xsd:string | 466 | [ sp:varName "productionReport"^^xsd:string |
| 605 | ] ; | 467 | ] ; |
| 606 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 468 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
| 607 | - sp:subject _:b4 | 469 | + sp:subject _:b3 |
| 608 | ] [ sp:object | 470 | ] [ sp:object |
| 609 | [ sp:varName "name"^^xsd:string | 471 | [ sp:varName "name"^^xsd:string |
| 610 | ] ; | 472 | ] ; |
| 611 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 473 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 612 | - sp:subject _:b4 | 474 | + sp:subject _:b3 |
| 613 | ] [ sp:object | 475 | ] [ sp:object |
| 614 | [ sp:varName "reportPeriodType"^^xsd:string | 476 | [ sp:varName "reportPeriodType"^^xsd:string |
| 615 | ] ; | 477 | ] ; |
| 616 | sp:predicate rdf:type ; | 478 | sp:predicate rdf:type ; |
| 617 | - sp:subject _:b4 | 479 | + sp:subject _:b3 |
| 618 | ] [ sp:object | 480 | ] [ sp:object |
| 619 | [ sp:varName "productVolumeRef"^^xsd:string | 481 | [ sp:varName "productVolumeRef"^^xsd:string |
| 620 | ] ; | 482 | ] ; |
| 621 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 483 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 622 | - sp:subject _:b4 | 484 | + sp:subject _:b3 |
| 623 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 485 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 624 | sp:predicate rdf:type ; | 486 | sp:predicate rdf:type ; |
| 625 | - sp:subject _:b5 | 487 | + sp:subject _:b4 |
| 626 | ] [ sp:object | 488 | ] [ sp:object |
| 627 | [ sp:varName "temporalPartDurationType"^^xsd:string | 489 | [ sp:varName "temporalPartDurationType"^^xsd:string |
| 628 | ] ; | 490 | ] ; |
| 629 | sp:predicate rdf:type ; | 491 | sp:predicate rdf:type ; |
| 630 | - sp:subject _:b5 | 492 | + sp:subject _:b4 |
| 631 | ] [ sp:object | 493 | ] [ sp:object |
| 632 | [ sp:varName "productVolumeRef"^^xsd:string | 494 | [ sp:varName "productVolumeRef"^^xsd:string |
| 633 | ] ; | 495 | ] ; |
| 634 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 496 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 635 | - sp:subject _:b5 | 497 | + sp:subject _:b4 |
| 636 | - ] [ sp:object _:b6 ; | 498 | + ] [ sp:object _:b5 ; |
| 637 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 499 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 638 | - sp:subject _:b5 | 500 | + sp:subject _:b4 |
| 639 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 501 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 640 | sp:predicate rdf:type ; | 502 | sp:predicate rdf:type ; |
| 641 | - sp:subject _:b6 | 503 | + sp:subject _:b5 |
| 642 | ] [ sp:object | 504 | ] [ sp:object |
| 643 | [ sp:varName "title"^^xsd:string | 505 | [ sp:varName "title"^^xsd:string |
| 644 | ] ; | 506 | ] ; |
| 645 | sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ; | 507 | sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ; |
| 646 | - sp:subject _:b4 | 508 | + sp:subject _:b3 |
| 647 | - ]) ; | ||
| 648 | - sp:where ([ sp:object spin:_this ; | ||
| 649 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 650 | - sp:subject | ||
| 651 | - [ sp:varName "productionReport"^^xsd:string | ||
| 652 | - ] | ||
| 653 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 654 | - sp:predicate rdf:type ; | ||
| 655 | - sp:subject | ||
| 656 | - [ sp:varName "productionReport"^^xsd:string | ||
| 657 | - ] | ||
| 658 | - ] [ sp:object | ||
| 659 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 660 | - ] ; | ||
| 661 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 662 | - sp:subject spin:_this | ||
| 663 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 664 | - sp:predicate rdf:type ; | ||
| 665 | - sp:subject | ||
| 666 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 667 | - ] | ||
| 668 | - ] [ sp:object | ||
| 669 | - [ sp:varName "nameRef"^^xsd:string | ||
| 670 | - ] ; | ||
| 671 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 672 | - sp:subject | ||
| 673 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 674 | - ] | ||
| 675 | - ] [ sp:object | ||
| 676 | - [ sp:varName "name"^^xsd:string | ||
| 677 | - ] ; | ||
| 678 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 679 | - sp:subject | ||
| 680 | - [ sp:varName "nameRef"^^xsd:string | ||
| 681 | - ] | ||
| 682 | - ] [ rdf:type sp:Optional ; | ||
| 683 | - sp:elements ([ sp:object | ||
| 684 | - [ sp:varName "periodKindRef"^^xsd:string | ||
| 685 | - ] ; | ||
| 686 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
| 687 | - sp:subject | ||
| 688 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 689 | - ] | ||
| 690 | - ]) | ||
| 691 | - ] [ rdf:type sp:Optional ; | ||
| 692 | - sp:elements ([ sp:object | ||
| 693 | - [ sp:varName "titleRef"^^xsd:string | ||
| 694 | - ] ; | ||
| 695 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 696 | - sp:subject | ||
| 697 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 698 | - ] | ||
| 699 | - ] [ sp:object | ||
| 700 | - [ sp:varName "title"^^xsd:string | ||
| 701 | - ] ; | ||
| 702 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 703 | - sp:subject | ||
| 704 | - [ sp:varName "titleRef"^^xsd:string | ||
| 705 | - ] | ||
| 706 | - ]) | ||
| 707 | - ] [ rdf:type sp:Bind ; | ||
| 708 | - sp:expression | ||
| 709 | - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
| 710 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 711 | - ] | ||
| 712 | - ] ; | ||
| 713 | - sp:variable | ||
| 714 | - [ sp:varName "reportPeriodType"^^xsd:string | ||
| 715 | - ] | ||
| 716 | - ] [ rdf:type sp:Bind ; | ||
| 717 | - sp:expression | ||
| 718 | - [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ; | ||
| 719 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 720 | - ] | ||
| 721 | - ] ; | ||
| 722 | - sp:variable | ||
| 723 | - [ sp:varName "temporalPartDurationType"^^xsd:string | ||
| 724 | - ] | ||
| 725 | - ]) | ||
| 726 | - ] ; | ||
| 727 | - spin:rule | ||
| 728 | - [ rdf:type sp:Construct ; | ||
| 729 | - rdfs:comment "STEP 20011 Create the reporting period ProductionFlowNetwork and the ProductionFlowNetworkToDate."^^xsd:string ; | ||
| 730 | - sp:templates ([ sp:object _:b7 ; | ||
| 731 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 732 | - sp:subject | ||
| 733 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 734 | - ] | ||
| 735 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ; | ||
| 736 | - sp:predicate rdf:type ; | ||
| 737 | - sp:subject _:b7 | ||
| 738 | - ] [ sp:object | ||
| 739 | - [ sp:varName "temporalPartDurationType"^^xsd:string | ||
| 740 | - ] ; | ||
| 741 | - sp:predicate rdf:type ; | ||
| 742 | - sp:subject _:b7 | ||
| 743 | - ] [ sp:object | ||
| 744 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 745 | - ] ; | ||
| 746 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 747 | - sp:subject _:b7 | ||
| 748 | - ] [ sp:object _:b8 ; | ||
| 749 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 750 | - sp:subject _:b7 | ||
| 751 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ; | ||
| 752 | - sp:predicate rdf:type ; | ||
| 753 | - sp:subject _:b8 | ||
| 754 | - ] [ sp:object _:b7 ; | ||
| 755 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 756 | - sp:subject | ||
| 757 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 758 | - ] | ||
| 759 | - ] [ sp:object _:b8 ; | ||
| 760 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 761 | - sp:subject | ||
| 762 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 763 | - ] | ||
| 764 | ]) ; | 509 | ]) ; |
| 765 | sp:where ([ sp:object spin:_this ; | 510 | sp:where ([ sp:object spin:_this ; |
| 766 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 511 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -775,48 +520,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -775,48 +520,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 775 | ] [ sp:object | 520 | ] [ sp:object |
| 776 | [ sp:varName "productVolumeRef"^^xsd:string | 521 | [ sp:varName "productVolumeRef"^^xsd:string |
| 777 | ] ; | 522 | ] ; |
| 778 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 523 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 779 | - sp:subject spin:_this | 524 | + sp:subject spin:_this |
| 780 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 525 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 781 | - sp:predicate rdf:type ; | ||
| 782 | - sp:subject | ||
| 783 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 784 | - ] | ||
| 785 | - ] [ sp:object | ||
| 786 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 787 | - ] ; | ||
| 788 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 789 | - sp:subject | ||
| 790 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 791 | - ] | ||
| 792 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
| 793 | - sp:predicate rdf:type ; | ||
| 794 | - sp:subject | ||
| 795 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
| 796 | - ] | ||
| 797 | - ] [ sp:object | ||
| 798 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 799 | - ] ; | ||
| 800 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 801 | - sp:subject | ||
| 802 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 803 | - ] | ||
| 804 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 805 | sp:predicate rdf:type ; | 526 | sp:predicate rdf:type ; |
| 806 | sp:subject | 527 | sp:subject |
| 807 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 528 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 808 | ] | 529 | ] |
| 809 | ] [ sp:object | 530 | ] [ sp:object |
| 810 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 531 | + [ sp:varName "nameRef"^^xsd:string |
| 811 | ] ; | 532 | ] ; |
| 812 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 533 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 813 | sp:subject | 534 | sp:subject |
| 814 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 535 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 815 | ] | 536 | ] |
| 816 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 537 | + ] [ sp:object |
| 817 | - sp:predicate rdf:type ; | 538 | + [ sp:varName "name"^^xsd:string |
| 539 | + ] ; | ||
| 540 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 818 | sp:subject | 541 | sp:subject |
| 819 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 542 | + [ sp:varName "nameRef"^^xsd:string |
| 820 | ] | 543 | ] |
| 821 | ] [ rdf:type sp:Optional ; | 544 | ] [ rdf:type sp:Optional ; |
| 822 | sp:elements ([ sp:object | 545 | sp:elements ([ sp:object |
| ... | @@ -827,43 +550,31 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -827,43 +550,31 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 827 | [ sp:varName "productVolumeRef"^^xsd:string | 550 | [ sp:varName "productVolumeRef"^^xsd:string |
| 828 | ] | 551 | ] |
| 829 | ]) | 552 | ]) |
| 830 | - ] [ rdf:type sp:Exists ; | 553 | + ] [ rdf:type sp:Optional ; |
| 831 | sp:elements ([ sp:object | 554 | sp:elements ([ sp:object |
| 832 | - [ sp:varName "facilityRef"^^xsd:string | 555 | + [ sp:varName "titleRef"^^xsd:string |
| 833 | ] ; | 556 | ] ; |
| 834 | - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | 557 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; |
| 835 | sp:subject | 558 | sp:subject |
| 836 | [ sp:varName "productVolumeRef"^^xsd:string | 559 | [ sp:varName "productVolumeRef"^^xsd:string |
| 837 | ] | 560 | ] |
| 838 | ] [ sp:object | 561 | ] [ sp:object |
| 839 | - [ sp:varName "flowRef"^^xsd:string | 562 | + [ sp:varName "title"^^xsd:string |
| 840 | - ] ; | ||
| 841 | - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; | ||
| 842 | - sp:subject | ||
| 843 | - [ sp:varName "facilityRef"^^xsd:string | ||
| 844 | - ] | ||
| 845 | - ] [ sp:object | ||
| 846 | - [ sp:varName "flowKind"^^xsd:string | ||
| 847 | ] ; | 563 | ] ; |
| 848 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 564 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 849 | sp:subject | 565 | sp:subject |
| 850 | - [ sp:varName "flowRef"^^xsd:string | 566 | + [ sp:varName "titleRef"^^xsd:string |
| 851 | ] | 567 | ] |
| 568 | + ]) | ||
| 852 | ] [ rdf:type sp:Bind ; | 569 | ] [ rdf:type sp:Bind ; |
| 853 | sp:expression | 570 | sp:expression |
| 854 | - [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ; | 571 | + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; |
| 855 | - sp:arg1 [ sp:varName "flowKind"^^xsd:string | 572 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string |
| 856 | ] | 573 | ] |
| 857 | ] ; | 574 | ] ; |
| 858 | sp:variable | 575 | sp:variable |
| 859 | - [ sp:varName "productionFlowPurposeType"^^xsd:string | 576 | + [ sp:varName "reportPeriodType"^^xsd:string |
| 860 | - ] | ||
| 861 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ; | ||
| 862 | - sp:predicate rdf:type ; | ||
| 863 | - sp:subject | ||
| 864 | - [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
| 865 | ] | 577 | ] |
| 866 | - ]) | ||
| 867 | ] [ rdf:type sp:Bind ; | 578 | ] [ rdf:type sp:Bind ; |
| 868 | sp:expression | 579 | sp:expression |
| 869 | [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ; | 580 | [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ; |
| ... | @@ -877,6 +588,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -877,6 +588,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 877 | ] ; | 588 | ] ; |
| 878 | spin:rule | 589 | spin:rule |
| 879 | [ rdf:type sp:Construct ; | 590 | [ rdf:type sp:Construct ; |
| 591 | + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; | ||
| 592 | + sp:templates ([ sp:object | ||
| 593 | + [ sp:varName "contextFacility"^^xsd:string | ||
| 594 | + ] ; | ||
| 595 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 596 | + sp:subject | ||
| 597 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 598 | + ] | ||
| 599 | + ]) ; | ||
| 600 | + sp:where ([ sp:object | ||
| 601 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 602 | + ] ; | ||
| 603 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 604 | + sp:subject spin:_this | ||
| 605 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 606 | + sp:predicate rdf:type ; | ||
| 607 | + sp:subject | ||
| 608 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 609 | + ] | ||
| 610 | + ] [ sp:object | ||
| 611 | + [ sp:varName "installationRef"^^xsd:string | ||
| 612 | + ] ; | ||
| 613 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 614 | + sp:subject | ||
| 615 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 616 | + ] | ||
| 617 | + ] [ sp:object | ||
| 618 | + [ sp:varName "installationRef"^^xsd:string | ||
| 619 | + ] ; | ||
| 620 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 621 | + sp:subject | ||
| 622 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 623 | + ] | ||
| 624 | + ] [ sp:object | ||
| 625 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 626 | + ] ; | ||
| 627 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 628 | + sp:subject | ||
| 629 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 630 | + ] | ||
| 631 | + ] [ sp:object | ||
| 632 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 633 | + ] ; | ||
| 634 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 635 | + sp:subject | ||
| 636 | + [ sp:varName "contextFacility"^^xsd:string | ||
| 637 | + ] | ||
| 638 | + ]) | ||
| 639 | + ] ; | ||
| 640 | + spin:rule | ||
| 641 | + [ rdf:type sp:Construct ; | ||
| 880 | rdfs:comment "STEP 20040 Set the production facility - supplied"^^xsd:string ; | 642 | rdfs:comment "STEP 20040 Set the production facility - supplied"^^xsd:string ; |
| 881 | sp:templates ([ sp:object | 643 | sp:templates ([ sp:object |
| 882 | [ sp:varName "productionFacility"^^xsd:string | 644 | [ sp:varName "productionFacility"^^xsd:string |
| ... | @@ -967,154 +729,303 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -967,154 +729,303 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 967 | ] ; | 729 | ] ; |
| 968 | spin:rule | 730 | spin:rule |
| 969 | [ rdf:type sp:Construct ; | 731 | [ rdf:type sp:Construct ; |
| 970 | - rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ; | 732 | + rdfs:comment "STEP 20041 Set the production facility - taken from context"^^xsd:string ; |
| 971 | sp:templates ([ sp:object | 733 | sp:templates ([ sp:object |
| 972 | - [ sp:varName "dateEnd"^^xsd:string | 734 | + [ sp:varName "productionFacility"^^xsd:string |
| 973 | ] ; | 735 | ] ; |
| 974 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 736 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 975 | sp:subject | 737 | sp:subject |
| 976 | - [ sp:varName "productionFlowNetwork"^^xsd:string | 738 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 977 | ] | 739 | ] |
| 978 | ] [ sp:object | 740 | ] [ sp:object |
| 979 | - [ sp:varName "dateEnd"^^xsd:string | 741 | + [ sp:varName "productionFacility"^^xsd:string |
| 980 | ] ; | 742 | ] ; |
| 981 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 743 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 982 | sp:subject | 744 | sp:subject |
| 983 | - [ sp:varName "productionFlowNetworkToDate"^^xsd:string | 745 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 984 | ] | 746 | ] |
| 985 | ] [ sp:object | 747 | ] [ sp:object |
| 986 | - [ sp:varName "dateEnd"^^xsd:string | 748 | + [ sp:varName "normalizedProductionFacilityName"^^xsd:string |
| 987 | ] ; | 749 | ] ; |
| 988 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 750 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 989 | sp:subject | 751 | sp:subject |
| 990 | - [ sp:varName "productionInventoryCollection"^^xsd:string | 752 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 753 | + ] | ||
| 754 | + ]) ; | ||
| 755 | + sp:where ([ sp:object spin:_this ; | ||
| 756 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 757 | + sp:subject | ||
| 758 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 759 | + ] | ||
| 760 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 761 | + sp:predicate rdf:type ; | ||
| 762 | + sp:subject | ||
| 763 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 991 | ] | 764 | ] |
| 992 | ] [ sp:object | 765 | ] [ sp:object |
| 993 | - [ sp:varName "dateEnd"^^xsd:string | 766 | + [ sp:varName "normalizedProductionFacilityName"^^xsd:string |
| 994 | ] ; | 767 | ] ; |
| 995 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 768 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 769 | + sp:subject spin:_this | ||
| 770 | + ] [ sp:object | ||
| 771 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 772 | + ] ; | ||
| 773 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 774 | + sp:subject spin:_this | ||
| 775 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 776 | + sp:predicate rdf:type ; | ||
| 996 | sp:subject | 777 | sp:subject |
| 997 | - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string | 778 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 779 | + ] | ||
| 780 | + ] [ rdf:type sp:NotExists ; | ||
| 781 | + sp:elements ([ sp:object | ||
| 782 | + [ sp:varName "installationRefx"^^xsd:string | ||
| 783 | + ] ; | ||
| 784 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 785 | + sp:subject | ||
| 786 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 998 | ] | 787 | ] |
| 788 | + ]) | ||
| 999 | ] [ sp:object | 789 | ] [ sp:object |
| 1000 | - [ sp:varName "dateEnd"^^xsd:string | 790 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1001 | ] ; | 791 | ] ; |
| 1002 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 792 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 793 | + sp:subject | ||
| 794 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 795 | + ] | ||
| 796 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 797 | + sp:predicate rdf:type ; | ||
| 1003 | sp:subject | 798 | sp:subject |
| 1004 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 799 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 1005 | ] | 800 | ] |
| 1006 | ] [ sp:object | 801 | ] [ sp:object |
| 1007 | - [ sp:varName "dateEnd"^^xsd:string | 802 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 1008 | ] ; | 803 | ] ; |
| 1009 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 804 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 805 | + sp:subject | ||
| 806 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 807 | + ] | ||
| 808 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 809 | + sp:predicate rdf:type ; | ||
| 810 | + sp:subject | ||
| 811 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 812 | + ] | ||
| 813 | + ]) | ||
| 814 | + ] ; | ||
| 815 | + spin:rule | ||
| 816 | + [ rdf:type sp:Construct ; | ||
| 817 | + rdfs:comment "STEP 20012 Create the period ProductionInventoryCollection and the ProductionInventoryCollectionToDate."^^xsd:string ; | ||
| 818 | + sp:templates ([ sp:object _:b6 ; | ||
| 819 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 820 | + sp:subject | ||
| 821 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 822 | + ] | ||
| 823 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ; | ||
| 824 | + sp:predicate rdf:type ; | ||
| 825 | + sp:subject _:b6 | ||
| 826 | + ] [ sp:object | ||
| 827 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
| 828 | + ] ; | ||
| 829 | + sp:predicate rdf:type ; | ||
| 830 | + sp:subject _:b6 | ||
| 831 | + ] [ sp:object | ||
| 832 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 833 | + ] ; | ||
| 834 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 835 | + sp:subject _:b6 | ||
| 836 | + ] [ sp:object _:b7 ; | ||
| 837 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 838 | + sp:subject _:b6 | ||
| 839 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; | ||
| 840 | + sp:predicate rdf:type ; | ||
| 841 | + sp:subject _:b7 | ||
| 842 | + ] [ sp:object _:b6 ; | ||
| 843 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
| 844 | + sp:subject | ||
| 845 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 846 | + ] | ||
| 847 | + ] [ sp:object _:b7 ; | ||
| 848 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
| 1010 | sp:subject | 849 | sp:subject |
| 1011 | [ sp:varName "productionFacilityToDate"^^xsd:string | 850 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 1012 | ] | 851 | ] |
| 1013 | ]) ; | 852 | ]) ; |
| 1014 | - sp:where ([ sp:object | 853 | + sp:where ([ sp:object spin:_this ; |
| 854 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 855 | + sp:subject | ||
| 856 | + [ sp:varName "productionReport"^^xsd:string | ||
| 857 | + ] | ||
| 858 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 859 | + sp:predicate rdf:type ; | ||
| 860 | + sp:subject | ||
| 861 | + [ sp:varName "productionReport"^^xsd:string | ||
| 862 | + ] | ||
| 863 | + ] [ sp:object | ||
| 1015 | [ sp:varName "productVolumeRef"^^xsd:string | 864 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1016 | ] ; | 865 | ] ; |
| 1017 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 866 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 1018 | sp:subject spin:_this | 867 | sp:subject spin:_this |
| 868 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 869 | + sp:predicate rdf:type ; | ||
| 870 | + sp:subject | ||
| 871 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 872 | + ] | ||
| 873 | + ] [ sp:object | ||
| 874 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 875 | + ] ; | ||
| 876 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 877 | + sp:subject | ||
| 878 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 879 | + ] | ||
| 880 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
| 881 | + sp:predicate rdf:type ; | ||
| 882 | + sp:subject | ||
| 883 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 884 | + ] | ||
| 885 | + ] [ sp:object | ||
| 886 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 887 | + ] ; | ||
| 888 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 889 | + sp:subject | ||
| 890 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 891 | + ] | ||
| 892 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 893 | + sp:predicate rdf:type ; | ||
| 894 | + sp:subject | ||
| 895 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 896 | + ] | ||
| 1019 | ] [ sp:object | 897 | ] [ sp:object |
| 1020 | - [ sp:varName "dateEnd"^^xsd:string | 898 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 1021 | ] ; | 899 | ] ; |
| 1022 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 900 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 1023 | - sp:subject spin:_this | 901 | + sp:subject |
| 1024 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 902 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 903 | + ] | ||
| 904 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1025 | sp:predicate rdf:type ; | 905 | sp:predicate rdf:type ; |
| 1026 | sp:subject | 906 | sp:subject |
| 1027 | - [ sp:varName "productVolumeRef"^^xsd:string | 907 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 1028 | ] | 908 | ] |
| 1029 | - ] [ rdf:type sp:NotExists ; | 909 | + ] [ rdf:type sp:Optional ; |
| 1030 | sp:elements ([ sp:object | 910 | sp:elements ([ sp:object |
| 1031 | - [ sp:varName "dateEndx"^^xsd:string | 911 | + [ sp:varName "periodKindRef"^^xsd:string |
| 1032 | ] ; | 912 | ] ; |
| 1033 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 913 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; |
| 1034 | sp:subject | 914 | sp:subject |
| 1035 | [ sp:varName "productVolumeRef"^^xsd:string | 915 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1036 | ] | 916 | ] |
| 1037 | ]) | 917 | ]) |
| 1038 | - ] [ rdf:type sp:NotExists ; | 918 | + ] [ rdf:type sp:Exists ; |
| 1039 | sp:elements ([ sp:object | 919 | sp:elements ([ sp:object |
| 1040 | - [ sp:varName "dTimEndx"^^xsd:string | 920 | + [ sp:varName "facilityRef"^^xsd:string |
| 1041 | ] ; | 921 | ] ; |
| 1042 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 922 | + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; |
| 1043 | sp:subject | 923 | sp:subject |
| 1044 | [ sp:varName "productVolumeRef"^^xsd:string | 924 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1045 | ] | 925 | ] |
| 1046 | - ]) | ||
| 1047 | ] [ sp:object | 926 | ] [ sp:object |
| 1048 | - [ sp:varName "productVolumeRef"^^xsd:string | 927 | + [ sp:varName "flowRef"^^xsd:string |
| 1049 | ] ; | 928 | ] ; |
| 1050 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 929 | + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; |
| 1051 | sp:subject | 930 | sp:subject |
| 1052 | - [ sp:varName "productionFlowNetwork"^^xsd:string | 931 | + [ sp:varName "facilityRef"^^xsd:string |
| 1053 | ] | 932 | ] |
| 1054 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ; | 933 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; |
| 1055 | - sp:predicate rdf:type ; | 934 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 1056 | sp:subject | 935 | sp:subject |
| 1057 | - [ sp:varName "productionFlowNetwork"^^xsd:string | 936 | + [ sp:varName "flowRef"^^xsd:string |
| 937 | + ] | ||
| 938 | + ]) | ||
| 939 | + ] [ rdf:type sp:Bind ; | ||
| 940 | + sp:expression | ||
| 941 | + [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ; | ||
| 942 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 1058 | ] | 943 | ] |
| 1059 | - ] [ sp:object | ||
| 1060 | - [ sp:varName "productionFlowNetworkToDate"^^xsd:string | ||
| 1061 | ] ; | 944 | ] ; |
| 1062 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 945 | + sp:variable |
| 1063 | - sp:subject | 946 | + [ sp:varName "temporalPartDurationType"^^xsd:string |
| 1064 | - [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 1065 | ] | 947 | ] |
| 1066 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ; | 948 | + ]) |
| 949 | + ] ; | ||
| 950 | + spin:rule | ||
| 951 | + [ rdf:type sp:Construct ; | ||
| 952 | + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; | ||
| 953 | + sp:templates ([ sp:object | ||
| 954 | + [ sp:varName "reportKind"^^xsd:string | ||
| 955 | + ] ; | ||
| 1067 | sp:predicate rdf:type ; | 956 | sp:predicate rdf:type ; |
| 1068 | sp:subject | 957 | sp:subject |
| 1069 | - [ sp:varName "productionFlowNetworkToDate"^^xsd:string | 958 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 1070 | ] | 959 | ] |
| 1071 | - ] [ sp:object | 960 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportType> ; |
| 1072 | - [ sp:varName "productVolumeRef"^^xsd:string | 961 | + sp:predicate rdf:type ; |
| 1073 | - ] ; | ||
| 1074 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1075 | sp:subject | 962 | sp:subject |
| 1076 | - [ sp:varName "productionInventoryCollection"^^xsd:string | 963 | + [ sp:varName "reportKind"^^xsd:string |
| 1077 | ] | 964 | ] |
| 1078 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ; | 965 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; |
| 1079 | - sp:predicate rdf:type ; | 966 | + sp:predicate rdfs:subClassOf ; |
| 1080 | sp:subject | 967 | sp:subject |
| 1081 | - [ sp:varName "productionInventoryCollection"^^xsd:string | 968 | + [ sp:varName "reportKind"^^xsd:string |
| 1082 | ] | 969 | ] |
| 1083 | ] [ sp:object | 970 | ] [ sp:object |
| 1084 | - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string | 971 | + [ sp:varName "kind"^^xsd:string |
| 1085 | ] ; | 972 | ] ; |
| 1086 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 973 | + sp:predicate rdfs:label ; |
| 1087 | sp:subject | 974 | sp:subject |
| 1088 | - [ sp:varName "productionInventoryCollection"^^xsd:string | 975 | + [ sp:varName "reportKind"^^xsd:string |
| 1089 | ] | 976 | ] |
| 1090 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; | 977 | + ]) ; |
| 978 | + sp:where ([ sp:object | ||
| 979 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 980 | + ] ; | ||
| 981 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 982 | + sp:subject spin:_this | ||
| 983 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1091 | sp:predicate rdf:type ; | 984 | sp:predicate rdf:type ; |
| 1092 | sp:subject | 985 | sp:subject |
| 1093 | - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string | 986 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1094 | ] | 987 | ] |
| 1095 | ] [ sp:object | 988 | ] [ sp:object |
| 1096 | [ sp:varName "productVolumeRef"^^xsd:string | 989 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1097 | ] ; | 990 | ] ; |
| 1098 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 991 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1099 | sp:subject | 992 | sp:subject |
| 1100 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 993 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 1101 | ] | 994 | ] |
| 1102 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 995 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; |
| 1103 | sp:predicate rdf:type ; | 996 | sp:predicate rdf:type ; |
| 1104 | sp:subject | 997 | sp:subject |
| 1105 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 998 | + [ sp:varName "productVolumeReport"^^xsd:string |
| 1106 | ] | 999 | ] |
| 1107 | ] [ sp:object | 1000 | ] [ sp:object |
| 1108 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 1001 | + [ sp:varName "nameRef"^^xsd:string |
| 1109 | ] ; | 1002 | ] ; |
| 1110 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1003 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 1111 | sp:subject | 1004 | sp:subject |
| 1112 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1005 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1113 | ] | 1006 | ] |
| 1114 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 1007 | + ] [ sp:object |
| 1115 | - sp:predicate rdf:type ; | 1008 | + [ sp:varName "name"^^xsd:string |
| 1009 | + ] ; | ||
| 1010 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1116 | sp:subject | 1011 | sp:subject |
| 1117 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 1012 | + [ sp:varName "nameRef"^^xsd:string |
| 1013 | + ] | ||
| 1014 | + ] [ sp:object | ||
| 1015 | + [ sp:varName "kind"^^xsd:string | ||
| 1016 | + ] ; | ||
| 1017 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 1018 | + sp:subject | ||
| 1019 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1020 | + ] | ||
| 1021 | + ] [ rdf:type sp:Bind ; | ||
| 1022 | + sp:expression | ||
| 1023 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 1024 | + sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 1025 | + ] | ||
| 1026 | + ] ; | ||
| 1027 | + sp:variable | ||
| 1028 | + [ sp:varName "reportKind"^^xsd:string | ||
| 1118 | ] | 1029 | ] |
| 1119 | ]) | 1030 | ]) |
| 1120 | ] ; | 1031 | ] ; |
| ... | @@ -1285,62 +1196,151 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1285,62 +1196,151 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1285 | ] ; | 1196 | ] ; |
| 1286 | spin:rule | 1197 | spin:rule |
| 1287 | [ rdf:type sp:Construct ; | 1198 | [ rdf:type sp:Construct ; |
| 1288 | - rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ; | 1199 | + rdfs:comment """STEP 20060 Set the facility operator |
| 1200 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 1201 | + sp:templates ([ sp:object _:b8 ; | ||
| 1202 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 1203 | + sp:subject | ||
| 1204 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1205 | + ] | ||
| 1206 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 1207 | + sp:predicate rdf:type ; | ||
| 1208 | + sp:subject _:b8 | ||
| 1209 | + ] [ sp:object | ||
| 1210 | + [ sp:varName "operator"^^xsd:string | ||
| 1211 | + ] ; | ||
| 1212 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1213 | + sp:subject _:b8 | ||
| 1214 | + ]) ; | ||
| 1215 | + sp:where ([ sp:object | ||
| 1216 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1217 | + ] ; | ||
| 1218 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 1219 | + sp:subject spin:_this | ||
| 1220 | + ] [ sp:object | ||
| 1221 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1222 | + ] ; | ||
| 1223 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1224 | + sp:subject | ||
| 1225 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1226 | + ] | ||
| 1227 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 1228 | + sp:predicate rdf:type ; | ||
| 1229 | + sp:subject | ||
| 1230 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1231 | + ] | ||
| 1232 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1233 | + sp:predicate rdf:type ; | ||
| 1234 | + sp:subject | ||
| 1235 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1236 | + ] | ||
| 1237 | + ] [ sp:object | ||
| 1238 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 1239 | + ] ; | ||
| 1240 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
| 1241 | + sp:subject | ||
| 1242 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1243 | + ] | ||
| 1244 | + ] [ sp:object | ||
| 1245 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 1246 | + ] ; | ||
| 1247 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1248 | + sp:subject | ||
| 1249 | + [ sp:varName "operator"^^xsd:string | ||
| 1250 | + ] | ||
| 1251 | + ]) | ||
| 1252 | + ] ; | ||
| 1253 | + spin:rule | ||
| 1254 | + [ rdf:type sp:Construct ; | ||
| 1255 | + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | ||
| 1289 | sp:templates ([ sp:object | 1256 | sp:templates ([ sp:object |
| 1290 | - [ sp:varName "dateStart"^^xsd:string | 1257 | + [ sp:varName "dTimStart"^^xsd:string |
| 1291 | ] ; | 1258 | ] ; |
| 1292 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1259 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 1293 | sp:subject | 1260 | sp:subject |
| 1294 | [ sp:varName "productionFlowNetwork"^^xsd:string | 1261 | [ sp:varName "productionFlowNetwork"^^xsd:string |
| 1295 | ] | 1262 | ] |
| 1296 | ] [ sp:object | 1263 | ] [ sp:object |
| 1297 | - [ sp:varName "dateStart"^^xsd:string | 1264 | + [ sp:varName "dTimEnd"^^xsd:string |
| 1265 | + ] ; | ||
| 1266 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1267 | + sp:subject | ||
| 1268 | + [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 1269 | + ] | ||
| 1270 | + ] [ sp:object | ||
| 1271 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 1272 | + ] ; | ||
| 1273 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1274 | + sp:subject | ||
| 1275 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string | ||
| 1276 | + ] | ||
| 1277 | + ] [ sp:object | ||
| 1278 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 1298 | ] ; | 1279 | ] ; |
| 1299 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1280 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 1300 | sp:subject | 1281 | sp:subject |
| 1301 | [ sp:varName "productionInventoryCollection"^^xsd:string | 1282 | [ sp:varName "productionInventoryCollection"^^xsd:string |
| 1302 | ] | 1283 | ] |
| 1303 | ] [ sp:object | 1284 | ] [ sp:object |
| 1304 | - [ sp:varName "dateStart"^^xsd:string | 1285 | + [ sp:varName "dTimEnd"^^xsd:string |
| 1286 | + ] ; | ||
| 1287 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1288 | + sp:subject | ||
| 1289 | + [ sp:varName "productionInventoryCollection"^^xsd:string | ||
| 1290 | + ] | ||
| 1291 | + ] [ sp:object | ||
| 1292 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 1293 | + ] ; | ||
| 1294 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1295 | + sp:subject | ||
| 1296 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string | ||
| 1297 | + ] | ||
| 1298 | + ] [ sp:object | ||
| 1299 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 1305 | ] ; | 1300 | ] ; |
| 1306 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1301 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 1307 | sp:subject | 1302 | sp:subject |
| 1308 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1303 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 1309 | ] | 1304 | ] |
| 1305 | + ] [ sp:object | ||
| 1306 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 1307 | + ] ; | ||
| 1308 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1309 | + sp:subject | ||
| 1310 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1311 | + ] | ||
| 1312 | + ] [ sp:object | ||
| 1313 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 1314 | + ] ; | ||
| 1315 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 1316 | + sp:subject | ||
| 1317 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1318 | + ] | ||
| 1310 | ]) ; | 1319 | ]) ; |
| 1311 | sp:where ([ sp:object | 1320 | sp:where ([ sp:object |
| 1312 | [ sp:varName "productVolumeRef"^^xsd:string | 1321 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1313 | ] ; | 1322 | ] ; |
| 1314 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 1323 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 1315 | sp:subject spin:_this | 1324 | sp:subject spin:_this |
| 1316 | - ] [ sp:object | ||
| 1317 | - [ sp:varName "dateStart"^^xsd:string | ||
| 1318 | - ] ; | ||
| 1319 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 1320 | - sp:subject spin:_this | ||
| 1321 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 1325 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
| 1322 | sp:predicate rdf:type ; | 1326 | sp:predicate rdf:type ; |
| 1323 | sp:subject | 1327 | sp:subject |
| 1324 | [ sp:varName "productVolumeRef"^^xsd:string | 1328 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1325 | ] | 1329 | ] |
| 1326 | - ] [ rdf:type sp:NotExists ; | 1330 | + ] [ sp:object |
| 1327 | - sp:elements ([ sp:object | 1331 | + [ sp:varName "dTimStart"^^xsd:string |
| 1328 | - [ sp:varName "dateStartx"^^xsd:string | ||
| 1329 | ] ; | 1332 | ] ; |
| 1330 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 1333 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
| 1331 | sp:subject | 1334 | sp:subject |
| 1332 | [ sp:varName "productVolumeRef"^^xsd:string | 1335 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1333 | ] | 1336 | ] |
| 1334 | - ]) | 1337 | + ] [ sp:object |
| 1335 | - ] [ rdf:type sp:NotExists ; | 1338 | + [ sp:varName "dTimEnd"^^xsd:string |
| 1336 | - sp:elements ([ sp:object | ||
| 1337 | - [ sp:varName "dTimStartx"^^xsd:string | ||
| 1338 | ] ; | 1339 | ] ; |
| 1339 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 1340 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
| 1340 | sp:subject | 1341 | sp:subject |
| 1341 | [ sp:varName "productVolumeRef"^^xsd:string | 1342 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1342 | ] | 1343 | ] |
| 1343 | - ]) | ||
| 1344 | ] [ sp:object | 1344 | ] [ sp:object |
| 1345 | [ sp:varName "productVolumeRef"^^xsd:string | 1345 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1346 | ] ; | 1346 | ] ; |
| ... | @@ -1387,7 +1387,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1387,7 +1387,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1387 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; | 1387 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; |
| 1388 | sp:predicate rdf:type ; | 1388 | sp:predicate rdf:type ; |
| 1389 | sp:subject | 1389 | sp:subject |
| 1390 | - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string | 1390 | + [ sp:varName "productionInventoryCollecctionToDate"^^xsd:string |
| 1391 | ] | 1391 | ] |
| 1392 | ] [ sp:object | 1392 | ] [ sp:object |
| 1393 | [ sp:varName "productVolumeRef"^^xsd:string | 1393 | [ sp:varName "productVolumeRef"^^xsd:string |
| ... | @@ -1418,5 +1418,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1418,5 +1418,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1418 | 1418 | ||
| 1419 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | 1419 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> |
| 1420 | rdf:type owl:Ontology ; | 1420 | rdf:type owl:Ontology ; |
| 1421 | - 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> ; | 1421 | + 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> ; |
| 1422 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1422 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment