TRANSFORM_ddr-casingLinerTubingRun-v1.1.1.ttl 12.7 KB
# Saved by TopBraid on Wed Aug 24 15:40:23 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun
# 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/casingLinerTubingRun#> .
@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 280 Well stimulation"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellStimulation> ;
                            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/activity#hasCasingLinerTubing> ;
                            sp:subject _:b1
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://purl.org/dc/elements/1.1/description> ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#TemporalPartOfEquipment> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b7
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b7
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#CasingLinerTubing> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b9
                          ] [ sp:object _:b10 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b9
                          ] [ sp:object _:b11 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b9
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#id> ;
                            sp:subject _:b9
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#od> ;
                            sp:subject _:b9
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#weight> ;
                            sp:subject _:b9
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#grade> ;
                            sp:subject _:b9
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#connection> ;
                            sp:subject _:b9
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#length> ;
                            sp:subject _:b9
                          ]) ;
                sp:where ([ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#casing_Liner_Tubing> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b7
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b2
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b20 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumType> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b12 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#id> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b13 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#od> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b14 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#weight> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b15 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#grade> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b16 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#connection> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b17 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#length> ;
                                        sp:subject _:b7
                                      ] [ sp:object
                                                [ sp:varName "mdTop"^^xsd:string
                                                ] ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdTop> ;
                                        sp:subject _:b7
                                      ] [ sp:object
                                                [ sp:varName "mdBottom"^^xsd:string
                                                ] ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBottom> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b21 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#casing_Liner_Tubing_Run> ;
                                        sp:subject _:b7
                                      ] [ sp:object _:b22 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumCasingType> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b8 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#description> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b5 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b6 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
                                        sp:subject _:b21
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b18
                                    ] ;
                            sp:variable _:b23
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b23 ;
                                      sp:arg2 _:b5
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellStimulationURI ;
                                      sp:arg1 _:b23 ;
                                      sp:arg2 _:b19
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartOfAWellBoreForWellStimulationURI ;
                                      sp:arg1 _:b23 ;
                                      sp:arg2 _:b19
                                    ] ;
                            sp:variable _:b3
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectCasingType ;
                                      sp:arg1 _:b22
                                    ] ;
                            sp:variable _:b10
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectTubeType ;
                                      sp:arg1 _:b20
                                    ] ;
                            sp:variable _:b11
                          ])
              ] .

<http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun>
      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 .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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