David Price

Added DDR PDF report flag functions

...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 31
32 <http://www.reportinghub.no/ep/spin/1.1/lib> 32 <http://www.reportinghub.no/ep/spin/1.1/lib>
33 rdf:type owl:Ontology ; 33 rdf:type owl:Ontology ;
34 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/spin/rh> , <http://www.witsml.org/schemas/1series> ; 34 + owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
35 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 35 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
36 36
37 ep-spin-lib:Function 37 ep-spin-lib:Function
...@@ -628,12 +628,12 @@ ep-spin-lib:buildURI ...@@ -628,12 +628,12 @@ ep-spin-lib:buildURI
628 ] ; 628 ] ;
629 spin:constraint 629 spin:constraint
630 [ rdf:type spl:Argument ; 630 [ rdf:type spl:Argument ;
631 - spl:predicate sp:arg2 ; 631 + spl:predicate sp:arg1 ;
632 spl:valueType xsd:string 632 spl:valueType xsd:string
633 ] ; 633 ] ;
634 spin:constraint 634 spin:constraint
635 [ rdf:type spl:Argument ; 635 [ rdf:type spl:Argument ;
636 - spl:predicate sp:arg1 ; 636 + spl:predicate sp:arg2 ;
637 spl:valueType xsd:string 637 spl:valueType xsd:string
638 ] . 638 ] .
639 639
...@@ -1259,6 +1259,37 @@ ep-spin-lib:numberWellbore ...@@ -1259,6 +1259,37 @@ ep-spin-lib:numberWellbore
1259 ] ; 1259 ] ;
1260 spin:returnType xsd:string . 1260 spin:returnType xsd:string .
1261 1261
1262 +ep-spin-lib:selectActivitySuccessFlag
1263 + rdf:type spin:Function ;
1264 + rdfs:label "select ActivitySuccessFlag"^^xsd:string ;
1265 + rdfs:subClassOf ep-spin-lib:Function ;
1266 + spin:body
1267 + [ rdf:type sp:Select ;
1268 + sp:resultVariables ([ sp:varName "activitySuccessFlag"^^xsd:string
1269 + ]) ;
1270 + sp:where ([ rdf:type sp:Bind ;
1271 + sp:expression
1272 + [ rdf:type sp:if ;
1273 + sp:arg1 [ rdf:type sp:eq ;
1274 + sp:arg1 spin:_arg1 ;
1275 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#SuccessfulActivity>
1276 + ] ;
1277 + sp:arg2 "ok" ;
1278 + sp:arg3 [ rdf:type sp:if ;
1279 + sp:arg1 [ rdf:type sp:eq ;
1280 + sp:arg1 spin:_arg1 ;
1281 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#FailedActivity>
1282 + ] ;
1283 + sp:arg2 "fail" ;
1284 + sp:arg3 "invalid call to the ep-spin-lib:selectActivitySuccessFlag function"
1285 + ]
1286 + ] ;
1287 + sp:variable
1288 + [ sp:varName "activitySuccessFlag"^^xsd:string
1289 + ]
1290 + ])
1291 + ] .
1292 +
1262 ep-spin-lib:selectActivitySuccessType 1293 ep-spin-lib:selectActivitySuccessType
1263 rdf:type spin:Function ; 1294 rdf:type spin:Function ;
1264 rdfs:label "select ActivitySuccessType"^^xsd:string ; 1295 rdfs:label "select ActivitySuccessType"^^xsd:string ;
...@@ -2680,6 +2711,86 @@ ep-spin-lib:selectFluidType ...@@ -2680,6 +2711,86 @@ ep-spin-lib:selectFluidType
2680 ]) 2711 ])
2681 ] . 2712 ] .
2682 2713
2714 +ep-spin-lib:selectGasReadingFlag
2715 + rdf:type spin:Function ;
2716 + rdfs:label "select GasReadingFlag"^^xsd:string ;
2717 + rdfs:subClassOf ep-spin-lib:Function ;
2718 + spin:body
2719 + [ rdf:type sp:Select ;
2720 + sp:resultVariables ([ sp:varName "gasReadingFlag"^^xsd:string
2721 + ]) ;
2722 + sp:where ([ rdf:type sp:Bind ;
2723 + sp:expression
2724 + [ rdf:type sp:if ;
2725 + sp:arg1 [ rdf:type sp:eq ;
2726 + sp:arg1 spin:_arg1 ;
2727 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-connection_gas>
2728 + ] ;
2729 + sp:arg2 "connection gas" ;
2730 + sp:arg3 [ rdf:type sp:if ;
2731 + sp:arg1 [ rdf:type sp:eq ;
2732 + sp:arg1 spin:_arg1 ;
2733 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-circulating_background_gas>
2734 + ] ;
2735 + sp:arg2 "circulating background gas" ;
2736 + sp:arg3 [ rdf:type sp:if ;
2737 + sp:arg1 [ rdf:type sp:eq ;
2738 + sp:arg1 spin:_arg1 ;
2739 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-drilling_background_gas>
2740 + ] ;
2741 + sp:arg2 "drilling background gas" ;
2742 + sp:arg3 [ rdf:type sp:if ;
2743 + sp:arg1 [ rdf:type sp:eq ;
2744 + sp:arg1 spin:_arg1 ;
2745 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-drilling_gas_peak>
2746 + ] ;
2747 + sp:arg2 "gas peak" ;
2748 + sp:arg3 [ rdf:type sp:if ;
2749 + sp:arg1 [ rdf:type sp:eq ;
2750 + sp:arg1 spin:_arg1 ;
2751 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-flow_check_gas>
2752 + ] ;
2753 + sp:arg2 "flow check gas" ;
2754 + sp:arg3 [ rdf:type sp:if ;
2755 + sp:arg1 [ rdf:type sp:eq ;
2756 + sp:arg1 spin:_arg1 ;
2757 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-no_readings>
2758 + ] ;
2759 + sp:arg2 "no readings" ;
2760 + sp:arg3 [ rdf:type sp:if ;
2761 + sp:arg1 [ rdf:type sp:eq ;
2762 + sp:arg1 spin:_arg1 ;
2763 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-other>
2764 + ] ;
2765 + sp:arg2 "other" ;
2766 + sp:arg3 [ rdf:type sp:if ;
2767 + sp:arg1 [ rdf:type sp:eq ;
2768 + sp:arg1 spin:_arg1 ;
2769 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-shut_down_gas>
2770 + ] ;
2771 + sp:arg2 "shut down gas" ;
2772 + sp:arg3 [ rdf:type sp:if ;
2773 + sp:arg1 [ rdf:type sp:eq ;
2774 + sp:arg1 spin:_arg1 ;
2775 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#GasReading-trip_gas>
2776 + ] ;
2777 + sp:arg2 "trip gas" ;
2778 + sp:arg3 "invalid call to the ep-spin-lib:selectGasReadingFlag function"
2779 + ]
2780 + ]
2781 + ]
2782 + ]
2783 + ]
2784 + ]
2785 + ]
2786 + ]
2787 + ] ;
2788 + sp:variable
2789 + [ sp:varName "gasReadingFlag"^^xsd:string
2790 + ]
2791 + ])
2792 + ] .
2793 +
2683 ep-spin-lib:selectGasReadingType 2794 ep-spin-lib:selectGasReadingType
2684 rdf:type spin:Function ; 2795 rdf:type spin:Function ;
2685 rdfs:label "select GasReadingType"^^xsd:string ; 2796 rdfs:label "select GasReadingType"^^xsd:string ;
...@@ -2757,6 +2868,44 @@ ep-spin-lib:selectGasReadingType ...@@ -2757,6 +2868,44 @@ ep-spin-lib:selectGasReadingType
2757 ]) 2868 ])
2758 ] . 2869 ] .
2759 2870
2871 +ep-spin-lib:selectInnerBarrelFlag
2872 + rdf:type spin:Function ;
2873 + rdfs:label "select InnerBarrelFlag"^^xsd:string ;
2874 + rdfs:subClassOf ep-spin-lib:Function ;
2875 + spin:body
2876 + [ rdf:type sp:Select ;
2877 + sp:resultVariables ([ sp:varName "innerBarrelFlag"^^xsd:string
2878 + ]) ;
2879 + sp:where ([ rdf:type sp:Bind ;
2880 + sp:expression
2881 + [ rdf:type sp:if ;
2882 + sp:arg1 [ rdf:type sp:eq ;
2883 + sp:arg1 spin:_arg1 ;
2884 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#InnerBarrel-gel>
2885 + ] ;
2886 + sp:arg2 "gel" ;
2887 + sp:arg3 [ rdf:type sp:if ;
2888 + sp:arg1 [ rdf:type sp:eq ;
2889 + sp:arg1 spin:_arg1 ;
2890 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#InnerBarrel-aluminum>
2891 + ] ;
2892 + sp:arg2 "aluminium" ;
2893 + sp:arg3 [ rdf:type sp:if ;
2894 + sp:arg1 [ rdf:type sp:eq ;
2895 + sp:arg1 spin:_arg1 ;
2896 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#InnerBarrel-fiberglass>
2897 + ] ;
2898 + sp:arg2 "fiberglass" ;
2899 + sp:arg3 "undifferented"
2900 + ]
2901 + ]
2902 + ] ;
2903 + sp:variable
2904 + [ sp:varName "innerBarrelFlag"^^xsd:string
2905 + ]
2906 + ])
2907 + ] .
2908 +
2760 ep-spin-lib:selectInnerBarrelType 2909 ep-spin-lib:selectInnerBarrelType
2761 rdf:type spin:Function ; 2910 rdf:type spin:Function ;
2762 rdfs:label "select InnerBarrelType"^^xsd:string ; 2911 rdfs:label "select InnerBarrelType"^^xsd:string ;
...@@ -3131,6 +3280,37 @@ ep-spin-lib:selectPlasticViscosityScale ...@@ -3131,6 +3280,37 @@ ep-spin-lib:selectPlasticViscosityScale
3131 ]) 3280 ])
3132 ] . 3281 ] .
3133 3282
3283 +ep-spin-lib:selectPorePressureDeterminationFlag
3284 + rdf:type spin:Function ;
3285 + rdfs:label "select PorePressureDeterminationFlag"^^xsd:string ;
3286 + rdfs:subClassOf ep-spin-lib:Function ;
3287 + spin:body
3288 + [ rdf:type sp:Select ;
3289 + sp:resultVariables ([ sp:varName "porePressureDeterminationFlag"^^xsd:string
3290 + ]) ;
3291 + sp:where ([ rdf:type sp:Bind ;
3292 + sp:expression
3293 + [ rdf:type sp:if ;
3294 + sp:arg1 [ rdf:type sp:eq ;
3295 + sp:arg1 spin:_arg1 ;
3296 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#PorePressureMeasurement>
3297 + ] ;
3298 + sp:arg2 "measured" ;
3299 + sp:arg3 [ rdf:type sp:if ;
3300 + sp:arg1 [ rdf:type sp:eq ;
3301 + sp:arg1 spin:_arg1 ;
3302 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#PorePressureEstimation>
3303 + ] ;
3304 + sp:arg2 "estimated" ;
3305 + sp:arg3 "invalid call to the ep-spin-lib:porePressureDeterminationFlag function"
3306 + ]
3307 + ] ;
3308 + sp:variable
3309 + [ sp:varName "porePressureDeterminationFlag"^^xsd:string
3310 + ]
3311 + ])
3312 + ] .
3313 +
3134 ep-spin-lib:selectPorePressureDeterminationType 3314 ep-spin-lib:selectPorePressureDeterminationType
3135 rdf:type spin:Function ; 3315 rdf:type spin:Function ;
3136 rdfs:label "select PorePressureDeterminationType"^^xsd:string ; 3316 rdfs:label "select PorePressureDeterminationType"^^xsd:string ;
...@@ -3826,6 +4006,51 @@ ep-spin-lib:selectWellCementJobType ...@@ -3826,6 +4006,51 @@ ep-spin-lib:selectWellCementJobType
3826 ]) 4006 ])
3827 ] . 4007 ] .
3828 4008
4009 +ep-spin-lib:selectWellControlIncidentFlag
4010 + rdf:type spin:Function ;
4011 + rdfs:label "select WellControlIncidentFlag"^^xsd:string ;
4012 + rdfs:subClassOf ep-spin-lib:Function ;
4013 + spin:body
4014 + [ rdf:type sp:Select ;
4015 + sp:resultVariables ([ sp:varName "wellControlIncidentFlag"^^xsd:string
4016 + ]) ;
4017 + sp:where ([ rdf:type sp:Bind ;
4018 + sp:expression
4019 + [ rdf:type sp:if ;
4020 + sp:arg1 [ rdf:type sp:eq ;
4021 + sp:arg1 spin:_arg1 ;
4022 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellControlIncident-gas_kick>
4023 + ] ;
4024 + sp:arg2 "gas kick" ;
4025 + sp:arg3 [ rdf:type sp:if ;
4026 + sp:arg1 [ rdf:type sp:eq ;
4027 + sp:arg1 spin:_arg1 ;
4028 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellControlIncident-water_kick>
4029 + ] ;
4030 + sp:arg2 "water kick" ;
4031 + sp:arg3 [ rdf:type sp:if ;
4032 + sp:arg1 [ rdf:type sp:eq ;
4033 + sp:arg1 spin:_arg1 ;
4034 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellControlIncident-oil_kick>
4035 + ] ;
4036 + sp:arg2 "oil kick" ;
4037 + sp:arg3 [ rdf:type sp:if ;
4038 + sp:arg1 [ rdf:type sp:eq ;
4039 + sp:arg1 spin:_arg1 ;
4040 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellControlIncident-shallow_gas_kick>
4041 + ] ;
4042 + sp:arg2 "shallow gas kick" ;
4043 + sp:arg3 "invalid call to the ep-spin-lib:selectWellControlIncidentFlag function"
4044 + ]
4045 + ]
4046 + ]
4047 + ] ;
4048 + sp:variable
4049 + [ sp:varName "wellControlIncidentFlag"^^xsd:string
4050 + ]
4051 + ])
4052 + ] .
4053 +
3829 ep-spin-lib:selectWellControlIncidentType 4054 ep-spin-lib:selectWellControlIncidentType
3830 rdf:type spin:Function ; 4055 rdf:type spin:Function ;
3831 rdfs:label "select WellControlIncidentType"^^xsd:string ; 4056 rdfs:label "select WellControlIncidentType"^^xsd:string ;
...@@ -3868,6 +4093,65 @@ ep-spin-lib:selectWellControlIncidentType ...@@ -3868,6 +4093,65 @@ ep-spin-lib:selectWellControlIncidentType
3868 ]) 4093 ])
3869 ] . 4094 ] .
3870 4095
4096 +ep-spin-lib:selectWellKillingFlag
4097 + rdf:type spin:Function ;
4098 + rdfs:label "select WellKillingFlag"^^xsd:string ;
4099 + rdfs:subClassOf ep-spin-lib:Function ;
4100 + spin:body
4101 + [ rdf:type sp:Select ;
4102 + sp:resultVariables ([ sp:varName "wellKillingFlag"^^xsd:string
4103 + ]) ;
4104 + sp:where ([ rdf:type sp:Bind ;
4105 + sp:expression
4106 + [ rdf:type sp:if ;
4107 + sp:arg1 [ rdf:type sp:eq ;
4108 + sp:arg1 spin:_arg1 ;
4109 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellKilling-bullheading>
4110 + ] ;
4111 + sp:arg2 "bull heading" ;
4112 + sp:arg3 [ rdf:type sp:if ;
4113 + sp:arg1 [ rdf:type sp:eq ;
4114 + sp:arg1 spin:_arg1 ;
4115 + sp:arg2 ddr:WKPT_waitandweight
4116 + ] ;
4117 + sp:arg2 "wait and weight" ;
4118 + sp:arg3 [ rdf:type sp:if ;
4119 + sp:arg1 [ rdf:type sp:eq ;
4120 + sp:arg1 spin:_arg1 ;
4121 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellKilling-drillers_method>
4122 + ] ;
4123 + sp:arg2 "drillers method" ;
4124 + sp:arg3 [ rdf:type sp:if ;
4125 + sp:arg1 [ rdf:type sp:eq ;
4126 + sp:arg1 spin:_arg1 ;
4127 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellKilling-lubricate_and_bleed>
4128 + ] ;
4129 + sp:arg2 "lubricate and bleed" ;
4130 + sp:arg3 [ rdf:type sp:if ;
4131 + sp:arg1 [ rdf:type sp:eq ;
4132 + sp:arg1 spin:_arg1 ;
4133 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellKilling-reverse_circulation>
4134 + ] ;
4135 + sp:arg2 "reverse circulation" ;
4136 + sp:arg3 [ rdf:type sp:if ;
4137 + sp:arg1 [ rdf:type sp:eq ;
4138 + sp:arg1 spin:_arg1 ;
4139 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellKilling-forward_circulation>
4140 + ] ;
4141 + sp:arg2 "forward circulation" ;
4142 + sp:arg3 "invalid call to the ep-spin-lib:selectWellKillingFlag function"
4143 + ]
4144 + ]
4145 + ]
4146 + ]
4147 + ]
4148 + ] ;
4149 + sp:variable
4150 + [ sp:varName "wellKillingFlag"^^xsd:string
4151 + ]
4152 + ])
4153 + ] .
4154 +
3871 ep-spin-lib:selectWellKillingType 4155 ep-spin-lib:selectWellKillingType
3872 rdf:type spin:Function ; 4156 rdf:type spin:Function ;
3873 rdfs:label "select WellKillingType"^^xsd:string ; 4157 rdfs:label "select WellKillingType"^^xsd:string ;
......