David Leal

First tranche of MPR productionOperation stuff

......@@ -134,9 +134,10 @@ ep-prodact:AnnualProductionActivityToDate
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivity .
ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionOperationsActivity , ep-prodact:AnnualProductionActivityToDate .
ep-prodact:AnnualProductionOperationToDate
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:label "annual production operation to date"^^xsd:string ;
rdfs:subClassOf ep-prodact:AnnualProductionActivityToDate , ep-prodact:ProductionOperation .
ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
......@@ -155,9 +156,15 @@ ep-prodact:CumulativeProductionActivitySinceProductionBegan
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:DailyProductionOperationsActivity
ep-prodact:DailyProductionOperation
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionOperationsActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> .
rdfs:label "daily production operation"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionOperation .
ep-prodact:DailyProductionOperationProcessingLoss
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "daily production operation processing loss"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:DailyProductionVolumeActivity
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
......@@ -172,6 +179,16 @@ ep-prodact:DrillOrExcercise
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:ExtendedMaintenanceTurnaround
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "extended maintenance turnaround"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:ExtendedMaintenanceTurnaroundExportTerminal
rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
rdfs:label "extended maintenance turnaround export terminal"^^xsd:string ;
rdfs:subClassOf ep-prodact:ExtendedMaintenanceTurnaround .
ep-prodact:Fire
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:Incident .
......@@ -261,6 +278,11 @@ ep-prodact:FusionOfPartsOfProductionActivityOverPeriod
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:HSEProblem
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "HSE problem"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:HealthSafetyAndEnvironmentActivity
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
......@@ -327,6 +349,16 @@ ep-prodact:MarineOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity .
ep-prodact:MarkedGasLossOfExport
rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
rdfs:label "marked gas loss of export"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:MarkedOilLossOfExport
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "marked oil loss of export"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:MeasurePropertiesOfAFlow
rdf:type owl:Class ;
rdfs:label "measure properties of a flow"^^xsd:string ;
......@@ -341,10 +373,25 @@ ep-prodact:MedicalTreatmentInjury
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:Injury .
ep-prodact:ModificationProject
rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
rdfs:label "modification project"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:MonthlyProductionActivity
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:label "monthly production activity"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> .
ep-prodact:MonthlyProductionOperationToDate
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:label "monthly production to date"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperation .
ep-prodact:MovementOfProduct
rdf:type owl:Class ;
rdfs:label "movement of product"^^xsd:string ;
......@@ -363,6 +410,11 @@ ep-prodact:NotablePartOfProductionActivity
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:OperationMistakes
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "operation mistakes"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:OtherProductionActivity
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "other production activity"^^xsd:string ;
......@@ -388,11 +440,26 @@ ep-prodact:PeriodicWellTest
rdfs:label "periodic"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:PlannedMaintenanceTurnaround
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "planned maintenace turnaround"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:PowerStationFailure
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "power station failure"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:PreventiveMaintenanceTopside
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "preventive maintenace topside"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:ProcessAndOperationProblem
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "process and operation problem"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:ProductCompletedLifting
rdf:type ep-prodact:MovementOfProductType , owl:Class ;
rdfs:label "product completed lifting"^^xsd:string ;
......@@ -482,19 +549,49 @@ ep-prodact:ProductionActivityType
rdfs:label "production activity type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodact:ProductionOperation
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdfs:label "production operation"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionOperationClassByDuration
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class .
ep-prodact:ProductionOperationInjection
rdf:type owl:Class ;
rdfs:label "production operation injection"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionOperationMethodType
rdf:type rdfs:Class ;
rdfs:comment "e.g. 'flowing', 'pumping', 'gas lifted'"^^xsd:string ;
rdfs:label "production operation method type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodact:ProductionOperationsActivity
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "production operations activity"^^xsd:string ;
ep-prodact:ProductionOperationProcessingLoss
rdf:type owl:Class ;
rdfs:label "production operation processing loss"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionOperationProcessingLossForUnspecifiedReason
rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
rdfs:label "production operation processing loss for unspecified reason"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:ProductionOperationProcessingRegulatoryReference
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "production operation processing regulatory reference"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:ProductionOperationProduction
rdf:type owl:Class ;
rdfs:label "production operation production"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionOperationProductionAndInjection
rdf:type owl:Class ;
rdfs:label "production operation production and injection"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionVolumeActivity
......@@ -506,6 +603,11 @@ ep-prodact:RaiseAnAlert
rdfs:label "raise an alert"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:ReasonForLossOfProcessingType
rdf:type rdfs:Class ;
rdfs:label "reason for loss of processing type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodact:ReleasedToWater
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
......@@ -514,6 +616,11 @@ ep-prodact:ReportHazard
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:ReservoirLoss
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "reservoir loss"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:RestrictedWork
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
......@@ -566,15 +673,40 @@ ep-prodact:SplitFactorDeterminationType
rdfs:label "split factor determination type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodact:StrikeOrLockout
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "strike or lock-out"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:SubstanceType
rdf:type rdfs:Class ;
rdfs:label "substance type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodact:TestingAndLogging
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "testing and logging"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:ThirdPartyProcessingLoss
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "third party processing loss"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:TopsideEquipmentFailureMaintenance
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "topside equipment failure maintenance"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:TransportationActivity
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:UnavailableTankerStorage
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "unavailable tanker storage"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:UnknownReasonWellTest
rdf:type owl:Class , ep-prodact:WellTestReasonType ;
rdfs:label "unknown"^^xsd:string ;
......@@ -594,6 +726,31 @@ ep-prodact:WaterSample
rdfs:label "(temporal part of a) water sample"^^xsd:string ;
rdfs:subClassOf ep-material:Water , <http://www.reportinghub.no/ep/schema/flow#SampleOfMaterial> .
ep-prodact:WeatherProblem
rdf:type owl:Class , ep-prodact:ReasonForLossOfProcessingType ;
rdfs:label "weather problem"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:WellEquipmentFailureMaintenance
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "well equipment failure maintenance"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:WellPlannedOperations
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "well planned operations"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:WellPreventiveMaintenance
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "well preventive maintenance"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:WellProblems
rdf:type ep-prodact:ReasonForLossOfProcessingType , owl:Class ;
rdfs:label "well problems"^^xsd:string ;
rdfs:subClassOf ep-prodact:ProductionOperationProcessingLoss .
ep-prodact:WellTestReasonType
rdf:type rdfs:Class ;
rdfs:label "well test reason type"^^xsd:string ;
......@@ -693,7 +850,7 @@ ep-prodact:destination
rdfs:range <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> .
ep-prodact:glycolDensity
rdf:type owl:ObjectProperty ;
rdf:type owl:FunctionalProperty , ep-core:Class_of_indirect_property , owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Density .
......@@ -842,6 +999,11 @@ ep-prodact:phenolDensity
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Density .
ep-prodact:processingLost
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-prodact:ProductionOperationProcessingLoss ;
rdfs:range ep-material:QuantityOfMaterial .
ep-prodact:productionActivityPeriodClassification
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:FusionOfPartsOfProductionActivityOverPeriod ;
......@@ -913,6 +1075,12 @@ ep-prodact:testedWellBoreInterval
rdfs:label "tested wellbore interval"^^xsd:string ;
rdfs:range ep-core:PhysicalObject .
ep-prodact:timeWorked
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-prodact:ProductionOperation ;
rdfs:label "time worked"^^xsd:string ;
rdfs:range ep-core:TimeDuration .
ep-prodact:totalNoOfPermitsIssued
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-organization
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
@prefix ep-prodorg: <http://www.reportinghub.no/ep/schema/production-organization#> .
......@@ -9,17 +10,62 @@
<http://www.reportinghub.no/ep/schema/1.0/production-organization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/organization#Organization>
rdfs:subClassOf ep-prodorg:PersonOrOrganization .
ep-prodorg:CateringCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "catering crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:CommercialEntity
rdf:type owl:Class ;
rdfs:label "commercial entity"^^xsd:string ;
rdfs:subClassOf ep-prodorg:PersonOrOrganization .
ep-prodorg:ContractorCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "contractor crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:Crew
rdf:type owl:Class ;
rdfs:label "crew"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/organization#Organization> .
ep-prodorg:CrewType
rdf:type rdfs:Class ;
rdfs:label "crew type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodorg:DayVisitorCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "day visitor crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:DrillingContractCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "drilling contract crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:NonOperatorOvernightVisitorCrew
rdf:type owl:Class , ep-prodorg:CrewType ;
rdfs:label "non-operator overnight visitor crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:OperatorNormalCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "operator normal crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:OperatorOvernightVisitorCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "operator overnight visitor crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:Person
rdf:type owl:Class ;
rdfs:subClassOf ep-prodorg:PersonOrOrganization .
......@@ -33,11 +79,27 @@ ep-prodorg:PersonRole
rdfs:label "person role"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Person .
ep-prodorg:TotalCrew
rdf:type ep-prodorg:CrewType , owl:Class ;
rdfs:label "total crew"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Crew .
ep-prodorg:WholeLifePerson
rdf:type owl:Class ;
rdfs:label "whole life person"^^xsd:string ;
rdfs:subClassOf ep-prodorg:Person .
ep-prodorg:hasCrew
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "has crew"^^xsd:string ;
rdfs:range ep-prodorg:Crew .
ep-prodorg:numberInCrew
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-prodorg:Crew ;
rdfs:label "number in crew"^^xsd:string .
ep-prodorg:owner
rdf:type owl:ObjectProperty ;
rdfs:domain owl:Thing ;
......
......@@ -10,34 +10,34 @@
<http://www.reportinghub.no/ep/schema/1.0/production-report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-prodreport:DailyProductVolumeReport
rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
rdfs:label "daily product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:DailyProductionReport
rdf:type owl:Class ;
rdfs:label "Daily Production Report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductionReport .
ep-prodreport:DailyReport
rdf:type ep-prodreport:ReportPeriodType , owl:Class ;
rdfs:label "daily report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:FluidSampleReport
rdf:type owl:Class ;
rdfs:label "fluid sample report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:MonthlyProductVolumeReport
rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
rdfs:label " monthly product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:MonthlyProductionReport
rdf:type owl:Class ;
rdfs:label "Monthly Production Report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductionReport .
ep-prodreport:MonthlyReport
rdf:type ep-prodreport:ReportPeriodType , owl:Class ;
rdfs:label "monthly report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductVolumeFlowReport
rdf:type owl:Class ;
rdfs:label "product volume flow report"^^xsd:string ;
......@@ -48,25 +48,15 @@ ep-prodreport:ProductVolumeReport
rdfs:label "product volume report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductVolumeReportForInstant
rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
rdfs:label "product volume report for instant"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:ProductVolumeReportMonthToDate
rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
rdfs:label " product volume report month to date"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:ProductVolumeReportPeriodType
rdf:type rdfs:Class ;
rdfs:label "product volume report period type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodreport:ProductionOperationInstallationReport
rdf:type owl:Class ;
rdfs:label "production operation installation report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductVolumeReportYearToDate
rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
rdfs:label " product volume report year to date"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:ProductionOperationReport
rdf:type owl:Class ;
rdfs:label "production operation report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductionReport
rdf:type owl:Class ;
......@@ -83,8 +73,8 @@ ep-prodreport:ReportAliasIdentifier
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:aliasName
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:isAliasFor
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -93,24 +83,44 @@ ep-prodreport:ReportAliasIdentifier
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:isAliasFor
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:aliasName
] .
ep-prodreport:WeeklyProductVolumeReport
rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
rdfs:label "weekly product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:ReportForInstant
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "report for instant"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ReportMonthToDate
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "report month to date"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ReportPeriodType
rdf:type rdfs:Class ;
rdfs:label "report period type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodreport:ReportYearToDate
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "report year to date"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:WeeklyReport
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "weekly report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:WellTestReport
rdf:type owl:Class ;
rdfs:label "well test report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:YearlyProductVolumeReport
rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
rdfs:label "yearly product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:YearlyReport
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "yearly report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:aliasName
rdf:type owl:DatatypeProperty ;
......@@ -139,6 +149,6 @@ ep-prodreport:isAliasFor
rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
ep-prodreport:issuedAt
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/report#Report> ;
rdfs:label "issued at"^^xsd:string .
......
......@@ -223,6 +223,78 @@ ep-mpr-spin-lib:selectCompressibilityScale
])
] .
ep-mpr-spin-lib:selectCrewType
rdf:type spin:Function ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "crewType"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_cateringcrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#CateringCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_contractorcrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#ContractorCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_dayvisitors>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#DayVisitorCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_drillingcontractcrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#DrillingContractCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_owncrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#OperatorNormalCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_ownothercrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#OperatorOvernightVisitorCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_othercrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#NonOperatorOvernightVisitorCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#CT_personnelonboard>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#TotalCrew> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/production-organization#Crew>
]
]
]
]
]
]
]
] ;
sp:variable
[ sp:varName "crewType"^^xsd:string
]
])
] .
ep-mpr-spin-lib:selectDensityAtStandardTemperaturePressureType
rdf:type spin:Function ;
rdfs:label "select DensityAtStandardTemperaturePressureType"^^xsd:string ;
......@@ -3956,160 +4028,6 @@ ep-mpr-spin-lib:selectProductMaterialType
])
] .
ep-mpr-spin-lib:selectProductVolumeReportPeriodType
rdf:type spin:Function ;
rdfs:label "select ProductVolumeReportPeriodType"^^xsd:string ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_0600>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailymonthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportMonthToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailyyeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportYearToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_day>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasday>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasmonth>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyear>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportYearToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_midnight>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_month>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_monthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportMonthToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_noon>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_previousperiod>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_report>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportend>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportstart>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_totalcumulative>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_week>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#WeeklyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_year>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyProductVolumeReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_yeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportYearToDate> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport>
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
] ;
sp:variable _:b1
])
] .
ep-mpr-spin-lib:selectProductionFacilityType
rdf:type spin:Function ;
rdfs:label "select ProductionFacilityType"^^xsd:string ;
......@@ -5057,6 +4975,354 @@ ep-mpr-spin-lib:selectRatioScale
])
] .
ep-mpr-spin-lib:selectReasonForLossOfProcessingType
rdf:type spin:Function ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "reasonForLossOfProcessingType"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_topsideequipmentfailure-maint>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#TopsideEquipmentFailureMaintenance> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_extendedmaintturnaround>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ExtendedMaintenanceTurnaround> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_extendedmaintturnaroundexport>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ExtendedMaintenanceTurnaroundExportTerminal> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_preventivemainttopside>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#PreventiveMaintenanceTopside> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_plannedmaintturnaround>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#PlannedMaintenanceTurnaround> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_markedoil>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MarkedOilLossOfExport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_markedgas>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MarkedGasLossOfExport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_modificationproject>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ModificationProject> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_operationmistakes>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#OperationMistakes> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_other>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLossForUnspecifiedReason> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_processandoperationproblem>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProcessAndOperationProblem> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_production>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_regulatoryreference>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingRegulatoryReference> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_reservoir>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ReservoirLoss> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_testingandlogging>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#TestingAndLogging> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_unavailabletankerstorage>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#UnavailableTankerStorage> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellequipmentfailure-maint>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellEquipmentFailureMaintenance> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellplannedoperations>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellPlannedOperations> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellpreventivemaint>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellPreventiveMaintenance> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_weatherproblem>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WeatherProblem> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_hse>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#HSEProblem> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_strikelock-out>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#StrikeOrLockout> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_3rdpartyprocessing>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_dailytotallossofprod>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#DailyProductionOperationProcessingLoss> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RL_wellproblems>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#WellProblems> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss>
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
] ;
sp:variable
[ sp:varName "reasonForLossOfProcessingType"^^xsd:string
]
])
] .
ep-mpr-spin-lib:selectReportPeriodType
rdf:type spin:Function ;
rdfs:label "select ReportPeriodType"^^xsd:string ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "reportPeriodType"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_0600>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailymonthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportMonthToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailyyeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportYearToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_day>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasday>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#DailyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasmonth>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyear>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_gasyeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportYearToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_midnight>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_month>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#MonthlyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_monthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportMonthToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_noon>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_previousperiod>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_report>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportend>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_reportstart>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportForInstant> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_totalcumulative>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_week>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#WeeklyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_year>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#YearlyReport> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_yeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ReportYearToDate> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/report#Report>
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
] ;
sp:variable
[ sp:varName "reportPeriodType"^^xsd:string
]
])
] .
ep-mpr-spin-lib:selectSalesActivityType
rdf:type spin:Function ;
rdfs:label "select SalesActivityType"^^xsd:string ;
......@@ -7054,5 +7320,3 @@ ep-mpr-spin-lib:selectWorkScale
]
])
] .
_:b1 sp:varName "productVolumeReportPeriodType"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40103 Set the hours worked year to date"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "realWorkYearToDate"^^xsd:string
] ;
sp:predicate
[ sp:varName "workYearToDateScale"^^xsd:string
] ;
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "annualProductionOperationToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "workYearToDateRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workYearToDateRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWorkYearToDate"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workYearToDateRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWorkYearToDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "workYearToDateRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomWorkYearToDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workYearToDateScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40100 Create the ProductionOperationInstallationReport; the ProductionOperationActivity; and set the facility and number of beds"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationInstallationReport> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "productionOperationReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "bedsAvailable"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-facility#numberOfBedsAvailable> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "bedsAvailable"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#bedsAvailable> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "workRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWork"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40104 Set the crew numbers"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-organization#hasCrew> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Crew> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "crewType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "crewCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-organization#numberInCrew> ;
sp:subject _:b7
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "crewCountRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#crewCountRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "crewCount"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "crewCountRef"^^xsd:string
]
] [ sp:object
[ sp:varName "typeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
sp:subject
[ sp:varName "crewCountRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectCrewType ;
sp:arg1 [ sp:varName "typeRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "crewType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40101 Set the hours worked in reporting period"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b8
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "workRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWork"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomWork"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40102 Set the hours worked month to date"^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
sp:subject
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "realWorkMonthToDate"^^xsd:string
] ;
sp:predicate
[ sp:varName "workMonthToDateScale"^^xsd:string
] ;
sp:subject _:b9
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "workMonthToDateRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workMonthToDateRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWorkMonthToDate"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workMonthToDateRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWorkMonthToDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "workMonthToDateRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomWorkMonthToDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workMonthToDateScale"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
......@@ -21,97 +21,6 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reportKind"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "nameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedKind"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
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 ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
......@@ -127,7 +36,7 @@
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "productVolumeReportPeriodType"^^xsd:string
[ sp:varName "reportPeriodType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
......@@ -253,76 +162,76 @@
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductVolumeReportPeriodType ;
[ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productVolumeReportPeriodType"^^xsd:string
[ sp:varName "reportPeriodType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventoryToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
......@@ -340,16 +249,16 @@
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
......@@ -429,57 +338,52 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "operator"^^xsd:string
[ sp:varName "contextFacility"^^xsd:string
]
])
] ;
......@@ -553,116 +457,121 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
rdfs:comment """STEP 20060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
[ sp:varName "operator"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventoryToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
......@@ -680,16 +589,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
......@@ -854,9 +763,100 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reportKind"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "nameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedKind"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
rdf:type owl:Ontology ;
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> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40201 Create the ProductionOperationProduction activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProduction> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "lostProductionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
]
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "lostProductionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#lostProductionRef> ;
sp:subject
[ sp:varName "productionActivityRef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40200 Create the ProductionOperationProductionAndInjection activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40202 Create the ProductionOperationInjection activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationInjection> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "lostProductionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
]
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "lostInjectionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#lostInjectionRef> ;
sp:subject
[ sp:varName "productionActivityRef"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#Cs_productionOperationLostProduction>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40295 Create the ProductionOperationProcessing - loss contributing third party processing - add gas volume"^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object
[ sp:varName "gasStdTempPresRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#gasStdTempPresRef> ;
sp:subject
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "gasStdTempPresRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "gasStdTempPresRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40294 Create the ProductionOperationProcessing - loss contributing third party processing - add oil volume"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object
[ sp:varName "oilStdTempPresRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#oilStdTempPresRef> ;
sp:subject
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "oilStdTempPresRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "oilStdTempPresRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40293 Create the ProductionOperationProcessing - loss contributing third party processing - add third party installation"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "thirdPartyProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "thirdPartyProductionFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40292 Create the ProductionOperationProcessing - loss contributing third party processing"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "productionOperationProcessing"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b9
] [ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b9
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationProcessing"^^xsd:string
]
] [ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#thirdPartyProcessingRef> ;
sp:subject spin:_this
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40291 Create the ProductionOperationProcessing - loss contributing activities"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reasonForLossOfProcessingType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "productionOperationProcessing"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b12
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationProcessing"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeAndReasonRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeAndReasonRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeAndReasonRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "volumeAndReasonRef"^^xsd:string
]
] [ sp:object
[ sp:varName "reasonLostRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#reasonLostRef> ;
sp:subject
[ sp:varName "volumeAndReasonRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectReasonForLossOfProcessingType ;
sp:arg1 [ sp:varName "reasonLostRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reasonForLossOfProcessingType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
])
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40040 Set the installation"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reportKind"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "nameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedKind"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40050 Set the context facility - installation exists"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "productionOperationsRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "reportPeriodType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/elements/1.1/title> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "nameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "titleRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportPeriodType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "operator"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
<?xml version="1.0" encoding="UTF-8"?>
<objects version="1.0(MPRML)"
xmlns:witsml="http://www.epim.no/schemas/mprml/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<context xsi:type="obj_report">
<kind>Daily production report Trym</kind>
<title>Daily production report Trym September 2011</title>
<date>2011-08-27</date>
</context>
<object xsi:type="obj_productionOperation">
<name>TRYM production operation</name>
<installation kind="field" namingSystem="NPD" uidRef="18081500">TRYM</installation>
<contextFacility kind="field" namingSystem="NPD" uidRef="18081500">TRYM</contextFacility>
<kind>ReportKind</kind>
<periodKind>day</periodKind>
<dateStart>2012-04-12</dateStart>
<dateEnd>2012-04-13</dateEnd>
<operator>
<name>DONG E&amp;P Norge AS</name>
<role>Operating company</role>
</operator>
<title>Report title</title>
<geographicContext>
<comment>somewhere</comment>
</geographicContext>
</object>
</objects>
\ No newline at end of file