David Leal

First tranche of MPR productionOperation stuff

...@@ -134,9 +134,10 @@ ep-prodact:AnnualProductionActivityToDate ...@@ -134,9 +134,10 @@ ep-prodact:AnnualProductionActivityToDate
134 rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ; 134 rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
135 rdfs:subClassOf ep-prodact:AnnualProductionActivity . 135 rdfs:subClassOf ep-prodact:AnnualProductionActivity .
136 136
137 -ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod 137 +ep-prodact:AnnualProductionOperationToDate
138 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 138 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
139 - rdfs:subClassOf ep-prodact:ProductionOperationsActivity , ep-prodact:AnnualProductionActivityToDate . 139 + rdfs:label "annual production operation to date"^^xsd:string ;
140 + rdfs:subClassOf ep-prodact:AnnualProductionActivityToDate , ep-prodact:ProductionOperation .
140 141
141 ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod 142 ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod
142 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 143 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
...@@ -155,9 +156,15 @@ ep-prodact:CumulativeProductionActivitySinceProductionBegan ...@@ -155,9 +156,15 @@ ep-prodact:CumulativeProductionActivitySinceProductionBegan
155 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 156 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
156 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 157 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
157 158
158 -ep-prodact:DailyProductionOperationsActivity 159 +ep-prodact:DailyProductionOperation
159 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 160 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
160 - rdfs:subClassOf ep-prodact:ProductionOperationsActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> . 161 + rdfs:label "daily production operation"^^xsd:string ;
162 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionOperation .
163 +
164 +ep-prodact:DailyProductionOperationProcessingLoss
165 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
166 + rdfs:label "daily production operation processing loss"^^xsd:string ;
167 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
161 168
162 ep-prodact:DailyProductionVolumeActivity 169 ep-prodact:DailyProductionVolumeActivity
163 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 170 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
...@@ -172,6 +179,16 @@ ep-prodact:DrillOrExcercise ...@@ -172,6 +179,16 @@ ep-prodact:DrillOrExcercise
172 rdf:type ep-prodact:SafetyActivityType , owl:Class ; 179 rdf:type ep-prodact:SafetyActivityType , owl:Class ;
173 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 180 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
174 181
182 +ep-prodact:ExtendedMaintenanceTurnaround
183 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
184 + rdfs:label "extended maintenance turnaround"^^xsd:string ;
185 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
186 +
187 +ep-prodact:ExtendedMaintenanceTurnaroundExportTerminal
188 + rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
189 + rdfs:label "extended maintenance turnaround export terminal"^^xsd:string ;
190 + rdfs:subClassOf ep-prodact:ExtendedMaintenanceTurnaround .
191 +
175 ep-prodact:Fire 192 ep-prodact:Fire
176 rdf:type owl:Class ; 193 rdf:type owl:Class ;
177 rdfs:subClassOf ep-prodact:Incident . 194 rdfs:subClassOf ep-prodact:Incident .
...@@ -261,6 +278,11 @@ ep-prodact:FusionOfPartsOfProductionActivityOverPeriod ...@@ -261,6 +278,11 @@ ep-prodact:FusionOfPartsOfProductionActivityOverPeriod
261 rdf:type owl:Class ; 278 rdf:type owl:Class ;
262 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 279 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
263 280
281 +ep-prodact:HSEProblem
282 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
283 + rdfs:label "HSE problem"^^xsd:string ;
284 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
285 +
264 ep-prodact:HealthSafetyAndEnvironmentActivity 286 ep-prodact:HealthSafetyAndEnvironmentActivity
265 rdf:type owl:Class ; 287 rdf:type owl:Class ;
266 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 288 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
...@@ -327,6 +349,16 @@ ep-prodact:MarineOperation ...@@ -327,6 +349,16 @@ ep-prodact:MarineOperation
327 rdf:type owl:Class ; 349 rdf:type owl:Class ;
328 rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity . 350 rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity .
329 351
352 +ep-prodact:MarkedGasLossOfExport
353 + rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
354 + rdfs:label "marked gas loss of export"^^xsd:string ;
355 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
356 +
357 +ep-prodact:MarkedOilLossOfExport
358 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
359 + rdfs:label "marked oil loss of export"^^xsd:string ;
360 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
361 +
330 ep-prodact:MeasurePropertiesOfAFlow 362 ep-prodact:MeasurePropertiesOfAFlow
331 rdf:type owl:Class ; 363 rdf:type owl:Class ;
332 rdfs:label "measure properties of a flow"^^xsd:string ; 364 rdfs:label "measure properties of a flow"^^xsd:string ;
...@@ -341,10 +373,25 @@ ep-prodact:MedicalTreatmentInjury ...@@ -341,10 +373,25 @@ ep-prodact:MedicalTreatmentInjury
341 rdf:type ep-prodact:SafetyActivityType , owl:Class ; 373 rdf:type ep-prodact:SafetyActivityType , owl:Class ;
342 rdfs:subClassOf ep-prodact:Injury . 374 rdfs:subClassOf ep-prodact:Injury .
343 375
376 +ep-prodact:ModificationProject
377 + rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
378 + rdfs:label "modification project"^^xsd:string ;
379 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
380 +
381 +ep-prodact:MonthlyProductionActivity
382 + rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
383 + rdfs:label "monthly production activity"^^xsd:string ;
384 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
385 +
344 ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod 386 ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod
345 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 387 rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
346 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> . 388 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> .
347 389
390 +ep-prodact:MonthlyProductionOperationToDate
391 + rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
392 + rdfs:label "monthly production to date"^^xsd:string ;
393 + rdfs:subClassOf ep-prodact:ProductionOperation .
394 +
348 ep-prodact:MovementOfProduct 395 ep-prodact:MovementOfProduct
349 rdf:type owl:Class ; 396 rdf:type owl:Class ;
350 rdfs:label "movement of product"^^xsd:string ; 397 rdfs:label "movement of product"^^xsd:string ;
...@@ -363,6 +410,11 @@ ep-prodact:NotablePartOfProductionActivity ...@@ -363,6 +410,11 @@ ep-prodact:NotablePartOfProductionActivity
363 rdf:type owl:Class ; 410 rdf:type owl:Class ;
364 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 411 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
365 412
413 +ep-prodact:OperationMistakes
414 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
415 + rdfs:label "operation mistakes"^^xsd:string ;
416 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
417 +
366 ep-prodact:OtherProductionActivity 418 ep-prodact:OtherProductionActivity
367 rdf:type ep-prodact:ProductionActivityType , owl:Class ; 419 rdf:type ep-prodact:ProductionActivityType , owl:Class ;
368 rdfs:label "other production activity"^^xsd:string ; 420 rdfs:label "other production activity"^^xsd:string ;
...@@ -388,11 +440,26 @@ ep-prodact:PeriodicWellTest ...@@ -388,11 +440,26 @@ ep-prodact:PeriodicWellTest
388 rdfs:label "periodic"^^xsd:string ; 440 rdfs:label "periodic"^^xsd:string ;
389 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> . 441 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
390 442
443 +ep-prodact:PlannedMaintenanceTurnaround
444 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
445 + rdfs:label "planned maintenace turnaround"^^xsd:string ;
446 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
447 +
391 ep-prodact:PowerStationFailure 448 ep-prodact:PowerStationFailure
392 rdf:type ep-prodact:ProductionActivityType , owl:Class ; 449 rdf:type ep-prodact:ProductionActivityType , owl:Class ;
393 rdfs:label "power station failure"^^xsd:string ; 450 rdfs:label "power station failure"^^xsd:string ;
394 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> . 451 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
395 452
453 +ep-prodact:PreventiveMaintenanceTopside
454 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
455 + rdfs:label "preventive maintenace topside"^^xsd:string ;
456 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
457 +
458 +ep-prodact:ProcessAndOperationProblem
459 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
460 + rdfs:label "process and operation problem"^^xsd:string ;
461 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
462 +
396 ep-prodact:ProductCompletedLifting 463 ep-prodact:ProductCompletedLifting
397 rdf:type ep-prodact:MovementOfProductType , owl:Class ; 464 rdf:type ep-prodact:MovementOfProductType , owl:Class ;
398 rdfs:label "product completed lifting"^^xsd:string ; 465 rdfs:label "product completed lifting"^^xsd:string ;
...@@ -482,19 +549,49 @@ ep-prodact:ProductionActivityType ...@@ -482,19 +549,49 @@ ep-prodact:ProductionActivityType
482 rdfs:label "production activity type"^^xsd:string ; 549 rdfs:label "production activity type"^^xsd:string ;
483 rdfs:subClassOf owl:Class . 550 rdfs:subClassOf owl:Class .
484 551
552 +ep-prodact:ProductionOperation
553 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
554 + rdfs:label "production operation"^^xsd:string ;
555 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
556 +
485 ep-prodact:ProductionOperationClassByDuration 557 ep-prodact:ProductionOperationClassByDuration
486 rdf:type rdfs:Class ; 558 rdf:type rdfs:Class ;
487 rdfs:subClassOf owl:Class . 559 rdfs:subClassOf owl:Class .
488 560
561 +ep-prodact:ProductionOperationInjection
562 + rdf:type owl:Class ;
563 + rdfs:label "production operation injection"^^xsd:string ;
564 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
565 +
489 ep-prodact:ProductionOperationMethodType 566 ep-prodact:ProductionOperationMethodType
490 rdf:type rdfs:Class ; 567 rdf:type rdfs:Class ;
491 rdfs:comment "e.g. 'flowing', 'pumping', 'gas lifted'"^^xsd:string ; 568 rdfs:comment "e.g. 'flowing', 'pumping', 'gas lifted'"^^xsd:string ;
492 rdfs:label "production operation method type"^^xsd:string ; 569 rdfs:label "production operation method type"^^xsd:string ;
493 rdfs:subClassOf owl:Class . 570 rdfs:subClassOf owl:Class .
494 571
495 -ep-prodact:ProductionOperationsActivity 572 +ep-prodact:ProductionOperationProcessingLoss
496 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 573 + rdf:type owl:Class ;
497 - rdfs:label "production operations activity"^^xsd:string ; 574 + rdfs:label "production operation processing loss"^^xsd:string ;
575 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
576 +
577 +ep-prodact:ProductionOperationProcessingLossForUnspecifiedReason
578 + rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
579 + rdfs:label "production operation processing loss for unspecified reason"^^xsd:string ;
580 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
581 +
582 +ep-prodact:ProductionOperationProcessingRegulatoryReference
583 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
584 + rdfs:label "production operation processing regulatory reference"^^xsd:string ;
585 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
586 +
587 +ep-prodact:ProductionOperationProduction
588 + rdf:type owl:Class ;
589 + rdfs:label "production operation production"^^xsd:string ;
590 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
591 +
592 +ep-prodact:ProductionOperationProductionAndInjection
593 + rdf:type owl:Class ;
594 + rdfs:label "production operation production and injection"^^xsd:string ;
498 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 595 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
499 596
500 ep-prodact:ProductionVolumeActivity 597 ep-prodact:ProductionVolumeActivity
...@@ -506,6 +603,11 @@ ep-prodact:RaiseAnAlert ...@@ -506,6 +603,11 @@ ep-prodact:RaiseAnAlert
506 rdfs:label "raise an alert"^^xsd:string ; 603 rdfs:label "raise an alert"^^xsd:string ;
507 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> . 604 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
508 605
606 +ep-prodact:ReasonForLossOfProcessingType
607 + rdf:type rdfs:Class ;
608 + rdfs:label "reason for loss of processing type"^^xsd:string ;
609 + rdfs:subClassOf owl:Class .
610 +
509 ep-prodact:ReleasedToWater 611 ep-prodact:ReleasedToWater
510 rdf:type owl:Class ; 612 rdf:type owl:Class ;
511 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 613 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
...@@ -514,6 +616,11 @@ ep-prodact:ReportHazard ...@@ -514,6 +616,11 @@ ep-prodact:ReportHazard
514 rdf:type ep-prodact:SafetyActivityType , owl:Class ; 616 rdf:type ep-prodact:SafetyActivityType , owl:Class ;
515 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 617 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
516 618
619 +ep-prodact:ReservoirLoss
620 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
621 + rdfs:label "reservoir loss"^^xsd:string ;
622 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
623 +
517 ep-prodact:RestrictedWork 624 ep-prodact:RestrictedWork
518 rdf:type owl:Class ; 625 rdf:type owl:Class ;
519 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 626 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
...@@ -566,15 +673,40 @@ ep-prodact:SplitFactorDeterminationType ...@@ -566,15 +673,40 @@ ep-prodact:SplitFactorDeterminationType
566 rdfs:label "split factor determination type"^^xsd:string ; 673 rdfs:label "split factor determination type"^^xsd:string ;
567 rdfs:subClassOf owl:Class . 674 rdfs:subClassOf owl:Class .
568 675
676 +ep-prodact:StrikeOrLockout
677 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
678 + rdfs:label "strike or lock-out"^^xsd:string ;
679 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
680 +
569 ep-prodact:SubstanceType 681 ep-prodact:SubstanceType
570 rdf:type rdfs:Class ; 682 rdf:type rdfs:Class ;
571 rdfs:label "substance type"^^xsd:string ; 683 rdfs:label "substance type"^^xsd:string ;
572 rdfs:subClassOf owl:Class . 684 rdfs:subClassOf owl:Class .
573 685
686 +ep-prodact:TestingAndLogging
687 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
688 + rdfs:label "testing and logging"^^xsd:string ;
689 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
690 +
691 +ep-prodact:ThirdPartyProcessingLoss
692 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
693 + rdfs:label "third party processing loss"^^xsd:string ;
694 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
695 +
696 +ep-prodact:TopsideEquipmentFailureMaintenance
697 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
698 + rdfs:label "topside equipment failure maintenance"^^xsd:string ;
699 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
700 +
574 ep-prodact:TransportationActivity 701 ep-prodact:TransportationActivity
575 rdf:type owl:Class ; 702 rdf:type owl:Class ;
576 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> . 703 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
577 704
705 +ep-prodact:UnavailableTankerStorage
706 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
707 + rdfs:label "unavailable tanker storage"^^xsd:string ;
708 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
709 +
578 ep-prodact:UnknownReasonWellTest 710 ep-prodact:UnknownReasonWellTest
579 rdf:type owl:Class , ep-prodact:WellTestReasonType ; 711 rdf:type owl:Class , ep-prodact:WellTestReasonType ;
580 rdfs:label "unknown"^^xsd:string ; 712 rdfs:label "unknown"^^xsd:string ;
...@@ -594,6 +726,31 @@ ep-prodact:WaterSample ...@@ -594,6 +726,31 @@ ep-prodact:WaterSample
594 rdfs:label "(temporal part of a) water sample"^^xsd:string ; 726 rdfs:label "(temporal part of a) water sample"^^xsd:string ;
595 rdfs:subClassOf ep-material:Water , <http://www.reportinghub.no/ep/schema/flow#SampleOfMaterial> . 727 rdfs:subClassOf ep-material:Water , <http://www.reportinghub.no/ep/schema/flow#SampleOfMaterial> .
596 728
729 +ep-prodact:WeatherProblem
730 + rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
731 + rdfs:label "weather problem"^^xsd:string ;
732 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
733 +
734 +ep-prodact:WellEquipmentFailureMaintenance
735 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
736 + rdfs:label "well equipment failure maintenance"^^xsd:string ;
737 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
738 +
739 +ep-prodact:WellPlannedOperations
740 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
741 + rdfs:label "well planned operations"^^xsd:string ;
742 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
743 +
744 +ep-prodact:WellPreventiveMaintenance
745 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
746 + rdfs:label "well preventive maintenance"^^xsd:string ;
747 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
748 +
749 +ep-prodact:WellProblems
750 + rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
751 + rdfs:label "well problems"^^xsd:string ;
752 + rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
753 +
597 ep-prodact:WellTestReasonType 754 ep-prodact:WellTestReasonType
598 rdf:type rdfs:Class ; 755 rdf:type rdfs:Class ;
599 rdfs:label "well test reason type"^^xsd:string ; 756 rdfs:label "well test reason type"^^xsd:string ;
...@@ -693,7 +850,7 @@ ep-prodact:destination ...@@ -693,7 +850,7 @@ ep-prodact:destination
693 rdfs:range <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> . 850 rdfs:range <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> .
694 851
695 ep-prodact:glycolDensity 852 ep-prodact:glycolDensity
696 - rdf:type owl:ObjectProperty ; 853 + rdf:type owl:FunctionalProperty , ep-core:Class_of_indirect_property , owl:ObjectProperty ;
697 rdfs:domain ep-prodact:WaterSample ; 854 rdfs:domain ep-prodact:WaterSample ;
698 rdfs:range ep-core:Density . 855 rdfs:range ep-core:Density .
699 856
...@@ -842,6 +999,11 @@ ep-prodact:phenolDensity ...@@ -842,6 +999,11 @@ ep-prodact:phenolDensity
842 rdfs:domain ep-prodact:WaterSample ; 999 rdfs:domain ep-prodact:WaterSample ;
843 rdfs:range ep-core:Density . 1000 rdfs:range ep-core:Density .
844 1001
1002 +ep-prodact:processingLost
1003 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
1004 + rdfs:domain ep-prodact:ProductionOperationProcessingLoss ;
1005 + rdfs:range ep-material:QuantityOfMaterial .
1006 +
845 ep-prodact:productionActivityPeriodClassification 1007 ep-prodact:productionActivityPeriodClassification
846 rdf:type owl:ObjectProperty ; 1008 rdf:type owl:ObjectProperty ;
847 rdfs:domain ep-prodact:FusionOfPartsOfProductionActivityOverPeriod ; 1009 rdfs:domain ep-prodact:FusionOfPartsOfProductionActivityOverPeriod ;
...@@ -913,6 +1075,12 @@ ep-prodact:testedWellBoreInterval ...@@ -913,6 +1075,12 @@ ep-prodact:testedWellBoreInterval
913 rdfs:label "tested wellbore interval"^^xsd:string ; 1075 rdfs:label "tested wellbore interval"^^xsd:string ;
914 rdfs:range ep-core:PhysicalObject . 1076 rdfs:range ep-core:PhysicalObject .
915 1077
1078 +ep-prodact:timeWorked
1079 + rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
1080 + rdfs:domain ep-prodact:ProductionOperation ;
1081 + rdfs:label "time worked"^^xsd:string ;
1082 + rdfs:range ep-core:TimeDuration .
1083 +
916 ep-prodact:totalNoOfPermitsIssued 1084 ep-prodact:totalNoOfPermitsIssued
917 rdf:type owl:DatatypeProperty ; 1085 rdf:type owl:DatatypeProperty ;
918 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ; 1086 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......
1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-organization 1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-organization
2 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
2 # imports: http://www.reportinghub.no/ep/schema/1.0/organization 3 # imports: http://www.reportinghub.no/ep/schema/1.0/organization
3 4
4 @prefix ep-prodorg: <http://www.reportinghub.no/ep/schema/production-organization#> . 5 @prefix ep-prodorg: <http://www.reportinghub.no/ep/schema/production-organization#> .
...@@ -9,17 +10,62 @@ ...@@ -9,17 +10,62 @@
9 10
10 <http://www.reportinghub.no/ep/schema/1.0/production-organization> 11 <http://www.reportinghub.no/ep/schema/1.0/production-organization>
11 rdf:type owl:Ontology ; 12 rdf:type owl:Ontology ;
12 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> ; 13 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
13 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 14 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
14 15
15 <http://www.reportinghub.no/ep/schema/organization#Organization> 16 <http://www.reportinghub.no/ep/schema/organization#Organization>
16 rdfs:subClassOf ep-prodorg:PersonOrOrganization . 17 rdfs:subClassOf ep-prodorg:PersonOrOrganization .
17 18
19 +ep-prodorg:CateringCrew
20 + rdf:type ep-prodorg:CrewType , owl:Class ;
21 + rdfs:label "catering crew"^^xsd:string ;
22 + rdfs:subClassOf ep-prodorg:Crew .
23 +
18 ep-prodorg:CommercialEntity 24 ep-prodorg:CommercialEntity
19 rdf:type owl:Class ; 25 rdf:type owl:Class ;
20 rdfs:label "commercial entity"^^xsd:string ; 26 rdfs:label "commercial entity"^^xsd:string ;
21 rdfs:subClassOf ep-prodorg:PersonOrOrganization . 27 rdfs:subClassOf ep-prodorg:PersonOrOrganization .
22 28
29 +ep-prodorg:ContractorCrew
30 + rdf:type ep-prodorg:CrewType , owl:Class ;
31 + rdfs:label "contractor crew"^^xsd:string ;
32 + rdfs:subClassOf ep-prodorg:Crew .
33 +
34 +ep-prodorg:Crew
35 + rdf:type owl:Class ;
36 + rdfs:label "crew"^^xsd:string ;
37 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/organization#Organization> .
38 +
39 +ep-prodorg:CrewType
40 + rdf:type rdfs:Class ;
41 + rdfs:label "crew type"^^xsd:string ;
42 + rdfs:subClassOf owl:Class .
43 +
44 +ep-prodorg:DayVisitorCrew
45 + rdf:type ep-prodorg:CrewType , owl:Class ;
46 + rdfs:label "day visitor crew"^^xsd:string ;
47 + rdfs:subClassOf ep-prodorg:Crew .
48 +
49 +ep-prodorg:DrillingContractCrew
50 + rdf:type ep-prodorg:CrewType , owl:Class ;
51 + rdfs:label "drilling contract crew"^^xsd:string ;
52 + rdfs:subClassOf ep-prodorg:Crew .
53 +
54 +ep-prodorg:NonOperatorOvernightVisitorCrew
55 + rdf:type owl:Class , ep-prodorg:CrewType ;
56 + rdfs:label "non-operator overnight visitor crew"^^xsd:string ;
57 + rdfs:subClassOf ep-prodorg:Crew .
58 +
59 +ep-prodorg:OperatorNormalCrew
60 + rdf:type ep-prodorg:CrewType , owl:Class ;
61 + rdfs:label "operator normal crew"^^xsd:string ;
62 + rdfs:subClassOf ep-prodorg:Crew .
63 +
64 +ep-prodorg:OperatorOvernightVisitorCrew
65 + rdf:type ep-prodorg:CrewType , owl:Class ;
66 + rdfs:label "operator overnight visitor crew"^^xsd:string ;
67 + rdfs:subClassOf ep-prodorg:Crew .
68 +
23 ep-prodorg:Person 69 ep-prodorg:Person
24 rdf:type owl:Class ; 70 rdf:type owl:Class ;
25 rdfs:subClassOf ep-prodorg:PersonOrOrganization . 71 rdfs:subClassOf ep-prodorg:PersonOrOrganization .
...@@ -33,11 +79,27 @@ ep-prodorg:PersonRole ...@@ -33,11 +79,27 @@ ep-prodorg:PersonRole
33 rdfs:label "person role"^^xsd:string ; 79 rdfs:label "person role"^^xsd:string ;
34 rdfs:subClassOf ep-prodorg:Person . 80 rdfs:subClassOf ep-prodorg:Person .
35 81
82 +ep-prodorg:TotalCrew
83 + rdf:type ep-prodorg:CrewType , owl:Class ;
84 + rdfs:label "total crew"^^xsd:string ;
85 + rdfs:subClassOf ep-prodorg:Crew .
86 +
36 ep-prodorg:WholeLifePerson 87 ep-prodorg:WholeLifePerson
37 rdf:type owl:Class ; 88 rdf:type owl:Class ;
38 rdfs:label "whole life person"^^xsd:string ; 89 rdfs:label "whole life person"^^xsd:string ;
39 rdfs:subClassOf ep-prodorg:Person . 90 rdfs:subClassOf ep-prodorg:Person .
40 91
92 +ep-prodorg:hasCrew
93 + rdf:type owl:ObjectProperty ;
94 + rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
95 + rdfs:label "has crew"^^xsd:string ;
96 + rdfs:range ep-prodorg:Crew .
97 +
98 +ep-prodorg:numberInCrew
99 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
100 + rdfs:domain ep-prodorg:Crew ;
101 + rdfs:label "number in crew"^^xsd:string .
102 +
41 ep-prodorg:owner 103 ep-prodorg:owner
42 rdf:type owl:ObjectProperty ; 104 rdf:type owl:ObjectProperty ;
43 rdfs:domain owl:Thing ; 105 rdfs:domain owl:Thing ;
......
...@@ -10,34 +10,34 @@ ...@@ -10,34 +10,34 @@
10 10
11 <http://www.reportinghub.no/ep/schema/1.0/production-report> 11 <http://www.reportinghub.no/ep/schema/1.0/production-report>
12 rdf:type owl:Ontology ; 12 rdf:type owl:Ontology ;
13 - owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/report> ; 13 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
14 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 14 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
15 15
16 -ep-prodreport:DailyProductVolumeReport
17 - rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
18 - rdfs:label "daily product volume report"^^xsd:string ;
19 - rdfs:subClassOf ep-prodreport:ProductVolumeReport .
20 -
21 ep-prodreport:DailyProductionReport 16 ep-prodreport:DailyProductionReport
22 rdf:type owl:Class ; 17 rdf:type owl:Class ;
23 rdfs:label "Daily Production Report"^^xsd:string ; 18 rdfs:label "Daily Production Report"^^xsd:string ;
24 rdfs:subClassOf ep-prodreport:ProductionReport . 19 rdfs:subClassOf ep-prodreport:ProductionReport .
25 20
21 +ep-prodreport:DailyReport
22 + rdf:type ep-prodreport:ReportPeriodType , owl:Class ;
23 + rdfs:label "daily report"^^xsd:string ;
24 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
25 +
26 ep-prodreport:FluidSampleReport 26 ep-prodreport:FluidSampleReport
27 rdf:type owl:Class ; 27 rdf:type owl:Class ;
28 rdfs:label "fluid sample report"^^xsd:string ; 28 rdfs:label "fluid sample report"^^xsd:string ;
29 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> . 29 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
30 30
31 -ep-prodreport:MonthlyProductVolumeReport
32 - rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
33 - rdfs:label " monthly product volume report"^^xsd:string ;
34 - rdfs:subClassOf ep-prodreport:ProductVolumeReport .
35 -
36 ep-prodreport:MonthlyProductionReport 31 ep-prodreport:MonthlyProductionReport
37 rdf:type owl:Class ; 32 rdf:type owl:Class ;
38 rdfs:label "Monthly Production Report"^^xsd:string ; 33 rdfs:label "Monthly Production Report"^^xsd:string ;
39 rdfs:subClassOf ep-prodreport:ProductionReport . 34 rdfs:subClassOf ep-prodreport:ProductionReport .
40 35
36 +ep-prodreport:MonthlyReport
37 + rdf:type ep-prodreport:ReportPeriodType , owl:Class ;
38 + rdfs:label "monthly report"^^xsd:string ;
39 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
40 +
41 ep-prodreport:ProductVolumeFlowReport 41 ep-prodreport:ProductVolumeFlowReport
42 rdf:type owl:Class ; 42 rdf:type owl:Class ;
43 rdfs:label "product volume flow report"^^xsd:string ; 43 rdfs:label "product volume flow report"^^xsd:string ;
...@@ -48,25 +48,15 @@ ep-prodreport:ProductVolumeReport ...@@ -48,25 +48,15 @@ ep-prodreport:ProductVolumeReport
48 rdfs:label "product volume report"^^xsd:string ; 48 rdfs:label "product volume report"^^xsd:string ;
49 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> . 49 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
50 50
51 -ep-prodreport:ProductVolumeReportForInstant 51 +ep-prodreport:ProductionOperationInstallationReport
52 - rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ; 52 + rdf:type owl:Class ;
53 - rdfs:label "product volume report for instant"^^xsd:string ; 53 + rdfs:label "production operation installation report"^^xsd:string ;
54 - rdfs:subClassOf ep-prodreport:ProductVolumeReport . 54 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
55 -
56 -ep-prodreport:ProductVolumeReportMonthToDate
57 - rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
58 - rdfs:label " product volume report month to date"^^xsd:string ;
59 - rdfs:subClassOf ep-prodreport:ProductVolumeReport .
60 -
61 -ep-prodreport:ProductVolumeReportPeriodType
62 - rdf:type rdfs:Class ;
63 - rdfs:label "product volume report period type"^^xsd:string ;
64 - rdfs:subClassOf owl:Class .
65 55
66 -ep-prodreport:ProductVolumeReportYearToDate 56 +ep-prodreport:ProductionOperationReport
67 - rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ; 57 + rdf:type owl:Class ;
68 - rdfs:label " product volume report year to date"^^xsd:string ; 58 + rdfs:label "production operation report"^^xsd:string ;
69 - rdfs:subClassOf ep-prodreport:ProductVolumeReport . 59 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
70 60
71 ep-prodreport:ProductionReport 61 ep-prodreport:ProductionReport
72 rdf:type owl:Class ; 62 rdf:type owl:Class ;
...@@ -83,8 +73,8 @@ ep-prodreport:ReportAliasIdentifier ...@@ -83,8 +73,8 @@ ep-prodreport:ReportAliasIdentifier
83 rdfs:subClassOf owl:Thing ; 73 rdfs:subClassOf owl:Thing ;
84 rdfs:subClassOf 74 rdfs:subClassOf
85 [ rdf:type owl:Restriction ; 75 [ rdf:type owl:Restriction ;
86 - owl:minCardinality "1"^^xsd:nonNegativeInteger ; 76 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
87 - owl:onProperty ep-prodreport:aliasName 77 + owl:onProperty ep-prodreport:isAliasFor
88 ] ; 78 ] ;
89 rdfs:subClassOf 79 rdfs:subClassOf
90 [ rdf:type owl:Restriction ; 80 [ rdf:type owl:Restriction ;
...@@ -93,24 +83,44 @@ ep-prodreport:ReportAliasIdentifier ...@@ -93,24 +83,44 @@ ep-prodreport:ReportAliasIdentifier
93 ] ; 83 ] ;
94 rdfs:subClassOf 84 rdfs:subClassOf
95 [ rdf:type owl:Restriction ; 85 [ rdf:type owl:Restriction ;
96 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 86 + owl:minCardinality "1"^^xsd:nonNegativeInteger ;
97 - owl:onProperty ep-prodreport:isAliasFor 87 + owl:onProperty ep-prodreport:aliasName
98 ] . 88 ] .
99 89
100 -ep-prodreport:WeeklyProductVolumeReport 90 +ep-prodreport:ReportForInstant
101 - rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ; 91 + rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
102 - rdfs:label "weekly product volume report"^^xsd:string ; 92 + rdfs:label "report for instant"^^xsd:string ;
103 - rdfs:subClassOf ep-prodreport:ProductVolumeReport . 93 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
94 +
95 +ep-prodreport:ReportMonthToDate
96 + rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
97 + rdfs:label "report month to date"^^xsd:string ;
98 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
99 +
100 +ep-prodreport:ReportPeriodType
101 + rdf:type rdfs:Class ;
102 + rdfs:label "report period type"^^xsd:string ;
103 + rdfs:subClassOf owl:Class .
104 +
105 +ep-prodreport:ReportYearToDate
106 + rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
107 + rdfs:label "report year to date"^^xsd:string ;
108 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
109 +
110 +ep-prodreport:WeeklyReport
111 + rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
112 + rdfs:label "weekly report"^^xsd:string ;
113 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
104 114
105 ep-prodreport:WellTestReport 115 ep-prodreport:WellTestReport
106 rdf:type owl:Class ; 116 rdf:type owl:Class ;
107 rdfs:label "well test report"^^xsd:string ; 117 rdfs:label "well test report"^^xsd:string ;
108 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> . 118 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
109 119
110 -ep-prodreport:YearlyProductVolumeReport 120 +ep-prodreport:YearlyReport
111 - rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ; 121 + rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
112 - rdfs:label "yearly product volume report"^^xsd:string ; 122 + rdfs:label "yearly report"^^xsd:string ;
113 - rdfs:subClassOf ep-prodreport:ProductVolumeReport . 123 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
114 124
115 ep-prodreport:aliasName 125 ep-prodreport:aliasName
116 rdf:type owl:DatatypeProperty ; 126 rdf:type owl:DatatypeProperty ;
...@@ -139,6 +149,6 @@ ep-prodreport:isAliasFor ...@@ -139,6 +149,6 @@ ep-prodreport:isAliasFor
139 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . 149 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
140 150
141 ep-prodreport:issuedAt 151 ep-prodreport:issuedAt
142 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 152 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
143 rdfs:domain <http://www.reportinghub.no/ep/schema/report#Report> ; 153 rdfs:domain <http://www.reportinghub.no/ep/schema/report#Report> ;
144 rdfs:label "issued at"^^xsd:string . 154 rdfs:label "issued at"^^xsd:string .
......
...@@ -223,6 +223,78 @@ ep-mpr-spin-lib:selectCompressibilityScale ...@@ -223,6 +223,78 @@ ep-mpr-spin-lib:selectCompressibilityScale
223 ]) 223 ])
224 ] . 224 ] .
225 225
226 +ep-mpr-spin-lib:selectCrewType
227 + rdf:type spin:Function ;
228 + rdfs:subClassOf ep-mpr-spin-lib:Function ;
229 + spin:body
230 + [ rdf:type sp:Select ;
231 + sp:resultVariables ([ sp:varName "crewType"^^xsd:string
232 + ]) ;
233 + sp:where ([ rdf:type sp:Bind ;
234 + sp:expression
235 + [ rdf:type sp:if ;
236 + sp:arg1 [ rdf:type sp:eq ;
237 + sp:arg1 spin:_arg1 ;
238 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_cateringcrew>
239 + ] ;
240 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#CateringCrew> ;
241 + sp:arg3 [ rdf:type sp:if ;
242 + sp:arg1 [ rdf:type sp:eq ;
243 + sp:arg1 spin:_arg1 ;
244 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_contractorcrew>
245 + ] ;
246 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#ContractorCrew> ;
247 + sp:arg3 [ rdf:type sp:if ;
248 + sp:arg1 [ rdf:type sp:eq ;
249 + sp:arg1 spin:_arg1 ;
250 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_dayvisitors>
251 + ] ;
252 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#DayVisitorCrew> ;
253 + sp:arg3 [ rdf:type sp:if ;
254 + sp:arg1 [ rdf:type sp:eq ;
255 + sp:arg1 spin:_arg1 ;
256 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_drillingcontractcrew>
257 + ] ;
258 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#DrillingContractCrew> ;
259 + sp:arg3 [ rdf:type sp:if ;
260 + sp:arg1 [ rdf:type sp:eq ;
261 + sp:arg1 spin:_arg1 ;
262 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_owncrew>
263 + ] ;
264 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#OperatorNormalCrew> ;
265 + sp:arg3 [ rdf:type sp:if ;
266 + sp:arg1 [ rdf:type sp:eq ;
267 + sp:arg1 spin:_arg1 ;
268 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_ownothercrew>
269 + ] ;
270 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#OperatorOvernightVisitorCrew> ;
271 + sp:arg3 [ rdf:type sp:if ;
272 + sp:arg1 [ rdf:type sp:eq ;
273 + sp:arg1 spin:_arg1 ;
274 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_othercrew>
275 + ] ;
276 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#NonOperatorOvernightVisitorCrew> ;
277 + sp:arg3 [ rdf:type sp:if ;
278 + sp:arg1 [ rdf:type sp:eq ;
279 + sp:arg1 spin:_arg1 ;
280 + sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_personnelonboard>
281 + ] ;
282 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#TotalCrew> ;
283 + sp:arg3 <http://www.reportinghub.no/ep/schema/production-organization#Crew>
284 + ]
285 + ]
286 + ]
287 + ]
288 + ]
289 + ]
290 + ]
291 + ] ;
292 + sp:variable
293 + [ sp:varName "crewType"^^xsd:string
294 + ]
295 + ])
296 + ] .
297 +
226 ep-mpr-spin-lib:selectDensityAtStandardTemperaturePressureType 298 ep-mpr-spin-lib:selectDensityAtStandardTemperaturePressureType
227 rdf:type spin:Function ; 299 rdf:type spin:Function ;
228 rdfs:label "select DensityAtStandardTemperaturePressureType"^^xsd:string ; 300 rdfs:label "select DensityAtStandardTemperaturePressureType"^^xsd:string ;
...@@ -3956,160 +4028,6 @@ ep-mpr-spin-lib:selectProductMaterialType ...@@ -3956,160 +4028,6 @@ ep-mpr-spin-lib:selectProductMaterialType
3956 ]) 4028 ])
3957 ] . 4029 ] .
3958 4030
3959 -ep-mpr-spin-lib:selectProductVolumeReportPeriodType
3960 - rdf:type spin:Function ;
3961 - rdfs:label "select ProductVolumeReportPeriodType"^^xsd:string ;
3962 - rdfs:subClassOf ep-mpr-spin-lib:Function ;
3963 - spin:body
3964 - [ rdf:type sp:Select ;
3965 - sp:resultVariables (_:b1) ;
3966 - sp:where ([ rdf:type sp:Bind ;
3967 - sp:expression
3968 - [ rdf:type sp:if ;
3969 - sp:arg1 [ rdf:type sp:eq ;
3970 - sp:arg1 spin:_arg1 ;
3971 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_0600>
3972 - ] ;
3973 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
3974 - sp:arg3 [ rdf:type sp:if ;
3975 - sp:arg1 [ rdf:type sp:eq ;
3976 - sp:arg1 spin:_arg1 ;
3977 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailymonthtodate>
3978 - ] ;
3979 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportMonthToDate> ;
3980 - sp:arg3 [ rdf:type sp:if ;
3981 - sp:arg1 [ rdf:type sp:eq ;
3982 - sp:arg1 spin:_arg1 ;
3983 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailyyeartodate>
3984 - ] ;
3985 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportYearToDate> ;
3986 - sp:arg3 [ rdf:type sp:if ;
3987 - sp:arg1 [ rdf:type sp:eq ;
3988 - sp:arg1 spin:_arg1 ;
3989 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_day>
3990 - ] ;
3991 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ;
3992 - sp:arg3 [ rdf:type sp:if ;
3993 - sp:arg1 [ rdf:type sp:eq ;
3994 - sp:arg1 spin:_arg1 ;
3995 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasday>
3996 - ] ;
3997 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ;
3998 - sp:arg3 [ rdf:type sp:if ;
3999 - sp:arg1 [ rdf:type sp:eq ;
4000 - sp:arg1 spin:_arg1 ;
4001 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasmonth>
4002 - ] ;
4003 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyProductVolumeReport> ;
4004 - sp:arg3 [ rdf:type sp:if ;
4005 - sp:arg1 [ rdf:type sp:eq ;
4006 - sp:arg1 spin:_arg1 ;
4007 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyear>
4008 - ] ;
4009 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyProductVolumeReport> ;
4010 - sp:arg3 [ rdf:type sp:if ;
4011 - sp:arg1 [ rdf:type sp:eq ;
4012 - sp:arg1 spin:_arg1 ;
4013 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyeartodate>
4014 - ] ;
4015 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportYearToDate> ;
4016 - sp:arg3 [ rdf:type sp:if ;
4017 - sp:arg1 [ rdf:type sp:eq ;
4018 - sp:arg1 spin:_arg1 ;
4019 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_midnight>
4020 - ] ;
4021 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
4022 - sp:arg3 [ rdf:type sp:if ;
4023 - sp:arg1 [ rdf:type sp:eq ;
4024 - sp:arg1 spin:_arg1 ;
4025 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_month>
4026 - ] ;
4027 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyProductVolumeReport> ;
4028 - sp:arg3 [ rdf:type sp:if ;
4029 - sp:arg1 [ rdf:type sp:eq ;
4030 - sp:arg1 spin:_arg1 ;
4031 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_monthtodate>
4032 - ] ;
4033 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportMonthToDate> ;
4034 - sp:arg3 [ rdf:type sp:if ;
4035 - sp:arg1 [ rdf:type sp:eq ;
4036 - sp:arg1 spin:_arg1 ;
4037 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_noon>
4038 - ] ;
4039 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
4040 - sp:arg3 [ rdf:type sp:if ;
4041 - sp:arg1 [ rdf:type sp:eq ;
4042 - sp:arg1 spin:_arg1 ;
4043 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_previousperiod>
4044 - ] ;
4045 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
4046 - sp:arg3 [ rdf:type sp:if ;
4047 - sp:arg1 [ rdf:type sp:eq ;
4048 - sp:arg1 spin:_arg1 ;
4049 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_report>
4050 - ] ;
4051 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
4052 - sp:arg3 [ rdf:type sp:if ;
4053 - sp:arg1 [ rdf:type sp:eq ;
4054 - sp:arg1 spin:_arg1 ;
4055 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportend>
4056 - ] ;
4057 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
4058 - sp:arg3 [ rdf:type sp:if ;
4059 - sp:arg1 [ rdf:type sp:eq ;
4060 - sp:arg1 spin:_arg1 ;
4061 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportstart>
4062 - ] ;
4063 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
4064 - sp:arg3 [ rdf:type sp:if ;
4065 - sp:arg1 [ rdf:type sp:eq ;
4066 - sp:arg1 spin:_arg1 ;
4067 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_totalcumulative>
4068 - ] ;
4069 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
4070 - sp:arg3 [ rdf:type sp:if ;
4071 - sp:arg1 [ rdf:type sp:eq ;
4072 - sp:arg1 spin:_arg1 ;
4073 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_week>
4074 - ] ;
4075 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#WeeklyProductVolumeReport> ;
4076 - sp:arg3 [ rdf:type sp:if ;
4077 - sp:arg1 [ rdf:type sp:eq ;
4078 - sp:arg1 spin:_arg1 ;
4079 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_year>
4080 - ] ;
4081 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyProductVolumeReport> ;
4082 - sp:arg3 [ rdf:type sp:if ;
4083 - sp:arg1 [ rdf:type sp:eq ;
4084 - sp:arg1 spin:_arg1 ;
4085 - sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_yeartodate>
4086 - ] ;
4087 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportYearToDate> ;
4088 - sp:arg3 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport>
4089 - ]
4090 - ]
4091 - ]
4092 - ]
4093 - ]
4094 - ]
4095 - ]
4096 - ]
4097 - ]
4098 - ]
4099 - ]
4100 - ]
4101 - ]
4102 - ]
4103 - ]
4104 - ]
4105 - ]
4106 - ]
4107 - ]
4108 - ] ;
4109 - sp:variable _:b1
4110 - ])
4111 - ] .
4112 -
4113 ep-mpr-spin-lib:selectProductionFacilityType 4031 ep-mpr-spin-lib:selectProductionFacilityType
4114 rdf:type spin:Function ; 4032 rdf:type spin:Function ;
4115 rdfs:label "select ProductionFacilityType"^^xsd:string ; 4033 rdfs:label "select ProductionFacilityType"^^xsd:string ;
...@@ -5057,6 +4975,354 @@ ep-mpr-spin-lib:selectRatioScale ...@@ -5057,6 +4975,354 @@ ep-mpr-spin-lib:selectRatioScale
5057 ]) 4975 ])
5058 ] . 4976 ] .
5059 4977
4978 +ep-mpr-spin-lib:selectReasonForLossOfProcessingType
4979 + rdf:type spin:Function ;
4980 + rdfs:subClassOf ep-mpr-spin-lib:Function ;
4981 + spin:body
4982 + [ rdf:type sp:Select ;
4983 + sp:resultVariables ([ sp:varName "reasonForLossOfProcessingType"^^xsd:string
4984 + ]) ;
4985 + sp:where ([ rdf:type sp:Bind ;
4986 + sp:expression
4987 + [ rdf:type sp:if ;
4988 + sp:arg1 [ rdf:type sp:eq ;
4989 + sp:arg1 spin:_arg1 ;
4990 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_topsideequipmentfailure-maint>
4991 + ] ;
4992 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#TopsideEquipmentFailureMaintenance> ;
4993 + sp:arg3 [ rdf:type sp:if ;
4994 + sp:arg1 [ rdf:type sp:eq ;
4995 + sp:arg1 spin:_arg1 ;
4996 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_extendedmaintturnaround>
4997 + ] ;
4998 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ExtendedMaintenanceTurnaround> ;
4999 + sp:arg3 [ rdf:type sp:if ;
5000 + sp:arg1 [ rdf:type sp:eq ;
5001 + sp:arg1 spin:_arg1 ;
5002 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_extendedmaintturnaroundexport>
5003 + ] ;
5004 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ExtendedMaintenanceTurnaroundExportTerminal> ;
5005 + sp:arg3 [ rdf:type sp:if ;
5006 + sp:arg1 [ rdf:type sp:eq ;
5007 + sp:arg1 spin:_arg1 ;
5008 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_preventivemainttopside>
5009 + ] ;
5010 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#PreventiveMaintenanceTopside> ;
5011 + sp:arg3 [ rdf:type sp:if ;
5012 + sp:arg1 [ rdf:type sp:eq ;
5013 + sp:arg1 spin:_arg1 ;
5014 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_plannedmaintturnaround>
5015 + ] ;
5016 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#PlannedMaintenanceTurnaround> ;
5017 + sp:arg3 [ rdf:type sp:if ;
5018 + sp:arg1 [ rdf:type sp:eq ;
5019 + sp:arg1 spin:_arg1 ;
5020 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_markedoil>
5021 + ] ;
5022 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MarkedOilLossOfExport> ;
5023 + sp:arg3 [ rdf:type sp:if ;
5024 + sp:arg1 [ rdf:type sp:eq ;
5025 + sp:arg1 spin:_arg1 ;
5026 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_markedgas>
5027 + ] ;
5028 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MarkedGasLossOfExport> ;
5029 + sp:arg3 [ rdf:type sp:if ;
5030 + sp:arg1 [ rdf:type sp:eq ;
5031 + sp:arg1 spin:_arg1 ;
5032 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_modificationproject>
5033 + ] ;
5034 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ModificationProject> ;
5035 + sp:arg3 [ rdf:type sp:if ;
5036 + sp:arg1 [ rdf:type sp:eq ;
5037 + sp:arg1 spin:_arg1 ;
5038 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_operationmistakes>
5039 + ] ;
5040 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#OperationMistakes> ;
5041 + sp:arg3 [ rdf:type sp:if ;
5042 + sp:arg1 [ rdf:type sp:eq ;
5043 + sp:arg1 spin:_arg1 ;
5044 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_other>
5045 + ] ;
5046 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLossForUnspecifiedReason> ;
5047 + sp:arg3 [ rdf:type sp:if ;
5048 + sp:arg1 [ rdf:type sp:eq ;
5049 + sp:arg1 spin:_arg1 ;
5050 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_processandoperationproblem>
5051 + ] ;
5052 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProcessAndOperationProblem> ;
5053 + sp:arg3 [ rdf:type sp:if ;
5054 + sp:arg1 [ rdf:type sp:eq ;
5055 + sp:arg1 spin:_arg1 ;
5056 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_production>
5057 + ] ;
5058 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss> ;
5059 + sp:arg3 [ rdf:type sp:if ;
5060 + sp:arg1 [ rdf:type sp:eq ;
5061 + sp:arg1 spin:_arg1 ;
5062 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_regulatoryreference>
5063 + ] ;
5064 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingRegulatoryReference> ;
5065 + sp:arg3 [ rdf:type sp:if ;
5066 + sp:arg1 [ rdf:type sp:eq ;
5067 + sp:arg1 spin:_arg1 ;
5068 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_reservoir>
5069 + ] ;
5070 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ReservoirLoss> ;
5071 + sp:arg3 [ rdf:type sp:if ;
5072 + sp:arg1 [ rdf:type sp:eq ;
5073 + sp:arg1 spin:_arg1 ;
5074 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_testingandlogging>
5075 + ] ;
5076 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#TestingAndLogging> ;
5077 + sp:arg3 [ rdf:type sp:if ;
5078 + sp:arg1 [ rdf:type sp:eq ;
5079 + sp:arg1 spin:_arg1 ;
5080 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_unavailabletankerstorage>
5081 + ] ;
5082 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#UnavailableTankerStorage> ;
5083 + sp:arg3 [ rdf:type sp:if ;
5084 + sp:arg1 [ rdf:type sp:eq ;
5085 + sp:arg1 spin:_arg1 ;
5086 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellequipmentfailure-maint>
5087 + ] ;
5088 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellEquipmentFailureMaintenance> ;
5089 + sp:arg3 [ rdf:type sp:if ;
5090 + sp:arg1 [ rdf:type sp:eq ;
5091 + sp:arg1 spin:_arg1 ;
5092 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellplannedoperations>
5093 + ] ;
5094 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellPlannedOperations> ;
5095 + sp:arg3 [ rdf:type sp:if ;
5096 + sp:arg1 [ rdf:type sp:eq ;
5097 + sp:arg1 spin:_arg1 ;
5098 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellpreventivemaint>
5099 + ] ;
5100 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellPreventiveMaintenance> ;
5101 + sp:arg3 [ rdf:type sp:if ;
5102 + sp:arg1 [ rdf:type sp:eq ;
5103 + sp:arg1 spin:_arg1 ;
5104 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_weatherproblem>
5105 + ] ;
5106 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WeatherProblem> ;
5107 + sp:arg3 [ rdf:type sp:if ;
5108 + sp:arg1 [ rdf:type sp:eq ;
5109 + sp:arg1 spin:_arg1 ;
5110 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_hse>
5111 + ] ;
5112 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#HSEProblem> ;
5113 + sp:arg3 [ rdf:type sp:if ;
5114 + sp:arg1 [ rdf:type sp:eq ;
5115 + sp:arg1 spin:_arg1 ;
5116 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_strikelock-out>
5117 + ] ;
5118 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#StrikeOrLockout> ;
5119 + sp:arg3 [ rdf:type sp:if ;
5120 + sp:arg1 [ rdf:type sp:eq ;
5121 + sp:arg1 spin:_arg1 ;
5122 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_3rdpartyprocessing>
5123 + ] ;
5124 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
5125 + sp:arg3 [ rdf:type sp:if ;
5126 + sp:arg1 [ rdf:type sp:eq ;
5127 + sp:arg1 spin:_arg1 ;
5128 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_dailytotallossofprod>
5129 + ] ;
5130 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#DailyProductionOperationProcessingLoss> ;
5131 + sp:arg3 [ rdf:type sp:if ;
5132 + sp:arg1 [ rdf:type sp:eq ;
5133 + sp:arg1 spin:_arg1 ;
5134 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellproblems>
5135 + ] ;
5136 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellProblems> ;
5137 + sp:arg3 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss>
5138 + ]
5139 + ]
5140 + ]
5141 + ]
5142 + ]
5143 + ]
5144 + ]
5145 + ]
5146 + ]
5147 + ]
5148 + ]
5149 + ]
5150 + ]
5151 + ]
5152 + ]
5153 + ]
5154 + ]
5155 + ]
5156 + ]
5157 + ]
5158 + ]
5159 + ]
5160 + ]
5161 + ]
5162 + ] ;
5163 + sp:variable
5164 + [ sp:varName "reasonForLossOfProcessingType"^^xsd:string
5165 + ]
5166 + ])
5167 + ] .
5168 +
5169 +ep-mpr-spin-lib:selectReportPeriodType
5170 + rdf:type spin:Function ;
5171 + rdfs:label "select ReportPeriodType"^^xsd:string ;
5172 + rdfs:subClassOf ep-mpr-spin-lib:Function ;
5173 + spin:body
5174 + [ rdf:type sp:Select ;
5175 + sp:resultVariables ([ sp:varName "reportPeriodType"^^xsd:string
5176 + ]) ;
5177 + sp:where ([ rdf:type sp:Bind ;
5178 + sp:expression
5179 + [ rdf:type sp:if ;
5180 + sp:arg1 [ rdf:type sp:eq ;
5181 + sp:arg1 spin:_arg1 ;
5182 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_0600>
5183 + ] ;
5184 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
5185 + sp:arg3 [ rdf:type sp:if ;
5186 + sp:arg1 [ rdf:type sp:eq ;
5187 + sp:arg1 spin:_arg1 ;
5188 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailymonthtodate>
5189 + ] ;
5190 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportMonthToDate> ;
5191 + sp:arg3 [ rdf:type sp:if ;
5192 + sp:arg1 [ rdf:type sp:eq ;
5193 + sp:arg1 spin:_arg1 ;
5194 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailyyeartodate>
5195 + ] ;
5196 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportYearToDate> ;
5197 + sp:arg3 [ rdf:type sp:if ;
5198 + sp:arg1 [ rdf:type sp:eq ;
5199 + sp:arg1 spin:_arg1 ;
5200 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_day>
5201 + ] ;
5202 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyReport> ;
5203 + sp:arg3 [ rdf:type sp:if ;
5204 + sp:arg1 [ rdf:type sp:eq ;
5205 + sp:arg1 spin:_arg1 ;
5206 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasday>
5207 + ] ;
5208 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyReport> ;
5209 + sp:arg3 [ rdf:type sp:if ;
5210 + sp:arg1 [ rdf:type sp:eq ;
5211 + sp:arg1 spin:_arg1 ;
5212 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasmonth>
5213 + ] ;
5214 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyReport> ;
5215 + sp:arg3 [ rdf:type sp:if ;
5216 + sp:arg1 [ rdf:type sp:eq ;
5217 + sp:arg1 spin:_arg1 ;
5218 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyear>
5219 + ] ;
5220 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyReport> ;
5221 + sp:arg3 [ rdf:type sp:if ;
5222 + sp:arg1 [ rdf:type sp:eq ;
5223 + sp:arg1 spin:_arg1 ;
5224 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyeartodate>
5225 + ] ;
5226 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportYearToDate> ;
5227 + sp:arg3 [ rdf:type sp:if ;
5228 + sp:arg1 [ rdf:type sp:eq ;
5229 + sp:arg1 spin:_arg1 ;
5230 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_midnight>
5231 + ] ;
5232 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
5233 + sp:arg3 [ rdf:type sp:if ;
5234 + sp:arg1 [ rdf:type sp:eq ;
5235 + sp:arg1 spin:_arg1 ;
5236 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_month>
5237 + ] ;
5238 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyReport> ;
5239 + sp:arg3 [ rdf:type sp:if ;
5240 + sp:arg1 [ rdf:type sp:eq ;
5241 + sp:arg1 spin:_arg1 ;
5242 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_monthtodate>
5243 + ] ;
5244 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportMonthToDate> ;
5245 + sp:arg3 [ rdf:type sp:if ;
5246 + sp:arg1 [ rdf:type sp:eq ;
5247 + sp:arg1 spin:_arg1 ;
5248 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_noon>
5249 + ] ;
5250 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
5251 + sp:arg3 [ rdf:type sp:if ;
5252 + sp:arg1 [ rdf:type sp:eq ;
5253 + sp:arg1 spin:_arg1 ;
5254 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_previousperiod>
5255 + ] ;
5256 + sp:arg2 <http://www.reportinghub.no/ep/schema/report#Report> ;
5257 + sp:arg3 [ rdf:type sp:if ;
5258 + sp:arg1 [ rdf:type sp:eq ;
5259 + sp:arg1 spin:_arg1 ;
5260 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_report>
5261 + ] ;
5262 + sp:arg2 <http://www.reportinghub.no/ep/schema/report#Report> ;
5263 + sp:arg3 [ rdf:type sp:if ;
5264 + sp:arg1 [ rdf:type sp:eq ;
5265 + sp:arg1 spin:_arg1 ;
5266 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportend>
5267 + ] ;
5268 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
5269 + sp:arg3 [ rdf:type sp:if ;
5270 + sp:arg1 [ rdf:type sp:eq ;
5271 + sp:arg1 spin:_arg1 ;
5272 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportstart>
5273 + ] ;
5274 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
5275 + sp:arg3 [ rdf:type sp:if ;
5276 + sp:arg1 [ rdf:type sp:eq ;
5277 + sp:arg1 spin:_arg1 ;
5278 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_totalcumulative>
5279 + ] ;
5280 + sp:arg2 <http://www.reportinghub.no/ep/schema/report#Report> ;
5281 + sp:arg3 [ rdf:type sp:if ;
5282 + sp:arg1 [ rdf:type sp:eq ;
5283 + sp:arg1 spin:_arg1 ;
5284 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_week>
5285 + ] ;
5286 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#WeeklyReport> ;
5287 + sp:arg3 [ rdf:type sp:if ;
5288 + sp:arg1 [ rdf:type sp:eq ;
5289 + sp:arg1 spin:_arg1 ;
5290 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_year>
5291 + ] ;
5292 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyReport> ;
5293 + sp:arg3 [ rdf:type sp:if ;
5294 + sp:arg1 [ rdf:type sp:eq ;
5295 + sp:arg1 spin:_arg1 ;
5296 + sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_yeartodate>
5297 + ] ;
5298 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportYearToDate> ;
5299 + sp:arg3 <http://www.reportinghub.no/ep/schema/report#Report>
5300 + ]
5301 + ]
5302 + ]
5303 + ]
5304 + ]
5305 + ]
5306 + ]
5307 + ]
5308 + ]
5309 + ]
5310 + ]
5311 + ]
5312 + ]
5313 + ]
5314 + ]
5315 + ]
5316 + ]
5317 + ]
5318 + ]
5319 + ] ;
5320 + sp:variable
5321 + [ sp:varName "reportPeriodType"^^xsd:string
5322 + ]
5323 + ])
5324 + ] .
5325 +
5060 ep-mpr-spin-lib:selectSalesActivityType 5326 ep-mpr-spin-lib:selectSalesActivityType
5061 rdf:type spin:Function ; 5327 rdf:type spin:Function ;
5062 rdfs:label "select SalesActivityType"^^xsd:string ; 5328 rdfs:label "select SalesActivityType"^^xsd:string ;
...@@ -7054,5 +7320,3 @@ ep-mpr-spin-lib:selectWorkScale ...@@ -7054,5 +7320,3 @@ ep-mpr-spin-lib:selectWorkScale
7054 ] 7320 ]
7055 ]) 7321 ])
7056 ] . 7322 ] .
7057 -
7058 -_:b1 sp:varName "productVolumeReportPeriodType"^^xsd:string .
......
1 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
5 +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
6 +
7 +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1#> .
8 +@prefix arg: <http://spinrdf.org/arg#> .
9 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
10 +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
11 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
16 +@prefix sp: <http://spinrdf.org/sp#> .
17 +@prefix spin: <http://spinrdf.org/spin#> .
18 +@prefix spl: <http://spinrdf.org/spl#> .
19 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
20 +
21 +<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 + spin:rule
23 + [ rdf:type sp:Construct ;
24 + rdfs:comment "STEP 40103 Set the hours worked year to date"^^xsd:string ;
25 + sp:templates ([ sp:object _:b1 ;
26 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
27 + sp:subject
28 + [ sp:varName "annualProductionOperationToDate"^^xsd:string
29 + ]
30 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
31 + sp:predicate rdf:type ;
32 + sp:subject _:b1
33 + ] [ sp:object
34 + [ sp:varName "realWorkYearToDate"^^xsd:string
35 + ] ;
36 + sp:predicate
37 + [ sp:varName "workYearToDateScale"^^xsd:string
38 + ] ;
39 + sp:subject _:b1
40 + ]) ;
41 + sp:where ([ sp:object spin:_this ;
42 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
43 + sp:subject
44 + [ sp:varName "productionReport"^^xsd:string
45 + ]
46 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
47 + sp:predicate rdf:type ;
48 + sp:subject
49 + [ sp:varName "productionOperationReport"^^xsd:string
50 + ]
51 + ] [ sp:object
52 + [ sp:varName "productionReport"^^xsd:string
53 + ] ;
54 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
55 + sp:subject
56 + [ sp:varName "productionOperationReport"^^xsd:string
57 + ]
58 + ] [ sp:object
59 + [ sp:varName "productionOperationRef"^^xsd:string
60 + ] ;
61 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
62 + sp:subject spin:_this
63 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
64 + sp:predicate rdf:type ;
65 + sp:subject
66 + [ sp:varName "productionOperationRef"^^xsd:string
67 + ]
68 + ] [ sp:object
69 + [ sp:varName "installationReportRef"^^xsd:string
70 + ] ;
71 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
72 + sp:subject
73 + [ sp:varName "productionOperationRef"^^xsd:string
74 + ]
75 + ] [ sp:object
76 + [ sp:varName "installationReportRef"^^xsd:string
77 + ] ;
78 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
79 + sp:subject
80 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
81 + ]
82 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
83 + sp:predicate rdf:type ;
84 + sp:subject
85 + [ sp:varName "productionOperation"^^xsd:string
86 + ]
87 + ] [ sp:object
88 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
89 + ] ;
90 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
91 + sp:subject
92 + [ sp:varName "productionOperation"^^xsd:string
93 + ]
94 + ] [ sp:object
95 + [ sp:varName "annualProductionOperationToDate"^^xsd:string
96 + ] ;
97 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
98 + sp:subject
99 + [ sp:varName "productionOperation"^^xsd:string
100 + ]
101 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
102 + sp:predicate rdf:type ;
103 + sp:subject
104 + [ sp:varName "annualProductionOperationToDate"^^xsd:string
105 + ]
106 + ] [ sp:object
107 + [ sp:varName "workYearToDateRef"^^xsd:string
108 + ] ;
109 + sp:predicate <http://www.epim.no/schemas/mprml/1#workYearToDateRef> ;
110 + sp:subject
111 + [ sp:varName "installationReportRef"^^xsd:string
112 + ]
113 + ] [ sp:object
114 + [ sp:varName "realWorkYearToDate"^^xsd:string
115 + ] ;
116 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
117 + sp:subject
118 + [ sp:varName "workYearToDateRef"^^xsd:string
119 + ]
120 + ] [ sp:object
121 + [ sp:varName "uomWorkYearToDate"^^xsd:string
122 + ] ;
123 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
124 + sp:subject
125 + [ sp:varName "workYearToDateRef"^^xsd:string
126 + ]
127 + ] [ rdf:type sp:Bind ;
128 + sp:expression
129 + [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
130 + sp:arg1 [ sp:varName "uomWorkYearToDate"^^xsd:string
131 + ]
132 + ] ;
133 + sp:variable
134 + [ sp:varName "workYearToDateScale"^^xsd:string
135 + ]
136 + ])
137 + ] ;
138 + spin:rule
139 + [ rdf:type sp:Construct ;
140 + rdfs:comment "STEP 40100 Create the ProductionOperationInstallationReport; the ProductionOperationActivity; and set the facility and number of beds"^^xsd:string ;
141 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationInstallationReport> ;
142 + sp:predicate rdf:type ;
143 + sp:subject _:b2
144 + ] [ sp:object
145 + [ sp:varName "productionOperationReport"^^xsd:string
146 + ] ;
147 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
148 + sp:subject _:b2
149 + ] [ sp:object
150 + [ sp:varName "installationReportRef"^^xsd:string
151 + ] ;
152 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
153 + sp:subject _:b2
154 + ] [ sp:object _:b3 ;
155 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
156 + sp:subject _:b2
157 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
158 + sp:predicate rdf:type ;
159 + sp:subject _:b3
160 + ] [ sp:object
161 + [ sp:varName "productionFacility"^^xsd:string
162 + ] ;
163 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
164 + sp:subject _:b3
165 + ] [ sp:object
166 + [ sp:varName "installationReportRef"^^xsd:string
167 + ] ;
168 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
169 + sp:subject _:b3
170 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
171 + sp:predicate rdf:type ;
172 + sp:subject _:b4
173 + ] [ sp:object _:b3 ;
174 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
175 + sp:subject _:b4
176 + ] [ sp:object _:b5 ;
177 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
178 + sp:subject _:b4
179 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
180 + sp:predicate rdf:type ;
181 + sp:subject _:b5
182 + ] [ sp:object _:b6 ;
183 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
184 + sp:subject _:b4
185 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
186 + sp:predicate rdf:type ;
187 + sp:subject _:b6
188 + ] [ sp:object
189 + [ sp:varName "bedsAvailable"^^xsd:string
190 + ] ;
191 + sp:predicate <http://www.reportinghub.no/ep/schema/production-facility#numberOfBedsAvailable> ;
192 + sp:subject _:b3
193 + ]) ;
194 + sp:where ([ sp:object spin:_this ;
195 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
196 + sp:subject
197 + [ sp:varName "productionReport"^^xsd:string
198 + ]
199 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
200 + sp:predicate rdf:type ;
201 + sp:subject
202 + [ sp:varName "productionOperationReport"^^xsd:string
203 + ]
204 + ] [ sp:object
205 + [ sp:varName "productionReport"^^xsd:string
206 + ] ;
207 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
208 + sp:subject
209 + [ sp:varName "productionOperationReport"^^xsd:string
210 + ]
211 + ] [ sp:object
212 + [ sp:varName "productionOperationRef"^^xsd:string
213 + ] ;
214 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
215 + sp:subject spin:_this
216 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
217 + sp:predicate rdf:type ;
218 + sp:subject
219 + [ sp:varName "productionOperationRef"^^xsd:string
220 + ]
221 + ] [ sp:object
222 + [ sp:varName "installationReportRef"^^xsd:string
223 + ] ;
224 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
225 + sp:subject
226 + [ sp:varName "productionOperationRef"^^xsd:string
227 + ]
228 + ] [ rdf:type sp:Optional ;
229 + sp:elements ([ sp:object
230 + [ sp:varName "installationRef"^^xsd:string
231 + ] ;
232 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
233 + sp:subject
234 + [ sp:varName "installationReportRef"^^xsd:string
235 + ]
236 + ] [ sp:object
237 + [ sp:varName "installationRef"^^xsd:string
238 + ] ;
239 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
240 + sp:subject
241 + [ sp:varName "productionFacility"^^xsd:string
242 + ]
243 + ])
244 + ] [ rdf:type sp:Optional ;
245 + sp:elements ([ sp:object
246 + [ sp:varName "bedsAvailable"^^xsd:string
247 + ] ;
248 + sp:predicate <http://www.epim.no/schemas/mprml/1#bedsAvailable> ;
249 + sp:subject
250 + [ sp:varName "installationReportRef"^^xsd:string
251 + ]
252 + ])
253 + ] [ rdf:type sp:Optional ;
254 + sp:elements ([ sp:object
255 + [ sp:varName "workRef"^^xsd:string
256 + ] ;
257 + sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
258 + sp:subject
259 + [ sp:varName "installationReportRef"^^xsd:string
260 + ]
261 + ] [ sp:object
262 + [ sp:varName "realWork"^^xsd:string
263 + ] ;
264 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
265 + sp:subject
266 + [ sp:varName "workRef"^^xsd:string
267 + ]
268 + ] [ sp:object
269 + [ sp:varName "uomWork"^^xsd:string
270 + ] ;
271 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
272 + sp:subject
273 + [ sp:varName "workRef"^^xsd:string
274 + ]
275 + ])
276 + ])
277 + ] ;
278 + spin:rule
279 + [ rdf:type sp:Construct ;
280 + rdfs:comment "STEP 40104 Set the crew numbers"^^xsd:string ;
281 + sp:templates ([ sp:object _:b7 ;
282 + sp:predicate <http://www.reportinghub.no/ep/schema/production-organization#hasCrew> ;
283 + sp:subject
284 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
285 + ]
286 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Crew> ;
287 + sp:predicate rdf:type ;
288 + sp:subject _:b7
289 + ] [ sp:object
290 + [ sp:varName "crewType"^^xsd:string
291 + ] ;
292 + sp:predicate rdf:type ;
293 + sp:subject _:b7
294 + ] [ sp:object
295 + [ sp:varName "crewCount"^^xsd:string
296 + ] ;
297 + sp:predicate <http://www.reportinghub.no/ep/schema/production-organization#numberInCrew> ;
298 + sp:subject _:b7
299 + ]) ;
300 + sp:where ([ sp:object spin:_this ;
301 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
302 + sp:subject
303 + [ sp:varName "productionReport"^^xsd:string
304 + ]
305 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
306 + sp:predicate rdf:type ;
307 + sp:subject
308 + [ sp:varName "productionOperationReport"^^xsd:string
309 + ]
310 + ] [ sp:object
311 + [ sp:varName "productionReport"^^xsd:string
312 + ] ;
313 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
314 + sp:subject
315 + [ sp:varName "productionOperationReport"^^xsd:string
316 + ]
317 + ] [ sp:object
318 + [ sp:varName "productionOperationRef"^^xsd:string
319 + ] ;
320 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
321 + sp:subject spin:_this
322 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
323 + sp:predicate rdf:type ;
324 + sp:subject
325 + [ sp:varName "productionOperationRef"^^xsd:string
326 + ]
327 + ] [ sp:object
328 + [ sp:varName "installationReportRef"^^xsd:string
329 + ] ;
330 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
331 + sp:subject
332 + [ sp:varName "productionOperationRef"^^xsd:string
333 + ]
334 + ] [ sp:object
335 + [ sp:varName "installationReportRef"^^xsd:string
336 + ] ;
337 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
338 + sp:subject
339 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
340 + ]
341 + ] [ sp:object
342 + [ sp:varName "crewCountRef"^^xsd:string
343 + ] ;
344 + sp:predicate <http://www.epim.no/schemas/mprml/1#crewCountRef> ;
345 + sp:subject
346 + [ sp:varName "installationReportRef"^^xsd:string
347 + ]
348 + ] [ sp:object
349 + [ sp:varName "crewCount"^^xsd:string
350 + ] ;
351 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
352 + sp:subject
353 + [ sp:varName "crewCountRef"^^xsd:string
354 + ]
355 + ] [ sp:object
356 + [ sp:varName "typeRef"^^xsd:string
357 + ] ;
358 + sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
359 + sp:subject
360 + [ sp:varName "crewCountRef"^^xsd:string
361 + ]
362 + ] [ rdf:type sp:Bind ;
363 + sp:expression
364 + [ rdf:type ep-mpr-spin-lib:selectCrewType ;
365 + sp:arg1 [ sp:varName "typeRef"^^xsd:string
366 + ]
367 + ] ;
368 + sp:variable
369 + [ sp:varName "crewType"^^xsd:string
370 + ]
371 + ])
372 + ] ;
373 + spin:rule
374 + [ rdf:type sp:Construct ;
375 + rdfs:comment "STEP 40101 Set the hours worked in reporting period"^^xsd:string ;
376 + sp:templates ([ sp:object _:b8 ;
377 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
378 + sp:subject
379 + [ sp:varName "productionOperation"^^xsd:string
380 + ]
381 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
382 + sp:predicate rdf:type ;
383 + sp:subject _:b8
384 + ] [ sp:object
385 + [ sp:varName "realWork"^^xsd:string
386 + ] ;
387 + sp:predicate
388 + [ sp:varName "workScale"^^xsd:string
389 + ] ;
390 + sp:subject _:b8
391 + ]) ;
392 + sp:where ([ sp:object spin:_this ;
393 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
394 + sp:subject
395 + [ sp:varName "productionReport"^^xsd:string
396 + ]
397 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
398 + sp:predicate rdf:type ;
399 + sp:subject
400 + [ sp:varName "productionOperationReport"^^xsd:string
401 + ]
402 + ] [ sp:object
403 + [ sp:varName "productionReport"^^xsd:string
404 + ] ;
405 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
406 + sp:subject
407 + [ sp:varName "productionOperationReport"^^xsd:string
408 + ]
409 + ] [ sp:object
410 + [ sp:varName "productionOperationRef"^^xsd:string
411 + ] ;
412 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
413 + sp:subject spin:_this
414 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
415 + sp:predicate rdf:type ;
416 + sp:subject
417 + [ sp:varName "productionOperationRef"^^xsd:string
418 + ]
419 + ] [ sp:object
420 + [ sp:varName "installationReportRef"^^xsd:string
421 + ] ;
422 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
423 + sp:subject
424 + [ sp:varName "productionOperationRef"^^xsd:string
425 + ]
426 + ] [ sp:object
427 + [ sp:varName "installationReportRef"^^xsd:string
428 + ] ;
429 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
430 + sp:subject
431 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
432 + ]
433 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
434 + sp:predicate rdf:type ;
435 + sp:subject
436 + [ sp:varName "productionOperation"^^xsd:string
437 + ]
438 + ] [ sp:object
439 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
440 + ] ;
441 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
442 + sp:subject
443 + [ sp:varName "productionOperation"^^xsd:string
444 + ]
445 + ] [ sp:object
446 + [ sp:varName "workRef"^^xsd:string
447 + ] ;
448 + sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
449 + sp:subject
450 + [ sp:varName "installationReportRef"^^xsd:string
451 + ]
452 + ] [ sp:object
453 + [ sp:varName "realWork"^^xsd:string
454 + ] ;
455 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
456 + sp:subject
457 + [ sp:varName "workRef"^^xsd:string
458 + ]
459 + ] [ sp:object
460 + [ sp:varName "uomWork"^^xsd:string
461 + ] ;
462 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
463 + sp:subject
464 + [ sp:varName "workRef"^^xsd:string
465 + ]
466 + ] [ rdf:type sp:Bind ;
467 + sp:expression
468 + [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
469 + sp:arg1 [ sp:varName "uomWork"^^xsd:string
470 + ]
471 + ] ;
472 + sp:variable
473 + [ sp:varName "workScale"^^xsd:string
474 + ]
475 + ])
476 + ] ;
477 + spin:rule
478 + [ rdf:type sp:Construct ;
479 + rdfs:comment "STEP 40102 Set the hours worked month to date"^^xsd:string ;
480 + sp:templates ([ sp:object _:b9 ;
481 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
482 + sp:subject
483 + [ sp:varName "monthlyProductionOperationToDate"^^xsd:string
484 + ]
485 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
486 + sp:predicate rdf:type ;
487 + sp:subject _:b9
488 + ] [ sp:object
489 + [ sp:varName "realWorkMonthToDate"^^xsd:string
490 + ] ;
491 + sp:predicate
492 + [ sp:varName "workMonthToDateScale"^^xsd:string
493 + ] ;
494 + sp:subject _:b9
495 + ]) ;
496 + sp:where ([ sp:object spin:_this ;
497 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
498 + sp:subject
499 + [ sp:varName "productionReport"^^xsd:string
500 + ]
501 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
502 + sp:predicate rdf:type ;
503 + sp:subject
504 + [ sp:varName "productionOperationReport"^^xsd:string
505 + ]
506 + ] [ sp:object
507 + [ sp:varName "productionReport"^^xsd:string
508 + ] ;
509 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
510 + sp:subject
511 + [ sp:varName "productionOperationReport"^^xsd:string
512 + ]
513 + ] [ sp:object
514 + [ sp:varName "productionOperationRef"^^xsd:string
515 + ] ;
516 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
517 + sp:subject spin:_this
518 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
519 + sp:predicate rdf:type ;
520 + sp:subject
521 + [ sp:varName "productionOperationRef"^^xsd:string
522 + ]
523 + ] [ sp:object
524 + [ sp:varName "installationReportRef"^^xsd:string
525 + ] ;
526 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
527 + sp:subject
528 + [ sp:varName "productionOperationRef"^^xsd:string
529 + ]
530 + ] [ sp:object
531 + [ sp:varName "installationReportRef"^^xsd:string
532 + ] ;
533 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
534 + sp:subject
535 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
536 + ]
537 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
538 + sp:predicate rdf:type ;
539 + sp:subject
540 + [ sp:varName "productionOperation"^^xsd:string
541 + ]
542 + ] [ sp:object
543 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
544 + ] ;
545 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
546 + sp:subject
547 + [ sp:varName "productionOperation"^^xsd:string
548 + ]
549 + ] [ sp:object
550 + [ sp:varName "monthlyProductionOperationToDate"^^xsd:string
551 + ] ;
552 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
553 + sp:subject
554 + [ sp:varName "productionOperation"^^xsd:string
555 + ]
556 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
557 + sp:predicate rdf:type ;
558 + sp:subject
559 + [ sp:varName "monthlyProductionOperationToDate"^^xsd:string
560 + ]
561 + ] [ sp:object
562 + [ sp:varName "workMonthToDateRef"^^xsd:string
563 + ] ;
564 + sp:predicate <http://www.epim.no/schemas/mprml/1#workMonthToDateRef> ;
565 + sp:subject
566 + [ sp:varName "installationReportRef"^^xsd:string
567 + ]
568 + ] [ sp:object
569 + [ sp:varName "realWorkMonthToDate"^^xsd:string
570 + ] ;
571 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
572 + sp:subject
573 + [ sp:varName "workMonthToDateRef"^^xsd:string
574 + ]
575 + ] [ sp:object
576 + [ sp:varName "uomWorkMonthToDate"^^xsd:string
577 + ] ;
578 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
579 + sp:subject
580 + [ sp:varName "workMonthToDateRef"^^xsd:string
581 + ]
582 + ] [ rdf:type sp:Bind ;
583 + sp:expression
584 + [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
585 + sp:arg1 [ sp:varName "uomWorkMonthToDate"^^xsd:string
586 + ]
587 + ] ;
588 + sp:variable
589 + [ sp:varName "workMonthToDateScale"^^xsd:string
590 + ]
591 + ])
592 + ] .
593 +
594 +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1>
595 + rdf:type owl:Ontology ;
596 + 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> ;
597 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .
...@@ -21,97 +21,6 @@ ...@@ -21,97 +21,6 @@
21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 spin:rule 22 spin:rule
23 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
24 - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
25 - sp:templates ([ sp:object
26 - [ sp:varName "reportKind"^^xsd:string
27 - ] ;
28 - sp:predicate rdf:type ;
29 - sp:subject
30 - [ sp:varName "productVolumeReport"^^xsd:string
31 - ]
32 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
33 - sp:predicate rdf:type ;
34 - sp:subject
35 - [ sp:varName "reportKind"^^xsd:string
36 - ]
37 - ] [ sp:object
38 - [ sp:varName "kind"^^xsd:string
39 - ] ;
40 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
41 - sp:subject
42 - [ sp:varName "reportKind"^^xsd:string
43 - ]
44 - ]) ;
45 - sp:where ([ sp:object spin:_this ;
46 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
47 - sp:subject
48 - [ sp:varName "productionReport"^^xsd:string
49 - ]
50 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
51 - sp:predicate rdf:type ;
52 - sp:subject
53 - [ sp:varName "productVolumeReport"^^xsd:string
54 - ]
55 - ] [ sp:object
56 - [ sp:varName "productionReport"^^xsd:string
57 - ] ;
58 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
59 - sp:subject
60 - [ sp:varName "productVolumeReport"^^xsd:string
61 - ]
62 - ] [ sp:object
63 - [ sp:varName "productVolumeRef"^^xsd:string
64 - ] ;
65 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
66 - sp:subject spin:_this
67 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
68 - sp:predicate rdf:type ;
69 - sp:subject
70 - [ sp:varName "productVolumeRef"^^xsd:string
71 - ]
72 - ] [ sp:object
73 - [ sp:varName "nameRef"^^xsd:string
74 - ] ;
75 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
76 - sp:subject
77 - [ sp:varName "productVolumeRef"^^xsd:string
78 - ]
79 - ] [ sp:object
80 - [ sp:varName "name"^^xsd:string
81 - ] ;
82 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
83 - sp:subject
84 - [ sp:varName "nameRef"^^xsd:string
85 - ]
86 - ] [ sp:object
87 - [ sp:varName "kind"^^xsd:string
88 - ] ;
89 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
90 - sp:subject
91 - [ sp:varName "productVolumeRef"^^xsd:string
92 - ]
93 - ] [ rdf:type sp:Bind ;
94 - sp:expression
95 - [ rdf:type ep-spin-lib:normalizeString ;
96 - sp:arg1 [ sp:varName "kind"^^xsd:string
97 - ]
98 - ] ;
99 - sp:variable
100 - [ sp:varName "normalizedKind"^^xsd:string
101 - ]
102 - ] [ rdf:type sp:Bind ;
103 - sp:expression
104 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
105 - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
106 - ]
107 - ] ;
108 - sp:variable
109 - [ sp:varName "reportKind"^^xsd:string
110 - ]
111 - ])
112 - ] ;
113 - spin:rule
114 - [ rdf:type sp:Construct ;
115 rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 24 rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
116 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; 25 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
117 sp:predicate rdf:type ; 26 sp:predicate rdf:type ;
...@@ -127,7 +36,7 @@ ...@@ -127,7 +36,7 @@
127 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 36 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
128 sp:subject _:b1 37 sp:subject _:b1
129 ] [ sp:object 38 ] [ sp:object
130 - [ sp:varName "productVolumeReportPeriodType"^^xsd:string 39 + [ sp:varName "reportPeriodType"^^xsd:string
131 ] ; 40 ] ;
132 sp:predicate rdf:type ; 41 sp:predicate rdf:type ;
133 sp:subject _:b1 42 sp:subject _:b1
...@@ -253,76 +162,76 @@ ...@@ -253,76 +162,76 @@
253 ]) 162 ])
254 ] [ rdf:type sp:Bind ; 163 ] [ rdf:type sp:Bind ;
255 sp:expression 164 sp:expression
256 - [ rdf:type ep-mpr-spin-lib:selectProductVolumeReportPeriodType ; 165 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
257 sp:arg1 [ sp:varName "periodKindRef"^^xsd:string 166 sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
258 ] 167 ]
259 ] ; 168 ] ;
260 sp:variable 169 sp:variable
261 - [ sp:varName "productVolumeReportPeriodType"^^xsd:string 170 + [ sp:varName "reportPeriodType"^^xsd:string
262 ] 171 ]
263 ]) 172 ])
264 ] ; 173 ] ;
265 spin:rule 174 spin:rule
266 [ rdf:type sp:Construct ; 175 [ rdf:type sp:Construct ;
267 - rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; 176 + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
268 sp:templates ([ sp:object 177 sp:templates ([ sp:object
269 - [ sp:varName "dateStart"^^xsd:string 178 + [ sp:varName "dTimStart"^^xsd:string
270 ] ; 179 ] ;
271 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 180 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
272 sp:subject 181 sp:subject
273 [ sp:varName "productionFlow"^^xsd:string 182 [ sp:varName "productionFlow"^^xsd:string
274 ] 183 ]
275 ] [ sp:object 184 ] [ sp:object
276 - [ sp:varName "dateEnd"^^xsd:string 185 + [ sp:varName "dTimEnd"^^xsd:string
277 ] ; 186 ] ;
278 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 187 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
279 sp:subject 188 sp:subject
280 [ sp:varName "productionFlow"^^xsd:string 189 [ sp:varName "productionFlow"^^xsd:string
281 ] 190 ]
282 ] [ sp:object 191 ] [ sp:object
283 - [ sp:varName "dateEnd"^^xsd:string 192 + [ sp:varName "dTimEnd"^^xsd:string
284 ] ; 193 ] ;
285 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 194 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
286 sp:subject 195 sp:subject
287 [ sp:varName "productionFlowToDate"^^xsd:string 196 [ sp:varName "productionFlowToDate"^^xsd:string
288 ] 197 ]
289 ] [ sp:object 198 ] [ sp:object
290 - [ sp:varName "dateStart"^^xsd:string 199 + [ sp:varName "dTimStart"^^xsd:string
291 ] ; 200 ] ;
292 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 201 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
293 sp:subject 202 sp:subject
294 [ sp:varName "productionInventory"^^xsd:string 203 [ sp:varName "productionInventory"^^xsd:string
295 ] 204 ]
296 ] [ sp:object 205 ] [ sp:object
297 - [ sp:varName "dateEnd"^^xsd:string 206 + [ sp:varName "dTimEnd"^^xsd:string
298 ] ; 207 ] ;
299 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 208 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
300 sp:subject 209 sp:subject
301 [ sp:varName "productionInventory"^^xsd:string 210 [ sp:varName "productionInventory"^^xsd:string
302 ] 211 ]
303 ] [ sp:object 212 ] [ sp:object
304 - [ sp:varName "dateEnd"^^xsd:string 213 + [ sp:varName "dTimEnd"^^xsd:string
305 ] ; 214 ] ;
306 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 215 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
307 sp:subject 216 sp:subject
308 [ sp:varName "productionInventoryToDate"^^xsd:string 217 [ sp:varName "productionInventoryToDate"^^xsd:string
309 ] 218 ]
310 ] [ sp:object 219 ] [ sp:object
311 - [ sp:varName "dateStart"^^xsd:string 220 + [ sp:varName "dTimStart"^^xsd:string
312 ] ; 221 ] ;
313 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 222 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
314 sp:subject 223 sp:subject
315 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 224 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
316 ] 225 ]
317 ] [ sp:object 226 ] [ sp:object
318 - [ sp:varName "dateEnd"^^xsd:string 227 + [ sp:varName "dTimEnd"^^xsd:string
319 ] ; 228 ] ;
320 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 229 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
321 sp:subject 230 sp:subject
322 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 231 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
323 ] 232 ]
324 ] [ sp:object 233 ] [ sp:object
325 - [ sp:varName "dateEnd"^^xsd:string 234 + [ sp:varName "dTimEnd"^^xsd:string
326 ] ; 235 ] ;
327 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 236 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
328 sp:subject 237 sp:subject
...@@ -340,16 +249,16 @@ ...@@ -340,16 +249,16 @@
340 [ sp:varName "productVolumeRef"^^xsd:string 249 [ sp:varName "productVolumeRef"^^xsd:string
341 ] 250 ]
342 ] [ sp:object 251 ] [ sp:object
343 - [ sp:varName "dateStart"^^xsd:string 252 + [ sp:varName "dTimStart"^^xsd:string
344 ] ; 253 ] ;
345 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 254 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
346 sp:subject 255 sp:subject
347 [ sp:varName "productVolumeRef"^^xsd:string 256 [ sp:varName "productVolumeRef"^^xsd:string
348 ] 257 ]
349 ] [ sp:object 258 ] [ sp:object
350 - [ sp:varName "dateEnd"^^xsd:string 259 + [ sp:varName "dTimEnd"^^xsd:string
351 ] ; 260 ] ;
352 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 261 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
353 sp:subject 262 sp:subject
354 [ sp:varName "productVolumeRef"^^xsd:string 263 [ sp:varName "productVolumeRef"^^xsd:string
355 ] 264 ]
...@@ -429,57 +338,52 @@ ...@@ -429,57 +338,52 @@
429 ] ; 338 ] ;
430 spin:rule 339 spin:rule
431 [ rdf:type sp:Construct ; 340 [ rdf:type sp:Construct ;
432 - rdfs:comment """STEP 20060 Set the facility operator 341 + rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ;
433 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; 342 + sp:templates ([ sp:object
434 - sp:templates ([ sp:object _:b8 ; 343 + [ sp:varName "contextFacility"^^xsd:string
435 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; 344 + ] ;
345 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
436 sp:subject 346 sp:subject
437 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 347 + [ sp:varName "productionFacility"^^xsd:string
438 ] 348 ]
439 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
440 - sp:predicate rdf:type ;
441 - sp:subject _:b8
442 - ] [ sp:object
443 - [ sp:varName "operator"^^xsd:string
444 - ] ;
445 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
446 - sp:subject _:b8
447 ]) ; 349 ]) ;
448 sp:where ([ sp:object 350 sp:where ([ sp:object
449 [ sp:varName "productVolumeRef"^^xsd:string 351 [ sp:varName "productVolumeRef"^^xsd:string
450 ] ; 352 ] ;
451 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 353 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
452 sp:subject spin:_this 354 sp:subject spin:_this
453 - ] [ sp:object 355 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
454 - [ sp:varName "productVolumeRef"^^xsd:string
455 - ] ;
456 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
457 - sp:subject
458 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
459 - ]
460 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
461 sp:predicate rdf:type ; 356 sp:predicate rdf:type ;
462 sp:subject 357 sp:subject
463 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 358 + [ sp:varName "productVolumeRef"^^xsd:string
464 ] 359 ]
465 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 360 + ] [ sp:object
466 - sp:predicate rdf:type ; 361 + [ sp:varName "installationRef"^^xsd:string
362 + ] ;
363 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
467 sp:subject 364 sp:subject
468 [ sp:varName "productVolumeRef"^^xsd:string 365 [ sp:varName "productVolumeRef"^^xsd:string
469 ] 366 ]
470 ] [ sp:object 367 ] [ sp:object
471 - [ sp:varName "operatorRef"^^xsd:string 368 + [ sp:varName "installationRef"^^xsd:string
472 ] ; 369 ] ;
473 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 370 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
371 + sp:subject
372 + [ sp:varName "productionFacility"^^xsd:string
373 + ]
374 + ] [ sp:object
375 + [ sp:varName "contextFacilityRef"^^xsd:string
376 + ] ;
377 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
474 sp:subject 378 sp:subject
475 [ sp:varName "productVolumeRef"^^xsd:string 379 [ sp:varName "productVolumeRef"^^xsd:string
476 ] 380 ]
477 ] [ sp:object 381 ] [ sp:object
478 - [ sp:varName "operatorRef"^^xsd:string 382 + [ sp:varName "contextFacilityRef"^^xsd:string
479 ] ; 383 ] ;
480 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 384 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
481 sp:subject 385 sp:subject
482 - [ sp:varName "operator"^^xsd:string 386 + [ sp:varName "contextFacility"^^xsd:string
483 ] 387 ]
484 ]) 388 ])
485 ] ; 389 ] ;
...@@ -553,116 +457,121 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -553,116 +457,121 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
553 ] ; 457 ] ;
554 spin:rule 458 spin:rule
555 [ rdf:type sp:Construct ; 459 [ rdf:type sp:Construct ;
556 - rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ; 460 + rdfs:comment """STEP 20060 Set the facility operator
557 - sp:templates ([ sp:object 461 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
558 - [ sp:varName "contextFacility"^^xsd:string 462 + sp:templates ([ sp:object _:b8 ;
559 - ] ; 463 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
560 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
561 sp:subject 464 sp:subject
562 - [ sp:varName "productionFacility"^^xsd:string 465 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
563 ] 466 ]
467 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
468 + sp:predicate rdf:type ;
469 + sp:subject _:b8
470 + ] [ sp:object
471 + [ sp:varName "operator"^^xsd:string
472 + ] ;
473 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
474 + sp:subject _:b8
564 ]) ; 475 ]) ;
565 sp:where ([ sp:object 476 sp:where ([ sp:object
566 [ sp:varName "productVolumeRef"^^xsd:string 477 [ sp:varName "productVolumeRef"^^xsd:string
567 ] ; 478 ] ;
568 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 479 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
569 sp:subject spin:_this 480 sp:subject spin:_this
570 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
571 - sp:predicate rdf:type ;
572 - sp:subject
573 - [ sp:varName "productVolumeRef"^^xsd:string
574 - ]
575 ] [ sp:object 481 ] [ sp:object
576 - [ sp:varName "installationRef"^^xsd:string
577 - ] ;
578 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
579 - sp:subject
580 [ sp:varName "productVolumeRef"^^xsd:string 482 [ sp:varName "productVolumeRef"^^xsd:string
581 - ]
582 - ] [ sp:object
583 - [ sp:varName "installationRef"^^xsd:string
584 ] ; 483 ] ;
585 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 484 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
586 sp:subject 485 sp:subject
587 - [ sp:varName "productionFacility"^^xsd:string 486 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
487 + ]
488 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
489 + sp:predicate rdf:type ;
490 + sp:subject
491 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
492 + ]
493 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
494 + sp:predicate rdf:type ;
495 + sp:subject
496 + [ sp:varName "productVolumeRef"^^xsd:string
588 ] 497 ]
589 ] [ sp:object 498 ] [ sp:object
590 - [ sp:varName "contextFacilityRef"^^xsd:string 499 + [ sp:varName "operatorRef"^^xsd:string
591 ] ; 500 ] ;
592 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 501 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
593 sp:subject 502 sp:subject
594 [ sp:varName "productVolumeRef"^^xsd:string 503 [ sp:varName "productVolumeRef"^^xsd:string
595 ] 504 ]
596 ] [ sp:object 505 ] [ sp:object
597 - [ sp:varName "contextFacilityRef"^^xsd:string 506 + [ sp:varName "operatorRef"^^xsd:string
598 ] ; 507 ] ;
599 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 508 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
600 sp:subject 509 sp:subject
601 - [ sp:varName "contextFacility"^^xsd:string 510 + [ sp:varName "operator"^^xsd:string
602 ] 511 ]
603 ]) 512 ])
604 ] ; 513 ] ;
605 spin:rule 514 spin:rule
606 [ rdf:type sp:Construct ; 515 [ rdf:type sp:Construct ;
607 - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; 516 + rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
608 sp:templates ([ sp:object 517 sp:templates ([ sp:object
609 - [ sp:varName "dTimStart"^^xsd:string 518 + [ sp:varName "dateStart"^^xsd:string
610 ] ; 519 ] ;
611 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 520 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
612 sp:subject 521 sp:subject
613 [ sp:varName "productionFlow"^^xsd:string 522 [ sp:varName "productionFlow"^^xsd:string
614 ] 523 ]
615 ] [ sp:object 524 ] [ sp:object
616 - [ sp:varName "dTimEnd"^^xsd:string 525 + [ sp:varName "dateEnd"^^xsd:string
617 ] ; 526 ] ;
618 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 527 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
619 sp:subject 528 sp:subject
620 [ sp:varName "productionFlow"^^xsd:string 529 [ sp:varName "productionFlow"^^xsd:string
621 ] 530 ]
622 ] [ sp:object 531 ] [ sp:object
623 - [ sp:varName "dTimEnd"^^xsd:string 532 + [ sp:varName "dateEnd"^^xsd:string
624 ] ; 533 ] ;
625 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 534 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
626 sp:subject 535 sp:subject
627 [ sp:varName "productionFlowToDate"^^xsd:string 536 [ sp:varName "productionFlowToDate"^^xsd:string
628 ] 537 ]
629 ] [ sp:object 538 ] [ sp:object
630 - [ sp:varName "dTimStart"^^xsd:string 539 + [ sp:varName "dateStart"^^xsd:string
631 ] ; 540 ] ;
632 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 541 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
633 sp:subject 542 sp:subject
634 [ sp:varName "productionInventory"^^xsd:string 543 [ sp:varName "productionInventory"^^xsd:string
635 ] 544 ]
636 ] [ sp:object 545 ] [ sp:object
637 - [ sp:varName "dTimEnd"^^xsd:string 546 + [ sp:varName "dateEnd"^^xsd:string
638 ] ; 547 ] ;
639 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 548 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
640 sp:subject 549 sp:subject
641 [ sp:varName "productionInventory"^^xsd:string 550 [ sp:varName "productionInventory"^^xsd:string
642 ] 551 ]
643 ] [ sp:object 552 ] [ sp:object
644 - [ sp:varName "dTimEnd"^^xsd:string 553 + [ sp:varName "dateEnd"^^xsd:string
645 ] ; 554 ] ;
646 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 555 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
647 sp:subject 556 sp:subject
648 [ sp:varName "productionInventoryToDate"^^xsd:string 557 [ sp:varName "productionInventoryToDate"^^xsd:string
649 ] 558 ]
650 ] [ sp:object 559 ] [ sp:object
651 - [ sp:varName "dTimStart"^^xsd:string 560 + [ sp:varName "dateStart"^^xsd:string
652 ] ; 561 ] ;
653 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 562 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
654 sp:subject 563 sp:subject
655 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 564 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
656 ] 565 ]
657 ] [ sp:object 566 ] [ sp:object
658 - [ sp:varName "dTimEnd"^^xsd:string 567 + [ sp:varName "dateEnd"^^xsd:string
659 ] ; 568 ] ;
660 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 569 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
661 sp:subject 570 sp:subject
662 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 571 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
663 ] 572 ]
664 ] [ sp:object 573 ] [ sp:object
665 - [ sp:varName "dTimEnd"^^xsd:string 574 + [ sp:varName "dateEnd"^^xsd:string
666 ] ; 575 ] ;
667 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 576 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
668 sp:subject 577 sp:subject
...@@ -680,16 +589,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -680,16 +589,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
680 [ sp:varName "productVolumeRef"^^xsd:string 589 [ sp:varName "productVolumeRef"^^xsd:string
681 ] 590 ]
682 ] [ sp:object 591 ] [ sp:object
683 - [ sp:varName "dTimStart"^^xsd:string 592 + [ sp:varName "dateStart"^^xsd:string
684 ] ; 593 ] ;
685 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 594 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
686 sp:subject 595 sp:subject
687 [ sp:varName "productVolumeRef"^^xsd:string 596 [ sp:varName "productVolumeRef"^^xsd:string
688 ] 597 ]
689 ] [ sp:object 598 ] [ sp:object
690 - [ sp:varName "dTimEnd"^^xsd:string 599 + [ sp:varName "dateEnd"^^xsd:string
691 ] ; 600 ] ;
692 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 601 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
693 sp:subject 602 sp:subject
694 [ sp:varName "productVolumeRef"^^xsd:string 603 [ sp:varName "productVolumeRef"^^xsd:string
695 ] 604 ]
...@@ -854,9 +763,100 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -854,9 +763,100 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
854 [ sp:varName "productionFacilityToDate"^^xsd:string 763 [ sp:varName "productionFacilityToDate"^^xsd:string
855 ] 764 ]
856 ]) 765 ])
766 + ] ;
767 + spin:rule
768 + [ rdf:type sp:Construct ;
769 + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
770 + sp:templates ([ sp:object
771 + [ sp:varName "reportKind"^^xsd:string
772 + ] ;
773 + sp:predicate rdf:type ;
774 + sp:subject
775 + [ sp:varName "productVolumeReport"^^xsd:string
776 + ]
777 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
778 + sp:predicate rdf:type ;
779 + sp:subject
780 + [ sp:varName "reportKind"^^xsd:string
781 + ]
782 + ] [ sp:object
783 + [ sp:varName "kind"^^xsd:string
784 + ] ;
785 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
786 + sp:subject
787 + [ sp:varName "reportKind"^^xsd:string
788 + ]
789 + ]) ;
790 + sp:where ([ sp:object spin:_this ;
791 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
792 + sp:subject
793 + [ sp:varName "productionReport"^^xsd:string
794 + ]
795 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
796 + sp:predicate rdf:type ;
797 + sp:subject
798 + [ sp:varName "productVolumeReport"^^xsd:string
799 + ]
800 + ] [ sp:object
801 + [ sp:varName "productionReport"^^xsd:string
802 + ] ;
803 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
804 + sp:subject
805 + [ sp:varName "productVolumeReport"^^xsd:string
806 + ]
807 + ] [ sp:object
808 + [ sp:varName "productVolumeRef"^^xsd:string
809 + ] ;
810 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
811 + sp:subject spin:_this
812 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
813 + sp:predicate rdf:type ;
814 + sp:subject
815 + [ sp:varName "productVolumeRef"^^xsd:string
816 + ]
817 + ] [ sp:object
818 + [ sp:varName "nameRef"^^xsd:string
819 + ] ;
820 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
821 + sp:subject
822 + [ sp:varName "productVolumeRef"^^xsd:string
823 + ]
824 + ] [ sp:object
825 + [ sp:varName "name"^^xsd:string
826 + ] ;
827 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
828 + sp:subject
829 + [ sp:varName "nameRef"^^xsd:string
830 + ]
831 + ] [ sp:object
832 + [ sp:varName "kind"^^xsd:string
833 + ] ;
834 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
835 + sp:subject
836 + [ sp:varName "productVolumeRef"^^xsd:string
837 + ]
838 + ] [ rdf:type sp:Bind ;
839 + sp:expression
840 + [ rdf:type ep-spin-lib:normalizeString ;
841 + sp:arg1 [ sp:varName "kind"^^xsd:string
842 + ]
843 + ] ;
844 + sp:variable
845 + [ sp:varName "normalizedKind"^^xsd:string
846 + ]
847 + ] [ rdf:type sp:Bind ;
848 + sp:expression
849 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
850 + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
851 + ]
852 + ] ;
853 + sp:variable
854 + [ sp:varName "reportKind"^^xsd:string
855 + ]
856 + ])
857 ] . 857 ] .
858 858
859 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> 859 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
860 rdf:type owl:Ontology ; 860 rdf:type owl:Ontology ;
861 - 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> ; 861 + 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> ;
862 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 862 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
5 +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
6 +
7 +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1#> .
8 +@prefix arg: <http://spinrdf.org/arg#> .
9 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
10 +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
11 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
16 +@prefix sp: <http://spinrdf.org/sp#> .
17 +@prefix spin: <http://spinrdf.org/spin#> .
18 +@prefix spl: <http://spinrdf.org/spl#> .
19 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
20 +
21 +<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 + spin:rule
23 + [ rdf:type sp:Construct ;
24 + rdfs:comment "STEP 40201 Create the ProductionOperationProduction activity"^^xsd:string ;
25 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProduction> ;
26 + sp:predicate rdf:type ;
27 + sp:subject _:b1
28 + ] [ sp:object
29 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
30 + ] ;
31 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
32 + sp:subject _:b1
33 + ] [ sp:object
34 + [ sp:varName "lostProductionRef"^^xsd:string
35 + ] ;
36 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
37 + sp:subject _:b1
38 + ]) ;
39 + sp:where ([ sp:object
40 + [ sp:varName "productionOperationRef"^^xsd:string
41 + ] ;
42 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
43 + sp:subject spin:_this
44 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
45 + sp:predicate rdf:type ;
46 + sp:subject
47 + [ sp:varName "productionOperationRef"^^xsd:string
48 + ]
49 + ] [ sp:object
50 + [ sp:varName "installationReportRef"^^xsd:string
51 + ] ;
52 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
53 + sp:subject
54 + [ sp:varName "productionOperationRef"^^xsd:string
55 + ]
56 + ] [ sp:object
57 + [ sp:varName "installationReportRef"^^xsd:string
58 + ] ;
59 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
60 + sp:subject
61 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
62 + ]
63 + ] [ sp:object
64 + [ sp:varName "productionFacility"^^xsd:string
65 + ] ;
66 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
67 + sp:subject
68 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
69 + ]
70 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
71 + sp:predicate rdf:type ;
72 + sp:subject
73 + [ sp:varName "productionOperation"^^xsd:string
74 + ]
75 + ] [ sp:object
76 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
77 + ] ;
78 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
79 + sp:subject
80 + [ sp:varName "productionOperation"^^xsd:string
81 + ]
82 + ] [ sp:object
83 + [ sp:varName "productionOperation"^^xsd:string
84 + ] ;
85 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
86 + sp:subject
87 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
88 + ]
89 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
90 + sp:predicate rdf:type ;
91 + sp:subject
92 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
93 + ]
94 + ] [ sp:object
95 + [ sp:varName "productionActivityRef"^^xsd:string
96 + ] ;
97 + sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
98 + sp:subject
99 + [ sp:varName "installationReportRef"^^xsd:string
100 + ]
101 + ] [ sp:object
102 + [ sp:varName "lostProductionRef"^^xsd:string
103 + ] ;
104 + sp:predicate <http://www.epim.no/schemas/mprml/1#lostProductionRef> ;
105 + sp:subject
106 + [ sp:varName "productionActivityRef"^^xsd:string
107 + ]
108 + ])
109 + ] ;
110 + spin:rule
111 + [ rdf:type sp:Construct ;
112 + rdfs:comment "STEP 40200 Create the ProductionOperationProductionAndInjection activity"^^xsd:string ;
113 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
114 + sp:predicate rdf:type ;
115 + sp:subject _:b2
116 + ] [ sp:object
117 + [ sp:varName "productionOperation"^^xsd:string
118 + ] ;
119 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
120 + sp:subject _:b2
121 + ]) ;
122 + sp:where ([ sp:object spin:_this ;
123 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
124 + sp:subject
125 + [ sp:varName "productionReport"^^xsd:string
126 + ]
127 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
128 + sp:predicate rdf:type ;
129 + sp:subject
130 + [ sp:varName "productionOperationReport"^^xsd:string
131 + ]
132 + ] [ sp:object
133 + [ sp:varName "productionReport"^^xsd:string
134 + ] ;
135 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
136 + sp:subject
137 + [ sp:varName "productionOperationReport"^^xsd:string
138 + ]
139 + ] [ sp:object
140 + [ sp:varName "productionOperationRef"^^xsd:string
141 + ] ;
142 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
143 + sp:subject spin:_this
144 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
145 + sp:predicate rdf:type ;
146 + sp:subject
147 + [ sp:varName "productionOperationRef"^^xsd:string
148 + ]
149 + ] [ sp:object
150 + [ sp:varName "installationReportRef"^^xsd:string
151 + ] ;
152 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
153 + sp:subject
154 + [ sp:varName "productionOperationRef"^^xsd:string
155 + ]
156 + ] [ sp:object
157 + [ sp:varName "installationReportRef"^^xsd:string
158 + ] ;
159 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
160 + sp:subject
161 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
162 + ]
163 + ] [ sp:object
164 + [ sp:varName "productionFacility"^^xsd:string
165 + ] ;
166 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
167 + sp:subject
168 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
169 + ]
170 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
171 + sp:predicate rdf:type ;
172 + sp:subject
173 + [ sp:varName "productionOperation"^^xsd:string
174 + ]
175 + ] [ sp:object
176 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
177 + ] ;
178 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
179 + sp:subject
180 + [ sp:varName "productionOperation"^^xsd:string
181 + ]
182 + ] [ sp:object
183 + [ sp:varName "productionActivityRef"^^xsd:string
184 + ] ;
185 + sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
186 + sp:subject
187 + [ sp:varName "installationReportRef"^^xsd:string
188 + ]
189 + ])
190 + ] ;
191 + spin:rule
192 + [ rdf:type sp:Construct ;
193 + rdfs:comment "STEP 40202 Create the ProductionOperationInjection activity"^^xsd:string ;
194 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationInjection> ;
195 + sp:predicate rdf:type ;
196 + sp:subject _:b3
197 + ] [ sp:object
198 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
199 + ] ;
200 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
201 + sp:subject _:b3
202 + ] [ sp:object
203 + [ sp:varName "lostProductionRef"^^xsd:string
204 + ] ;
205 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
206 + sp:subject _:b3
207 + ]) ;
208 + sp:where ([ sp:object
209 + [ sp:varName "productionOperationRef"^^xsd:string
210 + ] ;
211 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
212 + sp:subject spin:_this
213 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
214 + sp:predicate rdf:type ;
215 + sp:subject
216 + [ sp:varName "productionOperationRef"^^xsd:string
217 + ]
218 + ] [ sp:object
219 + [ sp:varName "installationReportRef"^^xsd:string
220 + ] ;
221 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
222 + sp:subject
223 + [ sp:varName "productionOperationRef"^^xsd:string
224 + ]
225 + ] [ sp:object
226 + [ sp:varName "installationReportRef"^^xsd:string
227 + ] ;
228 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
229 + sp:subject
230 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
231 + ]
232 + ] [ sp:object
233 + [ sp:varName "productionFacility"^^xsd:string
234 + ] ;
235 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
236 + sp:subject
237 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
238 + ]
239 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
240 + sp:predicate rdf:type ;
241 + sp:subject
242 + [ sp:varName "productionOperation"^^xsd:string
243 + ]
244 + ] [ sp:object
245 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
246 + ] ;
247 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
248 + sp:subject
249 + [ sp:varName "productionOperation"^^xsd:string
250 + ]
251 + ] [ sp:object
252 + [ sp:varName "productionOperation"^^xsd:string
253 + ] ;
254 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
255 + sp:subject
256 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
257 + ]
258 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
259 + sp:predicate rdf:type ;
260 + sp:subject
261 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
262 + ]
263 + ] [ sp:object
264 + [ sp:varName "productionActivityRef"^^xsd:string
265 + ] ;
266 + sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
267 + sp:subject
268 + [ sp:varName "installationReportRef"^^xsd:string
269 + ]
270 + ] [ sp:object
271 + [ sp:varName "lostInjectionRef"^^xsd:string
272 + ] ;
273 + sp:predicate <http://www.epim.no/schemas/mprml/1#lostInjectionRef> ;
274 + sp:subject
275 + [ sp:varName "productionActivityRef"^^xsd:string
276 + ]
277 + ])
278 + ] .
279 +
280 +<http://www.epim.no/schemas/mprml/1#Cs_productionOperationLostProduction>
281 + spin:rule
282 + [ rdf:type sp:Construct ;
283 + rdfs:comment "STEP 40295 Create the ProductionOperationProcessing - loss contributing third party processing - add gas volume"^^xsd:string ;
284 + sp:templates ([ sp:object _:b4 ;
285 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
286 + sp:subject
287 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
288 + ]
289 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
290 + sp:predicate rdf:type ;
291 + sp:subject _:b4
292 + ] [ sp:object _:b5 ;
293 + sp:predicate rdf:type ;
294 + sp:subject _:b4
295 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
296 + sp:predicate rdf:type ;
297 + sp:subject _:b5
298 + ] [ sp:object
299 + [ sp:varName "realVolume"^^xsd:string
300 + ] ;
301 + sp:predicate
302 + [ sp:varName "volumeScale"^^xsd:string
303 + ] ;
304 + sp:subject _:b5
305 + ]) ;
306 + sp:where ([ sp:object
307 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
308 + ] ;
309 + sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
310 + sp:subject spin:_this
311 + ] [ sp:object
312 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
313 + ] ;
314 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
315 + sp:subject
316 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
317 + ]
318 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
319 + sp:predicate rdf:type ;
320 + sp:subject
321 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
322 + ]
323 + ] [ sp:object
324 + [ sp:varName "gasStdTempPresRef"^^xsd:string
325 + ] ;
326 + sp:predicate <http://www.epim.no/schemas/mprml/1#gasStdTempPresRef> ;
327 + sp:subject
328 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
329 + ]
330 + ] [ sp:object
331 + [ sp:varName "realVolume"^^xsd:string
332 + ] ;
333 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
334 + sp:subject
335 + [ sp:varName "gasStdTempPresRef"^^xsd:string
336 + ]
337 + ] [ sp:object
338 + [ sp:varName "uomVolume"^^xsd:string
339 + ] ;
340 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
341 + sp:subject
342 + [ sp:varName "gasStdTempPresRef"^^xsd:string
343 + ]
344 + ] [ rdf:type sp:Bind ;
345 + sp:expression
346 + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
347 + sp:arg1 [ sp:varName "uomVolume"^^xsd:string
348 + ]
349 + ] ;
350 + sp:variable
351 + [ sp:varName "volumeScale"^^xsd:string
352 + ]
353 + ])
354 + ] ;
355 + spin:rule
356 + [ rdf:type sp:Construct ;
357 + rdfs:comment "STEP 40294 Create the ProductionOperationProcessing - loss contributing third party processing - add oil volume"^^xsd:string ;
358 + sp:templates ([ sp:object _:b6 ;
359 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
360 + sp:subject
361 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
362 + ]
363 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ;
364 + sp:predicate rdf:type ;
365 + sp:subject _:b6
366 + ] [ sp:object _:b7 ;
367 + sp:predicate rdf:type ;
368 + sp:subject _:b6
369 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
370 + sp:predicate rdf:type ;
371 + sp:subject _:b7
372 + ] [ sp:object
373 + [ sp:varName "realVolume"^^xsd:string
374 + ] ;
375 + sp:predicate
376 + [ sp:varName "volumeScale"^^xsd:string
377 + ] ;
378 + sp:subject _:b7
379 + ]) ;
380 + sp:where ([ sp:object
381 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
382 + ] ;
383 + sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
384 + sp:subject spin:_this
385 + ] [ sp:object
386 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
387 + ] ;
388 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
389 + sp:subject
390 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
391 + ]
392 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
393 + sp:predicate rdf:type ;
394 + sp:subject
395 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
396 + ]
397 + ] [ sp:object
398 + [ sp:varName "oilStdTempPresRef"^^xsd:string
399 + ] ;
400 + sp:predicate <http://www.epim.no/schemas/mprml/1#oilStdTempPresRef> ;
401 + sp:subject
402 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
403 + ]
404 + ] [ sp:object
405 + [ sp:varName "realVolume"^^xsd:string
406 + ] ;
407 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
408 + sp:subject
409 + [ sp:varName "oilStdTempPresRef"^^xsd:string
410 + ]
411 + ] [ sp:object
412 + [ sp:varName "uomVolume"^^xsd:string
413 + ] ;
414 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
415 + sp:subject
416 + [ sp:varName "oilStdTempPresRef"^^xsd:string
417 + ]
418 + ] [ rdf:type sp:Bind ;
419 + sp:expression
420 + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
421 + sp:arg1 [ sp:varName "uomVolume"^^xsd:string
422 + ]
423 + ] ;
424 + sp:variable
425 + [ sp:varName "volumeScale"^^xsd:string
426 + ]
427 + ])
428 + ] ;
429 + spin:rule
430 + [ rdf:type sp:Construct ;
431 + rdfs:comment "STEP 40293 Create the ProductionOperationProcessing - loss contributing third party processing - add third party installation"^^xsd:string ;
432 + sp:templates ([ sp:object _:b8 ;
433 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
434 + sp:subject
435 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
436 + ]
437 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
438 + sp:predicate rdf:type ;
439 + sp:subject _:b8
440 + ] [ sp:object
441 + [ sp:varName "thirdPartyProductionFacility"^^xsd:string
442 + ] ;
443 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
444 + sp:subject _:b8
445 + ]) ;
446 + sp:where ([ sp:object
447 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
448 + ] ;
449 + sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
450 + sp:subject spin:_this
451 + ] [ sp:object
452 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
453 + ] ;
454 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
455 + sp:subject
456 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
457 + ]
458 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
459 + sp:predicate rdf:type ;
460 + sp:subject
461 + [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
462 + ]
463 + ] [ sp:object
464 + [ sp:varName "installationRef"^^xsd:string
465 + ] ;
466 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
467 + sp:subject
468 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
469 + ]
470 + ] [ sp:object
471 + [ sp:varName "installationRef"^^xsd:string
472 + ] ;
473 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
474 + sp:subject
475 + [ sp:varName "thirdPartyProductionFacility"^^xsd:string
476 + ]
477 + ])
478 + ] ;
479 + spin:rule
480 + [ rdf:type sp:Construct ;
481 + rdfs:comment "STEP 40292 Create the ProductionOperationProcessing - loss contributing third party processing"^^xsd:string ;
482 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
483 + sp:predicate rdf:type ;
484 + sp:subject _:b9
485 + ] [ sp:object
486 + [ sp:varName "productionOperationProcessing"^^xsd:string
487 + ] ;
488 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
489 + sp:subject _:b9
490 + ] [ sp:object
491 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
492 + ] ;
493 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
494 + sp:subject _:b9
495 + ]) ;
496 + sp:where ([ sp:object spin:_this ;
497 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
498 + sp:subject
499 + [ sp:varName "productionOperationProcessing"^^xsd:string
500 + ]
501 + ] [ sp:object
502 + [ sp:varName "thirdPartyProcessingRef"^^xsd:string
503 + ] ;
504 + sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
505 + sp:subject spin:_this
506 + ])
507 + ] ;
508 + spin:rule
509 + [ rdf:type sp:Construct ;
510 + rdfs:comment "STEP 40291 Create the ProductionOperationProcessing - loss contributing activities"^^xsd:string ;
511 + sp:templates ([ sp:object
512 + [ sp:varName "reasonForLossOfProcessingType"^^xsd:string
513 + ] ;
514 + sp:predicate rdf:type ;
515 + sp:subject _:b10
516 + ] [ sp:object
517 + [ sp:varName "productionOperationProcessing"^^xsd:string
518 + ] ;
519 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
520 + sp:subject _:b10
521 + ] [ sp:object _:b11 ;
522 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
523 + sp:subject _:b10
524 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
525 + sp:predicate rdf:type ;
526 + sp:subject _:b11
527 + ] [ sp:object _:b12 ;
528 + sp:predicate rdf:type ;
529 + sp:subject _:b11
530 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
531 + sp:predicate rdf:type ;
532 + sp:subject _:b12
533 + ] [ sp:object
534 + [ sp:varName "realVolume"^^xsd:string
535 + ] ;
536 + sp:predicate
537 + [ sp:varName "volumeScale"^^xsd:string
538 + ] ;
539 + sp:subject _:b12
540 + ]) ;
541 + sp:where ([ sp:object spin:_this ;
542 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
543 + sp:subject
544 + [ sp:varName "productionOperationProcessing"^^xsd:string
545 + ]
546 + ] [ sp:object
547 + [ sp:varName "volumeAndReasonRef"^^xsd:string
548 + ] ;
549 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeAndReasonRef> ;
550 + sp:subject spin:_this
551 + ] [ sp:object
552 + [ sp:varName "realVolume"^^xsd:string
553 + ] ;
554 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
555 + sp:subject
556 + [ sp:varName "volumeAndReasonRef"^^xsd:string
557 + ]
558 + ] [ sp:object
559 + [ sp:varName "uomVolume"^^xsd:string
560 + ] ;
561 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
562 + sp:subject
563 + [ sp:varName "volumeAndReasonRef"^^xsd:string
564 + ]
565 + ] [ sp:object
566 + [ sp:varName "reasonLostRef"^^xsd:string
567 + ] ;
568 + sp:predicate <http://www.epim.no/schemas/mprml/1#reasonLostRef> ;
569 + sp:subject
570 + [ sp:varName "volumeAndReasonRef"^^xsd:string
571 + ]
572 + ] [ rdf:type sp:Bind ;
573 + sp:expression
574 + [ rdf:type ep-mpr-spin-lib:selectReasonForLossOfProcessingType ;
575 + sp:arg1 [ sp:varName "reasonLostRef"^^xsd:string
576 + ]
577 + ] ;
578 + sp:variable
579 + [ sp:varName "reasonForLossOfProcessingType"^^xsd:string
580 + ]
581 + ] [ rdf:type sp:Bind ;
582 + sp:expression
583 + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
584 + sp:arg1 [ sp:varName "uomVolume"^^xsd:string
585 + ]
586 + ] ;
587 + sp:variable
588 + [ sp:varName "volumeScale"^^xsd:string
589 + ]
590 + ])
591 + ] .
592 +
593 +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1>
594 + rdf:type owl:Ontology ;
595 + 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> ;
596 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .
1 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
5 +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
6 +
7 +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#> .
8 +@prefix arg: <http://spinrdf.org/arg#> .
9 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
10 +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
11 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
16 +@prefix sp: <http://spinrdf.org/sp#> .
17 +@prefix spin: <http://spinrdf.org/spin#> .
18 +@prefix spl: <http://spinrdf.org/spl#> .
19 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
20 +
21 +<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 + spin:rule
23 + [ rdf:type sp:Construct ;
24 + rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ;
25 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
26 + sp:predicate rdf:type ;
27 + sp:subject _:b1
28 + ] [ sp:object
29 + [ sp:varName "contextFacility"^^xsd:string
30 + ] ;
31 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
32 + sp:subject _:b1
33 + ] [ sp:object _:b1 ;
34 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
35 + sp:subject
36 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
37 + ]
38 + ] [ sp:object _:b1 ;
39 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
40 + sp:subject
41 + [ sp:varName "productionFacilityToDate"^^xsd:string
42 + ]
43 + ]) ;
44 + sp:where ([ sp:object
45 + [ sp:varName "productionOperationRef"^^xsd:string
46 + ] ;
47 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
48 + sp:subject spin:_this
49 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
50 + sp:predicate rdf:type ;
51 + sp:subject
52 + [ sp:varName "productionOperationRef"^^xsd:string
53 + ]
54 + ] [ rdf:type sp:NotExists ;
55 + sp:elements ([ sp:object
56 + [ sp:varName "installationRef"^^xsd:string
57 + ] ;
58 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
59 + sp:subject
60 + [ sp:varName "productionOperationRef"^^xsd:string
61 + ]
62 + ] [ sp:object
63 + [ sp:varName "installationRef"^^xsd:string
64 + ] ;
65 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
66 + sp:subject
67 + [ sp:varName "productionFacility"^^xsd:string
68 + ]
69 + ])
70 + ] [ sp:object
71 + [ sp:varName "contextFacilityRef"^^xsd:string
72 + ] ;
73 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
74 + sp:subject
75 + [ sp:varName "productionOperationRef"^^xsd:string
76 + ]
77 + ] [ sp:object
78 + [ sp:varName "contextFacilityRef"^^xsd:string
79 + ] ;
80 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
81 + sp:subject
82 + [ sp:varName "contextFacility"^^xsd:string
83 + ]
84 + ] [ sp:object
85 + [ sp:varName "productVolumeRef"^^xsd:string
86 + ] ;
87 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
88 + sp:subject
89 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
90 + ]
91 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
92 + sp:predicate rdf:type ;
93 + sp:subject
94 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
95 + ]
96 + ] [ sp:object
97 + [ sp:varName "productionFacilityToDate"^^xsd:string
98 + ] ;
99 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
100 + sp:subject
101 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
102 + ]
103 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
104 + sp:predicate rdf:type ;
105 + sp:subject
106 + [ sp:varName "productionFacilityToDate"^^xsd:string
107 + ]
108 + ])
109 + ] ;
110 + spin:rule
111 + [ rdf:type sp:Construct ;
112 + rdfs:comment "STEP 40040 Set the installation"^^xsd:string ;
113 + sp:templates ([ sp:object
114 + [ sp:varName "productionFacility"^^xsd:string
115 + ] ;
116 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
117 + sp:subject
118 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
119 + ]
120 + ] [ sp:object
121 + [ sp:varName "productionFacility"^^xsd:string
122 + ] ;
123 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
124 + sp:subject
125 + [ sp:varName "productionFacilityToDate"^^xsd:string
126 + ]
127 + ]) ;
128 + sp:where ([ sp:object
129 + [ sp:varName "productionOperationRef"^^xsd:string
130 + ] ;
131 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
132 + sp:subject spin:_this
133 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
134 + sp:predicate rdf:type ;
135 + sp:subject
136 + [ sp:varName "productionOperationRef"^^xsd:string
137 + ]
138 + ] [ sp:object
139 + [ sp:varName "installationRef"^^xsd:string
140 + ] ;
141 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
142 + sp:subject
143 + [ sp:varName "productionOperationRef"^^xsd:string
144 + ]
145 + ] [ sp:object
146 + [ sp:varName "installationRef"^^xsd:string
147 + ] ;
148 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
149 + sp:subject
150 + [ sp:varName "productionFacility"^^xsd:string
151 + ]
152 + ] [ sp:object
153 + [ sp:varName "productionOperationRef"^^xsd:string
154 + ] ;
155 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
156 + sp:subject
157 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
158 + ]
159 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
160 + sp:predicate rdf:type ;
161 + sp:subject
162 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
163 + ]
164 + ] [ sp:object
165 + [ sp:varName "productionFacilityToDate"^^xsd:string
166 + ] ;
167 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
168 + sp:subject
169 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
170 + ]
171 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
172 + sp:predicate rdf:type ;
173 + sp:subject
174 + [ sp:varName "productionFacilityToDate"^^xsd:string
175 + ]
176 + ])
177 + ] ;
178 + spin:rule
179 + [ rdf:type sp:Construct ;
180 + rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ;
181 + sp:templates ([ sp:object
182 + [ sp:varName "reportKind"^^xsd:string
183 + ] ;
184 + sp:predicate rdf:type ;
185 + sp:subject
186 + [ sp:varName "productionOperationReport"^^xsd:string
187 + ]
188 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
189 + sp:predicate rdf:type ;
190 + sp:subject
191 + [ sp:varName "reportKind"^^xsd:string
192 + ]
193 + ] [ sp:object
194 + [ sp:varName "kind"^^xsd:string
195 + ] ;
196 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
197 + sp:subject
198 + [ sp:varName "reportKind"^^xsd:string
199 + ]
200 + ]) ;
201 + sp:where ([ sp:object spin:_this ;
202 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
203 + sp:subject
204 + [ sp:varName "productionReport"^^xsd:string
205 + ]
206 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
207 + sp:predicate rdf:type ;
208 + sp:subject
209 + [ sp:varName "productionOperationReport"^^xsd:string
210 + ]
211 + ] [ sp:object
212 + [ sp:varName "productionReport"^^xsd:string
213 + ] ;
214 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
215 + sp:subject
216 + [ sp:varName "productionOperationReport"^^xsd:string
217 + ]
218 + ] [ sp:object
219 + [ sp:varName "productionOperationRef"^^xsd:string
220 + ] ;
221 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
222 + sp:subject spin:_this
223 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
224 + sp:predicate rdf:type ;
225 + sp:subject
226 + [ sp:varName "productionOperationRef"^^xsd:string
227 + ]
228 + ] [ sp:object
229 + [ sp:varName "nameRef"^^xsd:string
230 + ] ;
231 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
232 + sp:subject
233 + [ sp:varName "productionOperationRef"^^xsd:string
234 + ]
235 + ] [ sp:object
236 + [ sp:varName "name"^^xsd:string
237 + ] ;
238 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
239 + sp:subject
240 + [ sp:varName "nameRef"^^xsd:string
241 + ]
242 + ] [ sp:object
243 + [ sp:varName "kind"^^xsd:string
244 + ] ;
245 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
246 + sp:subject
247 + [ sp:varName "productionOperationRef"^^xsd:string
248 + ]
249 + ] [ rdf:type sp:Bind ;
250 + sp:expression
251 + [ rdf:type ep-spin-lib:normalizeString ;
252 + sp:arg1 [ sp:varName "kind"^^xsd:string
253 + ]
254 + ] ;
255 + sp:variable
256 + [ sp:varName "normalizedKind"^^xsd:string
257 + ]
258 + ] [ rdf:type sp:Bind ;
259 + sp:expression
260 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
261 + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
262 + ]
263 + ] ;
264 + sp:variable
265 + [ sp:varName "reportKind"^^xsd:string
266 + ]
267 + ])
268 + ] ;
269 + spin:rule
270 + [ rdf:type sp:Construct ;
271 + rdfs:comment "STEP 40050 Set the context facility - installation exists"^^xsd:string ;
272 + sp:templates ([ sp:object
273 + [ sp:varName "contextFacility"^^xsd:string
274 + ] ;
275 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
276 + sp:subject
277 + [ sp:varName "productionFacility"^^xsd:string
278 + ]
279 + ]) ;
280 + sp:where ([ sp:object
281 + [ sp:varName "productionOperationRef"^^xsd:string
282 + ] ;
283 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
284 + sp:subject spin:_this
285 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
286 + sp:predicate rdf:type ;
287 + sp:subject
288 + [ sp:varName "productionOperationRef"^^xsd:string
289 + ]
290 + ] [ sp:object
291 + [ sp:varName "installationRef"^^xsd:string
292 + ] ;
293 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
294 + sp:subject
295 + [ sp:varName "productionOperationRef"^^xsd:string
296 + ]
297 + ] [ sp:object
298 + [ sp:varName "installationRef"^^xsd:string
299 + ] ;
300 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
301 + sp:subject
302 + [ sp:varName "productionFacility"^^xsd:string
303 + ]
304 + ] [ sp:object
305 + [ sp:varName "contextFacilityRef"^^xsd:string
306 + ] ;
307 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
308 + sp:subject
309 + [ sp:varName "productionOperationRef"^^xsd:string
310 + ]
311 + ] [ sp:object
312 + [ sp:varName "contextFacilityRef"^^xsd:string
313 + ] ;
314 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
315 + sp:subject
316 + [ sp:varName "contextFacility"^^xsd:string
317 + ]
318 + ])
319 + ] ;
320 + spin:rule
321 + [ rdf:type sp:Construct ;
322 + rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ;
323 + sp:templates ([ sp:object
324 + [ sp:varName "dTimStart"^^xsd:string
325 + ] ;
326 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
327 + sp:subject
328 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
329 + ]
330 + ] [ sp:object
331 + [ sp:varName "dTimEnd"^^xsd:string
332 + ] ;
333 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
334 + sp:subject
335 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
336 + ]
337 + ] [ sp:object
338 + [ sp:varName "dTimEnd"^^xsd:string
339 + ] ;
340 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
341 + sp:subject
342 + [ sp:varName "productionFacilityToDate"^^xsd:string
343 + ]
344 + ]) ;
345 + sp:where ([ sp:object
346 + [ sp:varName "productionOperationRef"^^xsd:string
347 + ] ;
348 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
349 + sp:subject spin:_this
350 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
351 + sp:predicate rdf:type ;
352 + sp:subject
353 + [ sp:varName "productionOperationRef"^^xsd:string
354 + ]
355 + ] [ sp:object
356 + [ sp:varName "dTimStart"^^xsd:string
357 + ] ;
358 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
359 + sp:subject
360 + [ sp:varName "productionOperationRef"^^xsd:string
361 + ]
362 + ] [ sp:object
363 + [ sp:varName "dTimEnd"^^xsd:string
364 + ] ;
365 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
366 + sp:subject
367 + [ sp:varName "productionOperationRef"^^xsd:string
368 + ]
369 + ] [ sp:object
370 + [ sp:varName "productionOperationRef"^^xsd:string
371 + ] ;
372 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
373 + sp:subject
374 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
375 + ]
376 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
377 + sp:predicate rdf:type ;
378 + sp:subject
379 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
380 + ]
381 + ] [ sp:object
382 + [ sp:varName "productionFacilityToDate"^^xsd:string
383 + ] ;
384 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
385 + sp:subject
386 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
387 + ]
388 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
389 + sp:predicate rdf:type ;
390 + sp:subject
391 + [ sp:varName "productionFacilityToDate"^^xsd:string
392 + ]
393 + ])
394 + ] ;
395 + spin:rule
396 + [ rdf:type sp:Construct ;
397 + rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ;
398 + sp:templates ([ sp:object
399 + [ sp:varName "dateStart"^^xsd:string
400 + ] ;
401 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
402 + sp:subject
403 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
404 + ]
405 + ] [ sp:object
406 + [ sp:varName "dateEnd"^^xsd:string
407 + ] ;
408 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
409 + sp:subject
410 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
411 + ]
412 + ] [ sp:object
413 + [ sp:varName "dateEnd"^^xsd:string
414 + ] ;
415 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
416 + sp:subject
417 + [ sp:varName "productionFacilityToDate"^^xsd:string
418 + ]
419 + ]) ;
420 + sp:where ([ sp:object
421 + [ sp:varName "productionOperationRef"^^xsd:string
422 + ] ;
423 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
424 + sp:subject spin:_this
425 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
426 + sp:predicate rdf:type ;
427 + sp:subject
428 + [ sp:varName "productionOperationRef"^^xsd:string
429 + ]
430 + ] [ sp:object
431 + [ sp:varName "dateStart"^^xsd:string
432 + ] ;
433 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
434 + sp:subject
435 + [ sp:varName "productionOperationRef"^^xsd:string
436 + ]
437 + ] [ sp:object
438 + [ sp:varName "dateEnd"^^xsd:string
439 + ] ;
440 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
441 + sp:subject
442 + [ sp:varName "productionOperationsRef"^^xsd:string
443 + ]
444 + ] [ sp:object
445 + [ sp:varName "productionOperationRef"^^xsd:string
446 + ] ;
447 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
448 + sp:subject
449 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
450 + ]
451 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
452 + sp:predicate rdf:type ;
453 + sp:subject
454 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
455 + ]
456 + ] [ sp:object
457 + [ sp:varName "productionFacilityToDate"^^xsd:string
458 + ] ;
459 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
460 + sp:subject
461 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
462 + ]
463 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
464 + sp:predicate rdf:type ;
465 + sp:subject
466 + [ sp:varName "productionFacilityToDate"^^xsd:string
467 + ]
468 + ])
469 + ] ;
470 + spin:rule
471 + [ rdf:type sp:Construct ;
472 + rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
473 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
474 + sp:predicate rdf:type ;
475 + sp:subject _:b2
476 + ] [ sp:object
477 + [ sp:varName "productionReport"^^xsd:string
478 + ] ;
479 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
480 + sp:subject _:b2
481 + ] [ sp:object
482 + [ sp:varName "name"^^xsd:string
483 + ] ;
484 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
485 + sp:subject _:b2
486 + ] [ sp:object
487 + [ sp:varName "reportPeriodType"^^xsd:string
488 + ] ;
489 + sp:predicate rdf:type ;
490 + sp:subject _:b2
491 + ] [ sp:object _:b3 ;
492 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
493 + sp:subject _:b2
494 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
495 + sp:predicate rdf:type ;
496 + sp:subject _:b3
497 + ] [ sp:object
498 + [ sp:varName "productionOperationRef"^^xsd:string
499 + ] ;
500 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
501 + sp:subject _:b3
502 + ] [ sp:object _:b4 ;
503 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
504 + sp:subject _:b3
505 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
506 + sp:predicate rdf:type ;
507 + sp:subject _:b4
508 + ] [ sp:object
509 + [ sp:varName "title"^^xsd:string
510 + ] ;
511 + sp:predicate <http://purl.org/dc/elements/1.1/title> ;
512 + sp:subject _:b2
513 + ]) ;
514 + sp:where ([ sp:object spin:_this ;
515 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
516 + sp:subject
517 + [ sp:varName "productionReport"^^xsd:string
518 + ]
519 + ] [ sp:object
520 + [ sp:varName "productionOperationRef"^^xsd:string
521 + ] ;
522 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
523 + sp:subject spin:_this
524 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
525 + sp:predicate rdf:type ;
526 + sp:subject
527 + [ sp:varName "productionOperationRef"^^xsd:string
528 + ]
529 + ] [ sp:object
530 + [ sp:varName "nameRef"^^xsd:string
531 + ] ;
532 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
533 + sp:subject
534 + [ sp:varName "productionOperationRef"^^xsd:string
535 + ]
536 + ] [ sp:object
537 + [ sp:varName "name"^^xsd:string
538 + ] ;
539 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
540 + sp:subject
541 + [ sp:varName "nameRef"^^xsd:string
542 + ]
543 + ] [ rdf:type sp:Optional ;
544 + sp:elements ([ sp:object
545 + [ sp:varName "periodKindRef"^^xsd:string
546 + ] ;
547 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
548 + sp:subject
549 + [ sp:varName "productionOperationRef"^^xsd:string
550 + ]
551 + ])
552 + ] [ rdf:type sp:Optional ;
553 + sp:elements ([ sp:object
554 + [ sp:varName "titleRef"^^xsd:string
555 + ] ;
556 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
557 + sp:subject
558 + [ sp:varName "productionOperationRef"^^xsd:string
559 + ]
560 + ] [ sp:object
561 + [ sp:varName "title"^^xsd:string
562 + ] ;
563 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
564 + sp:subject
565 + [ sp:varName "titleRef"^^xsd:string
566 + ]
567 + ])
568 + ] [ rdf:type sp:Bind ;
569 + sp:expression
570 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
571 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
572 + ]
573 + ] ;
574 + sp:variable
575 + [ sp:varName "reportPeriodType"^^xsd:string
576 + ]
577 + ])
578 + ] ;
579 + spin:rule
580 + [ rdf:type sp:Construct ;
581 + rdfs:comment """STEP 40060 Set the facility operator
582 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
583 + sp:templates ([ sp:object _:b5 ;
584 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
585 + sp:subject
586 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
587 + ]
588 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
589 + sp:predicate rdf:type ;
590 + sp:subject _:b5
591 + ] [ sp:object
592 + [ sp:varName "operator"^^xsd:string
593 + ] ;
594 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
595 + sp:subject _:b5
596 + ]) ;
597 + sp:where ([ sp:object
598 + [ sp:varName "productionOperationRef"^^xsd:string
599 + ] ;
600 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
601 + sp:subject spin:_this
602 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
603 + sp:predicate rdf:type ;
604 + sp:subject
605 + [ sp:varName "productionOperationRef"^^xsd:string
606 + ]
607 + ] [ sp:object
608 + [ sp:varName "productionOperationRef"^^xsd:string
609 + ] ;
610 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
611 + sp:subject
612 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
613 + ]
614 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
615 + sp:predicate rdf:type ;
616 + sp:subject
617 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
618 + ]
619 + ] [ sp:object
620 + [ sp:varName "operatorRef"^^xsd:string
621 + ] ;
622 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
623 + sp:subject
624 + [ sp:varName "productionOperationRef"^^xsd:string
625 + ]
626 + ] [ sp:object
627 + [ sp:varName "operatorRef"^^xsd:string
628 + ] ;
629 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
630 + sp:subject
631 + [ sp:varName "operator"^^xsd:string
632 + ]
633 + ])
634 + ] .
635 +
636 +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1>
637 + rdf:type owl:Ontology ;
638 + 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> ;
639 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +
3 +<objects version="1.0(MPRML)"
4 + xmlns:witsml="http://www.epim.no/schemas/mprml/1"
5 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 + xsi:schemaLocation="http://www.epim.no/schemas/mprml/1 file:///C:/Users/owner/TBCMEWorkspace/EPIM-ontologies/www.reportinghub.no/input/mpr/xsd/1.0/obj_object_profiled_data_schema.xsd" xmlns="http://www.epim.no/schemas/mprml/1">
7 +
8 +<context xsi:type="obj_report">
9 + <kind>Daily production report Trym</kind>
10 + <title>Daily production report Trym September 2011</title>
11 + <date>2011-08-27</date>
12 +</context>
13 +<object xsi:type="obj_productionOperation">
14 + <name>TRYM production operation</name>
15 + <installation kind="field" namingSystem="NPD" uidRef="18081500">TRYM</installation>
16 + <contextFacility kind="field" namingSystem="NPD" uidRef="18081500">TRYM</contextFacility>
17 + <kind>ReportKind</kind>
18 + <periodKind>day</periodKind>
19 + <dateStart>2012-04-12</dateStart>
20 + <dateEnd>2012-04-13</dateEnd>
21 + <operator>
22 + <name>DONG E&amp;P Norge AS</name>
23 + <role>Operating company</role>
24 + </operator>
25 + <title>Report title</title>
26 + <geographicContext>
27 + <comment>somewhere</comment>
28 + </geographicContext>
29 +</object>
30 +</objects>
...\ No newline at end of file ...\ No newline at end of file