David Price

Merge branch 'master' into add-license

# Saved by TopBraid on Tue Oct 11 17:40:23 BST 2011
# Saved by TopBraid on Thu Oct 13 14:27:22 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
@prefix ep-flow: <http://www.reportinghub.no/ep/schema/flow#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -10,141 +11,141 @@
<http://www.reportinghub.no/ep/schema/1.0/flow>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> ;
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
rdf:type ep-flow:ProductType , owl:Class ;
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: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
rdf:type owl:Class , ep-flow:ProductType ;
rdf:type ep-flow:ProductType , owl:Class ;
rdfs:label "cuttings flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
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
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
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: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 .
......@@ -154,32 +155,32 @@ ep-flow:Flow
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 .
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 .
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: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 .
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 .
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 .
......@@ -196,117 +197,127 @@ ep-flow:FlowOfLiquid
ep-flow:FlowOfMaterial
rdf:type owl:Class ;
rdfs:label "flow of material"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow , ep-flow:TemporalPartOfAFlowOfMaterial .
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-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: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:I-butane-componentFlow
rdf:type ep-flow:ProductType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "i-butane - component flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow: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: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 ;
rdf:type owl:Class , ep-flow:ProductType ;
rdfs:label "n-butane - component 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: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: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
rdf:type ep-flow:ProductType , owl:Class ;
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
rdf:type ep-flow:ProductType , owl:Class ;
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:ProductFlow
rdf:type owl:Class ;
rdfs:label "product flow"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAProductFlow .
ep-flow:ProductFlowToDate
rdf:type owl:Class ;
rdfs:label "product flow to date"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAProductFlow .
ep-flow:ProductType
rdf:type rdfs:Class ;
rdfs:label " product type"^^xsd:string ;
rdfs:subClassOf rdfs: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 .
ep-flow:ProductionFlow
rdf:type owl:Class ;
rdfs:label "production flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
rdfs:subClassOf ep-flow:TemporalPartOfAProductionFlow .
ep-flow:ProductionFlowDefinitionType
rdf:type rdfs:Class ;
......@@ -318,18 +329,28 @@ ep-flow:ProductionFlowPurposeType
rdfs:label " production flow purpose type"^^xsd:string ;
rdfs:subClassOf rdfs:Class .
ep-flow:ProductionFlowToDate
rdf:type owl:Class ;
rdfs:label "production flow to date"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAProductionFlow .
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: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:SeparatorFlow
rdf:type owl:Class ;
rdfs:label "separator 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 .
......@@ -343,37 +364,52 @@ ep-flow:TemporalPartOfAFlowDurationType
rdfs:label "temporal part of a flow duration type"^^xsd:string ;
rdfs:subClassOf rdfs:Class .
ep-flow:TemporalPartOfAFlowOfMaterial
ep-flow:TemporalPartOfAProductFlow
rdf:type owl:Class ;
rdfs:label "temporal part of a flow of material"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> .
rdfs:label "temporal part of a product flow"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:TemporalPartOfAProductionFlow
rdf:type owl:Class ;
rdfs:label "temporal part of a production flow"^^xsd:string ;
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
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:WellHeadFlow
rdf:type owl:Class ;
rdfs:label "well head flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:dailyAverageAmountOfMaterial
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-flow:TemporalPartOfAFlowOfMaterial ;
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> .
ep-flow:facilityContainsFlow
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "facility contains flow"^^xsd:string ;
rdfs:range ep-flow:Flow .
ep-flow:flowInto
rdf:type owl:ObjectProperty ;
rdfs:domain ep-flow:Flow ;
......@@ -394,8 +430,21 @@ ep-flow:flowOutOf
rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
rdfs:subPropertyOf ep-flow:flowIntoOrOutOf .
ep-flow:hasMixedPart
rdf:type owl:ObjectProperty ;
rdfs:domain ep-flow:Flow ;
rdfs:label "has mixed part"^^xsd:string ;
rdfs:range ep-flow:Flow ;
rdfs:subPropertyOf <http://www.reportinghub.no/ep/schema/core#hasPart> .
ep-flow:hasNetworkPart
rdf:type owl:ObjectProperty ;
rdfs:domain ep-flow:Flow ;
rdfs:label "has network part"^^xsd:string ;
rdfs:range ep-flow:Flow ;
rdfs:subPropertyOf <http://www.reportinghub.no/ep/schema/core#hasPart> .
ep-flow:totalAmountOfMaterial
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-flow:TemporalPartOfAFlowOfMaterial ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:label "total amount of material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> .
......
# Saved by TopBraid on Tue Oct 11 21:13:23 BST 2011
# Saved by TopBraid on Fri Oct 14 12:01:32 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-activity
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-prodact: <http://www.reportinghub.no/ep/schema/production-activity#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
......@@ -14,9 +17,34 @@
<http://www.reportinghub.no/ep/schema/1.0/production-activity>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/flow> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
<http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
<http://www.reportinghub.no/ep/schema/activity#ProductionWellTest>
rdf:type owl:Class ;
rdfs:label "production well test"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
<http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
<http://www.reportinghub.no/ep/schema/activity#hasFlow>
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#Activity> ;
rdfs:label "has flow"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/flow#Flow> .
ep-core:Mass
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdfs:label "mass"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfAmountOfMaterial .
<http://www.reportinghub.no/ep/schema/equipment#Manifold>
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#TemporalPartOfAManifold> .
......@@ -61,36 +89,44 @@ ep-prodact:AirTrafficOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:AnnualProductionActivity
ep-prodact:Alarm
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:AnnualProductionActivity
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:AnnualProductionActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:AnnualProductionActivity .
ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionOperationsActivity , ep-prodact:AnnualProductionActivityToEndOfReportingPeriod .
ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionVolumeActivity , ep-prodact:AnnualProductionActivityToEndOfReportingPeriod .
ep-prodact:CargoShipOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:ConstructionOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:CumulativeProductionActivitySinceProductionBegan
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:DailyProductionOperationsActivity
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionOperationsActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> .
ep-prodact:DailyProductionVolumeActivity
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf ep-prodact:ProductionVolumeActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> .
ep-prodact:Deviation
......@@ -117,6 +153,14 @@ ep-prodact:FlowLine-Production
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:FlowLine .
ep-prodact:FusionOfHSEActivitiesOverPeriod
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:FusionOfPartsOfProductionActivityOverPeriod .
ep-prodact:FusionOfPartsOfProductionActivityOverPeriod
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:HealthSafetyAndEnvironmentActivity
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
......@@ -162,13 +206,17 @@ ep-prodact:MedicalTreatmentInjury
rdfs:subClassOf ep-prodact:Injury .
ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> .
ep-prodact:NearMiss
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:NotablePartOfProductionActivity
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:PartOfProductionActivity
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
......@@ -178,9 +226,13 @@ ep-prodact:PowerStationFailure
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:ProductionActivityLastingLessThanAYear
rdf:type owl:Class ;
rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionOperationClassByDuration
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class .
ep-prodact:ProductionOperationsActivity
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
......@@ -213,6 +265,10 @@ ep-prodact:SafetyMeeting
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:SampleAmountOfSubstance
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/well#Fluid> .
ep-prodact:SentAshore
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
......@@ -229,6 +285,14 @@ ep-prodact:SpillOrLeak
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
ep-prodact:WaterCleaningOperation
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:WaterSample
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/well#Water> , ep-prodact:SampleAmountOfSubstance .
ep-prodact:WorkingUnderPermit
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
......@@ -237,11 +301,46 @@ ep-prodact:WorkingUnderPermitWithSJA
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:WorkingUnderPermit .
ep-prodact:ammoniumDensity
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Density .
ep-prodact:amountOfOil
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Mass .
ep-prodact:classificationBySafetyActivityType
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:FusionOfHSEActivitiesOverPeriod ;
rdfs:range ep-prodact:SafetyActivityType .
ep-prodact:coulterCounter
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:SpecificMass .
ep-prodact:glycolDensity
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Density .
ep-prodact:hasPart
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
rdfs:range ep-prodact:PartOfProductionActivity .
ep-prodact:involvedVessel
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:MarineOperation ;
rdfs:range <http://www.reportinghub.no/ep/schema/production-facility#ShipOrBoat> .
ep-prodact:involvement
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#Activity> ;
rdfs:range ep-core:PhysicalObject .
ep-prodact:noOfDrillsOrExcercises
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......@@ -292,11 +391,66 @@ ep-prodact:noOfSpillsOrLeaks
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
rdfs:range xsd:integer .
ep-prodact:oilInWater
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:SpecificMass .
ep-prodact:oxygenInWater
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:SpecificMass .
ep-prodact:phenolDensity
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Density .
ep-prodact:productionActivityPeriodClassification
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:FusionOfPartsOfProductionActivityOverPeriod ;
rdfs:range ep-prodact:ProductionOperationClassByDuration .
ep-prodact:residualChlorideInWater
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:SpecificMass .
ep-prodact:samplePOint
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range xsd:string .
ep-prodact:samplePhValue
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range xsd:double .
ep-prodact:sampleTemperature
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:Temperature .
ep-prodact:sampleTurbidity
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range xsd:double .
ep-prodact:totalNoOfPermitsIssued
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
rdfs:range xsd:integer .
ep-prodact:totalOrganicCarbonInWater
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterSample ;
rdfs:range ep-core:SpecificMass .
ep-prodact:waterSampleTaken
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:WaterCleaningOperation ;
rdfs:range ep-prodact:WaterSample .
ep-prodact:yearlyActivityToDate
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:ProductionActivityLastingLessThanAYear ;
......
......@@ -26,3 +26,57 @@ ep-core:hasSetOfAllPartsOfType
ep-core:thousand_barrel
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "thousand barrel"^^xsd:string .
ep-core:MeasureOfFlowOfMaterial
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdfs:label "measure of flow of material"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-core:VolumeFlowRateAt15degC1atm
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdfs:label "volume flow rate at 15 degrees C 1 atmosphere"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfFlowOfMaterial .
ep-core:VolumeFlowRateAt1degC1atm
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdfs:label "volume flow rate at 1 degrees C 1 atmosphere"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfFlowOfMaterial .
ep-core:VolumeFlowRateAt60degF1atm
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdfs:label "volume flow rate at 60 degrees F 1 atmosphere"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfFlowOfMaterial .
ep-core:atmosphere
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:domain ep-core:Pressure ;
rdfs:label "atmosphere"^^xsd:string .
ep-core:barrel_day-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-core:VolumetricFlowRate ;
rdfs:label "barrel day-1"^^xsd:string .
ep-core:centimetre
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdfs:domain ep-core:Length ;
rdfs:label "centimetre"^^xsd:string .
ep-core:fahrenheit
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:domain ep-core:Temperature ;
rdfs:label "fahrenheit"^^xsd:string .
ep-core:inch_64
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdfs:domain ep-core:Length ;
rdfs:label "inch/64"^^xsd:string .
ep-core:metre3_hour-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-core:VolumetricFlowRate ;
rdfs:label "metre3 hour-1"^^xsd:string .
ep-core:thousand_barrel
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "thousand barrel"^^xsd:string .
\ No newline at end of file
......
# Saved by TopBraid on Tue Oct 11 19:15:55 BST 2011
# Saved by TopBraid on Thu Oct 13 12:41:06 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
......@@ -15,12 +15,33 @@
owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
rdf:type owl:Class ;
rdfs:label "production facility to date"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> .
<http://www.reportinghub.no/ep/schema/facility#facilityOperator>
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "facility operator"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
ep-prodfac:Boat
rdf:type owl:Class ;
rdfs:subClassOf ep-prodfac:ShipOrBoat .
ep-prodfac:Ship
rdf:type owl:Class ;
rdfs:subClassOf ep-prodfac:ShipOrBoat .
ep-prodfac:ShipOrBoat
rdf:type owl:Class ;
rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat .
ep-prodfac:TemporalPartOfAShipOrBoat
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
ep-prodfac:numberOfBedsAvailable
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
......
# Saved by TopBraid on Tue Oct 11 12:55:49 BST 2011
# Saved by TopBraid on Fri Oct 14 00:15:06 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/np/schema/1.0/npd
......@@ -11,7 +11,7 @@
<http://www.reportinghub.no/ep/schema/1.0/production-report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-prodreport:DailyProductionReport
......@@ -34,8 +34,8 @@ ep-prodreport:ReportAliasIdentifier
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:aliasName
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:isAliasFor
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -44,8 +44,8 @@ ep-prodreport:ReportAliasIdentifier
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:isAliasFor
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:aliasName
] .
ep-prodreport:aliasName
......@@ -54,7 +54,7 @@ ep-prodreport:aliasName
ep-prodreport:aliasOwner
rdf:type owl:ObjectProperty ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Company> .
rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
ep-prodreport:disclaimer
rdf:type rdf:Property ;
......
# Saved by TopBraid on Wed Oct 12 19:50:38 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/dpr-tables
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/spin/rh
@prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/spin/dpr-tables>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
dpr-tables:WellInformation
rdf:type rhspin:TableTemplate ;
rdfs:subClassOf rhspin:TableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "description"^^xsd:string
] _:b1 [ sp:varName "choke"^^xsd:string
] [ sp:varName "prod"^^xsd:string
]) ;
sp:where ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationsActivity> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-facility#numberOfOwnCrew> ;
sp:subject
[ sp:varName "act"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Description"^^xsd:string "Oil Net m3"^^xsd:string "Choke %"^^xsd:string "Prod Hours"^^xsd:string) .
_:b2 sp:varName "dailyProductionActivity"^^xsd:string .
_:b3 sp:varName "productionOperationsActivity"^^xsd:string .
_:b1 sp:varName "oilNet"^^xsd:string .
# Saved by TopBraid on Wed Oct 12 19:50:38 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
# Saved by TopBraid on Wed Oct 12 14:16:37 BST 2011
# Saved by TopBraid on Thu Oct 13 18:07:56 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -27,18 +27,90 @@
owl:imports <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/dpr/spin/1.1/unnamed> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:BuildDailyProductionReportURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of the document (this may to change when we sort out the identity lookup)
arg2 is report date"""^^xsd:string ;
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b1
])
] .
ep-dpr-spin-lib:Function
rdf:type spin:Function ;
rdfs:label "function"^^xsd:string ;
rdfs:subClassOf spin:Functions .
ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup)
arg2 is report end date"""^^xsd:string ;
sp:resultVariables (_:b2) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/annualProductionActivityToEndOfReportingPeriod/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b2
])
] .
ep-dpr-spin-lib:buildAnnualProductionOperationsActivityToEndOfPeriodURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup)
arg2 is report end date"""^^xsd:string ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/annualProductionOperationsActivityToEndOfReportingPeriod/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b3
])
] .
ep-dpr-spin-lib:buildCountryURI
rdf:type spin:Function ;
rdfs:label "build Country URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -47,7 +119,78 @@ ep-dpr-spin-lib:buildCountryURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b1
sp:variable _:b4
])
] .
ep-dpr-spin-lib:buildDailyProductionActivityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionActivity/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b5
])
] .
ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionOperationsActivity/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b6
])
] .
ep-dpr-spin-lib:buildFacilityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment "arg1 is name of facility (this is going to change when we sort out the identity lookup)"^^xsd:string ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/temporalPartOfAFacility/" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b7
])
] .
......@@ -57,7 +200,7 @@ ep-dpr-spin-lib:buildProductFlowURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b2) ;
sp:resultVariables (_:b8) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -68,7 +211,7 @@ ep-dpr-spin-lib:buildProductFlowURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b2
sp:variable _:b8
])
] .
......@@ -78,7 +221,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b9) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -87,7 +230,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b3
sp:variable _:b9
])
] .
......@@ -97,7 +240,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:resultVariables (_:b10) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -106,7 +249,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b4
sp:variable _:b10
])
] .
......@@ -116,7 +259,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
sp:resultVariables (_:b11) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -129,7 +272,26 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b5
sp:variable _:b11
])
] .
ep-dpr-spin-lib:buildShipURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment "arg1 is name of the ship - assumed to be unique in this scope"^^xsd:string ;
sp:resultVariables (_:b12) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/Ship/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b12
])
] .
......@@ -139,7 +301,7 @@ ep-dpr-spin-lib:buildStateURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b6) ;
sp:resultVariables (_:b13) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -148,7 +310,153 @@ ep-dpr-spin-lib:buildStateURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b6
sp:variable _:b13
])
] .
ep-dpr-spin-lib:buildTemporalPartOfFacilityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b14) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/temporalPartOfAFacility/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b14
])
] .
ep-dpr-spin-lib:selectDurationScale
rdf:type spin:Function ;
rdfs:label "select Duration scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b15) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TU_h>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#hour> ;
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#TU_min>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#minute> ;
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#TU_s>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#second> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
] ;
sp:variable _:b15
])
] .
ep-dpr-spin-lib:selectLengthScale
rdf:type spin:Function ;
rdfs:label "select Length scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#LU_in64>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#inch_64> ;
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#LU_m>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre> ;
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#LU_cm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#centimetre> ;
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#LU_mm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#millimetre> ;
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#LU_in>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#inch> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
]
]
] ;
sp:variable _:b16
])
] .
ep-dpr-spin-lib:selectPressureScale
rdf:type spin:Function ;
rdfs:label "select Pressure scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#PU_bar>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#bar> ;
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#PU_atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#atmosphere> ;
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#PU_MPa>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#megaPa> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
] ;
sp:variable _:b17
])
] .
......@@ -158,7 +466,7 @@ ep-dpr-spin-lib:selectProductType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b7) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -365,7 +673,7 @@ ep-dpr-spin-lib:selectProductType
]
]
] ;
sp:variable _:b7
sp:variable _:b18
])
] .
......@@ -375,7 +683,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b8) ;
sp:resultVariables (_:b19) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -554,7 +862,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b8
sp:variable _:b19
])
] .
......@@ -564,7 +872,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b9) ;
sp:resultVariables (_:b20) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -624,7 +932,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b9
sp:variable _:b20
])
] .
......@@ -634,7 +942,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -652,7 +960,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b10
sp:variable _:b21
])
] .
......@@ -662,7 +970,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b11) ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -680,7 +988,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b11
sp:variable _:b22
])
] .
......@@ -690,7 +998,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:resultVariables (_:b23) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -841,7 +1149,69 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b12
sp:variable _:b23
])
] .
ep-dpr-spin-lib:selectProductionOperationPartType
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b24) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#OK_production>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
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#OK_maintenance>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MaintenanceActivity> ;
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#OK_powerstationfailure>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#PowerStationFailure> ;
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#OK_deviations>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#Deviation> ;
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#OK_airtraffic>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AirTrafficOperation> ;
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#OK_construction>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ConstructionOperation> ;
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#TU_s>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#second> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/production-activity#PartOfProductionActivity>
]
]
]
]
]
]
] ;
sp:variable _:b24
])
] .
......@@ -851,7 +1221,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b13) ;
sp:resultVariables (_:b25) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -925,7 +1295,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
] ;
sp:variable _:b13
sp:variable _:b25
])
] .
......@@ -934,7 +1304,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b14) ;
sp:resultVariables (_:b26) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1078,7 +1448,56 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
] ;
sp:variable _:b14
sp:variable _:b26
])
] .
ep-dpr-spin-lib:selectSpecificVolumeScale
rdf:type spin:Function ;
rdfs:label "select SpecificVolume scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b27
])
] .
ep-dpr-spin-lib:selectTemperatureScale
rdf:type spin:Function ;
rdfs:label "select Temperature scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TTU_degC>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#celsius> ;
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#TTU_degF>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fahrenheit> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b28
])
] .
......@@ -1088,7 +1507,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b15) ;
sp:resultVariables (_:b29) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1162,7 +1581,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
]
]
] ;
sp:variable _:b15
sp:variable _:b29
])
] .
......@@ -1171,7 +1590,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:resultVariables (_:b30) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1245,7 +1664,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
]
]
] ;
sp:variable _:b16
sp:variable _:b30
])
] .
......@@ -1255,7 +1674,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:resultVariables (_:b31) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1280,7 +1699,77 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b17
sp:variable _:b31
])
] .
ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
rdf:type spin:Function ;
rdfs:label "select VolumeFlowRateAtStandardTemperaturePressureType"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b32) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_15degC1atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#VolumeFlowRateAt15degC1atm> ;
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#STP_60degF1atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#VolumeFlowRateAt60degF1atm> ;
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#STP_0degC1atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#VolumeFlowRateAt15degC1atm> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#MeasureOfFlowOfMaterial>
]
]
] ;
sp:variable _:b32
])
] .
ep-dpr-spin-lib:selectVolumeFlowRateScale
rdf:type spin:Function ;
rdfs:label "select VolumeFlowRate scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b33) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VFRU_m3d>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre3_day-1> ;
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#VFRU_bbld>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#barrel_day-1> ;
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#VFRU_m3h>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre3_hour-1> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
] ;
sp:variable _:b33
])
] .
......@@ -1290,7 +1779,7 @@ ep-dpr-spin-lib:selectVolumeScale
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b34) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1518,51 +2007,99 @@ ep-dpr-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b18
sp:variable _:b34
])
] .
_:b18
sp:varName "volumeScale"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b17
sp:varName "volumeAtStdType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b14
sp:varName "safetyActivityType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b13
sp:varName "relationshipToMeasure"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b12
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b11
sp:varName "uri"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
_:b14
sp:varName "uri"^^xsd:string .
_:b15
sp:varName "durationScale"^^xsd:string .
_:b16
sp:varName "lengthScale"^^xsd:string .
_:b17
sp:varName "pressureScale"^^xsd:string .
_:b18
sp:varName "productType"^^xsd:string .
_:b19
sp:varName "productionFacilityType"^^xsd:string .
_:b20
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b21
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b10
_:b22
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b9 sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b23
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b8 sp:varName "productionFacilityType"^^xsd:string .
_:b25
sp:varName "relationshipToMeasure"^^xsd:string .
_:b7 sp:varName "productType"^^xsd:string .
_:b26
sp:varName "safetyActivityType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b27
sp:varName "specificVolumeScale"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b28
sp:varName "temperatureScale"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b29
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b30
sp:varName "prodActType"^^xsd:string .
_:b31
sp:varName "volumeAtStdType"^^xsd:string .
_:b32
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b33
sp:varName "volumeFlowRateScale"^^xsd:string .
_:b34
sp:varName "volumeScale"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "prodActType"^^xsd:string .
_:b24
sp:varName "popType"^^xsd:string .
......
# Saved by TopBraid on Wed Oct 12 14:16:38 BST 2011
# Saved by TopBraid on Thu Oct 13 18:07:56 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Sun Oct 09 09:55:56 BST 2011
# Saved by TopBraid on Thu Oct 13 08:34:27 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0
# imports: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.0/dpr/wellTest
@prefix TRANSFORM_dpr-collector-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -11,9 +12,10 @@
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix wellTest: <http://www.reportinghub.no/ep/transform/1.0/dpr/wellTest#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume> , <http://spinrdf.org/spin> ;
owl:imports <http://www.reportinghub.no/ep/transform/1.0/dpr/wellTest> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Sun Oct 09 09:55:56 BST 2011
# Saved by TopBraid on Thu Oct 13 08:34:27 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
# Saved by TopBraid on Fri Oct 14 12:02:45 BST 2011
# baseURI: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
@prefix facility: <http://www.reportinghub.no/ep/schema/1.0/facility#> .
@prefix npd: <http://www.reportinghub.no/np/schema/npd#> .
......@@ -22,18 +23,21 @@
<http://www.reportinghub.no/ep/schema/organization#Company>
rdfs:subClassOf npd:Individual .
<http://www.reportinghub.no/ep/schema/well#Well>
rdfs:subClassOf npd:Individual .
<http://www.reportinghub.no/ep/schema/well#WellBore>
rdfs:subClassOf npd:NPDIndividual .
<http://www.reportinghub.no/np/schema/1.0/npd>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
owl:versionInfo "0.1.0"^^xsd:string .
npd:BusinessArrangementArea
rdf:type owl:Class ;
rdfs:comment "A business arrangement area in this context is an area which is a result of unitisations, sliding scale rules or other business arrangements which have altered the terms of the original production licence."^^xsd:string ;
rdfs:subClassOf npd:NPDIndividual , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:Owner .
rdfs:subClassOf npd:Owner , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:NPDIndividual .
npd:DAS_DecidedByTheLicensees
rdf:type npd:DiscoveryActivityStatus ;
......@@ -286,7 +290,7 @@ npd:LS_Inactive
npd:Licence
rdf:type owl:Class ;
rdfs:comment "Production licences are granted by the Ministry of Petroleum and Energy. Transfer of a production licence or participating interest in a production licence must be approved by the ministry."^^xsd:string ;
rdfs:subClassOf npd:NPDIndividual , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:Owner .
rdfs:subClassOf npd:Owner , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:NPDIndividual .
npd:LicenceStatus
rdf:type owl:Class ;
......@@ -321,7 +325,7 @@ npd:NPDIndividual
npd:OperatingCompany
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/organization#Company> , npd:NPDIndividual .
rdfs:subClassOf npd:NPDIndividual , <http://www.reportinghub.no/ep/schema/organization#Company> .
npd:Owner
rdf:type owl:Class ;
......@@ -361,7 +365,7 @@ npd:SlidingScaleBAA
npd:TUF
rdf:type owl:Class ;
rdfs:comment "TUF is an abbreviation for \"Transportation and Utilization Facilities\"."^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> , npd:FixedFacilityParent .
rdfs:subClassOf npd:FixedFacilityParent , <http://www.reportinghub.no/ep/schema/facility#Facility> .
npd:TUFPart
rdf:type owl:Class ;
......
......@@ -105,15 +105,15 @@ arg:wellName
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The value to match against."^^xsd:string ;
spl:predicate sp:arg1
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The property that must be used in the result resource."^^xsd:string ;
spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ;
spl:valueType rdf:Property
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The value to match against."^^xsd:string ;
spl:predicate sp:arg1
] ;
spin:returnType rdfs:Resource .
npdata:npd
......@@ -138,6 +138,127 @@ rhspin:DDRTableTemplates
spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
] .
rhspin:GetLicenceInfo
rdf:type spin:SelectTemplate ;
rdfs:comment "Gets the NPD id and a type identifier (\"PL\" or \"BA\") for a licence specified by a name."^^xsd:string ;
rdfs:label "Get licence info"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "id"^^xsd:string
] [ sp:varName "typeName"^^xsd:string
]) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "owner"^^xsd:string
]
] [ sp:object
[ sp:varName "type"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "owner"^^xsd:string
]
] [ sp:object
[ sp:varName "id"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject
[ sp:varName "owner"^^xsd:string
]
]) ;
sp:graphNameNode npdata:npd
] [ rdf:type sp:NamedGraph ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/np/schema/npd#Owner> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject
[ sp:varName "type"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/schema/1.0/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 [ sp:varName "type"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/np/schema/npd#Licence>
] ;
sp:arg2 "PL" ;
sp:arg3 "BA"
] ;
sp:variable
[ sp:varName "typeName"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The name of the licence."^^xsd:string ;
spl:predicate arg:name ;
spl:valueType xsd:string
] .
rhspin:GetLicensesAndBAAsOfCompanyName
rdf:type spin:SelectTemplate ;
rdfs:comment "Gets the licences and BAAs that a company with a given name has access to. Result variables are ?owner and ?ownerName."^^xsd:string ;
rdfs:label "Get licenses and BAAs of company name"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:orderBy ([ sp:varName "ownerName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "owner"^^xsd:string
] [ sp:varName "ownerName"^^xsd:string
]) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "companyName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "company"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "company"^^xsd:string
]
] [ sp:object
[ sp:varName "owner"^^xsd:string
] ;
sp:predicate rhspin:companyHasLicenceOrBAA ;
sp:subject
[ sp:varName "company"^^xsd:string
]
] [ sp:object
[ sp:varName "ownerName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "owner"^^xsd:string
]
]) ;
sp:graphNameNode npdata:npd
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The name of a company."^^xsd:string ;
spl:predicate arg:companyName ;
spl:valueType xsd:string
] .
rhspin:GetWellBoresOfWell
rdf:type spin:SelectTemplate ;
rdfs:comment "Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBoreId and ?wellBoreName."^^xsd:string ;
......@@ -267,15 +388,15 @@ rhspin:WDRTableTemplates
spin:abstract "true"^^xsd:boolean ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the reporting week."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The DDR that serves as root of the query."^^xsd:string ;
spl:predicate arg:wellBore ;
spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the reporting week."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] .
rhspin:baaById
......@@ -384,6 +505,50 @@ rhspin:companyHasLicenceForWellBore
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
rhspin:companyHasLicenceOrBAA
rdf:type spin:MagicProperty ;
rdfs:comment "A magic property that defines a relationship between companies (left side) and licenses or BAAs (right side). It matches those licenses or BAAs that the company currently holds. The query is optimized for the direction when the company is given and the licenses and BAAs variable."^^xsd:string ;
rdfs:label "company has licence or BAA"^^xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "owner"^^xsd:string
]) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ;
sp:subject
[ sp:varName "share"^^xsd:string
]
] [ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "owner"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ;
sp:subject
[ sp:varName "share"^^xsd:string
]
]) ([ sp:object
[ sp:varName "owner"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#baaShared> ;
sp:subject
[ sp:varName "share"^^xsd:string
]
]))
]) ;
sp:graphNameNode npdata:npd
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The Company to match."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
rhspin:companyName
rdf:type spin:Function ;
rdfs:comment "Gets the name of the company of the currently logged in user."^^xsd:string ;
......@@ -640,16 +805,16 @@ rhspin:ddrOfWeek
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The first day of the week."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The well bore that the DDR must be about."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The first day of the week."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType xsd:date
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> .
rhspin:ddrWellBoreId
......@@ -736,15 +901,15 @@ rhspin:dtypeValue
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType rdf:Property
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subject of the value."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType rdf:Property
] .
rhspin:facilityById
......@@ -798,8 +963,9 @@ rhspin:graphForDDR
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ sp:varName "uri"^^xsd:string
sp:resultVariables ([ rdf:type rhspin:graphForLicence ;
arg:licence
[ sp:varName "licence"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:TriplePath ;
......@@ -825,7 +991,31 @@ rhspin:graphForDDR
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
]) ;
sp:graphNameNode npdata:npd
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The DDR to get the graph for."^^xsd:string ;
spl:predicate arg:ddr ;
spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
] ;
spin:returnType rdfs:Resource .
rhspin:graphForLicence
rdf:type spin:Function ;
rdfs:comment "Gets the URI resource of the named graph that holds the reports for a given licence."^^xsd:string ;
rdfs:label "graph for licence"^^xsd:string ;
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ sp:varName "uri"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "id"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
......@@ -848,9 +1038,9 @@ rhspin:graphForDDR
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The DDR to get the graph for."^^xsd:string ;
spl:predicate arg:ddr ;
spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
rdfs:comment "The licence or BAA to get the graph for."^^xsd:string ;
spl:predicate arg:licence ;
spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner>
] ;
spin:returnType rdfs:Resource .
......@@ -861,8 +1051,9 @@ rhspin:graphForWellBoreWithId
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ sp:varName "uri"^^xsd:string
sp:resultVariables ([ rdf:type rhspin:graphForLicence ;
arg:licence
[ sp:varName "licence"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NamedGraph ;
......@@ -880,25 +1071,8 @@ rhspin:graphForWellBoreWithId
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "licenceId"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject
[ sp:varName "licence"^^xsd:string
]
]) ;
sp:graphNameNode npdata:npd
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/ep/graph/licence-" ;
sp:arg2 [ sp:varName "licenceId"^^xsd:string
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] ;
spin:constraint
......@@ -1324,8 +1498,9 @@ rhspin:npdTripleExists
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The object to match."^^xsd:string ;
spl:predicate sp:arg3
rdfs:comment "The subject to find"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
......@@ -1335,9 +1510,8 @@ rhspin:npdTripleExists
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subject to find"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
rdfs:comment "The object to match."^^xsd:string ;
spl:predicate sp:arg3
] ;
spin:returnType xsd:boolean .
......
<div>
<hr />
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/dpr-tables&gt;">
<h2>{= ui:label(?template) }</h2>
</ui:setContext>
<table class="ddrTable">
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/dpr-tables&gt;">
<tr class="ddrTR">
<ui:forEach ui:resultSet="{#
SELECT ?header
WHERE {
?template rhspin:tableHeaders ?list .
?list &lt;http://jena.hpl.hp.com/ARQ/list#member&gt; ?header .
}
}">
<th class="ddrTH">{= ?header }</th>
</ui:forEach>
</tr>
</ui:setContext>
<ui:call ui:template="{= ?template }" arg:report="{= ?report }">
<ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }">
<tr class="ddrTR">
<ui:forEach ui:resultSet="{# SELECT ?cell WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cellIndex) } }">
<td class="ddrTD">{= ui:label(?cell) }</td>
</ui:forEach>
</tr>
</ui:forEach>
</ui:call>
</table>
<br />
</div>
\ No newline at end of file
<ui:group>
<h1>DPR</h1>
<hr />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInformation" />
</ui:group>
\ No newline at end of file
# baseURI: http://www.reportinghub.no/swp/dpr
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/spin/dpr-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix dprswp: <http://www.reportinghub.no/swp/dpr#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:report
rdf:type rdf:Property ;
rdfs:label "report"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:template
rdf:type rdf:Property ;
rdfs:label "template"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
ui:instanceView
[ rdf:type dprswp:DailyProductionReportView ;
arg:report spin:_this
] .
<http://www.reportinghub.no/swp/dpr>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/dpr-tables> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "0.1.0"^^xsd:string .
dprswp:DailyProductionReportView
rdf:type ui:NodeClass ;
rdfs:label "Daily production report view"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report to display."^^xsd:string ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:prototype <http://www.reportinghub.no/swp/DailyProductionReport.uispin.html> .
dprswp:Table
rdf:type ui:NodeClass ;
rdfs:comment "An HTML table displaying the results of a given SPIN template for a given DPR. The template should also provide rhspin:tableHeaders."^^xsd:string ;
rdfs:label "Table"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report that serves as root of the template."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
ui:prototype <http://www.reportinghub.no/swp/DPRTable.uispin.html> .
<?xml version="1.0" encoding="UTF-8"?>
<WITSMLComposite xmlns="http://www.witsml.org/schemas/131/addendum/combo" version="1.3.1.0">
<documentInfo>
<DocumentName namingSystem="EC">Ekofisk Daily Production</DocumentName>
<DocumentAlias namingSystem="EC">Daily Activity Report</DocumentAlias>
<DocumentAlias namingSystem="EC">Daily Production Report</DocumentAlias>
<DocumentAlias namingSystem="EC">Daily Production and Activity Report</DocumentAlias>
<DocumentAlias namingSystem="EC">Daily Production and Operation Report</DocumentAlias>
<DocumentDate>2011-09-14T00:00:00</DocumentDate>
<documentClass namingSystem="EC">DAR</documentClass>
<documentClass namingSystem="EC">DDR</documentClass>
<documentClass namingSystem="EC">DPAR</documentClass>
<documentClass namingSystem="EC">DPOR</documentClass>
<documentClass namingSystem="EC">DPR</documentClass>
<documentClass namingSystem="EC">Ekofisk</documentClass>
<FileCreationInformation>
<FileCreationDate>2011-09-15T04:38:51</FileCreationDate>
<SoftwareName>EnergyComponents</SoftwareName>
<FileCreator>Ekofisk</FileCreator>
<Comment>File created by : Ekofisk</Comment>
</FileCreationInformation>
<SecurityInformation>
<Class>Partner confidential</Class>
<System>License partners</System>
<EndDate>2008-05-02T10:00:00</EndDate>
<Comment>Valid for partners only</Comment>
</SecurityInformation>
<Owner>Ekofisk</Owner>
</documentInfo>
<wellSet>
<well uid="74F0F7CBB525B048E043990F1EAEB048">
<name>2/4M-01</name>
<wellboreSet>
<wellbore uid="74F0F7CBB525B048E043990F1EAEB048-wellbore">
<name>2/4M-01-wellbore</name>
<wellboreIntervalSet>
<wellboreInterval>
<name>2/4M-01-wellbore</name>
</wellboreInterval>
</wellboreIntervalSet>
<wellTestSet>
<wellTest>
<name>2/4M-01</name>
<testDate>2011-09-03T07:00:01</testDate>
<testType>NA</testType>
<chokeOrificeSize uom="in/64">15.3000002</chokeOrificeSize>
<productFlowPort uidRef="74F0F7CBB525B048E043990F1EAEB048">outlet</productFlowPort>
<standardTempPres>15 degC 1 atm</standardTempPres>
<productionTest>
<testDuration uom="h">4.00027777777777777777777777777777777778</testDuration>
<wellheadData>
<temperature uom="degC">57.89189583333333333333333333333333333333</temperature>
<flowingPressure uom="bar">24.28525</flowingPressure>
<chokeOrificeSize uom="in/64">15.3000002</chokeOrificeSize>
</wellheadData>
<separatorData>
<separatorPressure uom="bar">24.28525</separatorPressure>
<separatorTemperature uom="degC">57.89189583333333333333333333333333333333</separatorTemperature>
</separatorData>
<productionTestResults>
<oilRate>
<fluidRateStdTempPres uom="m3/d">198.42636724550405</fluidRateStdTempPres>
</oilRate>
<gasRate>
<fluidRateStdTempPres uom="m3/d">47780.95567704101</fluidRateStdTempPres>
</gasRate>
<waterRate>
<fluidRate uom="m3/d">50.056324583333335</fluidRate>
</waterRate>
<gasOilRatio uom="m3/m3">240.799427718816094926277552067535508239</gasOilRatio>
</productionTestResults>
</productionTest>
</wellTest>
</wellTestSet>
</wellbore>
</wellboreSet>
</well>
</wellSet>
<productionOperationSet>
<productionOperation uid="74F0F7CB84FBB048E043990F1EAEB048">
<name>Ekofisk production</name>
<installation>Ekofisk production</installation>
<contextFacility uidRef="74F0F7CB837FB048E043990F1EAEB048" namingSystem="EC" kind="field">GREATER_EKOFISK</contextFacility>
<kind>DDR</kind>
<periodKind>day</periodKind>
<dateStart>2011-09-14</dateStart>
<dateEnd>2011-09-15</dateEnd>
<operator>
<name>ConocoPhillips</name>
<role>operator</role>
</operator>
<title namingSystem="EC">Ekofisk Daily Production</title>
<geographicContext>
<country>Norway</country>
<field namingSystem="EC">Ekofisk</field>
<offshoreLocation>
<areaName>Ekofisk</areaName>
<blockID>24/6</blockID>
<northSeaOffshore>
<areaName>Ekofisk</areaName>
<quadrant>24</quadrant>
<blockSuffix>6</blockSuffix>
</northSeaOffshore>
</offshoreLocation>
</geographicContext>
<issueDate>2011-09-15</issueDate>
<approvalDate>1900-01-01</approvalDate>
<approver>
<name>notyet</name>
<role>notyet</role>
<personName>
<first>notyet</first>
<middle>notyet</middle>
<last>notyet</last>
</personName>
<email>notyet</email>
</approver>
</productionOperation>
</productionOperationSet>
</WITSMLComposite>