TRANSFORM_ddr-perfInfo-v1.1.1.ttl 7.94 KB
# Saved by TopBraid on Wed Aug 24 12:41:02 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo
# 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/perfInfo#> .
@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 260 Open perforation interval"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#OpenPerforationInterval> ;
                            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#startedAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
                            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:where ([ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#perfInfo> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b13
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimOpen> ;
                            sp:subject _:b13
                          ] [ 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 _:b13
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBottom> ;
                            sp:subject _:b13
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b6 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimClose> ;
                                        sp:subject _:b13
                                      ] [ sp:object _:b8 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdTop> ;
                                        sp:subject _:b13
                                      ] [ sp:object _:b10 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdBottom> ;
                                        sp:subject _:b13
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b11
                                    ] ;
                            sp:variable _:b15
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b15 ;
                                      sp:arg2 _:b12
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildOpenPerforationIntervalURI ;
                                      sp:arg1 _:b15 ;
                                      sp:arg2 _:b14
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPerforationIntervalPartOfAWellBoreURI ;
                                      sp:arg1 _:b15 ;
                                      sp:arg2 _:b14
                                    ] ;
                            sp:variable _:b3
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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