Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Price
2013-05-26 19:44:47 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fa17621d411ee976aba2caa6c66a6df7e204cb3f
fa17621d
1 parent
fb586743
Got well prroduction report working again
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
31 deletions
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
www.reportinghub.no/swp/MPRG.uispin.html
www.reportinghub.no/swp/MPRP.uispin.html
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
View file @
fa17621
...
...
@@ -3893,6 +3893,20 @@ mpr-tables:WellProductionFlows
[
sp:
varName
"productionFlowWhole"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/flow#SaleableFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlowWhole"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/flow#HydrocarbonAccountingFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlowWhole"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/flow#FlowToSale>
;
sp:
predicate
rdf:
type
;
sp:
subject
...
...
@@ -3931,40 +3945,33 @@ mpr-tables:WellProductionFlows
[
sp:
varName
"productionFlowMixedPart"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"product
ionFlowMixedPart
"
^^
xsd:
string
[
sp:
varName
"product
FlowInMonthMaterial
"
^^
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:
predicate
<http://www.reportinghub.no/ep/schema/flow#materialThatFlows>
;
sp:
subject
[
sp:
varName
"product
FlowInMonth
"
^^
xsd:
string
[
sp:
varName
"product
ionFlowMixedPart
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
core#PhysicalThingDuringOneMonth
>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
material#QuantityOfMaterial
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productFlowInMonth"
^^
xsd:
string
[
sp:
varName
"productFlowInMonth
Material
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productFlowInMonthMaterial"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
flow#materialThatFlows
>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
subject
[
sp:
varName
"
productFlowInMonth
"
^^
xsd:
string
[
sp:
varName
"
quantityofmaterialinaspecifiedstate
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productFlowWhole"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
productionFlowMixedPart
"
^^
xsd:
string
[
sp:
varName
"
quantityofmaterialinaspecifiedstate
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
flow#WholeLifeProductFlow
>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
material#QuantityOfMaterialInASpecifiedState
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
productFlowWhol
e"
^^
xsd:
string
[
sp:
varName
"
quantityofmaterialinaspecifiedstat
e"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
...
...
@@ -4024,7 +4031,7 @@ mpr-tables:WellProductionFlows
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"
productFlowInMonthMaterial
"
^^
xsd:
string
[
sp:
varName
"
quantityofmaterialinaspecifiedstate
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
...
...
@@ -4052,6 +4059,18 @@ mpr-tables:WellProductionFlows
[
sp:
varName
"volumeValueString"
^^
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
"productionFlowPurposeType"
^^
xsd:
string
...
...
@@ -4142,7 +4161,7 @@ mpr-tables:WellProductionFlows
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlow
Whole
"
^^
xsd:
string
[
sp:
varName
"productionFlow
MixedPart
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionSubType>
;
sp:
predicate
rdf:
type
;
...
...
@@ -4159,7 +4178,7 @@ mpr-tables:WellProductionFlows
])
])
]
;
rhspin:
tableHeaders
(
"Wellbore"
^^
xsd:
string
"Status"
^^
xsd:
string
"Purpose"
^^
xsd:
string
"Material"
^^
xsd:
string
"Volume"
^^
xsd:
string
"Day
s
"
^^
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
"Day"
^^
xsd:
string
"Flow type"
^^
xsd:
string
"Flow subtype"
^^
xsd:
string
"Gross/Net"
^^
xsd:
string
)
.
mpr-tables:
WellTest
rdf:
type
rhspin:
TableTemplate
;
...
...
www.reportinghub.no/swp/MPRG.uispin.html
View file @
fa17621
...
...
@@ -176,6 +176,9 @@ OPTIONAL {
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:GasSales"
/>
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:WellProductionFlows"
/>
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:Cargo"
/>
...
...
www.reportinghub.no/swp/MPRP.uispin.html
View file @
fa17621
...
...
@@ -3,15 +3,13 @@ let:report="{# SELECT ?report WHERE { ?report a ep-report:MonthlyProductionRepor
let:activity=
"{# SELECT ?activity WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity}}"
let:activityEnd=
"{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity . ?activity ep-activity:finishedAt ?activityEnd}}"
let:reportedFieldName=
"{# SELECT ?reportedFieldName
WHERE {
?report a ep-report:MonthlyProductionReportPartner .
?productVolumeReport ep-core:partOf ?report .
?productVolumeReport a ep-report:ProductVolumeReport .
?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
?productionFlowsInReportingPeriod a ep-flow:ProductionFlowNetwork .
?stateOfField ep-flow:facilityContainsFlow ?productionFlowsInReportingPeriod .
?stateOfField ep-core:temporalPartOf ?reportedField .
?reportedField npd:name ?reportedFieldName .
WHERE {
?report rdf:type ep-report:MonthlyProductionReportPartner .
?report ep-report:reportOn ?temporalpartofaproductionfacility .
?temporalpartofaproductionfacility rdf:type ep-fac:TemporalPartOfAProductionFacility .
?temporalpartofaproductionfacility ep-core:temporalPartOf ?productionfacility .
?productionfacility rdf:type ep-fac:Field .
?productionfacility npd:name ?reportedFieldName .
}}"
>
...
...
Please
register
or
login
to post a comment