David Leal

Merge branch 'MPRTransform1'

# Saved by TopBraid on Thu Dec 15 18:36:16 GMT 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
@prefix ep-flow: <http://www.reportinghub.no/ep/schema/flow#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -10,206 +12,206 @@
<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> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <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-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:Flow .
ep-flow:AqueousFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "aqueous flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:C10AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C10+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C10AndLighterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C10- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C2AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C2+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C2AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C2- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C3AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C3+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C3AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C3- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C4AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C4+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C4AndLighterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C4- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C5AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C5+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C5AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C5- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C6AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C6+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C6AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C6- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C7AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C7+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C7AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C7- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C8AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C8+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C8AndLighterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C8- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C9AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C9+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C9AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C9- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CarbonDioxideGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "carbon dioxide gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CarbonMonoxideGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "carbon monoxide gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ChemicalFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "chemical flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Condensate-grossFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "condensate - gross flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Condensate-netFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "condensate - net flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CondensateFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "condensate flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
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:Flow .
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 .
ep-flow:Crude-stabilizedFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "crude - stabilized flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CuttingsFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "cuttings flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
......@@ -219,27 +221,27 @@ ep-flow:DailyProductionFlow
rdfs:subClassOf ep-flow:TemporalPartOfAProductionFlow .
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:Flow .
ep-flow:DieselFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "diesel flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:DiethyleneglycolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "diethyleneglycol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:DioxygenFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "dioxygen flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
......@@ -249,37 +251,37 @@ ep-flow:ElectricPowerFlow
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:Flow .
ep-flow:Ethane-componentFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "ethane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:EthaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "ethane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
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 .
......@@ -289,42 +291,42 @@ ep-flow:Flow
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
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:TemporalPartOfAFlow .
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:TemporalPartOfAFlow .
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 .
......@@ -339,227 +341,227 @@ ep-flow:FlowOfMaterial
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:Gas-componentInOilFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "gas - component in oil flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gas-dryFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "gas - dry flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gas-richFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "gas - rich flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gas-wetFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "gas - wet flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:GasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:HeliumGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "helium gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:HeptaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "heptane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:HydrogenGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "hydrogen gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:HydrogenSulfideFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "hydrogen sulfide flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
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:Flow .
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-flow:Flow .
ep-flow:Isobutane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "i-butane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:IsobutaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "isobutane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:IsopentaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "isopentane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:LiquifiedNaturalGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "liquified natural gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:LiquifiedPetroleumGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "liquified petroleum gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:MethaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "methane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MethanolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "methanol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MixedButaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "mixed butane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MonoethyleneglycolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "monoethyleneglycol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NGL-componentInGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "NGL - component in gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NapthaFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "naptha flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NaturalGasLiquidFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "natural gas liquid flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NeopentaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "neopentane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NitrogenGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "nitrogen gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NitrogenOxideGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "nitrogen oxide gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:NormalButane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "n-butane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NormalButaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "normal butane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NormalPentaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "normal pentane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-componentInWaterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "oil - component in water flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-grossFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "oil - gross flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-netFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "oil - net flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:OilAndGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "oil and gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:OilFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "oil flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:OleicFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "oleic flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
ep-flow:PetroleumGasLiquidFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "petroleum gas liquid flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
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:Flow .
......@@ -579,7 +581,7 @@ ep-flow:ProductType
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:Flow .
......@@ -619,57 +621,57 @@ ep-flow:ProductionTestWellHeadFlow
rdfs:subClassOf ep-flow:Flow .
ep-flow:Propane-componentFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "propane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:PropaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "propane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
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:Flow .
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:Flow .
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:Flow .
ep-flow:SaltFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "salt flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:SandFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "sand flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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:Flow .
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:Flow .
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:Flow .
......@@ -694,32 +696,32 @@ ep-flow:TemporalPartOfAProductionFlow
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:TriethyleneglycolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "triethyleneglycol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:VapourFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "vapour flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Water-dischargeFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "water - discharge flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Water-processedFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "water - processed flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:WaterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "water flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:dailyAverageAmountOfMaterial
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:label "daily average amount of material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> .
......@@ -763,7 +765,12 @@ ep-flow:hasNetworkPart
rdfs:range ep-flow:Flow ;
rdfs:subPropertyOf <http://www.reportinghub.no/ep/schema/core#hasPart> .
ep-flow:rateOfFlowOfMaterial
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "rate of flow of material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> .
ep-flow:totalAmountOfMaterial
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "total amount of material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> .
......
# Saved by TopBraid on Thu Dec 15 19:02:38 GMT 2011
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
......@@ -22,45 +23,141 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20104 record the product flows - unlike for the DPR the flow name is not used to construct the ProductionFlow URI
namingSystem not processed"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
rdfs:comment "STEP 20106 This step (not in the DPR) is there because there can be multiple volumeValue elements"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productType"^^xsd:string
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate _:b6 ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate _:b9 ;
sp:subject _:b7
] [ sp:object _:b10 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate _:b12 ;
sp:subject _:b10
]) ;
sp:where ([ sp:object _:b13 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b13
] [ sp:object _:b15 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject _:b14
] [ sp:object _:b16 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b17
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
] [ sp:object _:b19 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject _:b17
] [ sp:object _:b20 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject _:b19
] [ sp:object _:b5 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b20
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b22 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
sp:subject _:b19
] [ sp:object _:b8 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b22
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b24 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
sp:subject _:b19
] [ sp:object _:b11 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b24
] [ sp:object _:b25 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b24
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 _:b18
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 _:b21
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
sp:arg1 _:b23
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectPressureScale ;
sp:arg1 _:b25
] ;
sp:variable _:b12
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20102 Record the Facility that has the flows
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlow"^^xsd:string
[ sp:varName "productionFacilityType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -80,146 +177,88 @@ namingSystem not processed"""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "productKind"^^xsd:string
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productNameRef"^^xsd:string
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "productNameRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductType ;
sp:arg1 [ sp:varName "productKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "productType"^^xsd:string
] ;
sp:arg2 rdfs:label
] ;
sp:variable
[ sp:varName "productTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "productTypeName"^^xsd:string
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedProductTypeName"^^xsd:string
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
] ;
sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productFlow"^^xsd:string
[ sp:varName "productionFacilityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20105 record the temporal parts of product flows
period/kind is optional, but is assumed mandatory here. This is because it is not clear how to obtain the default value which is the period of the report.
There are several different ways of specifying the time of the period. Temporarily, only dTimStart and dTimEnd are supported."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "relatedFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object _:b26 ;
sp:predicate
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b2
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
[ sp:varName "relatedFacilityType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
sp:predicate rdf:type ;
sp:subject _:b26
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -246,319 +285,61 @@ There are several different ways of specifying the time of the period. Temporari
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
[ sp:varName "flowDirection"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
[ sp:varName "relatedFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
[ sp:varName "relatedFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
[ sp:varName "relatedFacilityRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20106 This step (not in the DPR) is there because there can be multiple volumeValue elements"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject
[ sp:varName "temporalPartOfAProductFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b6
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "volumeValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "tempRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
sp:subject
[ sp:varName "volumeValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "tempRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomTemp"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ;
sp:subject
[ sp:varName "tempRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "presRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
sp:subject
[ sp:varName "volumeValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "presRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomPres"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ;
sp:subject
[ sp:varName "presRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relationshipToMeasure"^^xsd:string
[ sp:varName "localname"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
[ sp:varName "productionFlow"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
sp:arg1 [ sp:varName "uomTemp"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temperatureScale"^^xsd:string
[ sp:varName "relatedFacilityType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectPressureScale ;
sp:arg1 [ sp:varName "uomPres"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pressureScale"^^xsd:string
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
]
])
] ;
......@@ -720,71 +501,178 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ;
rdfs:comment """STEP 20103a record the flows
The corresponding STEP for the DPR relies upon a flow name. For the MPR, the flow name is optional :(.
The corresponding STEP for the DPR relies upon a direction, to link the flow to the productionFacility. Her a neutral link has been provided as well. Without a direction the relationship will be the same as for a relatedFacility."""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "relatedFacility"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object _:b7 ;
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
] ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b27
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b27
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b27
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "reportingPeriodProductionFlows"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowsToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "reportingPeriodProductionFlows"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowDirection"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityRef"^^xsd:string
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "relatedFacilityKind"^^xsd:string
[ sp:varName "flowKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "relatedFacilityRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowDirection"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowQualifier"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
......@@ -798,7 +686,7 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
sp:arg1 [ sp:varName "localname"^^xsd:string
]
] ;
sp:variable
......@@ -806,40 +694,66 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relatedFacilityType"^^xsd:string
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 [ sp:varName "flowQualifier"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20102 Record the Facility that has the flows
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
rdfs:comment """STEP 20105 record the temporal parts of product flows
period/kind is optional, but is assumed mandatory here. This is because it is not clear how to obtain the default value which is the period of the report.
There are several different ways of specifying the time of the period. Temporarily, only dTimStart and dTimEnd are supported."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
sp:subject _:b28
] [ sp:object
[ sp:varName "productionFacilityType"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
sp:subject _:b28
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b28
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b28
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b28
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b28
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -859,131 +773,146 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityKind"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacilityType"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20103a record the flows
The corresponding STEP for the DPR relies upon a flow name. For the MPR, the flow name is optional :(.
The corresponding STEP for the DPR relies upon a direction, to link the flow to the productionFacility. Her a neutral link has been provided as well. Without a direction the relationship will be the same as for a relatedFacility."""^^xsd:string ;
rdfs:comment """STEP 20104 record the product flows - unlike for the DPR the flow name is not used to construct the ProductionFlow URI
namingSystem not processed"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
[ sp:varName "productType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:subject _:b29
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject _:b29
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b8
sp:subject _:b29
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -996,153 +925,179 @@ The corresponding STEP for the DPR relies upon a direction, to link the flow to
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "reportingPeriodProductionFlows"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowsToDate"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "reportingPeriodProductionFlows"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "flowKind"^^xsd:string
[ sp:varName "productKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowDirection"^^xsd:string
[ sp:varName "productNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowQualifier"^^xsd:string
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productNameRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectProductType ;
sp:arg1 [ sp:varName "productKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
[ sp:varName "productType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
]
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "productType"^^xsd:string
] ;
sp:arg2 rdfs:label
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "productTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "productTypeName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowPurposeType"^^xsd:string
[ sp:varName "normalizedProductTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 [ sp:varName "flowQualifier"^^xsd:string
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDefinitionType"^^xsd:string
[ sp:varName "localname"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
] ;
sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b13
sp:varName "productVolumeRef"^^xsd:string .
_:b14
sp:varName "facilityRef"^^xsd:string .
_:b15
sp:varName "flowRef"^^xsd:string .
_:b16
sp:varName "productRef"^^xsd:string .
_:b17
sp:varName "periodRef"^^xsd:string .
_:b18
sp:varName "periodKindRef"^^xsd:string .
_:b3 sp:varName "temporalPartOfAProductFlow"^^xsd:string .
_:b19
sp:varName "volumeValueRef"^^xsd:string .
_:b20
sp:varName "volumeRef"^^xsd:string .
_:b5 sp:varName "realVolume"^^xsd:string .
_:b21
sp:varName "uomVolume"^^xsd:string .
_:b22
sp:varName "tempRef"^^xsd:string .
_:b8 sp:varName "realTemp"^^xsd:string .
_:b23
sp:varName "uomTemp"^^xsd:string .
_:b24
sp:varName "presRef"^^xsd:string .
_:b11
sp:varName "realPres"^^xsd:string .
_:b25
sp:varName "uomPres"^^xsd:string .
_:b2 sp:varName "relationshipToMeasure"^^xsd:string .
_:b6 sp:varName "volumeScale"^^xsd:string .
_:b9 sp:varName "temperatureScale"^^xsd:string .
_:b12
sp:varName "pressureScale"^^xsd:string .
......
# Saved by TopBraid on Thu Dec 15 19:02:38 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Thu Dec 15 19:14:36 GMT 2011
# baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest
# imports: file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest#> .
@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
......@@ -18,5 +18,5 @@
<http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> , <http://www.epim.no/schemas/mprml/1> ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Thu Dec 15 19:14:36 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......