TRANSFORM_ddr-gasReadingInfo-v1.1.1.ttl 11.8 KB
# Saved by TopBraid on Wed Aug 24 13:32:40 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# 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/gasReadingInfo#> .
@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 270 Gas reading"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#GasReading> ;
                            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 _:b4 ;
                            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 _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominalTime> ;
                            sp:subject _:b1
                          ] [ sp:object _:b6 ;
                            sp:predicate rdf:type ;
                            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#tvdTop> ;
                            sp:subject _:b3
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBottom> ;
                            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#gasHigh> ;
                            sp:subject _:b3
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#gasLow> ;
                            sp:subject _:b3
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#meth> ;
                            sp:subject _:b3
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#eth> ;
                            sp:subject _:b3
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#prop> ;
                            sp:subject _:b3
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#ibut> ;
                            sp:subject _:b3
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nbut> ;
                            sp:subject _:b3
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#ipent> ;
                            sp:subject _:b3
                          ]) ;
                sp:where ([ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#gasReadingInfo> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b21
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b2
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdTop> ;
                            sp:subject _:b21
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumReadingType> ;
                            sp:subject _:b21
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#gasHigh> ;
                            sp:subject _:b21
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b5 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTim> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b9 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBottom> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b8 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdTop> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b10 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdBottom> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b12 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#gasLow> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b13 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#meth> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b14 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#eth> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b15 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#prop> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b16 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#ibut> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b17 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nbut> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b18 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#ipent> ;
                                        sp:subject _:b21
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b19
                                    ] ;
                            sp:variable _:b24
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b24 ;
                                      sp:arg2 _:b20
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildGasReadingURI ;
                                      sp:arg1 _:b24 ;
                                      sp:arg2 _:b22
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartOfAWellBoreForGasReadingURI ;
                                      sp:arg1 _:b24 ;
                                      sp:arg2 _:b22
                                    ] ;
                            sp:variable _:b3
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectGasReadingType ;
                                      sp:arg1 _:b23
                                    ] ;
                            sp:variable _:b6
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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