David Leal

Updates to MPR transforms and related schemas following ontological analysis

......@@ -15,91 +15,161 @@
<http://www.reportinghub.no/ep/schema/1.0/flow>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-core:PhysicalThingAtInstant
rdf:type ep-flow:TemporalPartDurationType , owl:Class ;
rdfs:label "physical thing at instant"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringGasYearToDate
rdf:type ep-flow:TemporalPartDurationType , owl:Class ;
rdfs:label "physical thing during gas year to date"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringMonthToDate
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during month to date"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneDay
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one day"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneGasDay
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one gas day"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneGasMonth
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one gas month"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneGasYear
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one gas year"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneMonth
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one month"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneWeek
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one week"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringOneYear
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during one year"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-core:PhysicalThingDuringYearToDate
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "physical thing during year to date"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalThing .
ep-flow:AllocatedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "allocated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:AllocatedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "allocated inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:BudgetFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "budget flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:BudgetInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "budget inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:ClassOfMaterialWithMassCriterion
rdf:type rdfs:Class ;
rdfs:label "class of material with mass criterion"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-flow:ConstraintFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "constraint flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:ConstraintFlow-fixed
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "constraint flow - fixed"^^xsd:string ;
rdfs:subClassOf ep-flow:ConstraintFlow .
ep-flow:ConstraintFlow-maximum
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "constraint flow - maximum"^^xsd:string ;
rdfs:subClassOf ep-flow:ConstraintFlow .
ep-flow:ConstraintFlow-minimum
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "constraint flow - minimum"^^xsd:string ;
rdfs:subClassOf ep-flow:ConstraintFlow .
ep-flow:ConstraintInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "constraint inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:Consume
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:Consume-HPflare
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - HP flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume-flare .
ep-flow:Consume-LPflare
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - LP flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume-flare .
ep-flow:Consume-blackstart
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - blackstart"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-compressor
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - compressor"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-emitted
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - emitted"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-flare
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-fuel
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - fuel"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-noncompressor
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - non-compressor"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-venting
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - venting"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
......@@ -109,47 +179,62 @@ ep-flow:DailyProductionFlow
rdfs:subClassOf ep-flow:ProductionFlow .
ep-flow:DerivedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "derived flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:DerivedFlow-difference
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "derived flow - difference"^^xsd:string ;
rdfs:subClassOf ep-flow:DerivedFlow .
ep-flow:DerivedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "derived inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:DifferenceFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "difference flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:DifferenceInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "difference inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:ElectricPowerFlow
rdf:type owl:Class ;
rdfs:label "flow of electricity"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:EstimatedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "estimated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:EstimatedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "estimated inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:Export
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:Export-nominated
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export nominated"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Export-requested
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export requested"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Export-shortfall
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export shortfall"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
......@@ -159,42 +244,42 @@ ep-flow:Flow
rdfs:subClassOf ep-core:PhysicalThing .
ep-flow:FlowAtInstant
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow at instant"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:FlowDuringDay
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during day"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringMonth
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during month"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringMonthToDate
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during month to date"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringPeriod
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during period"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:FlowDuringWeek
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during week"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringYear
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during year"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringYearToDate
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during year to date"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
......@@ -204,125 +289,130 @@ ep-flow:FlowOfLiquid
rdfs:subClassOf ep-core:PhysicalThing .
ep-flow:ForecastFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "forecast flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:ForecastFlow-declineCurve
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "forecast flow - decline curve"^^xsd:string ;
rdfs:subClassOf ep-flow:ForecastFlow .
ep-flow:ForecastFlow-standard
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "forecast flow - standard"^^xsd:string ;
rdfs:subClassOf ep-flow:ForecastFlow .
ep-flow:ForecastInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "forecast inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:Gaslift
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "gas lift"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:GrossProductFlow
rdf:type ep-flow:ProductFlowGrossOrNetType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductFlowGrossOrNetType ;
rdfs:label "gross product flow"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductFlow .
ep-flow:HydrocarbonAccounting
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "hydrocarbon accounting"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:Import
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "import"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:Injection
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "injection"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:Inventory
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "inventory"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalObject .
ep-flow:MassAdjustedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "mass adjusted flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:MeasuredFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "measured flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:MeasuredFlow-fiscal
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "measured flow - fiscal"^^xsd:string ;
rdfs:subClassOf ep-flow:MeasuredFlow .
ep-flow:MeasuredFlow-raw
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "measured flow - raw"^^xsd:string ;
rdfs:subClassOf ep-flow:MeasuredFlow .
ep-flow:MeasuredFlow-recalibrated
rdf:type ep-flow:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label "measured flow - recalibrated"^^xsd:string ;
rdfs:subClassOf ep-flow:MeasuredFlow .
ep-flow:MeasuredInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "measured inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:MeteredFlowFiscal
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "metered flow fiscal"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:NetProductFlow
rdf:type ep-flow:ProductFlowGrossOrNetType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductFlowGrossOrNetType ;
rdfs:label "net product flow"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductFlow .
ep-flow:NominatedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "nominated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:ObjectThatLastsOneDay
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "object that lasts one day"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalObject .
ep-flow:ObjectThatLastsOneMonth
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "object that lasts one month"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalObject .
ep-flow:ObjectThatLastsOneWeek
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "object that lasts one week"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalObject .
ep-flow:ObjectThatLastsOneYear
rdf:type owl:Class , ep-flow:TemporalPartDurationType ;
rdfs:label "object that lasts one year"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalObject .
ep-flow:NominatedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "nominated inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:Overboard
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "overboard"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:PotentialFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "potential flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:PotentialInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "potential inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:ProcessedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "processed flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:ProcessedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "processed inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:ProductFlow
rdf:type owl:Class ;
rdfs:label "(temporal part of a) product flow"^^xsd:string ;
......@@ -344,27 +434,27 @@ ep-flow:ProductInventory
rdfs:subClassOf ep-flow:Inventory .
ep-flow:ProductInventoryAdjustedClosingBalance
rdf:type owl:Class , ep-flow:ProductInventoryType ;
rdf:type ep-flow:ProductInventoryType , owl:Class ;
rdfs:label "product inventory adjusted closing balance"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductInventory .
ep-flow:ProductInventoryClosingBalance
rdf:type owl:Class , ep-flow:ProductInventoryType ;
rdf:type ep-flow:ProductInventoryType , owl:Class ;
rdfs:label "product inventory closing balance"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductInventory .
ep-flow:ProductInventoryClosingStorageBalance
rdf:type owl:Class , ep-flow:ProductInventoryType ;
rdf:type ep-flow:ProductInventoryType , owl:Class ;
rdfs:label "product inventory closing storage balance"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductInventory .
ep-flow:ProductInventoryOpFlex
rdf:type owl:Class , ep-flow:ProductInventoryType ;
rdf:type ep-flow:ProductInventoryType , owl:Class ;
rdfs:label "product inventory opFlex"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductInventory .
ep-flow:ProductInventoryOpeningBalance
rdf:type owl:Class , ep-flow:ProductInventoryType ;
rdf:type ep-flow:ProductInventoryType , owl:Class ;
rdfs:label "product inventory opening balance"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductInventory .
......@@ -379,7 +469,7 @@ ep-flow:ProductMaterialType
rdfs:subClassOf owl:Class .
ep-flow:Production
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "production"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
......@@ -398,6 +488,16 @@ ep-flow:ProductionFlowDefinitionType
rdfs:label " production flow definition type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-flow:ProductionFlowNetwork
rdf:type owl:Class ;
rdfs:label "(temporal part of a) production flow network"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ProductionFlowNetworkToDate
rdf:type owl:Class ;
rdfs:label "production flow network to date"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionFlowNetwork .
ep-flow:ProductionFlowPurposeType
rdf:type rdfs:Class ;
rdfs:label " production flow purpose type"^^xsd:string ;
......@@ -413,91 +513,21 @@ ep-flow:ProductionInventory
rdfs:label "(temporal part of a) production inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:Inventory .
ep-flow:ProductionInventoryAllocatedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory allocated material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryBudgetMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory budget material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryConstraintMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory constraint material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryDerivedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory derived material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryDifferenceMaterial
rdf:type owl:Class , ep-flow:ProductionInventoryMaterialType ;
rdfs:label "production inventory difference material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryEstimatedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory estimated material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryCollection
rdf:type owl:Class ;
rdfs:label "(temporal part of a) production inventory collection"^^xsd:string ;
rdfs:subClassOf ep-flow:Inventory .
ep-flow:ProductionInventoryForecastMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory forecast material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryCollectionToDate
rdf:type owl:Class ;
rdfs:label "production inventory collection to date"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventoryCollection .
ep-flow:ProductionInventoryMaterialType
ep-flow:ProductionInventoryDefinitionType
rdf:type rdfs:Class ;
rdfs:label " production inventory material type"^^xsd:string ;
rdfs:label " production inventory definition type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-flow:ProductionInventoryMeasuredMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory measured material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryNominatedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory nominated material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryPotentialMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory potential material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryProcessedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory processed material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryQuotaMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory quota material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryRecommendedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory recommended material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventorySaleableMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory saleable material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventorySimulatedMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory simulated material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryTargetMaterial
rdf:type ep-flow:ProductionInventoryMaterialType , owl:Class ;
rdfs:label "production inventory target material"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
ep-flow:ProductionInventoryToDate
rdf:type owl:Class ;
rdfs:label "production inventory to date"^^xsd:string ;
......@@ -524,47 +554,72 @@ ep-flow:ProductionTestWellHeadFlow
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:QuotaFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "quota flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:QuotaInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "quota inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:RecommendedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "recommended flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:RecommendedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "recommended inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:Sale
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "sale"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:SaleableFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "saleable flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:SaleableInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "saleable inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:SampleOfMaterial
rdf:type owl:Class ;
rdfs:label "sample of material"^^xsd:string , "(temporal part of a) sample of material"^^xsd:string ;
rdfs:label "(temporal part of a) sample of material"^^xsd:string , "sample of material"^^xsd:string ;
rdfs:subClassOf ep-material:QuantityOfMaterial .
ep-flow:SimulatedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "simulated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:SimulatedInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "simulated inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:Storage
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "storage"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:TargetFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "target flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
ep-flow:TargetInventory
rdf:type owl:Class , ep-flow:ProductionInventoryDefinitionType ;
rdfs:label "target inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeInventory .
ep-flow:TariffBasisFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "tariff basis flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
......@@ -579,7 +634,7 @@ ep-flow:TemporalPartOfAFlowDurationType
rdfs:subClassOf owl:Class .
ep-flow:ValueAdjustedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "value adjusted flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow .
......@@ -588,10 +643,15 @@ ep-flow:WholeLifeFlow
rdfs:label "whole life flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:WholeLifeInventory
rdf:type owl:Class ;
rdfs:label "whole life inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:Inventory .
ep-flow:WholeLifeProductFlow
rdf:type owl:Class ;
rdfs:label "whole life product flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow , ep-flow:ProductFlow .
rdfs:subClassOf ep-flow:ProductFlow , ep-flow:WholeLifeFlow .
ep-flow:WholeLifeProductInventory
rdf:type owl:Class ;
......@@ -601,15 +661,25 @@ ep-flow:WholeLifeProductInventory
ep-flow:WholeLifeProductionFlow
rdf:type owl:Class ;
rdfs:label "whole life production flow"^^xsd:string ;
rdfs:subClassOf ep-flow:WholeLifeFlow , ep-flow:ProductionFlow .
rdfs:subClassOf ep-flow:ProductionFlow , ep-flow:WholeLifeFlow .
ep-flow:WholeLifeProductionFlowNetwork
rdf:type owl:Class ;
rdfs:label "whole life production flow network"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionFlowNetwork .
ep-flow:WholeLifeProductionInventory
rdf:type owl:Class ;
rdfs:label "(whole life) production inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventory .
rdfs:subClassOf ep-flow:WholeLifeInventory , ep-flow:ProductionInventory .
ep-flow:WholeLifeProductionInventoryCollection
rdf:type owl:Class ;
rdfs:label "whole life production inventory collection"^^xsd:string ;
rdfs:subClassOf ep-flow:ProductionInventoryCollection .
ep-flow:allocatedTo
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:comment "facility to which a split of a flow or inventory is allocated"^^xsd:string ;
rdfs:domain ep-core:PhysicalObject ;
rdfs:label "allocatedTo"^^xsd:string ;
......@@ -617,13 +687,13 @@ ep-flow:allocatedTo
rdfs:subPropertyOf ep-flow:flowIntoOrOutOf .
ep-flow:dailyAverageAmountOfMaterial
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-flow:Flow ;
rdfs:label "daily average amount of material"^^xsd:string ;
rdfs:range ep-flow:ClassOfMaterialWithMassCriterion .
ep-flow:energyContent
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-material:QuantityOfMaterial ;
rdfs:label "energy content"^^xsd:string ;
rdfs:range ep-core:Work .
......@@ -655,7 +725,7 @@ ep-flow:flowOutOf
rdfs:subPropertyOf ep-flow:flowIntoOrOutOf .
ep-flow:grossCalorificValue
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-material:QuantityOfMaterial ;
rdfs:label "gross calorific value"^^xsd:string ;
rdfs:range ep-core:EnergyPerVolume .
......@@ -674,30 +744,30 @@ ep-flow:hasNetworkPart
rdfs:range ep-flow:WholeLifeFlow ;
rdfs:subPropertyOf ep-core:hasPart .
ep-flow:materialInInventory
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-flow:Inventory ;
rdfs:label "material in inventory"^^xsd:string ;
rdfs:range ep-material:QuantityOfMaterial .
ep-flow:materialThatFlows
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-flow:Flow ;
rdfs:label "material that flows"^^xsd:string ;
rdfs:range ep-material:QuantityOfMaterial .
ep-flow:rateOfFlowOfMaterial
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "rate of flow of material"^^xsd:string ;
rdfs:range ep-core:MeasureOfAmountOfMaterial .
ep-flow:summedDailyMass
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-flow:Inventory ;
rdfs:label "summed daily mass"^^xsd:string ;
rdfs:range ep-core:Mass .
ep-flow:totalVolumeOfMaterial-deprecated
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:label "total volume of material"^^xsd:string ;
rdfs:range ep-core:MeasureOfAmountOfMaterial .
ep-flow:yearlyAverageAmountOfMaterial
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-flow:Flow ;
rdfs:label "yearly average amount of material"^^xsd:string ;
rdfs:range ep-flow:ClassOfMaterialWithMassCriterion .
......
......@@ -12,7 +12,7 @@
<http://www.reportinghub.no/ep/schema/1.0/production-equipment>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/equipment#ChokeValve>
......@@ -26,16 +26,19 @@
ep-prodeqt:BlockValve
rdf:type owl:Class ;
rdfs:comment "valve that is a block valve"^^xsd:string ;
rdfs:label "block valve"^^xsd:string ;
rdfs:subClassOf ep-prodeqt:Valve .
ep-prodeqt:Controller
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:comment "equipment that is a single lift gas controller"^^xsd:string ;
rdfs:label "controller"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
ep-prodeqt:DownHoleControlValve
rdf:type owl:Class ;
rdfs:comment "valve that is a down hole control valve"^^xsd:string ;
rdfs:label "down hole control valve"^^xsd:string ;
rdfs:subClassOf ep-prodeqt:Valve .
......@@ -49,10 +52,12 @@ ep-prodeqt:FlowLine-Production
ep-prodeqt:FlowMeter
rdf:type owl:Class ;
rdfs:comment "equipment that is a flow meter"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
ep-prodeqt:GasLiftChoke
rdf:type owl:Class ;
rdfs:comment "equipment that is a gas lift choke valve"^^xsd:string ;
rdfs:label "gas lift choke"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
......@@ -70,11 +75,13 @@ ep-prodeqt:Manifold-Production
ep-prodeqt:PressureMeter
rdf:type owl:Class ;
rdfs:comment "equipment that is a pressure meter"^^xsd:string ;
rdfs:label "pressure meter"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
ep-prodeqt:RegulatingValve
rdf:type owl:Class ;
rdfs:comment "valve that is a regulating valve"^^xsd:string ;
rdfs:label "regulating valve"^^xsd:string ;
rdfs:subClassOf ep-prodeqt:Valve .
......@@ -84,6 +91,7 @@ ep-prodeqt:Separator
ep-prodeqt:SleeveValve
rdf:type owl:Class ;
rdfs:comment "valve that is a sleeve valve"^^xsd:string ;
rdfs:label "sleeve valve"^^xsd:string ;
rdfs:subClassOf ep-prodeqt:Valve .
......@@ -93,6 +101,7 @@ ep-prodeqt:Tank
ep-prodeqt:TemperatureMeter
rdf:type owl:Class ;
rdfs:comment "equipment that is a temperature meter"^^xsd:string ;
rdfs:label "temperature meter"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
......@@ -114,21 +123,22 @@ ep-prodeqt:TemporalPartOfATank
ep-prodeqt:Valve
rdf:type owl:Class ;
rdfs:comment "equipment item that is a valve"^^xsd:string ;
rdfs:label "valve"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
ep-prodeqt:hasCaptain
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:label "has captain"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Person> .
ep-prodeqt:hasValvePosition
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-prodeqt:Valve ;
rdfs:label "has valve position"^^xsd:string ;
rdfs:range ep-core:Ratio .
ep-prodfac:Pipeline
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "pipeline"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......
......@@ -50,6 +50,7 @@
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
rdf:type owl:Class ;
rdfs:comment "production facility that is for all of its life up to a point in time"^^xsd:string ;
rdfs:label "production facility to date"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> .
......@@ -105,16 +106,19 @@ ep-prodfac:Boat
ep-prodfac:Field-area
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:comment "area of ground that is above a field"^^xsd:string ;
rdfs:label "field - area"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Field-group
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:comment "facility that is a set of fields"^^xsd:string ;
rdfs:label "field - group"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Field-part
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:comment "facility that is part of a field"^^xsd:string ;
rdfs:label "field - part"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
......@@ -128,6 +132,9 @@ ep-prodfac:OilTanker
rdfs:label "oil tanker"^^xsd:string ;
rdfs:subClassOf ep-prodfac:Ship .
ep-prodfac:Pipeline
rdfs:comment "facility that is a pipeline"^^xsd:string .
ep-prodfac:Plant
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "plant"^^xsd:string ;
......
......@@ -30,11 +30,6 @@ ep-report:DailyProductionReport
rdfs:label "Daily Production Report"^^xsd:string ;
rdfs:subClassOf ep-report:ProductionReport .
ep-report:DailyReport
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "daily report"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:FinalDailyDrillingReport
rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
rdfs:label "final daily drilling report"^^xsd:string ;
......@@ -50,11 +45,6 @@ ep-report:MonthlyProductionReport
rdfs:label "Monthly Production Report"^^xsd:string ;
rdfs:subClassOf ep-report:ProductionReport .
ep-report:MonthlyReport
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "monthly report"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:NonProductivetimeReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:Report ;
......@@ -143,14 +133,59 @@ ep-report:ReportAliasIdentifier
owl:onProperty ep-report:aliasName
] .
ep-report:ReportForGasYearToDate
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for gas year to date"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForInstant
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for instant"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportMonthToDate
ep-report:ReportForMonthToDate
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for month to date"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneDay
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for one day"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneGasDay
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report month to date"^^xsd:string ;
rdfs:label "report for one gas day"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneGasMonth
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for one gas month"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneGasYear
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for one gas year"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneMonth
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for one month"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneWeek
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for one week"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForOneYear
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report for one year"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportForYearToDate
rdf:type owl:Class , ep-report:ReportPeriodType ;
rdfs:label "report for year to date"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:ReportPeriodType
......@@ -158,11 +193,6 @@ ep-report:ReportPeriodType
rdfs:label "report period type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-report:ReportYearToDate
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "report year to date"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:WeeklyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:Report ;
......@@ -187,21 +217,11 @@ ep-report:WeeklyDrillingReport
owl:onProperty ep-report:reportOn
] .
ep-report:WeeklyReport
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "weekly report"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:WellTestReport
rdf:type owl:Class ;
rdfs:label "well test report"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:YearlyReport
rdf:type ep-report:ReportPeriodType , owl:Class ;
rdfs:label "yearly report"^^xsd:string ;
rdfs:subClassOf ep-report:Report .
ep-report:aliasName
rdf:type owl:DatatypeProperty ;
rdfs:range xsd:string .
......@@ -269,3 +289,9 @@ ep-report:reportSubmittedBy
rdfs:domain ep-report:Report ;
rdfs:label "report submitted by"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
ep-report:reportSubmittedFrom
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-report:Report ;
rdfs:label "report submitted from"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/facility#Facility> .
......
......@@ -1983,7 +1983,7 @@ mpr-tables:ProductionInventory
sp:subject
[ sp:varName "monthobject"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ObjectThatLastsOneMonth> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneMonth> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "monthobject"^^xsd:string
......@@ -2230,7 +2230,7 @@ mpr-tables:ProductionInventory
sp:subject
[ sp:varName "piWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryMaterialType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryDefinitionType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "piType"^^xsd:string
......@@ -2320,7 +2320,7 @@ mpr-tables:ProductionInventoryOwnership
sp:subject
[ sp:varName "monthobject"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ObjectThatLastsOneMonth> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneMonth> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "monthobject"^^xsd:string
......
......@@ -20,7 +20,7 @@
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-mpr-spin-lib:Function
......@@ -4927,97 +4927,97 @@ ep-mpr-spin-lib:selectProductionInventoryMaterialType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#FQ_allocated>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryAllocatedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#AllocatedInventory> ;
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#FQ_budget>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryBudgetMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#BudgetInventory> ;
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#FQ_constraint>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryConstraintMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ConstraintInventory> ;
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#FQ_derived>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryDerivedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#DerivedInventory> ;
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#FQ_difference>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryDifferenceMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#DifferenceInventory> ;
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#FQ_estimate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryEstimatedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#EstimatedInventory> ;
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#FQ_forecast>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryForecastMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ForecastInventory> ;
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#FQ_measured>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryMeasuredMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#MeasuredInventory> ;
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#FQ_nominated>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryNominatedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#NominatedInventory> ;
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#FQ_potential>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryPotentialMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#PotentialInventory> ;
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#FQ_processed>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryProcessedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProcessedInventory> ;
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#FQ_quota>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryQuotaMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#QuotaInventory> ;
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#FQ_recommended>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryRecommendedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#RecommendedInventory> ;
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#FQ_saleable>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventorySaleableMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#SaleableInventory> ;
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#FQ_simulated>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventorySimulatedMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#SimulatedInventory> ;
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#FQ_target>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryTargetMaterial> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#TargetInventory> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#ProductionInventory>
]
]
......@@ -5276,43 +5276,43 @@ ep-mpr-spin-lib:selectReportPeriodType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_dailymonthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportMonthToDate> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForMonthToDate> ;
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/report#ReportYearToDate> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForYearToDate> ;
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/report#DailyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneDay> ;
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/report#DailyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneGasDay> ;
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/report#MonthlyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneMonth> ;
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/report#YearlyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneGasYear> ;
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/report#ReportYearToDate> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForGasYearToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
......@@ -5324,13 +5324,13 @@ ep-mpr-spin-lib:selectReportPeriodType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_month>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#MonthlyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneMonth> ;
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/report#ReportMonthToDate> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForMonthToDate> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
......@@ -5372,19 +5372,19 @@ ep-mpr-spin-lib:selectReportPeriodType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.epim.no/schemas/mprml/1#RP_week>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#WeeklyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneWeek> ;
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/report#YearlyReport> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForOneYear> ;
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/report#ReportYearToDate> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#ReportForYearToDate> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/report#Report>
]
]
......@@ -5688,118 +5688,125 @@ ep-mpr-spin-lib:selectTemporalPartDurationType
[ 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/core#PhysicalThingAtInstant> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringMonthToDate> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringYearToDate> ;
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/flow#ObjectThatLastsOneDay> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneDay> ;
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/flow#ObjectThatLastsOneDay> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneGasDay> ;
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/flow#ObjectThatLastsOneMonth> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneGasMonth> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringGasYearToDate> ;
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/flow#ObjectThatLastsOneYear> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneGasYear> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingAtInstant> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringMonthToDate> ;
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/flow#ObjectThatLastsOneMonth> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneMonth> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingAtInstant> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingAtInstant> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingAtInstant> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
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/flow#ObjectThatLastsOneWeek> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneWeek> ;
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/core#PhysicalObject> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringYearToDate> ;
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/flow#ObjectThatLastsOneYear> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#PhysicalObject>
sp:arg2 <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneYear> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#PhysicalThing>
]
]
]
]
......
......@@ -19,7 +19,7 @@
<http://www.epim.no/schemas/mprml/1#Cs_densityValue>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90020 Process densityValue for a quantityOfMaterial"^^xsd:string ;
rdfs:comment "STEP 90021 Process densityValue for a productInventory"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b1
......@@ -27,7 +27,7 @@
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "productInventory"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
......@@ -45,6 +45,43 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90020 Process densityValue for a quantityOfMaterial"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#densityValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
......@@ -72,89 +109,183 @@
<http://www.epim.no/schemas/mprml/1#Cs_volumeValue>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90001 Process volumeValue for a quantityOfMaterial average amount of material"^^xsd:string ;
rdfs:comment "STEP 90000 Process volumeValue for a quantityOfMaterial"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "grossCalorificValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#grossCalorificValueRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "grossCalorificValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomGrossCalorificValue"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "grossCalorificValueRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectEnergyPerVolumeScale ;
sp:arg1 [ sp:varName "uomGrossCalorificValue"^^xsd:string
]
] ;
sp:variable
[ sp:varName "grossCalorificValueScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90002 Process volumeValue for a quantityOfMaterial average amount of material"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
] ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b6
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b7
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b8
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:predicate owl:onProperty ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b6
sp:subject _:b9
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b7
sp:subject _:b10
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#energyContent> ;
sp:predicate owl:onProperty ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b8
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b9
sp:subject _:b12
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b9
sp:subject _:b12
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
......@@ -325,34 +456,34 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90000 Process volumeValue for a quantityOfMaterial"^^xsd:string ;
rdfs:comment "STEP 90001 Process volumeValue for a productInventory"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b10
sp:subject _:b13
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b10
sp:subject _:b13
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "productInventory"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:subject _:b10
sp:subject _:b13
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b11
sp:subject _:b14
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b11
sp:subject _:b14
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b10
sp:subject _:b13
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
......@@ -364,27 +495,13 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "productInventory"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "grossCalorificValueRef"^^xsd:string
......@@ -422,21 +539,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90060 Process density for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:templates ([ sp:object _:b15 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
sp:subject _:b12
sp:subject _:b15
] [ sp:object
[ sp:varName "realDensity"^^xsd:string
] ;
sp:predicate
[ sp:varName "densityScale"^^xsd:string
] ;
sp:subject _:b12
sp:subject _:b15
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#densityRef> ;
......@@ -494,22 +611,79 @@
<http://www.epim.no/schemas/mprml/1#MassMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90011 Process mass for a product inventory"^^xsd:string ;
sp:templates ([ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#summedDailyMass> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate
[ sp:varName "massScale"^^xsd:string
] ;
sp:subject _:b16
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomMass"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectMassScale ;
sp:arg1 [ sp:varName "uomMass"^^xsd:string
]
] ;
sp:variable
[ sp:varName "massScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90010 Process mass for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b13 ;
sp:templates ([ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b13
sp:subject _:b17
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate
[ sp:varName "massScale"^^xsd:string
] ;
sp:subject _:b13
sp:subject _:b17
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
......@@ -568,21 +742,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90040 Process pressure for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:templates ([ sp:object _:b18 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b14
sp:subject _:b18
] [ sp:object
[ sp:varName "realPressure"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b14
sp:subject _:b18
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
......@@ -641,21 +815,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90050 Process temperature for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:templates ([ sp:object _:b19 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b15
sp:subject _:b19
] [ sp:object
[ sp:varName "realTemperature"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b15
sp:subject _:b19
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
......@@ -714,21 +888,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90070 Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b16 ;
sp:templates ([ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b16
sp:subject _:b20
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b16
sp:subject _:b20
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -787,21 +961,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90070a Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b17 ;
sp:templates ([ sp:object _:b21 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b17
sp:subject _:b21
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b17
sp:subject _:b21
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -860,21 +1034,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90030 Process work for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b18 ;
sp:templates ([ sp:object _:b22 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b18
sp:subject _:b22
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b18
sp:subject _:b22
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
......
......@@ -20,105 +20,24 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10010 Add the contextFacility - unless the contextFacility is the production facility"^^xsd:string ;
rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
])
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
[ sp:varName "date"^^xsd:string
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b1
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "operator"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
......@@ -129,36 +48,35 @@
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "operator"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001p Create the ProductionReport - unable to find an identifier"^^xsd:string ;
rdfs:comment "STEP 10001m Create the ProductionReport - extract the report name from context/contextFacility"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
......@@ -175,8 +93,7 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
......@@ -193,32 +110,21 @@
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "installationRef"^^xsd:string
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "reportingFacility"^^xsd:string
sp:variable
[ sp:varName "normalizedContextFacilityName"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
sp:arg1 "" ;
sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
]
] ;
......@@ -229,21 +135,22 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ;
rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "month"^^xsd:string
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "title"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
......@@ -255,88 +162,41 @@
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "month"^^xsd:string
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#month> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "titleRef"^^xsd:string
]
])
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
sp:templates ([ sp:object "noDate" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "date"^^xsd:string
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
......@@ -351,29 +211,29 @@
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object _:b2 ;
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "normalizedProductionFacilityName"^^xsd:string
] ;
......@@ -440,28 +300,128 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001n Create the ProductionReport - extract the report name from the reporting from the reporting installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "month"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "month"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#month> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "titleRef"^^xsd:string
]
])
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001r Set the submitting installation"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "installation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
......@@ -469,44 +429,30 @@
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "installationRef"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:variable
[ sp:varName "normalizedInstallationName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:variable
[ sp:varName "productionReport"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "installation"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "date"^^xsd:string
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "date"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "date"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
......@@ -521,36 +467,36 @@
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "dateStart"^^xsd:string
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001m Create the ProductionReport - extract the report name from context/contextFacility"^^xsd:string ;
rdfs:comment "STEP 10001n Create the ProductionReport - extract the report name from the reporting from the reporting installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
......@@ -572,32 +518,27 @@
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "contextFacilityRef"^^xsd:string
sp:arg1 [ sp:varName "installationRef"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:variable
[ sp:varName "normalizedContextFacilityName"^^xsd:string
[ sp:varName "normalizedInstallationName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
]
......@@ -665,24 +606,25 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
rdfs:comment "STEP 10001p Create the ProductionReport - unable to find an identifier"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
......@@ -693,66 +635,134 @@
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "contextFacilityRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "reportingFacility"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "date"^^xsd:string
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
[ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
sp:arg1 "" ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001r Set the submitting installation"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
rdfs:comment "STEP 10010 Add the contextFacility - unless the contextFacility is the production facility"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
])
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "installation"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "intervalEnd"^^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/core#temporalPartOf> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
......@@ -765,18 +775,6 @@
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
......@@ -788,39 +786,39 @@
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "installation"^^xsd:string
[ sp:varName "operator"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
sp:templates ([ sp:object "noDate" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
......@@ -832,32 +830,34 @@
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "dateStart"^^xsd:string
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
......