David Price

Added Production Saleable table and completed Production and Well Production

......@@ -1485,7 +1485,7 @@ mpr-tables:ProductionFlows
mpr-tables:ProductionFlowsAll
rdf:type rhspin:TableTemplate ;
rdfs:label "Production5"^^xsd:string ;
rdfs:label "Production"^^xsd:string ;
rdfs:subClassOf rhspin:MPRGTableTemplates ;
spin:body
[ rdf:type sp:Select ;
......@@ -1557,7 +1557,7 @@ mpr-tables:ProductionFlowsAll
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Sale> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#SaleableFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
......@@ -1620,6 +1620,18 @@ mpr-tables:ProductionFlowsAll
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "materialQuantityValue"^^xsd:string
......@@ -1814,7 +1826,7 @@ mpr-tables:ProductionFlowsAll
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowGrossOrNetType> ;
sp:predicate rdf:type ;
......@@ -1831,18 +1843,6 @@ mpr-tables:ProductionFlowsAll
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowMaterialType"^^xsd:string
] ;
sp:predicate rdf:type ;
......@@ -2438,6 +2438,429 @@ mpr-tables:ProductionInventoryOwnership
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Volume"^^xsd:string "Owner"^^xsd:string) .
mpr-tables:ProductionSales
rdf:type rhspin:TableTemplate ;
rdfs:label "Production Saleable"^^xsd:string ;
rdfs:subClassOf rhspin:MPRGTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "purposeTypeName"^^xsd:string
] [ sp:varName "materialTypeName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "purposeTypeName"^^xsd:string
] [ sp:varName "materialTypeName"^^xsd:string
] [ sp:varName "massValueString"^^xsd:string
] [ sp:varName "volumeValueString"^^xsd:string
] [ sp:varName "densityValueString"^^xsd:string
] [ sp:varName "definitionTypeName"^^xsd:string
] [ sp:varName "definitionSubTypeName"^^xsd:string
] [ sp:varName "grossOrNet"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowNetwork"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#SaleableFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
])
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneMonth> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "materialQuantityValue"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialQuantityValue"^^xsd:string
]
] [ sp:object
[ sp:varName "materialValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "materialProperty"^^xsd:string
] ;
sp:subject
[ sp:varName "materialQuantityValue"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialProperty"^^xsd:string
]
] [ sp:object
[ sp:varName "materialPropertyName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "materialProperty"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 [ rdf:type spif:decimalFormat ;
arg:number
[ sp:varName "materialValue"^^xsd:string
] ;
arg:pattern "#.##"
] ;
sp:arg2 " " ;
sp:arg3 [ sp:varName "materialPropertyName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "massValueString"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "stateOfMaterialThatFlowsInPeriodVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "stateVolume"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "stateOfMaterialThatFlowsInPeriodVolume"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "stateVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumePredicate"^^xsd:string
] ;
sp:subject
[ sp:varName "stateVolume"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumePredicate"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeUnit"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "volumePredicate"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 [ rdf:type spif:decimalFormat ;
arg:number
[ sp:varName "volumeValue"^^xsd:string
] ;
arg:pattern "#.##"
] ;
sp:arg2 " " ;
sp:arg3 [ sp:varName "volumeUnit"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeValueString"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "stateOfMaterialThatFlowsInPeriodDensity"^^xsd:string
]
] [ sp:object
[ sp:varName "stateDensity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "stateOfMaterialThatFlowsInPeriodDensity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "stateDensity"^^xsd:string
]
] [ sp:object
[ sp:varName "densityValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "densityPredicate"^^xsd:string
] ;
sp:subject
[ sp:varName "stateDensity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "densityPredicate"^^xsd:string
]
] [ sp:object
[ sp:varName "densityUnit"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "densityPredicate"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 [ rdf:type spif:decimalFormat ;
arg:number
[ sp:varName "densityValue"^^xsd:string
] ;
arg:pattern "#.##"
] ;
sp:arg2 " " ;
sp:arg3 [ sp:varName "densityUnit"^^xsd:string
]
] ;
sp:variable
[ sp:varName "densityValueString"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
] [ sp:object
[ sp:varName "purposeTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowPartGrossOrNetType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowGrossOrNetType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowPartGrossOrNetType"^^xsd:string
]
] [ sp:object
[ sp:varName "grossOrNet"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlowPartGrossOrNetType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowMaterialType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowMaterialType"^^xsd:string
]
] [ sp:object
[ sp:varName "materialTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productFlowMaterialType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
] [ sp:object
[ sp:varName "definitionTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionSubType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionSubType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowDefinitionSubType"^^xsd:string
]
] [ sp:object
[ sp:varName "definitionSubTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlowDefinitionSubType"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Purpose"^^xsd:string "Material"^^xsd:string "Mass"^^xsd:string "Volume"^^xsd:string "Density"^^xsd:string "Flow type"^^xsd:string "Flow subtype"^^xsd:string "Gross/Net"^^xsd:string) .
mpr-tables:WellProductionFlows
rdf:type rhspin:TableTemplate ;
rdfs:label "Well Production"^^xsd:string ;
......@@ -2454,7 +2877,6 @@ mpr-tables:WellProductionFlows
] [ sp:varName "materialTypeName"^^xsd:string
] [ sp:varName "volumeValueString"^^xsd:string
] [ sp:varName "dayValue"^^xsd:string
] [ sp:varName "temperatureInCelcius"^^xsd:string
] [ sp:varName "definitionTypeName"^^xsd:string
] [ sp:varName "definitionSubTypeName"^^xsd:string
] [ sp:varName "grossOrNet"^^xsd:string
......@@ -2574,6 +2996,18 @@ mpr-tables:WellProductionFlows
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowFacility"^^xsd:string
......@@ -2604,6 +3038,34 @@ mpr-tables:WellProductionFlows
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "producingWell"^^xsd:string
]
] [ sp:object
[ sp:varName "wellStatusType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "producingWell"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-well#WellStatusType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellStatusType"^^xsd:string
]
] [ sp:object
[ sp:varName "wellStatus"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellStatusType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
......@@ -2687,7 +3149,7 @@ mpr-tables:WellProductionFlows
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowGrossOrNetType> ;
sp:predicate rdf:type ;
......@@ -2704,18 +3166,6 @@ mpr-tables:WellProductionFlows
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowMaterialType"^^xsd:string
] ;
sp:predicate rdf:type ;
......@@ -2762,7 +3212,7 @@ mpr-tables:WellProductionFlows
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionSubType> ;
sp:predicate rdf:type ;
......@@ -2779,4 +3229,4 @@ mpr-tables:WellProductionFlows
])
])
] ;
rhspin:tableHeaders ("Wellbore"^^xsd:string "Status"^^xsd:string "Purpose"^^xsd:string "Material"^^xsd:string "Volume"^^xsd:string "Days"^^xsd:string "Temperature C"^^xsd:string "Flow type"^^xsd:string "Flow subtype"^^xsd:string "Gross/Net"^^xsd:string) .
rhspin:tableHeaders ("Wellbore"^^xsd:string "Status"^^xsd:string "Purpose"^^xsd:string "Material"^^xsd:string "Volume"^^xsd:string "Days"^^xsd:string "Flow type"^^xsd:string "Flow subtype"^^xsd:string "Gross/Net"^^xsd:string) .
......
......@@ -178,6 +178,8 @@ OPTIONAL {
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......