MonkeyChap

Added production operation duration selector function

# Saved by TopBraid on Tue Oct 11 22:30:58 BST 2011
# Saved by TopBraid on Wed Oct 12 14:16:37 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -1166,13 +1166,96 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
])
] .
ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_dailymonthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionActivityToEndOfReportingPeriod> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_dailyyeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationsActivityToEndOfReportingPeriod> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_day>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_monthtodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionActivityToEndOfReportingPeriod> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_month>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_report>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_totalcumulative>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_week>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_yeartodate>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationsActivityToEndOfReportingPeriod> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RP_year>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionActivity> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#ProductionActivity>
]
]
]
]
]
]
]
]
]
] ;
sp:variable _:b16
])
] .
ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdf:type spin:Function ;
rdfs:label "select VolumeAtStandardTemperaturePressureType"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1197,7 +1280,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b16
sp:variable _:b17
])
] .
......@@ -1207,7 +1290,7 @@ ep-dpr-spin-lib:selectVolumeScale
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1435,18 +1518,14 @@ ep-dpr-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b17
sp:variable _:b18
])
] .
_:b6 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b17
_:b18
sp:varName "volumeScale"^^xsd:string .
_:b16
_:b17
sp:varName "volumeAtStdType"^^xsd:string .
_:b15
......@@ -1473,6 +1552,8 @@ _:b8 sp:varName "productionFacilityType"^^xsd:string .
_:b7 sp:varName "productType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
......@@ -1480,3 +1561,8 @@ _:b4 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "prodActType"^^xsd:string .
......
# Saved by TopBraid on Tue Oct 11 22:30:58 BST 2011
# Saved by TopBraid on Wed Oct 12 14:16:38 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......