MonkeyChap

Added production operation duration selector function

1 -# Saved by TopBraid on Tue Oct 11 22:30:58 BST 2011 1 +# Saved by TopBraid on Wed Oct 12 14:16:37 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 2 # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
3 # imports: http://www.reportinghub.no/ep/schema/1.0/geography 3 # imports: http://www.reportinghub.no/ep/schema/1.0/geography
4 # imports: http://www.reportinghub.no/ep/schema/1.0/well 4 # imports: http://www.reportinghub.no/ep/schema/1.0/well
...@@ -1166,13 +1166,96 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ...@@ -1166,13 +1166,96 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
1166 ]) 1166 ])
1167 ] . 1167 ] .
1168 1168
1169 +ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
1170 + rdf:type spin:Function ;
1171 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
1172 + spin:body
1173 + [ rdf:type sp:Select ;
1174 + sp:resultVariables (_:b16) ;
1175 + sp:where ([ rdf:type sp:Bind ;
1176 + sp:expression
1177 + [ rdf:type sp:if ;
1178 + sp:arg1 [ rdf:type sp:eq ;
1179 + sp:arg1 spin:_arg1 ;
1180 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_dailymonthtodate>
1181 + ] ;
1182 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionActivityToEndOfReportingPeriod> ;
1183 + sp:arg3 [ rdf:type sp:if ;
1184 + sp:arg1 [ rdf:type sp:eq ;
1185 + sp:arg1 spin:_arg1 ;
1186 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_dailyyeartodate>
1187 + ] ;
1188 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationsActivityToEndOfReportingPeriod> ;
1189 + sp:arg3 [ rdf:type sp:if ;
1190 + sp:arg1 [ rdf:type sp:eq ;
1191 + sp:arg1 spin:_arg1 ;
1192 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_day>
1193 + ] ;
1194 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> ;
1195 + sp:arg3 [ rdf:type sp:if ;
1196 + sp:arg1 [ rdf:type sp:eq ;
1197 + sp:arg1 spin:_arg1 ;
1198 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_monthtodate>
1199 + ] ;
1200 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionActivityToEndOfReportingPeriod> ;
1201 + sp:arg3 [ rdf:type sp:if ;
1202 + sp:arg1 [ rdf:type sp:eq ;
1203 + sp:arg1 spin:_arg1 ;
1204 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_month>
1205 + ] ;
1206 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> ;
1207 + sp:arg3 [ rdf:type sp:if ;
1208 + sp:arg1 [ rdf:type sp:eq ;
1209 + sp:arg1 spin:_arg1 ;
1210 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_report>
1211 + ] ;
1212 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
1213 + sp:arg3 [ rdf:type sp:if ;
1214 + sp:arg1 [ rdf:type sp:eq ;
1215 + sp:arg1 spin:_arg1 ;
1216 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_totalcumulative>
1217 + ] ;
1218 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
1219 + sp:arg3 [ rdf:type sp:if ;
1220 + sp:arg1 [ rdf:type sp:eq ;
1221 + sp:arg1 spin:_arg1 ;
1222 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_week>
1223 + ] ;
1224 + sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity> ;
1225 + sp:arg3 [ rdf:type sp:if ;
1226 + sp:arg1 [ rdf:type sp:eq ;
1227 + sp:arg1 spin:_arg1 ;
1228 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_yeartodate>
1229 + ] ;
1230 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationsActivityToEndOfReportingPeriod> ;
1231 + sp:arg3 [ rdf:type sp:if ;
1232 + sp:arg1 [ rdf:type sp:eq ;
1233 + sp:arg1 spin:_arg1 ;
1234 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_year>
1235 + ] ;
1236 + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionActivity> ;
1237 + sp:arg3 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity>
1238 + ]
1239 + ]
1240 + ]
1241 + ]
1242 + ]
1243 + ]
1244 + ]
1245 + ]
1246 + ]
1247 + ] ;
1248 + sp:variable _:b16
1249 + ])
1250 + ] .
1251 +
1169 ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType 1252 ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
1170 rdf:type spin:Function ; 1253 rdf:type spin:Function ;
1171 rdfs:label "select VolumeAtStandardTemperaturePressureType"^^xsd:string ; 1254 rdfs:label "select VolumeAtStandardTemperaturePressureType"^^xsd:string ;
1172 rdfs:subClassOf ep-dpr-spin-lib:Function ; 1255 rdfs:subClassOf ep-dpr-spin-lib:Function ;
1173 spin:body 1256 spin:body
1174 [ rdf:type sp:Select ; 1257 [ rdf:type sp:Select ;
1175 - sp:resultVariables (_:b16) ; 1258 + sp:resultVariables (_:b17) ;
1176 sp:where ([ rdf:type sp:Bind ; 1259 sp:where ([ rdf:type sp:Bind ;
1177 sp:expression 1260 sp:expression
1178 [ rdf:type sp:if ; 1261 [ rdf:type sp:if ;
...@@ -1197,7 +1280,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ...@@ -1197,7 +1280,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
1197 ] 1280 ]
1198 ] 1281 ]
1199 ] ; 1282 ] ;
1200 - sp:variable _:b16 1283 + sp:variable _:b17
1201 ]) 1284 ])
1202 ] . 1285 ] .
1203 1286
...@@ -1207,7 +1290,7 @@ ep-dpr-spin-lib:selectVolumeScale ...@@ -1207,7 +1290,7 @@ ep-dpr-spin-lib:selectVolumeScale
1207 rdfs:subClassOf ep-dpr-spin-lib:Function ; 1290 rdfs:subClassOf ep-dpr-spin-lib:Function ;
1208 spin:body 1291 spin:body
1209 [ rdf:type sp:Select ; 1292 [ rdf:type sp:Select ;
1210 - sp:resultVariables (_:b17) ; 1293 + sp:resultVariables (_:b18) ;
1211 sp:where ([ rdf:type sp:Bind ; 1294 sp:where ([ rdf:type sp:Bind ;
1212 sp:expression 1295 sp:expression
1213 [ rdf:type sp:if ; 1296 [ rdf:type sp:if ;
...@@ -1435,18 +1518,14 @@ ep-dpr-spin-lib:selectVolumeScale ...@@ -1435,18 +1518,14 @@ ep-dpr-spin-lib:selectVolumeScale
1435 ] 1518 ]
1436 ] 1519 ]
1437 ] ; 1520 ] ;
1438 - sp:variable _:b17 1521 + sp:variable _:b18
1439 ]) 1522 ])
1440 ] . 1523 ] .
1441 1524
1442 -_:b6 sp:varName "uri"^^xsd:string . 1525 +_:b18
1443 -
1444 -_:b1 sp:varName "uri"^^xsd:string .
1445 -
1446 -_:b17
1447 sp:varName "volumeScale"^^xsd:string . 1526 sp:varName "volumeScale"^^xsd:string .
1448 1527
1449 -_:b16 1528 +_:b17
1450 sp:varName "volumeAtStdType"^^xsd:string . 1529 sp:varName "volumeAtStdType"^^xsd:string .
1451 1530
1452 _:b15 1531 _:b15
...@@ -1473,6 +1552,8 @@ _:b8 sp:varName "productionFacilityType"^^xsd:string . ...@@ -1473,6 +1552,8 @@ _:b8 sp:varName "productionFacilityType"^^xsd:string .
1473 1552
1474 _:b7 sp:varName "productType"^^xsd:string . 1553 _:b7 sp:varName "productType"^^xsd:string .
1475 1554
1555 +_:b6 sp:varName "uri"^^xsd:string .
1556 +
1476 _:b5 sp:varName "uri"^^xsd:string . 1557 _:b5 sp:varName "uri"^^xsd:string .
1477 1558
1478 _:b4 sp:varName "uri"^^xsd:string . 1559 _:b4 sp:varName "uri"^^xsd:string .
...@@ -1480,3 +1561,8 @@ _:b4 sp:varName "uri"^^xsd:string . ...@@ -1480,3 +1561,8 @@ _:b4 sp:varName "uri"^^xsd:string .
1480 _:b3 sp:varName "uri"^^xsd:string . 1561 _:b3 sp:varName "uri"^^xsd:string .
1481 1562
1482 _:b2 sp:varName "uri"^^xsd:string . 1563 _:b2 sp:varName "uri"^^xsd:string .
1564 +
1565 +_:b1 sp:varName "uri"^^xsd:string .
1566 +
1567 +_:b16
1568 + sp:varName "prodActType"^^xsd:string .
......
1 -# Saved by TopBraid on Tue Oct 11 22:30:58 BST 2011 1 +# Saved by TopBraid on Wed Oct 12 14:16:38 BST 2011
2 # baseURI: null 2 # baseURI: null
3 3
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......