David Leal

Work on MPR transform - not fully debugged

......@@ -10,101 +10,206 @@
<http://www.reportinghub.no/ep/schema/1.0/flow>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-flow:AllocatedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "allocated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:AqueousFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "aqueous flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:BudgetFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "budget flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CarbonDioxideGasFlow
ep-flow:C10AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C10+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C10AndLighterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C10- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C2AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C2+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C2AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C2- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C3AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C3+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C3AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C3- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C4AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C4+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C4AndLighterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C4- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C5AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C5+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C5AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C5- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C6AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C6+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C6AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C6- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C7AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C7+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C7AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C7- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C8AndHeavierFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C8+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C8AndLighterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "C8- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C9AndHeavierFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C9+ flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:C9AndLighterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "C9- flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CarbonDioxideGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "carbon dioxide gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CarbonMonoxideGasFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "carbon monoxide gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ChemicalFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "chemical flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Condensate-grossFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "condensate - gross flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Condensate-netFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "condensate - net flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CondensateFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "condensate flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ConstraintFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "constraint flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Consume
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Consume-HPflare
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - HP flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume-flare .
ep-flow:Consume-LPflare
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - LP flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume-flare .
ep-flow:Consume-blackstart
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - blackstart"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-compressor
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - compressor"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-emitted
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - emitted"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-flare
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-fuel
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - fuel"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-noncompressor
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - non-compressor"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-venting
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "consume - venting"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:CuttingsFlow
ep-flow:Crude-stabilizedFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "crude - stabilized flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:CuttingsFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "cuttings flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
......@@ -114,42 +219,67 @@ ep-flow:DailyProductionFlow
rdfs:subClassOf ep-flow:TemporalPartOfAProductionFlow .
ep-flow:DerivedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "derived flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:DieselFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "diesel flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:EstimatedFlow
ep-flow:DiethyleneglycolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "diethyleneglycol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:DifferenceFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "difference flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:DioxygenFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "dioxygen flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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 ;
rdfs:label "estimated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Ethane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "ethane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:EthaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "ethane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Export
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "export"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Export-nominated
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "export nominated"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Export-requested
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "export requested"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Export-shortfall
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "export shortfall"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
......@@ -158,40 +288,45 @@ ep-flow:Flow
rdfs:label "flow"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:FlowAtInstant
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow at instant"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:FlowDuringDay
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during day"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringMonth
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during month"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringMonthToDate
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during month to date"^^xsd:string ;
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringPeriod
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during period"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:FlowDuringWeek
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during week"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringYear
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdfs:label "flow during year"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowDuringYearToDate
rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ;
rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label "flow during year to date"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:FlowOfElectricity
rdf:type owl:Class ;
rdfs:label "flow of electricity"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
rdfs:subClassOf ep-flow:FlowDuringPeriod .
ep-flow:FlowOfLiquid
rdf:type owl:Class ;
......@@ -203,106 +338,231 @@ ep-flow:FlowOfMaterial
rdfs:label "flow of material"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ForecastFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "forecast flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gas-componentInOilFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
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 ;
rdfs:label "gas - dry flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gas-richFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "gas - rich flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gas-wetFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "gas - wet flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:GasFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Gaslift
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "gas lift"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:HeliumGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "helium gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:HeptaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "heptane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:HydrocarbonAccounting
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "hydrocarbon accounting"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:I-butane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "i-butane - component flow"^^xsd:string ;
ep-flow:HydrogenGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "hydrogen gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:HydrogenSulfideFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "hydrogen sulfide flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Import
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "import"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Injection
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "injection"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Inventory
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Isobutane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "i-butane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:IsobutaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "isobutane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:IsopentaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "isopentane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:LiquifiedNaturalGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "liquified natural gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:LiquifiedPetroleumGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "liquified petroleum gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MeasuredFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "measured flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:N-butane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "n-butane - component flow"^^xsd:string ;
ep-flow:MethaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "methane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MethanolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "methanol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MixedButaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "mixed butane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MonoethyleneglycolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "monoethyleneglycol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NGL-componentInGasFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "NGL - component in gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NapthaFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "naptha flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NaturalGasLiquidFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "natural gas liquid flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NeopentaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "neopentane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NitrogenGasFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "nitrogen gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NitrogenOxideGasFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "nitrogen oxide gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-componentInWaterFlow
ep-flow:NominatedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "nominated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NormalButane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "n-butane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NormalButaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "normal butane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:NormalPentaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "normal pentane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-componentInWaterFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "oil - component in water flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-netFlow
ep-flow:Oil-grossFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "oil - gross flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Oil-netFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "oil - net flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:OilAndGasFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "oil and gas flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:OilFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "oil flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:OleicFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "oleic flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Overboard
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "overboard"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:PetroleumGasLiquidFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "petroleum gas liquid flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:PotentialFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "potential flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ProcessedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "processed flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ProductFlow
rdf:type owl:Class ;
rdfs:label "product flow"^^xsd:string ;
......@@ -319,7 +579,7 @@ ep-flow:ProductType
rdfs:subClassOf owl:Class .
ep-flow:Production
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "production"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
......@@ -359,35 +619,60 @@ ep-flow:ProductionTestWellHeadFlow
rdfs:subClassOf ep-flow:Flow .
ep-flow:Propane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "propane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:PropaneFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "propane flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:QuotaFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "quota flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:RecommendedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "recommended flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Sale
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "sale"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:SaleableFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "saleable flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:SaltFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "salt flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:SandFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "sand flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:SimulatedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "simulated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Storage
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdfs:label "storage"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:TargetFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "target flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:TemporalPartOfAFlow
rdf:type owl:Class ;
rdfs:label "temporal part of a flow"^^xsd:string ;
......@@ -408,28 +693,33 @@ ep-flow:TemporalPartOfAProductionFlow
rdfs:label "temporal part of a production flow"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:TriethyleneglycolFlow
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "triethyleneglycol flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:VapourFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "vapour flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Water-dischargeFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "water - discharge flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Water-processedFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "water - processed flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:WaterFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "water flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:dailyAverageAmountOfMaterial
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "daily average amount of material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> .
......@@ -474,6 +764,6 @@ ep-flow:hasNetworkPart
rdfs:subPropertyOf <http://www.reportinghub.no/ep/schema/core#hasPart> .
ep-flow:totalAmountOfMaterial
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:label "total amount of material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> .
......
......@@ -4073,7 +4073,8 @@ ep-dpr-spin-lib:selectProductType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:resultVariables ([ sp:varName "productType"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4129,7 +4130,7 @@ ep-dpr-spin-lib:selectProductType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_electricpower>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#FlowOfElectricity> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ElectricPowerFlow> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
......@@ -4153,7 +4154,7 @@ ep-dpr-spin-lib:selectProductType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_i-butane-component>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#I-butane-componentFlow> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Isobutane-componentFlow> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
......@@ -4165,7 +4166,7 @@ ep-dpr-spin-lib:selectProductType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_n-butane-component>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#N-butane-componentFlow> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#NormalButane-componentFlow> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
......@@ -4280,7 +4281,9 @@ ep-dpr-spin-lib:selectProductType
]
]
] ;
sp:variable _:b21
sp:variable
[ sp:varName "productType"^^xsd:string
]
])
] .
......@@ -4535,7 +4538,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4714,7 +4717,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b22
sp:variable _:b21
])
] .
......@@ -4724,7 +4727,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b23) ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4784,7 +4787,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b23
sp:variable _:b22
])
] .
......@@ -4794,7 +4797,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b24) ;
sp:resultVariables (_:b23) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4812,7 +4815,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b24
sp:variable _:b23
])
] .
......@@ -4822,7 +4825,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b25) ;
sp:resultVariables (_:b24) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4840,7 +4843,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b25
sp:variable _:b24
])
] .
......@@ -4850,7 +4853,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b26) ;
sp:resultVariables (_:b25) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5001,7 +5004,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b26
sp:variable _:b25
])
] .
......@@ -5104,7 +5107,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:resultVariables (_:b26) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5178,7 +5181,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
] ;
sp:variable _:b27
sp:variable _:b26
])
] .
......@@ -5187,7 +5190,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
sp:resultVariables (_:b27) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5331,7 +5334,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
] ;
sp:variable _:b28
sp:variable _:b27
])
] .
......@@ -5594,7 +5597,7 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b29) ;
sp:resultVariables (_:b28) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5605,7 +5608,7 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b29
sp:variable _:b28
])
] .
......@@ -5660,7 +5663,8 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b30) ;
sp:resultVariables ([ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5698,13 +5702,13 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_report>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#FlowDuringPeriod> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_totalcumulative>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#FlowDuringPeriod> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
......@@ -5723,7 +5727,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_year>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#FlowDuringYear> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#Flow>
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow>
]
]
]
......@@ -5734,7 +5738,9 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
]
]
] ;
sp:variable _:b30
sp:variable
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
])
] .
......@@ -5957,7 +5963,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b31) ;
sp:resultVariables (_:b29) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5982,7 +5988,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b31
sp:variable _:b29
])
] .
......@@ -5992,7 +5998,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b32) ;
sp:resultVariables (_:b30) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -6017,7 +6023,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b32
sp:variable _:b30
])
] .
......@@ -7135,41 +7141,35 @@ ep-dpr-spin-lib:selectWorkScale
])
] .
_:b32
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b31
sp:varName "volumeAtStdType"^^xsd:string .
_:b30
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b29
sp:varName "specificVolumeScale"^^xsd:string .
sp:varName "volumeAtStdType"^^xsd:string .
_:b28
sp:varName "safetyActivityType"^^xsd:string .
sp:varName "specificVolumeScale"^^xsd:string .
_:b27
sp:varName "relationshipToMeasure"^^xsd:string .
sp:varName "safetyActivityType"^^xsd:string .
_:b26
sp:varName "productionFlowPurposeType"^^xsd:string .
sp:varName "relationshipToMeasure"^^xsd:string .
_:b25
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b24
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b23
sp:varName "productionFlowDefinitionType"^^xsd:string .
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b22
sp:varName "productionFacilityType"^^xsd:string .
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b21
sp:varName "productType"^^xsd:string .
sp:varName "productionFacilityType"^^xsd:string .
_:b20
sp:varName "densityScale"^^xsd:string .
......
This diff could not be displayed because it is too large.
......@@ -31,197 +31,325 @@
<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103a record the flows"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
] ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
sp:subject _:b1
] [ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
sp:subject _:b1
] [ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "flowName"^^xsd:string
[ sp:varName "endTime"^^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/activity#finishedAt> ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
sp:subject _:b2
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "dailyProductionFlows"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowsToDate"^^xsd:string
[ sp:varName "volumeStdType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "dailyProductionFlows"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
sp:subject _:b3
] [ sp:object
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeStdScale"^^xsd:string
] ;
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "standardTempPres"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#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.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowKind"^^xsd:string
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowDirection"^^xsd:string
[ sp:varName "endTime"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowQualifier"^^xsd:string
[ sp:varName "volumeRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "periodRef"^^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.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "volumeStdRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeStdRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject
[ sp:varName "volumeStdRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
[ sp:varName "relationshipToMeasure"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
sp:arg1 [ sp:varName "standardTempPres"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
[ sp:varName "volumeStdType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowPurposeType"^^xsd:string
[ sp:varName "volumeStdScale"^^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> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b4
]) ;
sp:where ([ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b7
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
sp:subject _:b7
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b9 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b7
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 [ sp:varName "flowQualifier"^^xsd:string
]
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
] ;
sp:variable
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b10
] ;
sp:variable
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
]
sp:variable _:b4
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b9
] ;
sp:variable _:b5
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20103b record the related facility
nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate _:b12 ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:predicate rdf:type ;
sp:subject _:b11
]) ;
sp:where ([ sp:object _:b15 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b16
] [ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b16
] [ sp:object _:b20 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b19
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b19
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b17
] ;
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b22
] ;
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b20
] ;
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b23
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b21
] ;
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b18
] ;
sp:variable _:b12
])
] ;
spin:rule
......@@ -258,11 +386,11 @@ namingSystem not processed"""^^xsd:string ;
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
sp:subject _:b24
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
......@@ -271,7 +399,7 @@ namingSystem not processed"""^^xsd:string ;
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
sp:subject _:b24
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......@@ -343,15 +471,6 @@ namingSystem not processed"""^^xsd:string ;
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductType ;
sp:arg1 [ sp:varName "productKind"^^xsd:string
]
......@@ -380,6 +499,15 @@ namingSystem not processed"""^^xsd:string ;
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
] ;
......@@ -393,125 +521,7 @@ namingSystem not processed"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b3
] [ sp:object _:b7 ;
sp:predicate _:b8 ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b9 ;
sp:predicate _:b10 ;
sp:subject _:b7
] [ sp:object _:b11 ;
sp:predicate _:b8 ;
sp:subject _:b3
] [ sp:object _:b12 ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object _:b13 ;
sp:predicate _:b14 ;
sp:subject _:b11
]) ;
sp:where ([ sp:object _:b15 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject _:b17
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b5
] [ sp:object
[ sp:varName "productKind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b18
] [ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b19
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
sp:subject _:b19
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
sp:subject _:b19
] [ sp:object _:b9 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b21
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject _:b21
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b23 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
sp:subject _:b19
] [ sp:object _:b13 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject _:b23
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 _:b20
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 _:b20
] ;
sp:variable _:b4
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
sp:arg1 _:b15
] ;
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 _:b22
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 _:b24
] ;
sp:variable _:b14
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20103b record the related facility
nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object _:b25 ;
sp:predicate _:b26 ;
sp:subject _:b27
......@@ -535,41 +545,24 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b30
] [ sp:object _:b34 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b33
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b35 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b33
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b31
] ;
sp:variable _:b36
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b36
sp:arg1 _:b35
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b34
] ;
sp:variable _:b37
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b37
] ;
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b35
sp:arg1 _:b34
] ;
sp:variable _:b28
] [ rdf:type sp:Bind ;
......@@ -582,143 +575,253 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
] ;
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 20103a record the flows"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
] ;
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:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b38
] [ sp:object _:b39 ;
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 _:b36
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b38
sp:subject _:b36
] [ sp:object _:b36 ;
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.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b36
]) ;
sp:where ([ sp:object _:b40 ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "dailyProductionFlows"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowsToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "dailyProductionFlows"^^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.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b41 ;
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b40
] [ sp:object _:b42 ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b41
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowKind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowDirection"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
[ sp:varName "flowQualifier"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
sp:subject _:b41
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b43 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b41
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b42
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable _:b44
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b44
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable _:b38
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b43
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
]
] ;
sp:variable _:b39
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object _:b45 ;
sp:predicate _:b46 ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:predicate rdf:type ;
sp:subject _:b45
]) ;
sp:where ([ sp:object _:b49 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b50 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b49
] [ sp:object _:b51 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b50
] [ sp:object _:b52 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b50
] [ sp:object _:b53 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b50
] [ sp:object _:b54 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b53
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b51
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
]
] ;
sp:variable _:b55
sp:variable
[ sp:varName "productionFlow"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b55
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
]
] ;
sp:variable _:b47
sp:variable
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b54
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 [ sp:varName "flowQualifier"^^xsd:string
]
] ;
sp:variable _:b48
sp:variable
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b52
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
] ;
sp:variable _:b46
sp:variable
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
]
])
] .
_:b46
_:b11
sp:varName "relatedFacility"^^xsd:string .
_:b12
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b47
_:b13
sp:varName "productionFlow"^^xsd:string .
_:b48
_:b14
sp:varName "relatedFacilityType"^^xsd:string .
_:b49
_:b15
sp:varName "facilityRef"^^xsd:string .
_:b50
_:b16
sp:varName "flowRef"^^xsd:string .
_:b51
_:b17
sp:varName "flowName"^^xsd:string .
_:b52
_:b18
sp:varName "flowDirection"^^xsd:string .
_:b53
_:b19
sp:varName "relatedFacilityRef"^^xsd:string .
_:b54
_:b20
sp:varName "relatedFacilityName"^^xsd:string .
_:b21
sp:varName "relatedFacilityKind"^^xsd:string .
_:b55
_:b22
sp:varName "normalizedFlowName"^^xsd:string .
_:b25
sp:varName "relatedFacility"^^xsd:string .
_:b23
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b4 sp:varName "productionFacility"^^xsd:string .
_:b5 sp:varName "productionFacilityType"^^xsd:string .
_:b6 sp:varName "facilityRef"^^xsd:string .
_:b7 sp:varName "facilityNameRef"^^xsd:string .
_:b8 sp:varName "facilityName"^^xsd:string .
_:b9 sp:varName "facilityKind"^^xsd:string .
_:b10
sp:varName "normalizedFacilityName"^^xsd:string .
_:b26
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
......@@ -745,86 +848,7 @@ _:b33
sp:varName "relatedFacilityRef"^^xsd:string .
_:b34
sp:varName "relatedFacilityName"^^xsd:string .
_:b35
sp:varName "relatedFacilityKind"^^xsd:string .
_:b36
_:b35
sp:varName "normalizedFlowName"^^xsd:string .
_:b37
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b4 sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b5 sp:varName "productFlowToDate"^^xsd:string .
_:b6 sp:varName "endTime"^^xsd:string .
_:b8 sp:varName "relationshipToMeasure"^^xsd:string .
_:b9 sp:varName "realVolume"^^xsd:string .
_:b10
sp:varName "volumeScale"^^xsd:string .
_:b12
sp:varName "volumeStdType"^^xsd:string .
_:b13
sp:varName "realVolumeStd"^^xsd:string .
_:b14
sp:varName "volumeStdScale"^^xsd:string .
_:b15
sp:varName "standardTempPres"^^xsd:string .
_:b16
sp:varName "facilityRef"^^xsd:string .
_:b17
sp:varName "flowRef"^^xsd:string .
_:b18
sp:varName "productRef"^^xsd:string .
_:b19
sp:varName "periodRef"^^xsd:string .
_:b20
sp:varName "periodKindRef"^^xsd:string .
_:b21
sp:varName "volumeRef"^^xsd:string .
_:b22
sp:varName "uomVolume"^^xsd:string .
_:b23
sp:varName "volumeStdRef"^^xsd:string .
_:b24
sp:varName "uomVolumeStd"^^xsd:string .
_:b38
sp:varName "productionFacility"^^xsd:string .
_:b39
sp:varName "productionFacilityType"^^xsd:string .
_:b40
sp:varName "facilityRef"^^xsd:string .
_:b41
sp:varName "facilityNameRef"^^xsd:string .
_:b42
sp:varName "facilityName"^^xsd:string .
_:b43
sp:varName "facilityKind"^^xsd:string .
_:b44
sp:varName "normalizedFacilityName"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
@prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
@prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
@prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
@prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -17,5 +19,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> ;
owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -5,6 +5,7 @@
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
......@@ -21,8 +22,916 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103a record the flows"^^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 "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> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlow"^^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: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
] ;
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 "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: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 "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:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productNameRef"^^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:variable
[ sp:varName "normalizedProductTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "localname"^^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
]
] ;
sp:variable
[ sp:varName "productFlow"^^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
] ;
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/activity#finishedAt> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
]) ;
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
]
] [ 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
]
] ;
sp:variable
[ sp:varName "relationshipToMeasure"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
sp:arg1 [ sp:varName "uomTemp"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temperatureScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectPressureScale ;
sp:arg1 [ sp:varName "uomPres"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pressureScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20103b record the related facility - a neutral link is provided in case there is no direction.
nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "relatedFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
] ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "relatedFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "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
]
] [ 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
]
])
] [ sp:object
[ sp:varName "relatedFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "relatedFacilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "relatedFacilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "relatedFacilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "relatedFacilityNameRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "relatedFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "relatedFacilityNameRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "relatedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedRelatedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedRelatedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relatedFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relatedFacilityType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
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/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object _:b7 ;
sp:predicate
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^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: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 "flowDirection"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "relatedFacilityRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relatedFacilityType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^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> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
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 "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^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
]
] ;
sp:variable
[ sp:varName "productionFacilityType"^^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 ;
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
......@@ -61,11 +970,11 @@
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:subject _:b8
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
......@@ -74,7 +983,7 @@
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
sp:subject _:b8
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -133,13 +1042,15 @@
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "flowRef"^^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
] ;
......@@ -147,13 +1058,15 @@
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ 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 "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
......@@ -183,17 +1096,17 @@
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
[ sp:varName "localname"^^xsd:string
]
] [ 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
......@@ -227,104 +1140,9 @@
[ 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> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
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 "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^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
]
] ;
sp:variable
[ sp:varName "productionFacilityType"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0>
rdf:type owl:Ontology ;
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:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......