David Price

Added near-complete shutdown production section

...@@ -3722,6 +3722,283 @@ dpr-tables:ProductionOperationMarineShip ...@@ -3722,6 +3722,283 @@ dpr-tables:ProductionOperationMarineShip
3722 ] ; 3722 ] ;
3723 rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Ship"^^xsd:string "Dated Comment"^^xsd:string) . 3723 rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Ship"^^xsd:string "Dated Comment"^^xsd:string) .
3724 3724
3725 +dpr-tables:ProductionOperationShutdown
3726 + rdf:type rhspin:TableTemplate ;
3727 + rdfs:label "Shutdown Production Activities"^^xsd:string ;
3728 + rdfs:subClassOf rhspin:DPRTableTemplates ;
3729 + spin:body
3730 + [ rdf:type sp:Select ;
3731 + sp:orderBy ([ sp:varName "facilityName"^^xsd:string
3732 + ] [ sp:varName "activityStart"^^xsd:string
3733 + ]) ;
3734 + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
3735 + ] [ sp:varName "shutdownDuration"^^xsd:string
3736 + ] [ sp:varName "activityStart"^^xsd:string
3737 + ] [ sp:varName "activityFinish"^^xsd:string
3738 + ] [ sp:varName "shutdownDescription"^^xsd:string
3739 + ] [ sp:varName "volumeGasValue"^^xsd:string
3740 + ] [ sp:varName "volumeOilValue"^^xsd:string
3741 + ] [ sp:varName "commentText"^^xsd:string
3742 + ]) ;
3743 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
3744 + sp:predicate rdf:type ;
3745 + sp:subject
3746 + [ sp:varName "report"^^xsd:string
3747 + ]
3748 + ] [ sp:object
3749 + [ sp:varName "report"^^xsd:string
3750 + ] ;
3751 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
3752 + sp:subject
3753 + [ sp:varName "productionOperationReport"^^xsd:string
3754 + ]
3755 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
3756 + sp:predicate rdf:type ;
3757 + sp:subject
3758 + [ sp:varName "productionOperationReport"^^xsd:string
3759 + ]
3760 + ] [ sp:object
3761 + [ sp:varName "temporalPartOfFacility"^^xsd:string
3762 + ] ;
3763 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
3764 + sp:subject
3765 + [ sp:varName "productionOperationReport"^^xsd:string
3766 + ]
3767 + ] [ sp:object
3768 + [ sp:varName "productionFacility"^^xsd:string
3769 + ] ;
3770 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
3771 + sp:subject
3772 + [ sp:varName "temporalPartOfFacility"^^xsd:string
3773 + ]
3774 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
3775 + sp:predicate rdf:type ;
3776 + sp:subject
3777 + [ sp:varName "productionFacility"^^xsd:string
3778 + ]
3779 + ] [ sp:object
3780 + [ sp:varName "facilityName"^^xsd:string
3781 + ] ;
3782 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
3783 + sp:subject
3784 + [ sp:varName "productionFacility"^^xsd:string
3785 + ]
3786 + ] [ sp:object
3787 + [ sp:varName "productionOperationReport"^^xsd:string
3788 + ] ;
3789 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
3790 + sp:subject
3791 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
3792 + ]
3793 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
3794 + sp:predicate rdf:type ;
3795 + sp:subject
3796 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
3797 + ]
3798 + ] [ sp:object
3799 + [ sp:varName "installationPart"^^xsd:string
3800 + ] ;
3801 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
3802 + sp:subject
3803 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
3804 + ]
3805 + ] [ sp:object
3806 + [ sp:varName "installationPart"^^xsd:string
3807 + ] ;
3808 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
3809 + sp:subject
3810 + [ sp:varName "productionOperation"^^xsd:string
3811 + ]
3812 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
3813 + sp:predicate rdf:type ;
3814 + sp:subject
3815 + [ sp:varName "productionOperation"^^xsd:string
3816 + ]
3817 + ] [ sp:object
3818 + [ sp:varName "productionOperation"^^xsd:string
3819 + ] ;
3820 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
3821 + sp:subject
3822 + [ sp:varName "operationPart"^^xsd:string
3823 + ]
3824 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ShutdownProduction> ;
3825 + sp:predicate rdf:type ;
3826 + sp:subject
3827 + [ sp:varName "operationPart"^^xsd:string
3828 + ]
3829 + ] [ sp:object
3830 + [ sp:varName "timeduration"^^xsd:string
3831 + ] ;
3832 + sp:predicate rdf:type ;
3833 + sp:subject
3834 + [ sp:varName "operationPart"^^xsd:string
3835 + ]
3836 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
3837 + sp:predicate rdf:type ;
3838 + sp:subject
3839 + [ sp:varName "timeduration"^^xsd:string
3840 + ]
3841 + ] [ rdf:type sp:Bind ;
3842 + sp:expression
3843 + [ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
3844 + sp:arg1 [ sp:varName "timeduration"^^xsd:string
3845 + ]
3846 + ] ;
3847 + sp:variable
3848 + [ sp:varName "shutdownDuration"^^xsd:string
3849 + ]
3850 + ] [ rdf:type sp:Optional ;
3851 + sp:elements ([ rdf:type sp:Optional ;
3852 + sp:elements ([ sp:object
3853 + [ sp:varName "datedCommentActivity"^^xsd:string
3854 + ] ;
3855 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
3856 + sp:subject
3857 + [ sp:varName "operationPart"^^xsd:string
3858 + ]
3859 + ] [ sp:object
3860 + [ sp:varName "datedCommentActivity"^^xsd:string
3861 + ] ;
3862 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
3863 + sp:subject
3864 + [ sp:varName "commentExists"^^xsd:string
3865 + ]
3866 + ] [ rdf:type sp:Bind ;
3867 + sp:expression
3868 + [ rdf:type ep-mpr-spin-lib:normalizeDatedComment ;
3869 + sp:arg1 [ sp:varName "datedCommentActivity"^^xsd:string
3870 + ]
3871 + ] ;
3872 + sp:variable
3873 + [ sp:varName "commentText"^^xsd:string
3874 + ]
3875 + ])
3876 + ])
3877 + ] [ rdf:type sp:Optional ;
3878 + sp:elements ([ sp:object
3879 + [ sp:varName "lossGas"^^xsd:string
3880 + ] ;
3881 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
3882 + sp:subject
3883 + [ sp:varName "operationPart"^^xsd:string
3884 + ]
3885 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss> ;
3886 + sp:predicate rdf:type ;
3887 + sp:subject
3888 + [ sp:varName "lossGas"^^xsd:string
3889 + ]
3890 + ] [ sp:object
3891 + [ sp:varName "gas"^^xsd:string
3892 + ] ;
3893 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
3894 + sp:subject
3895 + [ sp:varName "lossGas"^^xsd:string
3896 + ]
3897 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
3898 + sp:predicate rdf:type ;
3899 + sp:subject
3900 + [ sp:varName "gas"^^xsd:string
3901 + ]
3902 + ] [ sp:object
3903 + [ sp:varName "volumeGas"^^xsd:string
3904 + ] ;
3905 + sp:predicate rdf:type ;
3906 + sp:subject
3907 + [ sp:varName "gas"^^xsd:string
3908 + ]
3909 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
3910 + sp:predicate rdf:type ;
3911 + sp:subject
3912 + [ sp:varName "volumeGas"^^xsd:string
3913 + ]
3914 + ] [ rdf:type sp:Bind ;
3915 + sp:expression
3916 + [ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
3917 + sp:arg1 [ sp:varName "volumeGas"^^xsd:string
3918 + ]
3919 + ] ;
3920 + sp:variable
3921 + [ sp:varName "volumeGasValue"^^xsd:string
3922 + ]
3923 + ])
3924 + ] [ rdf:type sp:Optional ;
3925 + sp:elements ([ sp:object
3926 + [ sp:varName "lossOil"^^xsd:string
3927 + ] ;
3928 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
3929 + sp:subject
3930 + [ sp:varName "operationPart"^^xsd:string
3931 + ]
3932 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss> ;
3933 + sp:predicate rdf:type ;
3934 + sp:subject
3935 + [ sp:varName "lossOil"^^xsd:string
3936 + ]
3937 + ] [ sp:object
3938 + [ sp:varName "oil"^^xsd:string
3939 + ] ;
3940 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
3941 + sp:subject
3942 + [ sp:varName "lossOil"^^xsd:string
3943 + ]
3944 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ;
3945 + sp:predicate rdf:type ;
3946 + sp:subject
3947 + [ sp:varName "oil"^^xsd:string
3948 + ]
3949 + ] [ sp:object
3950 + [ sp:varName "volumeOil"^^xsd:string
3951 + ] ;
3952 + sp:predicate rdf:type ;
3953 + sp:subject
3954 + [ sp:varName "oil"^^xsd:string
3955 + ]
3956 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
3957 + sp:predicate rdf:type ;
3958 + sp:subject
3959 + [ sp:varName "volumeOil"^^xsd:string
3960 + ]
3961 + ] [ rdf:type sp:Bind ;
3962 + sp:expression
3963 + [ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
3964 + sp:arg1 [ sp:varName "volumeOil"^^xsd:string
3965 + ]
3966 + ] ;
3967 + sp:variable
3968 + [ sp:varName "volumeOilValue"^^xsd:string
3969 + ]
3970 + ])
3971 + ] [ rdf:type sp:Optional ;
3972 + sp:elements ([ sp:object
3973 + [ sp:varName "activityStart"^^xsd:string
3974 + ] ;
3975 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
3976 + sp:subject
3977 + [ sp:varName "operationPart"^^xsd:string
3978 + ]
3979 + ])
3980 + ] [ rdf:type sp:Optional ;
3981 + sp:elements ([ sp:object
3982 + [ sp:varName "activityFinish"^^xsd:string
3983 + ] ;
3984 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
3985 + sp:subject
3986 + [ sp:varName "operationPart"^^xsd:string
3987 + ]
3988 + ])
3989 + ] [ rdf:type sp:Optional ;
3990 + sp:elements ([ sp:object
3991 + [ sp:varName "shutdownDescription"^^xsd:string
3992 + ] ;
3993 + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
3994 + sp:subject
3995 + [ sp:varName "operationPart"^^xsd:string
3996 + ]
3997 + ])
3998 + ])
3999 + ] ;
4000 + rhspin:tableHeaders ("Facility"^^xsd:string "Duration"^^xsd:string "Start"^^xsd:string "Finish"^^xsd:string "Description"^^xsd:string "Gas Loss"^^xsd:string "Oil Loss"^^xsd:string "Dated Comment"^^xsd:string) .
4001 +
3725 dpr-tables:ProductionVolumes 4002 dpr-tables:ProductionVolumes
3726 rdf:type rhspin:TableTemplate ; 4003 rdf:type rhspin:TableTemplate ;
3727 rdfs:label "Production Volume List"^^xsd:string ; 4004 rdfs:label "Production Volume List"^^xsd:string ;
......
...@@ -58,9 +58,8 @@ WHERE { ...@@ -58,9 +58,8 @@ WHERE {
58 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SafetyInformation" /> 58 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SafetyInformation" />
59 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OperationInformation" /> 59 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OperationInformation" />
60 60
61 -
62 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" /> 61 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
63 - 62 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationShutdown" />
64 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationCargoShip" /> 63 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationCargoShip" />
65 64
66 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarine" /> 65 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarine" />
......