David Price

added product flow table and set SWP to be for DailyProductionReport

......@@ -129,23 +129,25 @@ dpr-tables:PersonnelInformation
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Crew"^^xsd:string "Crew Type"^^xsd:string) .
dpr-tables:ProductVolumes
dpr-tables:ProductFlows
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,27 +279,75 @@ dpr-tables:ProductVolumes
sp:subject
[ sp:varName "flowDefinition"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlow"^^xsd:string
] ;
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 "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 "productFlowWholeLife"^^xsd:string
]
] [ sp:object
[ sp:varName "productMaterialType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWholeLife"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ;
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 "temperature"^^xsd:string
[ sp:varName "pressure"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "density"^^xsd:string
[ sp:varName "temperature"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "pressure"^^xsd:string
[ sp:varName "density"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ 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 ;
......@@ -309,11 +359,6 @@ dpr-tables:ProductVolumes
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
] ;
......@@ -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 Temperature"^^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 Pressure"^^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 ;
......
......@@ -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:ProductionVolumes" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" />
<hr />
<h2>General Well Test Information</h2>
......
......@@ -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#DailyProductionReport>
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#DailyProductionReport>
] ;
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#DailyProductionReport>
] ;
spin:constraint
[ rdf:type spl:Argument ;
......