David Leal

A bit more on fluid sampling

# Saved by TopBraid on Mon Dec 19 16:52:20 GMT 2011
# Saved by TopBraid on Tue Dec 20 18:26:51 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Dec 19 18:38:19 GMT 2011
# Saved by TopBraid on Tue Dec 20 18:27:09 GMT 2011
# baseURI: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
......@@ -10,6 +10,8 @@
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
......@@ -54,6 +56,31 @@ ep-mpr-spin-lib:Function
rdf:type spin:Function ;
rdfs:subClassOf spin:Functions .
ep-mpr-spin-lib:buildProductionReportURI
rdf:type spin:Function ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is the name of the report
arg2 is the report start date
arg3 is the report end date"""^^xsd:string ;
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b1
])
] .
ep-mpr-spin-lib:selectCompressibilityScale
rdf:type spin:Function ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
......@@ -807,7 +834,7 @@ ep-mpr-spin-lib:selectFluidSamplingType
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:resultVariables (_:b2) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -888,7 +915,7 @@ ep-mpr-spin-lib:selectFluidSamplingType
]
]
] ;
sp:variable _:b1
sp:variable _:b2
])
] .
......@@ -2938,7 +2965,7 @@ ep-mpr-spin-lib:selectProductVolumeReportPeriodType
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b2) ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3082,7 +3109,7 @@ ep-mpr-spin-lib:selectProductVolumeReportPeriodType
]
]
] ;
sp:variable _:b2
sp:variable _:b3
])
] .
......@@ -5466,6 +5493,8 @@ ep-mpr-spin-lib:selectWorkScale
])
] .
_:b2 sp:varName "productVolumeReportPeriodType"^^xsd:string .
_:b3 sp:varName "productVolumeReportPeriodType"^^xsd:string .
_:b2 sp:varName "fluidSamplingType"^^xsd:string .
_:b1 sp:varName "fluidSamplingType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Mon Dec 19 18:38:19 GMT 2011
# Saved by TopBraid on Tue Dec 20 18:27:09 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Dec 20 16:01:28 GMT 2011
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
@prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
@prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> .
@prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
@prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
@prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
......@@ -19,5 +22,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> ;
owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Tue Dec 20 16:01:28 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Dec 20 19:26:54 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......