David Leal

First work on MPR Fluid sample transform + minor fixes elsewhere

# Saved by TopBraid on Mon Dec 19 18:46:58 GMT 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-organization
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-prodact: <http://www.reportinghub.no/ep/schema/production-activity#> .
......@@ -36,7 +37,7 @@
<http://www.reportinghub.no/ep/schema/activity#ProductionWellTest>
rdf:type owl:Class ;
rdfs:label "production well test"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> .
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
<http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
......@@ -51,7 +52,7 @@
rdfs:range <http://www.reportinghub.no/ep/schema/flow#Flow> .
ep-core:Mass
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdfs:label "mass"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfAmountOfMaterial .
......@@ -92,13 +93,13 @@ ep-core:Mass
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
ep-prodact:AdministerFirstAid
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:AirTrafficOperation
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "air traffic operation"^^xsd:string ;
rdfs:subClassOf ep-prodact:TransportationActivity , ep-prodact:PartOfProductionActivity .
rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity .
ep-prodact:Alarm
rdf:type owl:Class ;
......@@ -117,49 +118,49 @@ ep-prodact:AmountOfSubstance
rdfs:subClassOf ep-core:PhysicalObject .
ep-prodact:AnnualProductionActivity
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:AnnualProductionActivityToDate
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivity .
ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivityToDate , ep-prodact:ProductionOperationsActivity .
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionOperationsActivity , ep-prodact:AnnualProductionActivityToDate .
ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivityToDate , ep-prodact:ProductionVolumeActivity .
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionVolumeActivity , ep-prodact:AnnualProductionActivityToDate .
ep-prodact:CargoShipOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:TransportationActivity , ep-prodact:PartOfProductionActivity .
rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity .
ep-prodact:ConstructionOperation
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "construction operation"^^xsd:string ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:CumulativeProductionActivitySinceProductionBegan
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:DailyProductionOperationsActivity
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionOperationsActivity .
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionOperationsActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> .
ep-prodact:DailyProductionVolumeActivity
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionVolumeActivity .
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionVolumeActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> .
ep-prodact:Deviation
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "deviation"^^xsd:string ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:DrillOrExcercise
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:Fire
......@@ -181,7 +182,67 @@ ep-prodact:FlowLine-Production
ep-prodact:FluidLevelTest
rdf:type owl:Class ;
rdfs:label "fluid level test"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:FluidSampling
rdf:type owl:Class ;
rdfs:label "fluid sampling"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:FluidSampling-DST
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - DST"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-RFTorMDT
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - RFT or MDT"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-bottomhole
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - bottomhole"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-formationTester
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - formation tester"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-recombined
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - recombined"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-separatorGas
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - separator gas"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-separatorOil
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - separator oil"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-separatorWater
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - separator water"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-synthetic
rdf:type owl:Class , ep-prodact:FluidSamplingType ;
rdfs:label "fluid sampling - synthetic"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSampling-wellhead
rdf:type ep-prodact:FluidSamplingType , owl:Class ;
rdfs:label "fluid sampling - wellhead"^^xsd:string ;
rdfs:subClassOf ep-prodact:FluidSampling .
ep-prodact:FluidSamplingType
rdf:type rdfs:Class ;
rdfs:label "fluid sampling type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodact:FusionOfHSEActivitiesOverPeriod
rdf:type owl:Class ;
......@@ -200,21 +261,21 @@ ep-prodact:Incident
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:InitialWellTest
rdf:type ep-prodact:WellTestReasonType , owl:Class ;
rdf:type owl:Class , ep-prodact:WellTestReasonType ;
rdfs:label "initial"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:InjectionWellTest
rdf:type owl:Class ;
rdfs:label "injection well test"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:Injury
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:IssueWorkPermit
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:JobObservation
......@@ -234,20 +295,20 @@ ep-prodact:LostTimeIncident
rdfs:subClassOf ep-prodact:Incident .
ep-prodact:MaintenanceActivity
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "maintenance activity"^^xsd:string ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:MarineOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:TransportationActivity , ep-prodact:PartOfProductionActivity .
rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity .
ep-prodact:MedicalTreatmentInjury
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:Injury .
ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> .
ep-prodact:NearMiss
......@@ -259,12 +320,12 @@ ep-prodact:NotablePartOfProductionActivity
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:OtherProductionActivity
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "other production activity"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:OtherReasonWellTest
rdf:type ep-prodact:WellTestReasonType , owl:Class ;
rdf:type owl:Class , ep-prodact:WellTestReasonType ;
rdfs:label "other"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
......@@ -279,17 +340,17 @@ ep-prodact:Participation
rdfs:subPropertyOf ep-prodact:involvement .
ep-prodact:PeriodicWellTest
rdf:type ep-prodact:WellTestReasonType , owl:Class ;
rdf:type owl:Class , ep-prodact:WellTestReasonType ;
rdfs:label "periodic"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:PowerStationFailure
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
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:ProductionActivityLastingLessThanAYear
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionActivityType
......@@ -302,7 +363,7 @@ ep-prodact:ProductionOperationClassByDuration
rdfs:subClassOf owl:Class .
ep-prodact:ProductionOperationsActivity
rdf:type owl:Class , ep-prodact:ProductionActivityType ;
rdf:type ep-prodact:ProductionActivityType , owl:Class ;
rdfs:label "production operations activity"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
......@@ -315,7 +376,7 @@ ep-prodact:ReleasedToWater
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:ReportHazard
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:RestrictedWork
......@@ -323,11 +384,11 @@ ep-prodact:RestrictedWork
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:RestrictedWorkInjury
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:Injury .
ep-prodact:RevisionWellTest
rdf:type ep-prodact:WellTestReasonType , owl:Class ;
rdf:type owl:Class , ep-prodact:WellTestReasonType ;
rdfs:label "revision"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
......@@ -336,7 +397,7 @@ ep-prodact:SafetyActivityType
rdfs:subClassOf owl:Class .
ep-prodact:SafetyMeeting
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:SampleAmountOfSubstance
......@@ -356,7 +417,7 @@ ep-prodact:SickOnBoard
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:SpillOrLeak
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:TransportationActivity
......@@ -364,7 +425,7 @@ ep-prodact:TransportationActivity
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:UnknownReasonWellTest
rdf:type ep-prodact:WellTestReasonType , owl:Class ;
rdf:type owl:Class , ep-prodact:WellTestReasonType ;
rdfs:label "unknown"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
......@@ -379,7 +440,7 @@ ep-prodact:WaterDischarge
ep-prodact:WaterSample
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:SampleAmountOfSubstance , <http://www.reportinghub.no/ep/schema/well#Water> .
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/well#Water> , ep-prodact:SampleAmountOfSubstance .
ep-prodact:WellTestReasonType
rdf:type rdfs:Class ;
......@@ -387,11 +448,11 @@ ep-prodact:WellTestReasonType
rdfs:subClassOf owl:Class .
ep-prodact:WorkingUnderPermit
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:WorkingUnderPermitWithSJA
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:WorkingUnderPermit .
ep-prodact:ammoniumDensity
......@@ -449,7 +510,7 @@ ep-prodact:hasPredecessor
rdfs:range <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:hasShutInPressure
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionWellTest> ;
rdfs:label "has shut-in pressure"^^xsd:string ;
rdfs:range ep-core:Pressure .
......@@ -461,25 +522,25 @@ ep-prodact:hasValidPredecessor
rdfs:range <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:injectionWellTestMaximumAnnularPressure
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-prodact:InjectionWellTest ;
rdfs:label "injection well test maximum annular pressure"^^xsd:string ;
rdfs:range ep-core:Pressure .
ep-prodact:injectionWellTestMinimumAnnularPressure
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-prodact:InjectionWellTest ;
rdfs:label "injection well test minimum annular pressure"^^xsd:string ;
rdfs:range ep-core:Pressure .
ep-prodact:injectionWellTestWellheadFlowingPressure
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-prodact:InjectionWellTest ;
rdfs:label "injection well test wellhead flowing pressure"^^xsd:string ;
rdfs:range ep-core:Pressure .
ep-prodact:injectionWellTestWellheadMaximumPressure
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-prodact:InjectionWellTest ;
rdfs:label "injection well test wellhead maximum pressure"^^xsd:string ;
rdfs:range ep-core:Pressure .
......@@ -545,7 +606,7 @@ ep-prodact:oilInWater
rdfs:range ep-core:MassPerUnitMassConcentration .
ep-prodact:onProductionFacility
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
rdfs:label "on facility"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> .
......@@ -566,7 +627,7 @@ ep-prodact:productionActivityPeriodClassification
rdfs:range ep-prodact:ProductionOperationClassByDuration .
ep-prodact:productionOperator
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
rdfs:label "production operator"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
......@@ -582,7 +643,7 @@ ep-prodact:samplePhValue
rdfs:range xsd:double .
ep-prodact:samplePoint
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range <http://www.reportinghub.no/ep/schema/production-core#TemporalPartOfAPointInSpace> .
......@@ -597,7 +658,7 @@ ep-prodact:sampleTurbidity
rdfs:range xsd:double .
ep-prodact:testedWellBoreInterval
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
rdfs:label "tested wellbore interval"^^xsd:string ;
rdfs:range ep-core:PhysicalObject .
......
# Saved by TopBraid on Mon Dec 19 18:49:44 GMT 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/np/schema/1.0/npd
......@@ -10,19 +11,29 @@
<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 ;
rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
rdfs:label "daily product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:DailyProductionReport .
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: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 ep-prodreport:ProductVolumeReportPeriodType , owl:Class ;
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 ;
......@@ -33,11 +44,26 @@ ep-prodreport:ProductVolumeReport
rdfs:label "product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductionReport .
ep-prodreport:ProductVolumeReportForInstant
rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
rdfs:label "product volume report for instant"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:ProductVolumeReportMonthToDate
rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
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:ProductVolumeReportYearToDate
rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
rdfs:label " product volume report year to date"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:ProductionReport
rdf:type owl:Class ;
rdfs:label "Production Report"^^xsd:string ;
......@@ -53,8 +79,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 ;
......@@ -63,10 +89,20 @@ 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 owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
rdfs:label "weekly product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:YearlyProductVolumeReport
rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ;
rdfs:label "yearly product volume report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductVolumeReport .
ep-prodreport:aliasName
rdf:type owl:DatatypeProperty ;
rdfs:range xsd:string .
......
# Saved by TopBraid on Sun Dec 18 18:59:30 GMT 2011
# Saved by TopBraid on Mon Dec 19 16:52:20 GMT 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production
......@@ -49,7 +49,7 @@ sp:if
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:BuildDailyProductionReportURI
......@@ -4294,8 +4294,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "productVolumeReportPeriodType"^^xsd:string
]) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4339,7 +4338,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_totalcumulative>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReportToDate> ;
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 ;
......@@ -4369,9 +4368,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
]
]
] ;
sp:variable
[ sp:varName "productVolumeReportPeriodType"^^xsd:string
]
sp:variable _:b21
])
] .
......@@ -4539,7 +4536,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4718,7 +4715,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b21
sp:variable _:b22
])
] .
......@@ -4728,7 +4725,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:resultVariables (_:b23) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4788,7 +4785,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b22
sp:variable _:b23
])
] .
......@@ -4798,7 +4795,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b23) ;
sp:resultVariables (_:b24) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4816,7 +4813,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b23
sp:variable _:b24
])
] .
......@@ -4826,7 +4823,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b24) ;
sp:resultVariables (_:b25) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4844,7 +4841,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b24
sp:variable _:b25
])
] .
......@@ -4854,7 +4851,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b25) ;
sp:resultVariables (_:b26) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5005,7 +5002,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b25
sp:variable _:b26
])
] .
......@@ -5108,7 +5105,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b26) ;
sp:resultVariables (_:b27) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5182,7 +5179,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
] ;
sp:variable _:b26
sp:variable _:b27
])
] .
......@@ -5191,7 +5188,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:resultVariables (_:b28) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5335,7 +5332,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
] ;
sp:variable _:b27
sp:variable _:b28
])
] .
......@@ -5516,6 +5513,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b29) ;
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.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b29
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "myVar"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
......@@ -5595,22 +5608,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
[ sp:varName "myVar"^^xsd:string
]
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
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.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b28
])
] .
ep-dpr-spin-lib:selectTemperatureScale
......@@ -5964,7 +5961,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b29) ;
sp:resultVariables (_:b30) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5989,7 +5986,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b29
sp:variable _:b30
])
] .
......@@ -5999,7 +5996,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b30) ;
sp:resultVariables (_:b31) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -6024,7 +6021,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b30
sp:variable _:b31
])
] .
......@@ -7142,34 +7139,34 @@ ep-dpr-spin-lib:selectWorkScale
])
] .
_:b30
_:b31
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b29
_:b30
sp:varName "volumeAtStdType"^^xsd:string .
_:b28
_:b29
sp:varName "specificVolumeScale"^^xsd:string .
_:b27
_:b28
sp:varName "safetyActivityType"^^xsd:string .
_:b26
_:b27
sp:varName "relationshipToMeasure"^^xsd:string .
_:b25
_:b26
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b24
_:b25
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b23
_:b24
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b22
_:b23
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b21
_:b22
sp:varName "productionFacilityType"^^xsd:string .
_:b20
......@@ -7193,6 +7190,9 @@ _:b15
_:b14
sp:varName "uri"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
......@@ -7220,5 +7220,5 @@ _:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
_:b21
sp:varName "productVolumeReportPeriodType"^^xsd:string .
......
# Saved by TopBraid on Sun Dec 18 18:59:31 GMT 2011
# Saved by TopBraid on Mon Dec 19 16:52:20 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Dec 19 18:38:19 GMT 2011
# baseURI: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -800,6 +801,97 @@ ep-mpr-spin-lib:selectEnergyPerVolumeScale
])
] .
ep-mpr-spin-lib:selectFluidSamplingType
rdf:type spin:Function ;
rdfs:label "select ProductType"^^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#FSK_bottomhole>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-bottomhole> ;
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#FSK_wellhead>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-wellhead> ;
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#FSK_DST>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-DST> ;
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#FSK_formationtester>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-formationTester> ;
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#FSK_RFTorMDT>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-RFTorMDT> ;
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#FSK_recombined>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-recombined> ;
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#FSK_separatorgas>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-separatorGas> ;
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#FSK_separatoroil>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-separatorOil> ;
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#FSK_separatorwater>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-separatorWater> ;
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#FSK_synthetic>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling-synthetic> ;
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#FSK_unknown>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling>
]
]
]
]
]
]
]
]
]
]
] ;
sp:variable _:b1
])
] .
ep-mpr-spin-lib:selectFrequencyScale
rdf:type spin:Function ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
......@@ -2840,6 +2932,160 @@ ep-mpr-spin-lib:selectProductType
])
] .
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 (_:b2) ;
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 _:b2
])
] .
ep-mpr-spin-lib:selectProductionFacilityType
rdf:type spin:Function ;
rdfs:label "select ProductionFacilityType"^^xsd:string ;
......@@ -5219,3 +5465,7 @@ ep-mpr-spin-lib:selectWorkScale
]
])
] .
_:b2 sp:varName "productVolumeReportPeriodType"^^xsd:string .
_:b1 sp:varName "fluidSamplingType"^^xsd:string .
......
# Saved by TopBraid on Mon Dec 19 18:38:19 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Dec 19 20:37:48 GMT 2011
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> .
@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 fn: <http://www.w3.org/2005/xpath-functions#> .
@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 40003 Create the Sample of fluid.
The sample is anonymous. It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate rdfs:label ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b4 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
] [ sp:object _:b2 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject _:b4
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002c Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate rdfs:label ;
sp:subject _:b5
] [ sp:object _:b8 ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate rdfs:label ;
sp:subject _:b9
]) ;
sp:where ([ sp:object _:b10 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b6
] [ sp:object _:b9 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b9
] [ sp:object _:b12 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b11
] [ sp:object _:b13 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b11
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b11
])
] [ sp:object _:b14 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject _:b10
] [ sp:object _:b15 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b14
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityParent2Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
sp:subject _:b10
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b12
] ;
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b15
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 _:b17 ;
sp:arg2 "$" ;
sp:arg3 _:b16
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b7
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b13
] ;
sp:variable _:b8
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b19
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate rdfs:label ;
sp:subject _:b18
] [ sp:object _:b21 ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate rdfs:label ;
sp:subject _:b22
]) ;
sp:where ([ sp:object _:b23 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b19
] [ sp:object _:b22 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b22
] [ sp:object _:b25 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b24
] [ sp:object _:b26 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b24
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b24
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityParent1Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject _:b23
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b25
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b20
] ;
sp:variable _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b26
] ;
sp:variable _:b21
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002a Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is \"well\" and facilityAlias is supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b28
] [ sp:object _:b29 ;
sp:predicate rdfs:label ;
sp:subject _:b30
]) ;
sp:where ([ sp:object _:b31 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b28
] [ sp:object _:b30 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b31
] [ sp:object _:b32 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b30
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b32
] [ sp:object _:b33 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityAliasRef> ;
sp:subject _:b31
] [ sp:object _:b34 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b34
] ;
sp:variable _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
arg:wellName _:b34
] ;
sp:variable _:b27
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40001 Create the FluidSampleReport, FluidSampling activity and FluidSample object ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#FluidSampleReport> ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b35
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling> ;
sp:predicate rdf:type ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:predicate rdf:type ;
sp:subject _:b37
] [ sp:object _:b39 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b37
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b37
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b36
] [ sp:object _:b40 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b39 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject _:b40
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b41 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sampleTypeRef> ;
sp:subject _:b40
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidSamplingType ;
sp:arg1 _:b41
] ;
sp:variable _:b38
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002d Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b42 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b43
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject _:b42
] [ sp:object _:b44 ;
sp:predicate rdfs:label ;
sp:subject _:b42
] [ sp:object _:b45 ;
sp:predicate rdf:type ;
sp:subject _:b42
] [ sp:object _:b44 ;
sp:predicate rdfs:label ;
sp:subject _:b46
]) ;
sp:where ([ sp:object _:b47 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ sp:object _:b47 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b43
] [ sp:object _:b46 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b46
] [ sp:object _:b49 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b48
] [ sp:object _:b50 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b48
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b48
])
] [ sp:object _:b51 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject _:b47
] [ sp:object _:b52 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b51
] [ sp:object _:b53 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
sp:subject _:b47
] [ sp:object _:b54 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b49
] ;
sp:variable _:b55
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b52
] ;
sp:variable _:b56
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b54
] ;
sp:variable
[ sp:varName "normalizedFacilityParent2Name"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 _:b56 ;
sp:arg2 "$" ;
sp:arg3 _:b56 ;
sp:arg4 "$" ;
sp:arg5 _:b55
] ;
sp:variable _:b44
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b44
] ;
sp:variable _:b42
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b50
] ;
sp:variable _:b45
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b31
sp:varName "fluidSampleRef"^^xsd:string .
_:b28
sp:varName "fluidSampling"^^xsd:string .
_:b30
sp:varName "facilityRef"^^xsd:string .
_:b32
sp:varName "facilityNameRef"^^xsd:string .
_:b33
sp:varName "facilityAliasRef"^^xsd:string .
_:b34
sp:varName "facilityAlias"^^xsd:string .
_:b29
sp:varName "normalizedFacilityAlias"^^xsd:string .
_:b27
sp:varName "facility"^^xsd:string .
_:b23
sp:varName "fluidSampleRef"^^xsd:string .
_:b19
sp:varName "fluidSampling"^^xsd:string .
_:b22
sp:varName "facilityRef"^^xsd:string .
_:b24
sp:varName "facilityNameRef"^^xsd:string .
_:b25
sp:varName "facilityName"^^xsd:string .
_:b26
sp:varName "facilityKind"^^xsd:string .
_:b20
sp:varName "normalizedFacilityName"^^xsd:string .
_:b18
sp:varName "facility"^^xsd:string .
_:b21
sp:varName "facilityType"^^xsd:string .
_:b10
sp:varName "fluidSampleRef"^^xsd:string .
_:b6 sp:varName "fluidSampling"^^xsd:string .
_:b9 sp:varName "facilityRef"^^xsd:string .
_:b11
sp:varName "facilityNameRef"^^xsd:string .
_:b12
sp:varName "facilityChildName"^^xsd:string .
_:b13
sp:varName "facilityKind"^^xsd:string .
_:b14
sp:varName "facilityParent1Ref"^^xsd:string .
_:b15
sp:varName "facilityParent1Name"^^xsd:string .
_:b16
sp:varName "normalizedFacilityChildName"^^xsd:string .
_:b17
sp:varName "normalizedFacilityParent1Name"^^xsd:string .
_:b7 sp:varName "normalizedFacilityName"^^xsd:string .
_:b5 sp:varName "facility"^^xsd:string .
_:b8 sp:varName "facilityType"^^xsd:string .
_:b47
sp:varName "fluidSampleRef"^^xsd:string .
_:b43
sp:varName "fluidSampling"^^xsd:string .
_:b46
sp:varName "facilityRef"^^xsd:string .
_:b48
sp:varName "facilityNameRef"^^xsd:string .
_:b49
sp:varName "facilityChildName"^^xsd:string .
_:b50
sp:varName "facilityKind"^^xsd:string .
_:b51
sp:varName "facilityParent1Ref"^^xsd:string .
_:b52
sp:varName "facilityParent1Name"^^xsd:string .
_:b53
sp:varName "facilityParent2Ref"^^xsd:string .
_:b54
sp:varName "facilityParent2Name"^^xsd:string .
_:b55
sp:varName "normalizedFacilityChildName"^^xsd:string .
_:b56
sp:varName "normalizedFacilityParent1Name"^^xsd:string .
_:b44
sp:varName "normalizedFacilityName"^^xsd:string .
_:b42
sp:varName "facility"^^xsd:string .
_:b45
sp:varName "facilityType"^^xsd:string .
_:b36
sp:varName "productionReport"^^xsd:string .
_:b40
sp:varName "fluidSampleRef"^^xsd:string .
_:b39
sp:varName "acquisitionDate"^^xsd:string .
_:b41
sp:varName "sampleTypeRef"^^xsd:string .
_:b38
sp:varName "fluidSamplingType"^^xsd:string .
_:b4 sp:varName "fluidSampleRef"^^xsd:string .
_:b3 sp:varName "fluidSampling"^^xsd:string .
_:b2 sp:varName "name"^^xsd:string .
# Saved by TopBraid on Sun Dec 18 21:07:10 GMT 2011
# Saved by TopBraid on Mon Dec 19 20:23:39 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Dec 19 16:28:10 GMT 2011
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
# 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.epim.no/schemas/mprml/1
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
@prefix arg: <http://spinrdf.org/arg#> .
......@@ -20,101 +22,37 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "state"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ;
rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "state"^^xsd:string
]
] [ sp:object
[ sp:varName "stateName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "state"^^xsd:string
]
]) ;
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:subject _:b1
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "stateName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#state> ;
sp:subject
[ sp:varName "geographicContextRef"^^xsd:string
]
sp:subject _:b2
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "stateName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedStateName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildStateURI ;
sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "state"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "productionContextFacilityType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
[ sp:varName "productionContextFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -128,19 +66,28 @@
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "contextFacilityName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "contextFacilityRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "contextFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
......@@ -155,96 +102,53 @@
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20001b 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 rdfs:label ;
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
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string
]
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
sp:variable
[ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedKind"^^xsd:string
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
[ sp:varName "productionContextFacilityType"^^xsd:string
]
])
] ;
......@@ -377,24 +281,93 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20003 Set the installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "block"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
]) ;
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 "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "offshoreLocationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ;
sp:subject
[ sp:varName "geographicContextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "blockId"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ;
sp:subject
[ sp:varName "offshoreLocationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "blockId"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedBlockId"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildBlockURI ;
sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string
]
] ;
sp:variable
[ sp:varName "block"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20003 Set the installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
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 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
......@@ -402,7 +375,7 @@
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b1
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -482,32 +455,150 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionContextFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
]
]) ;
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 "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "contextFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionContextFacilityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20006b Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility not already defined"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b5
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b2
] [ sp:object _:b4 ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b3
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b6
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b4
sp:subject _:b6
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -574,27 +665,14 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20002b Record the end date"^^xsd:string ;
rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist
role is ignored, because it is implicitly \"operator\""""^^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 "productionFlow"^^xsd:string
]
] [ sp:object
[ 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 "dateEnd"^^xsd:string
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -608,18 +686,18 @@
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "operatorName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -635,29 +713,66 @@
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ;
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "operatorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedOperatorName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id [ sp:varName "normalizedOperatorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "operator"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b7
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b5
sp:subject _:b7
] [ sp:object
[ sp:varName "comment"^^xsd:string
] ;
sp:predicate rdfs:comment ;
sp:subject _:b5
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -722,15 +837,27 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist
rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b8
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
sp:subject _:b9
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -770,25 +897,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
......@@ -811,37 +940,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionContextFacilityType"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
[ sp:varName "productionFlowToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -855,28 +974,19 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityName"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "contextFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
......@@ -891,66 +1001,30 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionContextFacilityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ;
rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "block"^^xsd:string
[ sp:varName "state"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "state"^^xsd:string
]
] [ sp:object
[ sp:varName "stateName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "state"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -970,20 +1044,13 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "offshoreLocationRef"^^xsd:string
[ sp:varName "stateName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#state> ;
sp:subject
[ sp:varName "geographicContextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "blockId"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ;
sp:subject
[ sp:varName "offshoreLocationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......@@ -993,20 +1060,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "blockId"^^xsd:string
sp:arg1 [ sp:varName "stateName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedBlockId"^^xsd:string
[ sp:varName "normalizedStateName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildBlockURI ;
sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildStateURI ;
sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "block"^^xsd:string
[ sp:varName "state"^^xsd:string
]
])
] ;
......@@ -1015,133 +1082,95 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
rdfs:comment "STEP 20001a Create the ProductVolumeReport, the DailyProductionFlow and the ProductionFlowToDate ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b8
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:subject _:b10
] [ sp:object _:b12 ;
sp:predicate rdfs:label ;
sp:subject _:b8
] [ sp:object
[ sp:varName "productVolumeReportPeriodType"^^xsd:string
] ;
sp:subject _:b10
] [ sp:object _:b13 ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:subject _:b10
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b8
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:subject _:b14
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:subject _:b14
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b9
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate <http://purl.org/dc/elements/1.1/title> ;
sp:subject _:b8
sp:subject _:b10
]) ;
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 "productVolumeRef"^^xsd:string
] ;
sp:subject _:b11
] [ sp:object _:b15 ;
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:subject _:b15
] [ sp:object _:b18 ;
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:subject _:b15
] [ sp:object _:b12 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "nameRef"^^xsd:string
]
sp:subject _:b18
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:elements ([ sp:object _:b19 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
sp:subject _:b15
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
] ;
sp:elements ([ sp:object _:b20 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "titleRef"^^xsd:string
]
sp:subject _:b20
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductVolumeReportPeriodType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
[ rdf:type ep-mpr-spin-lib:selectProductVolumeReportPeriodType ;
sp:arg1 _:b19
] ;
sp:variable
[ sp:varName "productVolumeReportPeriodType"^^xsd:string
]
sp:variable _:b13
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b12
rdfs:comment "STEP 20002b Record the end date"^^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 "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b11
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "operator"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject _:b12
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -1154,18 +1183,18 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorName"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "operatorRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -1181,57 +1210,30 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^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
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "operatorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedOperatorName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id [ sp:varName "normalizedOperatorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "operator"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ;
rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "field"^^xsd:string
[ sp:varName "country"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "country"^^xsd:string
]
] [ sp:object
[ sp:varName "countryName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "country"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -1251,20 +1253,13 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldRef"^^xsd:string
[ sp:varName "countryName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#country> ;
sp:subject
[ sp:varName "geographicContextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "fieldRef"^^xsd:string
]
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......@@ -1274,44 +1269,32 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "fieldName"^^xsd:string
sp:arg1 [ sp:varName "countryName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFieldName"^^xsd:string
[ sp:varName "normalizedCountryName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildCountryURI ;
sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "field"^^xsd:string
[ sp:varName "country"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionContextFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "field"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "productionContextFacility"^^xsd:string
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -1325,114 +1308,94 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^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 "contextFacilityName"^^xsd:string
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "contextFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
[ sp:varName "fieldRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "geographicContextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowToDate"^^xsd:string
[ sp:varName "fieldName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "fieldRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "geographicContextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "locationOfProductionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string
sp:arg1 [ sp:varName "fieldName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContextFacilityName"^^xsd:string
[ sp:varName "normalizedFieldName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionContextFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string
sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionContextFacilityType"^^xsd:string
[ sp:varName "field"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ;
rdfs:comment "STEP 20001b Add the report kind ."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "country"^^xsd:string
[ sp:varName "reportKind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "country"^^xsd:string
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object
[ sp:varName "countryName"^^xsd:string
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "country"^^xsd:string
[ sp:varName "reportKind"^^xsd:string
]
]) ;
sp:where ([ sp:object
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> ;
......@@ -1443,48 +1406,72 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "countryName"^^xsd:string
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#country> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "geographicContextRef"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "geographicContextRef"^^xsd:string
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "locationOfProductionFacility"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "countryName"^^xsd:string
sp:arg1 [ sp:varName "kind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedCountryName"^^xsd:string
[ sp:varName "normalizedKind"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildCountryURI ;
sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "country"^^xsd:string
[ 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> ;
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 .
_:b11
sp:varName "productionReport"^^xsd:string .
_:b15
sp:varName "productVolumeRef"^^xsd:string .
_:b18
sp:varName "nameRef"^^xsd:string .
_:b12
sp:varName "name"^^xsd:string .
_:b19
sp:varName "periodKindRef"^^xsd:string .
_:b20
sp:varName "titleRef"^^xsd:string .
_:b17
sp:varName "title"^^xsd:string .
_:b13
sp:varName "productVolumeReportPeriodType"^^xsd:string .
......
# Saved by TopBraid on Mon Dec 19 16:28:11 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="H:\trym\TOOLS\TRANSFORMATIONS\PRODMLMPRTOHTMLREPORT.xsl"?>
<objects version="1.0.0.0(PRODML)" xmlns="http://www.witsml.org/schemas/131" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.witsml.org/schemas/131
H:\EPIM\MPR\EC_MPR_SCHEMAS\MPR_SCHEMA\obj_object_profiled_data_schema.xsd">
<!-- <?xml-stylesheet type="text/xsl" href="H:\trym\TOOLS\TRANSFORMATIONS\PRODMLMPRTOHTMLREPORT.xsl"?> -->
<objects version="1.0.0.0(PRODML)" xmlns="http://www.epim.no/schemas/mprml/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<context xsi:type="obj_report">
<kind>Monthly production report Trym</kind>
<title>Monthly production report Trym Oktober 2010</title>
......