Showing
1 changed file
with
175 additions
and
170 deletions
| ... | @@ -22,93 +22,6 @@ | ... | @@ -22,93 +22,6 @@ |
| 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 40020 Add the report kind ."^^xsd:string ; | ||
| 26 | - sp:templates ([ sp:object | ||
| 27 | - [ sp:varName "reportKind"^^xsd:string | ||
| 28 | - ] ; | ||
| 29 | - sp:predicate rdf:type ; | ||
| 30 | - sp:subject | ||
| 31 | - [ sp:varName "productionOperationReport"^^xsd:string | ||
| 32 | - ] | ||
| 33 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | ||
| 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 spin:_this ; | ||
| 52 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 53 | - sp:subject | ||
| 54 | - [ sp:varName "productionReport"^^xsd:string | ||
| 55 | - ] | ||
| 56 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
| 57 | - sp:predicate rdf:type ; | ||
| 58 | - sp:subject | ||
| 59 | - [ sp:varName "productionOperationReport"^^xsd:string | ||
| 60 | - ] | ||
| 61 | - ] [ sp:object | ||
| 62 | - [ sp:varName "productionReport"^^xsd:string | ||
| 63 | - ] ; | ||
| 64 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 65 | - sp:subject | ||
| 66 | - [ sp:varName "productionOperationReport"^^xsd:string | ||
| 67 | - ] | ||
| 68 | - ] [ sp:object | ||
| 69 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 70 | - ] ; | ||
| 71 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 72 | - sp:subject spin:_this | ||
| 73 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 74 | - sp:predicate rdf:type ; | ||
| 75 | - sp:subject | ||
| 76 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 77 | - ] | ||
| 78 | - ] [ sp:object | ||
| 79 | - [ sp:varName "nameRef"^^xsd:string | ||
| 80 | - ] ; | ||
| 81 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 82 | - sp:subject | ||
| 83 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 84 | - ] | ||
| 85 | - ] [ sp:object | ||
| 86 | - [ sp:varName "name"^^xsd:string | ||
| 87 | - ] ; | ||
| 88 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 89 | - sp:subject | ||
| 90 | - [ sp:varName "nameRef"^^xsd:string | ||
| 91 | - ] | ||
| 92 | - ] [ sp:object | ||
| 93 | - [ sp:varName "kind"^^xsd:string | ||
| 94 | - ] ; | ||
| 95 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 96 | - sp:subject | ||
| 97 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 98 | - ] | ||
| 99 | - ] [ rdf:type sp:Bind ; | ||
| 100 | - sp:expression | ||
| 101 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 102 | - sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 103 | - ] | ||
| 104 | - ] ; | ||
| 105 | - sp:variable | ||
| 106 | - [ sp:varName "reportKind"^^xsd:string | ||
| 107 | - ] | ||
| 108 | - ]) | ||
| 109 | - ] ; | ||
| 110 | - spin:rule | ||
| 111 | - [ rdf:type sp:Construct ; | ||
| 112 | rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 25 | rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; |
| 113 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | 26 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; |
| 114 | sp:predicate rdf:type ; | 27 | sp:predicate rdf:type ; |
| ... | @@ -156,6 +69,11 @@ | ... | @@ -156,6 +69,11 @@ |
| 156 | sp:subject | 69 | sp:subject |
| 157 | [ sp:varName "productionReport"^^xsd:string | 70 | [ sp:varName "productionReport"^^xsd:string |
| 158 | ] | 71 | ] |
| 72 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 73 | + sp:predicate rdf:type ; | ||
| 74 | + sp:subject | ||
| 75 | + [ sp:varName "productionReport"^^xsd:string | ||
| 76 | + ] | ||
| 159 | ] [ sp:object | 77 | ] [ sp:object |
| 160 | [ sp:varName "productionOperationRef"^^xsd:string | 78 | [ sp:varName "productionOperationRef"^^xsd:string |
| 161 | ] ; | 79 | ] ; |
| ... | @@ -218,25 +136,18 @@ | ... | @@ -218,25 +136,18 @@ |
| 218 | ] ; | 136 | ] ; |
| 219 | spin:rule | 137 | spin:rule |
| 220 | [ rdf:type sp:Construct ; | 138 | [ rdf:type sp:Construct ; |
| 221 | - rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ; | 139 | + rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; |
| 222 | sp:templates ([ sp:object | 140 | sp:templates ([ sp:object |
| 223 | - [ sp:varName "dateStart"^^xsd:string | 141 | + [ sp:varName "productionFacility"^^xsd:string |
| 224 | - ] ; | ||
| 225 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 226 | - sp:subject | ||
| 227 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 228 | - ] | ||
| 229 | - ] [ sp:object | ||
| 230 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 231 | ] ; | 142 | ] ; |
| 232 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 143 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 233 | sp:subject | 144 | sp:subject |
| 234 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 145 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 235 | ] | 146 | ] |
| 236 | ] [ sp:object | 147 | ] [ sp:object |
| 237 | - [ sp:varName "dateEnd"^^xsd:string | 148 | + [ sp:varName "productionFacility"^^xsd:string |
| 238 | ] ; | 149 | ] ; |
| 239 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 150 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 240 | sp:subject | 151 | sp:subject |
| 241 | [ sp:varName "productionFacilityToDate"^^xsd:string | 152 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 242 | ] | 153 | ] |
| ... | @@ -252,18 +163,18 @@ | ... | @@ -252,18 +163,18 @@ |
| 252 | [ sp:varName "productionOperationRef"^^xsd:string | 163 | [ sp:varName "productionOperationRef"^^xsd:string |
| 253 | ] | 164 | ] |
| 254 | ] [ sp:object | 165 | ] [ sp:object |
| 255 | - [ sp:varName "dateStart"^^xsd:string | 166 | + [ sp:varName "installationRef"^^xsd:string |
| 256 | ] ; | 167 | ] ; |
| 257 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 168 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 258 | sp:subject | 169 | sp:subject |
| 259 | [ sp:varName "productionOperationRef"^^xsd:string | 170 | [ sp:varName "productionOperationRef"^^xsd:string |
| 260 | ] | 171 | ] |
| 261 | ] [ sp:object | 172 | ] [ sp:object |
| 262 | - [ sp:varName "dateEnd"^^xsd:string | 173 | + [ sp:varName "installationRef"^^xsd:string |
| 263 | ] ; | 174 | ] ; |
| 264 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 175 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 265 | sp:subject | 176 | sp:subject |
| 266 | - [ sp:varName "productionOperationsRef"^^xsd:string | 177 | + [ sp:varName "productionFacility"^^xsd:string |
| 267 | ] | 178 | ] |
| 268 | ] [ sp:object | 179 | ] [ sp:object |
| 269 | [ sp:varName "productionOperationRef"^^xsd:string | 180 | [ sp:varName "productionOperationRef"^^xsd:string |
| ... | @@ -293,28 +204,21 @@ | ... | @@ -293,28 +204,21 @@ |
| 293 | ] ; | 204 | ] ; |
| 294 | spin:rule | 205 | spin:rule |
| 295 | [ rdf:type sp:Construct ; | 206 | [ rdf:type sp:Construct ; |
| 296 | - rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; | 207 | + rdfs:comment """STEP 40060 Set the facility operator |
| 297 | - sp:templates ([ sp:object | 208 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 298 | - [ sp:varName "dTimStart"^^xsd:string | 209 | + sp:templates ([ sp:object _:b4 ; |
| 299 | - ] ; | 210 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
| 300 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 301 | - sp:subject | ||
| 302 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 303 | - ] | ||
| 304 | - ] [ sp:object | ||
| 305 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 306 | - ] ; | ||
| 307 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 308 | sp:subject | 211 | sp:subject |
| 309 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 212 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 310 | ] | 213 | ] |
| 214 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 215 | + sp:predicate rdf:type ; | ||
| 216 | + sp:subject _:b4 | ||
| 311 | ] [ sp:object | 217 | ] [ sp:object |
| 312 | - [ sp:varName "dTimEnd"^^xsd:string | 218 | + [ sp:varName "operator"^^xsd:string |
| 313 | ] ; | 219 | ] ; |
| 314 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 220 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 315 | - sp:subject | 221 | + sp:subject _:b4 |
| 316 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 317 | - ] | ||
| 318 | ]) ; | 222 | ]) ; |
| 319 | sp:where ([ sp:object | 223 | sp:where ([ sp:object |
| 320 | [ sp:varName "productionOperationRef"^^xsd:string | 224 | [ sp:varName "productionOperationRef"^^xsd:string |
| ... | @@ -327,20 +231,6 @@ | ... | @@ -327,20 +231,6 @@ |
| 327 | [ sp:varName "productionOperationRef"^^xsd:string | 231 | [ sp:varName "productionOperationRef"^^xsd:string |
| 328 | ] | 232 | ] |
| 329 | ] [ sp:object | 233 | ] [ sp:object |
| 330 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 331 | - ] ; | ||
| 332 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 333 | - sp:subject | ||
| 334 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 335 | - ] | ||
| 336 | - ] [ sp:object | ||
| 337 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 338 | - ] ; | ||
| 339 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 340 | - sp:subject | ||
| 341 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 342 | - ] | ||
| 343 | - ] [ sp:object | ||
| 344 | [ sp:varName "productionOperationRef"^^xsd:string | 234 | [ sp:varName "productionOperationRef"^^xsd:string |
| 345 | ] ; | 235 | ] ; |
| 346 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 236 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -353,16 +243,18 @@ | ... | @@ -353,16 +243,18 @@ |
| 353 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 243 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 354 | ] | 244 | ] |
| 355 | ] [ sp:object | 245 | ] [ sp:object |
| 356 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 246 | + [ sp:varName "operatorRef"^^xsd:string |
| 357 | ] ; | 247 | ] ; |
| 358 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 248 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
| 359 | sp:subject | 249 | sp:subject |
| 360 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 250 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 361 | ] | 251 | ] |
| 362 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 252 | + ] [ sp:object |
| 363 | - sp:predicate rdf:type ; | 253 | + [ sp:varName "operatorRef"^^xsd:string |
| 254 | + ] ; | ||
| 255 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 364 | sp:subject | 256 | sp:subject |
| 365 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 257 | + [ sp:varName "operator"^^xsd:string |
| 366 | ] | 258 | ] |
| 367 | ]) | 259 | ]) |
| 368 | ] ; | 260 | ] ; |
| ... | @@ -419,21 +311,28 @@ | ... | @@ -419,21 +311,28 @@ |
| 419 | ] ; | 311 | ] ; |
| 420 | spin:rule | 312 | spin:rule |
| 421 | [ rdf:type sp:Construct ; | 313 | [ rdf:type sp:Construct ; |
| 422 | - rdfs:comment """STEP 40060 Set the facility operator | 314 | + rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; |
| 423 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | 315 | + sp:templates ([ sp:object |
| 424 | - sp:templates ([ sp:object _:b4 ; | 316 | + [ sp:varName "dTimStart"^^xsd:string |
| 425 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 317 | + ] ; |
| 318 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 426 | sp:subject | 319 | sp:subject |
| 427 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 320 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 428 | ] | 321 | ] |
| 429 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 430 | - sp:predicate rdf:type ; | ||
| 431 | - sp:subject _:b4 | ||
| 432 | ] [ sp:object | 322 | ] [ sp:object |
| 433 | - [ sp:varName "operator"^^xsd:string | 323 | + [ sp:varName "dTimEnd"^^xsd:string |
| 434 | ] ; | 324 | ] ; |
| 435 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 325 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 436 | - sp:subject _:b4 | 326 | + sp:subject |
| 327 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 328 | + ] | ||
| 329 | + ] [ sp:object | ||
| 330 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 331 | + ] ; | ||
| 332 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 333 | + sp:subject | ||
| 334 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 335 | + ] | ||
| 437 | ]) ; | 336 | ]) ; |
| 438 | sp:where ([ sp:object | 337 | sp:where ([ sp:object |
| 439 | [ sp:varName "productionOperationRef"^^xsd:string | 338 | [ sp:varName "productionOperationRef"^^xsd:string |
| ... | @@ -446,6 +345,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -446,6 +345,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 446 | [ sp:varName "productionOperationRef"^^xsd:string | 345 | [ sp:varName "productionOperationRef"^^xsd:string |
| 447 | ] | 346 | ] |
| 448 | ] [ sp:object | 347 | ] [ sp:object |
| 348 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 349 | + ] ; | ||
| 350 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 351 | + sp:subject | ||
| 352 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 353 | + ] | ||
| 354 | + ] [ sp:object | ||
| 355 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 356 | + ] ; | ||
| 357 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 358 | + sp:subject | ||
| 359 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 360 | + ] | ||
| 361 | + ] [ sp:object | ||
| 449 | [ sp:varName "productionOperationRef"^^xsd:string | 362 | [ sp:varName "productionOperationRef"^^xsd:string |
| 450 | ] ; | 363 | ] ; |
| 451 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 364 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -458,35 +371,40 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -458,35 +371,40 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 458 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 371 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 459 | ] | 372 | ] |
| 460 | ] [ sp:object | 373 | ] [ sp:object |
| 461 | - [ sp:varName "operatorRef"^^xsd:string | 374 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 462 | ] ; | 375 | ] ; |
| 463 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 376 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 464 | sp:subject | 377 | sp:subject |
| 465 | - [ sp:varName "productionOperationRef"^^xsd:string | 378 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 466 | ] | 379 | ] |
| 467 | - ] [ sp:object | 380 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 468 | - [ sp:varName "operatorRef"^^xsd:string | 381 | + sp:predicate rdf:type ; |
| 469 | - ] ; | ||
| 470 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 471 | sp:subject | 382 | sp:subject |
| 472 | - [ sp:varName "operator"^^xsd:string | 383 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 473 | ] | 384 | ] |
| 474 | ]) | 385 | ]) |
| 475 | ] ; | 386 | ] ; |
| 476 | spin:rule | 387 | spin:rule |
| 477 | [ rdf:type sp:Construct ; | 388 | [ rdf:type sp:Construct ; |
| 478 | - rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; | 389 | + rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ; |
| 479 | sp:templates ([ sp:object | 390 | sp:templates ([ sp:object |
| 480 | - [ sp:varName "productionFacility"^^xsd:string | 391 | + [ sp:varName "dateStart"^^xsd:string |
| 481 | ] ; | 392 | ] ; |
| 482 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 393 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 483 | sp:subject | 394 | sp:subject |
| 484 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 395 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 485 | ] | 396 | ] |
| 486 | ] [ sp:object | 397 | ] [ sp:object |
| 487 | - [ sp:varName "productionFacility"^^xsd:string | 398 | + [ sp:varName "dateEnd"^^xsd:string |
| 488 | ] ; | 399 | ] ; |
| 489 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 400 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 401 | + sp:subject | ||
| 402 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 403 | + ] | ||
| 404 | + ] [ sp:object | ||
| 405 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 406 | + ] ; | ||
| 407 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 490 | sp:subject | 408 | sp:subject |
| 491 | [ sp:varName "productionFacilityToDate"^^xsd:string | 409 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 492 | ] | 410 | ] |
| ... | @@ -502,18 +420,18 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -502,18 +420,18 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 502 | [ sp:varName "productionOperationRef"^^xsd:string | 420 | [ sp:varName "productionOperationRef"^^xsd:string |
| 503 | ] | 421 | ] |
| 504 | ] [ sp:object | 422 | ] [ sp:object |
| 505 | - [ sp:varName "installationRef"^^xsd:string | 423 | + [ sp:varName "dateStart"^^xsd:string |
| 506 | ] ; | 424 | ] ; |
| 507 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 425 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 508 | sp:subject | 426 | sp:subject |
| 509 | [ sp:varName "productionOperationRef"^^xsd:string | 427 | [ sp:varName "productionOperationRef"^^xsd:string |
| 510 | ] | 428 | ] |
| 511 | ] [ sp:object | 429 | ] [ sp:object |
| 512 | - [ sp:varName "installationRef"^^xsd:string | 430 | + [ sp:varName "dateEnd"^^xsd:string |
| 513 | ] ; | 431 | ] ; |
| 514 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 432 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 515 | sp:subject | 433 | sp:subject |
| 516 | - [ sp:varName "productionFacility"^^xsd:string | 434 | + [ sp:varName "productionOperationsRef"^^xsd:string |
| 517 | ] | 435 | ] |
| 518 | ] [ sp:object | 436 | ] [ sp:object |
| 519 | [ sp:varName "productionOperationRef"^^xsd:string | 437 | [ sp:varName "productionOperationRef"^^xsd:string |
| ... | @@ -628,9 +546,96 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -628,9 +546,96 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 628 | [ sp:varName "productionFacilityToDate"^^xsd:string | 546 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 629 | ] | 547 | ] |
| 630 | ]) | 548 | ]) |
| 549 | + ] ; | ||
| 550 | + spin:rule | ||
| 551 | + [ rdf:type sp:Construct ; | ||
| 552 | + rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ; | ||
| 553 | + sp:templates ([ sp:object | ||
| 554 | + [ sp:varName "reportKind"^^xsd:string | ||
| 555 | + ] ; | ||
| 556 | + sp:predicate rdf:type ; | ||
| 557 | + sp:subject | ||
| 558 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 559 | + ] | ||
| 560 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | ||
| 561 | + sp:predicate rdf:type ; | ||
| 562 | + sp:subject | ||
| 563 | + [ sp:varName "reportKind"^^xsd:string | ||
| 564 | + ] | ||
| 565 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 566 | + sp:predicate rdfs:subClassOf ; | ||
| 567 | + sp:subject | ||
| 568 | + [ sp:varName "reportKind"^^xsd:string | ||
| 569 | + ] | ||
| 570 | + ] [ sp:object | ||
| 571 | + [ sp:varName "kind"^^xsd:string | ||
| 572 | + ] ; | ||
| 573 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 574 | + sp:subject | ||
| 575 | + [ sp:varName "reportKind"^^xsd:string | ||
| 576 | + ] | ||
| 577 | + ]) ; | ||
| 578 | + sp:where ([ sp:object spin:_this ; | ||
| 579 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 580 | + sp:subject | ||
| 581 | + [ sp:varName "productionReport"^^xsd:string | ||
| 582 | + ] | ||
| 583 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
| 584 | + sp:predicate rdf:type ; | ||
| 585 | + sp:subject | ||
| 586 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 587 | + ] | ||
| 588 | + ] [ sp:object | ||
| 589 | + [ sp:varName "productionReport"^^xsd:string | ||
| 590 | + ] ; | ||
| 591 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 592 | + sp:subject | ||
| 593 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 594 | + ] | ||
| 595 | + ] [ sp:object | ||
| 596 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 597 | + ] ; | ||
| 598 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 599 | + sp:subject spin:_this | ||
| 600 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 601 | + sp:predicate rdf:type ; | ||
| 602 | + sp:subject | ||
| 603 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 604 | + ] | ||
| 605 | + ] [ sp:object | ||
| 606 | + [ sp:varName "nameRef"^^xsd:string | ||
| 607 | + ] ; | ||
| 608 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 609 | + sp:subject | ||
| 610 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 611 | + ] | ||
| 612 | + ] [ sp:object | ||
| 613 | + [ sp:varName "name"^^xsd:string | ||
| 614 | + ] ; | ||
| 615 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 616 | + sp:subject | ||
| 617 | + [ sp:varName "nameRef"^^xsd:string | ||
| 618 | + ] | ||
| 619 | + ] [ sp:object | ||
| 620 | + [ sp:varName "kind"^^xsd:string | ||
| 621 | + ] ; | ||
| 622 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 623 | + sp:subject | ||
| 624 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 625 | + ] | ||
| 626 | + ] [ rdf:type sp:Bind ; | ||
| 627 | + sp:expression | ||
| 628 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 629 | + sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 630 | + ] | ||
| 631 | + ] ; | ||
| 632 | + sp:variable | ||
| 633 | + [ sp:varName "reportKind"^^xsd:string | ||
| 634 | + ] | ||
| 635 | + ]) | ||
| 631 | ] . | 636 | ] . |
| 632 | 637 | ||
| 633 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> | 638 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> |
| 634 | rdf:type owl:Ontology ; | 639 | rdf:type owl:Ontology ; |
| 635 | - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ; | 640 | + owl:imports <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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; |
| 636 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 641 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment