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
2012-08-26 16:22:19 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bb77e93bb6f18031589a3096bd087067674f3a01
bb77e93b
1 parent
94675442
added product flow table and set SWP to be for DailyProductionReport
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
275 additions
and
19 deletions
www.reportinghub.no/ep/spin/SPIN_EP-DPR-tables-v1.0.spin.ttl
www.reportinghub.no/swp/DailyProductionReport.uispin.html
www.reportinghub.no/swp/SWP_dpr.ui.ttl
www.reportinghub.no/ep/spin/SPIN_EP-DPR-tables-v1.0.spin.ttl
View file @
bb77e93
...
...
@@ -129,23 +129,25 @@ dpr-tables:PersonnelInformation
]
;
rhspin:
tableHeaders
(
"Facility"
^^
xsd:
string
"Crew"
^^
xsd:
string
"Crew Type"
^^
xsd:
string
)
.
dpr-tables:
Product
Volume
s
dpr-tables:
Product
Flow
s
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Product
Volume List
"
^^
xsd:
string
;
rdfs:
label
"Product
Flow Details
"
^^
xsd:
string
;
rdfs:
subClassOf
rhspin:
DPRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
orderBy
([
sp:
varName
"flowInOutFacilityName"
^^
xsd:
string
]
[
sp:
varName
"flowPurposeName"
^^
xsd:
string
]
[
sp:
varName
"flowDefinitionName"
^^
xsd:
string
]
[
sp:
varName
"productMaterialName"
^^
xsd:
string
])
;
sp:
resultVariables
([
sp:
varName
"containingWholeFacilityName"
^^
xsd:
string
]
[
sp:
varName
"flowInOutFacilityName"
^^
xsd:
string
]
[
sp:
varName
"flowPurposeName"
^^
xsd:
string
]
[
sp:
varName
"flowDefinitionName"
^^
xsd:
string
]
[
sp:
varName
"productMaterialName"
^^
xsd:
string
]
[
sp:
varName
"densityValue"
^^
xsd:
string
]
[
sp:
varName
"pressureValue"
^^
xsd:
string
]
[
sp:
varName
"temperatureValue"
^^
xsd:
string
]
[
sp:
varName
"pressureValue"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
...
...
@@ -277,43 +279,86 @@ dpr-tables:ProductVolumes
sp:
subject
[
sp:
varName
"flowDefinition"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"temperature"
^^
xsd:
string
]
[
sp:
object
[
sp:
varName
"productFlow"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#hasMixedPart>
;
sp:
subject
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productFlow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"density
"
^^
xsd:
string
[
sp:
varName
"productFlowWholeLife
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"productFlow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flow
"
^^
xsd:
string
[
sp:
varName
"productFlowWholeLife
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"pressur
e"
^^
xsd:
string
[
sp:
varName
"productMaterialTyp
e"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flow
"
^^
xsd:
string
[
sp:
varName
"productFlowWholeLife
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Pressur
e>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductMaterialTyp
e>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productMaterialType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productMaterialName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"productMaterialType"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"pressure"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productFlow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Density>
;
]
[
sp:
object
[
sp:
varName
"temperature"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productFlow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"density"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productFlow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Temperature>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temperature"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Pressure>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"pressure"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Density>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"density"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temperatureValue"
^^
xsd:
string
]
;
...
...
@@ -338,7 +383,7 @@ dpr-tables:ProductVolumes
])
])
]
;
rhspin:
tableHeaders
(
"Field"
^^
xsd:
string
"Facility Name"
^^
xsd:
string
"Flow Purpose"
^^
xsd:
string
"Flow Definition"
^^
xsd:
string
"
Flow Density"
^^
xsd:
string
"Flow Pressure"
^^
xsd:
string
"Flow Temperat
ure"
^^
xsd:
string
)
.
rhspin:
tableHeaders
(
"Field"
^^
xsd:
string
"Facility Name"
^^
xsd:
string
"Flow Purpose"
^^
xsd:
string
"Flow Definition"
^^
xsd:
string
"
Material"
^^
xsd:
string
"Flow Density"
^^
xsd:
string
"Flow Temperature"
^^
xsd:
string
"Flow Press
ure"
^^
xsd:
string
)
.
dpr-tables:
ProductionOperationActivity
rdf:
type
rhspin:
TableTemplate
;
...
...
@@ -492,6 +537,217 @@ dpr-tables:ProductionOperationActivity
]
;
rhspin:
tableHeaders
(
"Facility"
^^
xsd:
string
"Activity Type"
^^
xsd:
string
"Started or Nominally At"
^^
xsd:
string
"Finished At"
^^
xsd:
string
"Desciption"
^^
xsd:
string
)
.
dpr-tables:
ProductionVolumes
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Production Volume List"
^^
xsd:
string
;
rdfs:
subClassOf
rhspin:
DPRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
orderBy
([
sp:
varName
"flowInOutFacilityName"
^^
xsd:
string
]
[
sp:
varName
"flowPurposeName"
^^
xsd:
string
]
[
sp:
varName
"flowDefinitionName"
^^
xsd:
string
])
;
sp:
resultVariables
([
sp:
varName
"containingWholeFacilityName"
^^
xsd:
string
]
[
sp:
varName
"flowInOutFacilityName"
^^
xsd:
string
]
[
sp:
varName
"flowPurposeName"
^^
xsd:
string
]
[
sp:
varName
"flowDefinitionName"
^^
xsd:
string
]
[
sp:
varName
"densityValue"
^^
xsd:
string
]
[
sp:
varName
"pressureValue"
^^
xsd:
string
]
[
sp:
varName
"temperatureValue"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"report"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"report"
^^
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
"flow"
^^
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
"flow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionflownetwork"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
sp:
subject
[
sp:
varName
"productionflownetworkFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"containingWholeFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"productionflownetworkFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"containingWholeFacilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"containingWholeFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"flowWhole"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flowWhole"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"flowInOutFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
;
sp:
subject
[
sp:
varName
"flowWhole"
^^
xsd:
string
]
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
[
sp:
varName
"flowInOutFacilityName"
^^
xsd:
string
]
;
sp:
path
[
rdf:
type
sp:
AltPath
;
sp:
path1
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
path2
<http://www.reportinghub.no/np/schema/npd#name>
]
;
sp:
subject
[
sp:
varName
"flowInOutFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"flowPurpose"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flowWhole"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flowPurpose"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"flowPurposeName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"flowPurpose"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"flowDefinition"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flowWhole"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flowDefinition"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"flowDefinitionName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"flowDefinition"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"temperature"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"density"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"pressure"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Pressure>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"pressure"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Density>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"density"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Temperature>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temperature"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temperatureValue"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#kelvin>
;
sp:
subject
[
sp:
varName
"temperature"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"pressureValue"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#pascal>
;
sp:
subject
[
sp:
varName
"pressure"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"densityValue"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#kilogram_m-3>
;
sp:
subject
[
sp:
varName
"density"
^^
xsd:
string
]
])
])
]
;
rhspin:
tableHeaders
(
"Field"
^^
xsd:
string
"Facility Name"
^^
xsd:
string
"Flow Purpose"
^^
xsd:
string
"Flow Definition"
^^
xsd:
string
"Flow Density"
^^
xsd:
string
"Flow Pressure"
^^
xsd:
string
"Flow Temperature"
^^
xsd:
string
)
.
dpr-tables:
WellInformation
rdf:
type
rhspin:
TableTemplate
;
rdfs:
subClassOf
rhspin:
DPRTableTemplates
;
...
...
www.reportinghub.no/swp/DailyProductionReport.uispin.html
View file @
bb77e93
...
...
@@ -50,8 +50,8 @@ WHERE {
<dprswp:Table
arg:report=
"{= ?report }"
arg:template=
"dpr-tables:ProductionOperationActivity"
/>
<dprswp:Table
arg:report=
"{= ?report }"
arg:template=
"dpr-tables:ProductVolumes"
/>
<dprswp:Table
arg:report=
"{= ?report }"
arg:template=
"dpr-tables:Product
ion
Volumes"
/>
<dprswp:Table
arg:report=
"{= ?report }"
arg:template=
"dpr-tables:ProductFlows"
/>
<hr
/>
<h2>
General Well Test Information
</h2>
...
...
www.reportinghub.no/swp/SWP_dpr.ui.ttl
View file @
bb77e93
...
...
@@ -28,7 +28,7 @@ arg:template
rdfs:
label
"template"
^^
xsd:
string
;
rdfs:
subPropertyOf
sp:
arg
.
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
<http://www.reportinghub.no/ep/schema/report#
Daily
ProductionReport>
ui:
instanceView
[
rdf:
type
dprswp:
DailyProductionReportView
;
arg:
report
spin:
_this
...
...
@@ -47,7 +47,7 @@ dprswp:DailyProductionReportView
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The report to display."
^^
xsd:
string
;
spl:
predicate
arg:
report
;
spl:
valueType
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
spl:
valueType
<http://www.reportinghub.no/ep/schema/report#
Daily
ProductionReport>
]
;
ui:
headIncludes
[
rdf:
type
html:
Link
;
...
...
@@ -67,7 +67,7 @@ dprswp:Table
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/report#ProductionReport>
spl:
valueType
<http://www.reportinghub.no/ep/schema/report#
Daily
ProductionReport>
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
...
...
Please
register
or
login
to post a comment