David Leal

Merge branch 'MPR_04-23'

...@@ -48,7 +48,7 @@ sp:if ...@@ -48,7 +48,7 @@ sp:if
48 48
49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> 49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
50 rdf:type owl:Ontology ; 50 rdf:type owl:Ontology ;
51 - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; 51 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
53 53
54 ep-dpr-spin-lib:Function 54 ep-dpr-spin-lib:Function
...@@ -56,6 +56,29 @@ ep-dpr-spin-lib:Function ...@@ -56,6 +56,29 @@ ep-dpr-spin-lib:Function
56 rdfs:label "function"^^xsd:string ; 56 rdfs:label "function"^^xsd:string ;
57 rdfs:subClassOf spin:Functions . 57 rdfs:subClassOf spin:Functions .
58 58
59 +ep-dpr-spin-lib:buildAlarmTypeURI
60 + rdf:type spin:Function ;
61 + rdfs:label "build AlarmType URI"^^xsd:string ;
62 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
63 + spin:body
64 + [ rdf:type sp:Select ;
65 + rdfs:comment "arg1 is name of the AlarmType - assumed to be unique in this scope"^^xsd:string ;
66 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
67 + ]) ;
68 + sp:where ([ rdf:type sp:Bind ;
69 + sp:expression
70 + [ rdf:type ep-spin-lib:buildURI ;
71 + sp:arg1 "https://www.reportinghub.no/ep/data/alarmType/" ;
72 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
73 + sp:arg1 spin:_arg1
74 + ]
75 + ] ;
76 + sp:variable
77 + [ sp:varName "uri"^^xsd:string
78 + ]
79 + ])
80 + ] .
81 +
59 ep-dpr-spin-lib:buildAmountOfOilURI 82 ep-dpr-spin-lib:buildAmountOfOilURI
60 rdf:type spin:Function ; 83 rdf:type spin:Function ;
61 rdfs:subClassOf ep-dpr-spin-lib:Function ; 84 rdfs:subClassOf ep-dpr-spin-lib:Function ;
...@@ -5566,6 +5589,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5566,6 +5589,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5566 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5589 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5567 spin:body 5590 spin:body
5568 [ rdf:type sp:Select ; 5591 [ rdf:type sp:Select ;
5592 + sp:resultVariables (_:b22) ;
5593 + sp:where ([ rdf:type sp:Bind ;
5594 + sp:expression
5595 + [ rdf:type sp:if ;
5596 + sp:arg1 [ rdf:type sp:eq ;
5597 + sp:arg1 spin:_arg1 ;
5598 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5599 + ] ;
5600 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5601 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5602 + ] ;
5603 + sp:variable _:b22
5604 + ])
5605 + ] ;
5606 + spin:body
5607 + [ rdf:type sp:Select ;
5569 sp:resultVariables ([ sp:varName "myVar"^^xsd:string 5608 sp:resultVariables ([ sp:varName "myVar"^^xsd:string
5570 ]) ; 5609 ]) ;
5571 sp:where ([ rdf:type sp:Bind ; 5610 sp:where ([ rdf:type sp:Bind ;
...@@ -5645,22 +5684,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5645,22 +5684,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5645 [ sp:varName "myVar"^^xsd:string 5684 [ sp:varName "myVar"^^xsd:string
5646 ] 5685 ]
5647 ]) 5686 ])
5648 - ] ;
5649 - spin:body
5650 - [ rdf:type sp:Select ;
5651 - sp:resultVariables (_:b22) ;
5652 - sp:where ([ rdf:type sp:Bind ;
5653 - sp:expression
5654 - [ rdf:type sp:if ;
5655 - sp:arg1 [ rdf:type sp:eq ;
5656 - sp:arg1 spin:_arg1 ;
5657 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5658 - ] ;
5659 - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5660 - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5661 - ] ;
5662 - sp:variable _:b22
5663 - ])
5664 ] . 5687 ] .
5665 5688
5666 ep-dpr-spin-lib:selectTemperatureScale 5689 ep-dpr-spin-lib:selectTemperatureScale
...@@ -7195,62 +7218,62 @@ ep-dpr-spin-lib:selectWorkScale ...@@ -7195,62 +7218,62 @@ ep-dpr-spin-lib:selectWorkScale
7195 ]) 7218 ])
7196 ] . 7219 ] .
7197 7220
7198 -_:b1 sp:varName "uri"^^xsd:string . 7221 +_:b23
7222 + sp:varName "volumeFlowRateAtStdType"^^xsd:string .
7199 7223
7200 -_:b2 sp:varName "UUID"^^xsd:string . 7224 +_:b22
7225 + sp:varName "specificVolumeScale"^^xsd:string .
7201 7226
7202 -_:b3 sp:varName "uri"^^xsd:string . 7227 +_:b21
7228 + sp:varName "safetyActivityType"^^xsd:string .
7203 7229
7204 -_:b4 sp:varName "uri"^^xsd:string . 7230 +_:b20
7231 + sp:varName "productionFlowPurposeType"^^xsd:string .
7205 7232
7206 -_:b5 sp:varName "uri"^^xsd:string . 7233 +_:b19
7234 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7207 7235
7208 -_:b6 sp:varName "uri"^^xsd:string . 7236 +_:b18
7237 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7209 7238
7210 -_:b7 sp:varName "uri"^^xsd:string . 7239 +_:b17
7240 + sp:varName "productionFlowDefinitionType"^^xsd:string .
7211 7241
7212 -_:b8 sp:varName "uri"^^xsd:string . 7242 +_:b16
7243 + sp:varName "productionFacilityType"^^xsd:string .
7213 7244
7214 -_:b9 sp:varName "uri"^^xsd:string . 7245 +_:b15
7246 + sp:varName "productVolumeReportPeriodType"^^xsd:string .
7215 7247
7216 -_:b10 7248 +_:b14
7217 - sp:varName "uri"^^xsd:string . 7249 + sp:varName "densityScale"^^xsd:string .
7218 7250
7219 -_:b11 7251 +_:b13
7220 sp:varName "uri"^^xsd:string . 7252 sp:varName "uri"^^xsd:string .
7221 7253
7222 _:b12 7254 _:b12
7223 sp:varName "uri"^^xsd:string . 7255 sp:varName "uri"^^xsd:string .
7224 7256
7225 -_:b13 7257 +_:b11
7226 sp:varName "uri"^^xsd:string . 7258 sp:varName "uri"^^xsd:string .
7227 7259
7228 -_:b14 7260 +_:b10
7229 - sp:varName "densityScale"^^xsd:string . 7261 + sp:varName "uri"^^xsd:string .
7230 7262
7231 -_:b15 7263 +_:b9 sp:varName "uri"^^xsd:string .
7232 - sp:varName "productVolumeReportPeriodType"^^xsd:string .
7233 7264
7234 -_:b16 7265 +_:b8 sp:varName "uri"^^xsd:string .
7235 - sp:varName "productionFacilityType"^^xsd:string .
7236 7266
7237 -_:b17 7267 +_:b7 sp:varName "uri"^^xsd:string .
7238 - sp:varName "productionFlowDefinitionType"^^xsd:string .
7239 7268
7240 -_:b18 7269 +_:b6 sp:varName "uri"^^xsd:string .
7241 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7242 7270
7243 -_:b19 7271 +_:b5 sp:varName "uri"^^xsd:string .
7244 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7245 7272
7246 -_:b20 7273 +_:b4 sp:varName "uri"^^xsd:string .
7247 - sp:varName "productionFlowPurposeType"^^xsd:string .
7248 7274
7249 -_:b21 7275 +_:b3 sp:varName "uri"^^xsd:string .
7250 - sp:varName "safetyActivityType"^^xsd:string .
7251 7276
7252 -_:b22 7277 +_:b2 sp:varName "UUID"^^xsd:string .
7253 - sp:varName "specificVolumeScale"^^xsd:string .
7254 7278
7255 -_:b23 7279 +_:b1 sp:varName "uri"^^xsd:string .
7256 - sp:varName "volumeFlowRateAtStdType"^^xsd:string .
......
...@@ -4054,6 +4054,79 @@ ep-mpr-spin-lib:selectProductMaterialType ...@@ -4054,6 +4054,79 @@ ep-mpr-spin-lib:selectProductMaterialType
4054 ]) 4054 ])
4055 ] . 4055 ] .
4056 4056
4057 +ep-mpr-spin-lib:selectProductionActivityType
4058 + rdf:type spin:Function ;
4059 + rdfs:label "select ProductionActivityType"^^xsd:string ;
4060 + rdfs:subClassOf ep-mpr-spin-lib:Function ;
4061 + spin:body
4062 + [ rdf:type sp:Select ;
4063 + sp:resultVariables ([ sp:varName "productionActivityType"^^xsd:string
4064 + ]) ;
4065 + sp:where ([ rdf:type sp:Bind ;
4066 + sp:expression
4067 + [ rdf:type sp:if ;
4068 + sp:arg1 [ rdf:type sp:eq ;
4069 + sp:arg1 spin:_arg1 ;
4070 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_production>
4071 + ] ;
4072 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
4073 + sp:arg3 [ rdf:type sp:if ;
4074 + sp:arg1 [ rdf:type sp:eq ;
4075 + sp:arg1 spin:_arg1 ;
4076 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_maintenance>
4077 + ] ;
4078 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MaintenanceActivity> ;
4079 + sp:arg3 [ rdf:type sp:if ;
4080 + sp:arg1 [ rdf:type sp:eq ;
4081 + sp:arg1 spin:_arg1 ;
4082 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_powerstationfailure>
4083 + ] ;
4084 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#PowerStationFailure> ;
4085 + sp:arg3 [ rdf:type sp:if ;
4086 + sp:arg1 [ rdf:type sp:eq ;
4087 + sp:arg1 spin:_arg1 ;
4088 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_deviations>
4089 + ] ;
4090 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#Deviation> ;
4091 + sp:arg3 [ rdf:type sp:if ;
4092 + sp:arg1 [ rdf:type sp:eq ;
4093 + sp:arg1 spin:_arg1 ;
4094 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_airtraffic>
4095 + ] ;
4096 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AirTrafficOperation> ;
4097 + sp:arg3 [ rdf:type sp:if ;
4098 + sp:arg1 [ rdf:type sp:eq ;
4099 + sp:arg1 spin:_arg1 ;
4100 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_construction>
4101 + ] ;
4102 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#ConstructionOperation> ;
4103 + sp:arg3 [ rdf:type sp:if ;
4104 + sp:arg1 [ rdf:type sp:eq ;
4105 + sp:arg1 spin:_arg1 ;
4106 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_well>
4107 + ] ;
4108 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellOperation> ;
4109 + sp:arg3 [ rdf:type sp:if ;
4110 + sp:arg1 [ rdf:type sp:eq ;
4111 + sp:arg1 spin:_arg1 ;
4112 + sp:arg2 <http://www.epim.no/schemas/mprml/1#OK_other>
4113 + ] ;
4114 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#OtherProductionActivity> ;
4115 + sp:arg3 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity>
4116 + ]
4117 + ]
4118 + ]
4119 + ]
4120 + ]
4121 + ]
4122 + ]
4123 + ] ;
4124 + sp:variable
4125 + [ sp:varName "productionActivityType"^^xsd:string
4126 + ]
4127 + ])
4128 + ] .
4129 +
4057 ep-mpr-spin-lib:selectProductionFacilityType 4130 ep-mpr-spin-lib:selectProductionFacilityType
4058 rdf:type spin:Function ; 4131 rdf:type spin:Function ;
4059 rdfs:label "select ProductionFacilityType"^^xsd:string ; 4132 rdfs:label "select ProductionFacilityType"^^xsd:string ;
......