TRANSFORM_ddr-wellTestInfo-v1.1.1.ttl 17 KB
# Saved by TopBraid on Mon Aug 22 12:56:53 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo#> .
@prefix ep-spin-lib:  <http://www.reportinghub.no/ep/spin/lib#> .
@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#> .
@prefix sp:      <http://spinrdf.org/sp#> .
@prefix spin:    <http://spinrdf.org/spin#> .
@prefix spl:     <http://spinrdf.org/spl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment """STEP 210 Create WellTest activity
All properties transfered to the activity except mdTop, tvdTop, mdBottom and tvdBottom."""^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b1 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b2
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfASpatialPartOfAWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b3
                          ] [ sp:object
                                    [ sp:varName "dailyTemporalPartOfAWellBore"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
                            sp:subject _:b3
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b1
                          ] [ sp:object _:b4 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#testNumber> ;
                            sp:subject _:b1
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdTop> ;
                            sp:subject _:b3
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBottom> ;
                            sp:subject _:b3
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdTop> ;
                            sp:subject _:b3
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdBottom> ;
                            sp:subject _:b3
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#chokeOrificeSize> ;
                            sp:subject _:b1
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#densityOil> ;
                            sp:subject _:b1
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#densityWater> ;
                            sp:subject _:b1
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#densityGas> ;
                            sp:subject _:b1
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#flowRateOil> ;
                            sp:subject _:b1
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#flowRateWater> ;
                            sp:subject _:b1
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#flowRateGas> ;
                            sp:subject _:b1
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presShutIn> ;
                            sp:subject _:b1
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presFlowing> ;
                            sp:subject _:b1
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presBottom> ;
                            sp:subject _:b1
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#gasOilRatio> ;
                            sp:subject _:b1
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#waterOilRatio> ;
                            sp:subject _:b1
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#chloride> ;
                            sp:subject _:b1
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#carbonDioxide> ;
                            sp:subject _:b1
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hydrogenSulfide> ;
                            sp:subject _:b1
                          ] [ sp:object _:b26 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volOilTotal> ;
                            sp:subject _:b1
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volGasTotal> ;
                            sp:subject _:b1
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volWaterTotal> ;
                            sp:subject _:b1
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volOilStored> ;
                            sp:subject _:b1
                          ]) ;
                sp:where ([ sp:object _:b30 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b31 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellTestInfo> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b33 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b32
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTim> ;
                            sp:subject _:b32
                          ] [ sp:object
                                    [ sp:varName "dailytemporalPartOfAWellBore"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b2
                          ] [ sp:object _:b34 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumTestType> ;
                            sp:subject _:b32
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#testNumber> ;
                            sp:subject _:b32
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdTop> ;
                            sp:subject _:b32
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBottom> ;
                            sp:subject _:b32
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b9 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdTop> ;
                                        sp:subject _:b32
                                      ] [ sp:object _:b10 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdBottom> ;
                                        sp:subject _:b32
                                      ])
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#chokeOrificeSize> ;
                            sp:subject _:b32
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#densityOil> ;
                            sp:subject _:b32
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#densityWater> ;
                            sp:subject _:b32
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#densityGas> ;
                            sp:subject _:b32
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#flowRateOil> ;
                            sp:subject _:b32
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#flowRateWater> ;
                            sp:subject _:b32
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#flowRateGas> ;
                            sp:subject _:b32
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presShutIn> ;
                            sp:subject _:b32
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presFlowing> ;
                            sp:subject _:b32
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presBottom> ;
                            sp:subject _:b32
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#gasOilRatio> ;
                            sp:subject _:b32
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#waterOilRatio> ;
                            sp:subject _:b32
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#chloride> ;
                            sp:subject _:b32
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#carbonDioxide> ;
                            sp:subject _:b32
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hydrogenSulfide> ;
                            sp:subject _:b32
                          ] [ sp:object _:b26 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volOilTotal> ;
                            sp:subject _:b32
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volGasTotal> ;
                            sp:subject _:b32
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volWaterTotal> ;
                            sp:subject _:b32
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volOilStored> ;
                            sp:subject _:b32
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b30
                                    ] ;
                            sp:variable _:b35
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b35 ;
                                      sp:arg2 _:b31
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellTestURI ;
                                      sp:arg1 _:b35 ;
                                      sp:arg2 _:b33
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartOfAWellBoreDuringWellTestURI ;
                                      sp:arg1 _:b35 ;
                                      sp:arg2 _:b33
                                    ] ;
                            sp:variable _:b3
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectWellTestType ;
                                      sp:arg1 _:b34
                                    ] ;
                            sp:variable _:b4
                          ])
              ] .

<http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo>
      rdf:type owl:Ontology ;
      owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

_:b30
      sp:varName "nameWellBore"^^xsd:string .

_:b31
      sp:varName "dTimStart"^^xsd:string .

_:b32
      sp:varName "wellTestInfo"^^xsd:string .

_:b33
      sp:varName "index"^^xsd:string .

_:b5  sp:varName "dTimWellTest"^^xsd:string .

_:b2  sp:varName "dailyDrillingActivity"^^xsd:string .

_:b34
      sp:varName "enumTestType"^^xsd:string .

_:b6  sp:varName "testNumber"^^xsd:string .

_:b7  sp:varName "mdTop"^^xsd:string .

_:b8  sp:varName "mdBottom"^^xsd:string .

_:b9  sp:varName "tvdTop"^^xsd:string .

_:b10
      sp:varName "tvdBottom"^^xsd:string .

_:b11
      sp:varName "chokeOrificeSize"^^xsd:string .

_:b12
      sp:varName "densityOil"^^xsd:string .

_:b13
      sp:varName "densityWater"^^xsd:string .

_:b14
      sp:varName "densityGas"^^xsd:string .

_:b15
      sp:varName "flowRateOil"^^xsd:string .

_:b16
      sp:varName "flowRateWater"^^xsd:string .

_:b17
      sp:varName "flowRateGas"^^xsd:string .

_:b18
      sp:varName "presShutIn"^^xsd:string .

_:b19
      sp:varName "presFlowing"^^xsd:string .

_:b20
      sp:varName "pressBottom"^^xsd:string .

_:b21
      sp:varName "gasOilRatio"^^xsd:string .

_:b22
      sp:varName "waterOilRatio"^^xsd:string .

_:b23
      sp:varName "chloride"^^xsd:string .

_:b24
      sp:varName "carbonDioxide"^^xsd:string .

_:b25
      sp:varName "hydrogenSulfide"^^xsd:string .

_:b26
      sp:varName "volOilTotal"^^xsd:string .

_:b27
      sp:varName "volGasTotal"^^xsd:string .

_:b28
      sp:varName "volWaterTotal"^^xsd:string .

_:b29
      sp:varName "volOilStored"^^xsd:string .

_:b35
      sp:varName "normalizedWellBoreName"^^xsd:string .

_:b1  sp:varName "wellTest"^^xsd:string .

_:b3  sp:varName "testedPartOfAWellBore"^^xsd:string .

_:b4  sp:varName "wellTestType"^^xsd:string .