David Price

added product flow table and set SWP to be for DailyProductionReport

...@@ -129,23 +129,25 @@ dpr-tables:PersonnelInformation ...@@ -129,23 +129,25 @@ dpr-tables:PersonnelInformation
129 ] ; 129 ] ;
130 rhspin:tableHeaders ("Facility"^^xsd:string "Crew"^^xsd:string "Crew Type"^^xsd:string) . 130 rhspin:tableHeaders ("Facility"^^xsd:string "Crew"^^xsd:string "Crew Type"^^xsd:string) .
131 131
132 -dpr-tables:ProductVolumes 132 +dpr-tables:ProductFlows
133 rdf:type rhspin:TableTemplate ; 133 rdf:type rhspin:TableTemplate ;
134 - rdfs:label "Product Volume List"^^xsd:string ; 134 + rdfs:label "Product Flow Details"^^xsd:string ;
135 rdfs:subClassOf rhspin:DPRTableTemplates ; 135 rdfs:subClassOf rhspin:DPRTableTemplates ;
136 spin:body 136 spin:body
137 [ rdf:type sp:Select ; 137 [ rdf:type sp:Select ;
138 sp:orderBy ([ sp:varName "flowInOutFacilityName"^^xsd:string 138 sp:orderBy ([ sp:varName "flowInOutFacilityName"^^xsd:string
139 ] [ sp:varName "flowPurposeName"^^xsd:string 139 ] [ sp:varName "flowPurposeName"^^xsd:string
140 ] [ sp:varName "flowDefinitionName"^^xsd:string 140 ] [ sp:varName "flowDefinitionName"^^xsd:string
141 + ] [ sp:varName "productMaterialName"^^xsd:string
141 ]) ; 142 ]) ;
142 sp:resultVariables ([ sp:varName "containingWholeFacilityName"^^xsd:string 143 sp:resultVariables ([ sp:varName "containingWholeFacilityName"^^xsd:string
143 ] [ sp:varName "flowInOutFacilityName"^^xsd:string 144 ] [ sp:varName "flowInOutFacilityName"^^xsd:string
144 ] [ sp:varName "flowPurposeName"^^xsd:string 145 ] [ sp:varName "flowPurposeName"^^xsd:string
145 ] [ sp:varName "flowDefinitionName"^^xsd:string 146 ] [ sp:varName "flowDefinitionName"^^xsd:string
147 + ] [ sp:varName "productMaterialName"^^xsd:string
146 ] [ sp:varName "densityValue"^^xsd:string 148 ] [ sp:varName "densityValue"^^xsd:string
147 - ] [ sp:varName "pressureValue"^^xsd:string
148 ] [ sp:varName "temperatureValue"^^xsd:string 149 ] [ sp:varName "temperatureValue"^^xsd:string
150 + ] [ sp:varName "pressureValue"^^xsd:string
149 ]) ; 151 ]) ;
150 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 152 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
151 sp:predicate rdf:type ; 153 sp:predicate rdf:type ;
...@@ -277,27 +279,75 @@ dpr-tables:ProductVolumes ...@@ -277,27 +279,75 @@ dpr-tables:ProductVolumes
277 sp:subject 279 sp:subject
278 [ sp:varName "flowDefinition"^^xsd:string 280 [ sp:varName "flowDefinition"^^xsd:string
279 ] 281 ]
282 + ] [ sp:object
283 + [ sp:varName "productFlow"^^xsd:string
284 + ] ;
285 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
286 + sp:subject
287 + [ sp:varName "flow"^^xsd:string
288 + ]
289 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
290 + sp:predicate rdf:type ;
291 + sp:subject
292 + [ sp:varName "productFlow"^^xsd:string
293 + ]
294 + ] [ sp:object
295 + [ sp:varName "productFlowWholeLife"^^xsd:string
296 + ] ;
297 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
298 + sp:subject
299 + [ sp:varName "productFlow"^^xsd:string
300 + ]
301 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
302 + sp:predicate rdf:type ;
303 + sp:subject
304 + [ sp:varName "productFlowWholeLife"^^xsd:string
305 + ]
306 + ] [ sp:object
307 + [ sp:varName "productMaterialType"^^xsd:string
308 + ] ;
309 + sp:predicate rdf:type ;
310 + sp:subject
311 + [ sp:varName "productFlowWholeLife"^^xsd:string
312 + ]
313 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ;
314 + sp:predicate rdf:type ;
315 + sp:subject
316 + [ sp:varName "productMaterialType"^^xsd:string
317 + ]
318 + ] [ sp:object
319 + [ sp:varName "productMaterialName"^^xsd:string
320 + ] ;
321 + sp:predicate rdfs:label ;
322 + sp:subject
323 + [ sp:varName "productMaterialType"^^xsd:string
324 + ]
280 ] [ rdf:type sp:Optional ; 325 ] [ rdf:type sp:Optional ;
281 sp:elements ([ sp:object 326 sp:elements ([ sp:object
282 - [ sp:varName "temperature"^^xsd:string 327 + [ sp:varName "pressure"^^xsd:string
283 ] ; 328 ] ;
284 sp:predicate rdf:type ; 329 sp:predicate rdf:type ;
285 sp:subject 330 sp:subject
286 - [ sp:varName "flow"^^xsd:string 331 + [ sp:varName "productFlow"^^xsd:string
287 ] 332 ]
288 ] [ sp:object 333 ] [ sp:object
289 - [ sp:varName "density"^^xsd:string 334 + [ sp:varName "temperature"^^xsd:string
290 ] ; 335 ] ;
291 sp:predicate rdf:type ; 336 sp:predicate rdf:type ;
292 sp:subject 337 sp:subject
293 - [ sp:varName "flow"^^xsd:string 338 + [ sp:varName "productFlow"^^xsd:string
294 ] 339 ]
295 ] [ sp:object 340 ] [ sp:object
296 - [ sp:varName "pressure"^^xsd:string 341 + [ sp:varName "density"^^xsd:string
297 ] ; 342 ] ;
298 sp:predicate rdf:type ; 343 sp:predicate rdf:type ;
299 sp:subject 344 sp:subject
300 - [ sp:varName "flow"^^xsd:string 345 + [ sp:varName "productFlow"^^xsd:string
346 + ]
347 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
348 + sp:predicate rdf:type ;
349 + sp:subject
350 + [ sp:varName "temperature"^^xsd:string
301 ] 351 ]
302 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ; 352 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
303 sp:predicate rdf:type ; 353 sp:predicate rdf:type ;
...@@ -309,11 +359,6 @@ dpr-tables:ProductVolumes ...@@ -309,11 +359,6 @@ dpr-tables:ProductVolumes
309 sp:subject 359 sp:subject
310 [ sp:varName "density"^^xsd:string 360 [ sp:varName "density"^^xsd:string
311 ] 361 ]
312 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
313 - sp:predicate rdf:type ;
314 - sp:subject
315 - [ sp:varName "temperature"^^xsd:string
316 - ]
317 ] [ sp:object 362 ] [ sp:object
318 [ sp:varName "temperatureValue"^^xsd:string 363 [ sp:varName "temperatureValue"^^xsd:string
319 ] ; 364 ] ;
...@@ -338,7 +383,7 @@ dpr-tables:ProductVolumes ...@@ -338,7 +383,7 @@ dpr-tables:ProductVolumes
338 ]) 383 ])
339 ]) 384 ])
340 ] ; 385 ] ;
341 - 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) . 386 + 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) .
342 387
343 dpr-tables:ProductionOperationActivity 388 dpr-tables:ProductionOperationActivity
344 rdf:type rhspin:TableTemplate ; 389 rdf:type rhspin:TableTemplate ;
...@@ -492,6 +537,217 @@ dpr-tables:ProductionOperationActivity ...@@ -492,6 +537,217 @@ dpr-tables:ProductionOperationActivity
492 ] ; 537 ] ;
493 rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string) . 538 rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string) .
494 539
540 +dpr-tables:ProductionVolumes
541 + rdf:type rhspin:TableTemplate ;
542 + rdfs:label "Production Volume List"^^xsd:string ;
543 + rdfs:subClassOf rhspin:DPRTableTemplates ;
544 + spin:body
545 + [ rdf:type sp:Select ;
546 + sp:orderBy ([ sp:varName "flowInOutFacilityName"^^xsd:string
547 + ] [ sp:varName "flowPurposeName"^^xsd:string
548 + ] [ sp:varName "flowDefinitionName"^^xsd:string
549 + ]) ;
550 + sp:resultVariables ([ sp:varName "containingWholeFacilityName"^^xsd:string
551 + ] [ sp:varName "flowInOutFacilityName"^^xsd:string
552 + ] [ sp:varName "flowPurposeName"^^xsd:string
553 + ] [ sp:varName "flowDefinitionName"^^xsd:string
554 + ] [ sp:varName "densityValue"^^xsd:string
555 + ] [ sp:varName "pressureValue"^^xsd:string
556 + ] [ sp:varName "temperatureValue"^^xsd:string
557 + ]) ;
558 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
559 + sp:predicate rdf:type ;
560 + sp:subject
561 + [ sp:varName "report"^^xsd:string
562 + ]
563 + ] [ sp:object
564 + [ sp:varName "report"^^xsd:string
565 + ] ;
566 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
567 + sp:subject
568 + [ sp:varName "productvolumereport"^^xsd:string
569 + ]
570 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
571 + sp:predicate rdf:type ;
572 + sp:subject
573 + [ sp:varName "productvolumereport"^^xsd:string
574 + ]
575 + ] [ sp:object
576 + [ sp:varName "productionflownetwork"^^xsd:string
577 + ] ;
578 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
579 + sp:subject
580 + [ sp:varName "productvolumereport"^^xsd:string
581 + ]
582 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
583 + sp:predicate rdf:type ;
584 + sp:subject
585 + [ sp:varName "productionflownetwork"^^xsd:string
586 + ]
587 + ] [ sp:object
588 + [ sp:varName "flow"^^xsd:string
589 + ] ;
590 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
591 + sp:subject
592 + [ sp:varName "productionflownetwork"^^xsd:string
593 + ]
594 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
595 + sp:predicate rdf:type ;
596 + sp:subject
597 + [ sp:varName "flow"^^xsd:string
598 + ]
599 + ] [ sp:object
600 + [ sp:varName "productionflownetwork"^^xsd:string
601 + ] ;
602 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
603 + sp:subject
604 + [ sp:varName "productionflownetworkFacility"^^xsd:string
605 + ]
606 + ] [ sp:object
607 + [ sp:varName "containingWholeFacility"^^xsd:string
608 + ] ;
609 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
610 + sp:subject
611 + [ sp:varName "productionflownetworkFacility"^^xsd:string
612 + ]
613 + ] [ sp:object
614 + [ sp:varName "containingWholeFacilityName"^^xsd:string
615 + ] ;
616 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
617 + sp:subject
618 + [ sp:varName "containingWholeFacility"^^xsd:string
619 + ]
620 + ] [ sp:object
621 + [ sp:varName "flowWhole"^^xsd:string
622 + ] ;
623 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
624 + sp:subject
625 + [ sp:varName "flow"^^xsd:string
626 + ]
627 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
628 + sp:predicate rdf:type ;
629 + sp:subject
630 + [ sp:varName "flowWhole"^^xsd:string
631 + ]
632 + ] [ sp:object
633 + [ sp:varName "flowInOutFacility"^^xsd:string
634 + ] ;
635 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
636 + sp:subject
637 + [ sp:varName "flowWhole"^^xsd:string
638 + ]
639 + ] [ rdf:type sp:TriplePath ;
640 + sp:object
641 + [ sp:varName "flowInOutFacilityName"^^xsd:string
642 + ] ;
643 + sp:path [ rdf:type sp:AltPath ;
644 + sp:path1 <http://www.reportinghub.no/ep/schema/core#name> ;
645 + sp:path2 <http://www.reportinghub.no/np/schema/npd#name>
646 + ] ;
647 + sp:subject
648 + [ sp:varName "flowInOutFacility"^^xsd:string
649 + ]
650 + ] [ sp:object
651 + [ sp:varName "flowPurpose"^^xsd:string
652 + ] ;
653 + sp:predicate rdf:type ;
654 + sp:subject
655 + [ sp:varName "flowWhole"^^xsd:string
656 + ]
657 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ;
658 + sp:predicate rdf:type ;
659 + sp:subject
660 + [ sp:varName "flowPurpose"^^xsd:string
661 + ]
662 + ] [ sp:object
663 + [ sp:varName "flowPurposeName"^^xsd:string
664 + ] ;
665 + sp:predicate rdfs:label ;
666 + sp:subject
667 + [ sp:varName "flowPurpose"^^xsd:string
668 + ]
669 + ] [ sp:object
670 + [ sp:varName "flowDefinition"^^xsd:string
671 + ] ;
672 + sp:predicate rdf:type ;
673 + sp:subject
674 + [ sp:varName "flowWhole"^^xsd:string
675 + ]
676 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionType> ;
677 + sp:predicate rdf:type ;
678 + sp:subject
679 + [ sp:varName "flowDefinition"^^xsd:string
680 + ]
681 + ] [ sp:object
682 + [ sp:varName "flowDefinitionName"^^xsd:string
683 + ] ;
684 + sp:predicate rdfs:label ;
685 + sp:subject
686 + [ sp:varName "flowDefinition"^^xsd:string
687 + ]
688 + ] [ rdf:type sp:Optional ;
689 + sp:elements ([ sp:object
690 + [ sp:varName "temperature"^^xsd:string
691 + ] ;
692 + sp:predicate rdf:type ;
693 + sp:subject
694 + [ sp:varName "flow"^^xsd:string
695 + ]
696 + ] [ sp:object
697 + [ sp:varName "density"^^xsd:string
698 + ] ;
699 + sp:predicate rdf:type ;
700 + sp:subject
701 + [ sp:varName "flow"^^xsd:string
702 + ]
703 + ] [ sp:object
704 + [ sp:varName "pressure"^^xsd:string
705 + ] ;
706 + sp:predicate rdf:type ;
707 + sp:subject
708 + [ sp:varName "flow"^^xsd:string
709 + ]
710 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
711 + sp:predicate rdf:type ;
712 + sp:subject
713 + [ sp:varName "pressure"^^xsd:string
714 + ]
715 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
716 + sp:predicate rdf:type ;
717 + sp:subject
718 + [ sp:varName "density"^^xsd:string
719 + ]
720 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
721 + sp:predicate rdf:type ;
722 + sp:subject
723 + [ sp:varName "temperature"^^xsd:string
724 + ]
725 + ] [ sp:object
726 + [ sp:varName "temperatureValue"^^xsd:string
727 + ] ;
728 + sp:predicate <http://www.reportinghub.no/ep/schema/core#kelvin> ;
729 + sp:subject
730 + [ sp:varName "temperature"^^xsd:string
731 + ]
732 + ] [ sp:object
733 + [ sp:varName "pressureValue"^^xsd:string
734 + ] ;
735 + sp:predicate <http://www.reportinghub.no/ep/schema/core#pascal> ;
736 + sp:subject
737 + [ sp:varName "pressure"^^xsd:string
738 + ]
739 + ] [ sp:object
740 + [ sp:varName "densityValue"^^xsd:string
741 + ] ;
742 + sp:predicate <http://www.reportinghub.no/ep/schema/core#kilogram_m-3> ;
743 + sp:subject
744 + [ sp:varName "density"^^xsd:string
745 + ]
746 + ])
747 + ])
748 + ] ;
749 + 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) .
750 +
495 dpr-tables:WellInformation 751 dpr-tables:WellInformation
496 rdf:type rhspin:TableTemplate ; 752 rdf:type rhspin:TableTemplate ;
497 rdfs:subClassOf rhspin:DPRTableTemplates ; 753 rdfs:subClassOf rhspin:DPRTableTemplates ;
......
...@@ -50,8 +50,8 @@ WHERE { ...@@ -50,8 +50,8 @@ WHERE {
50 50
51 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" /> 51 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
52 52
53 - <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductVolumes" /> 53 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionVolumes" />
54 - 54 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" />
55 55
56 <hr /> 56 <hr />
57 <h2>General Well Test Information</h2> 57 <h2>General Well Test Information</h2>
......
...@@ -28,7 +28,7 @@ arg:template ...@@ -28,7 +28,7 @@ arg:template
28 rdfs:label "template"^^xsd:string ; 28 rdfs:label "template"^^xsd:string ;
29 rdfs:subPropertyOf sp:arg . 29 rdfs:subPropertyOf sp:arg .
30 30
31 -<http://www.reportinghub.no/ep/schema/report#ProductionReport> 31 +<http://www.reportinghub.no/ep/schema/report#DailyProductionReport>
32 ui:instanceView 32 ui:instanceView
33 [ rdf:type dprswp:DailyProductionReportView ; 33 [ rdf:type dprswp:DailyProductionReportView ;
34 arg:report spin:_this 34 arg:report spin:_this
...@@ -47,7 +47,7 @@ dprswp:DailyProductionReportView ...@@ -47,7 +47,7 @@ dprswp:DailyProductionReportView
47 [ rdf:type spl:Argument ; 47 [ rdf:type spl:Argument ;
48 rdfs:comment "The report to display."^^xsd:string ; 48 rdfs:comment "The report to display."^^xsd:string ;
49 spl:predicate arg:report ; 49 spl:predicate arg:report ;
50 - spl:valueType <http://www.reportinghub.no/ep/schema/report#ProductionReport> 50 + spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyProductionReport>
51 ] ; 51 ] ;
52 ui:headIncludes 52 ui:headIncludes
53 [ rdf:type html:Link ; 53 [ rdf:type html:Link ;
...@@ -67,7 +67,7 @@ dprswp:Table ...@@ -67,7 +67,7 @@ dprswp:Table
67 rdfs:comment "The report that serves as root of the template."^^xsd:string ; 67 rdfs:comment "The report that serves as root of the template."^^xsd:string ;
68 spl:optional "true"^^xsd:boolean ; 68 spl:optional "true"^^xsd:boolean ;
69 spl:predicate arg:report ; 69 spl:predicate arg:report ;
70 - spl:valueType <http://www.reportinghub.no/ep/schema/report#ProductionReport> 70 + spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyProductionReport>
71 ] ; 71 ] ;
72 spin:constraint 72 spin:constraint
73 [ rdf:type spl:Argument ; 73 [ rdf:type spl:Argument ;
......