TRANSFORM_ddr-surveyStation-v1.1.1.ttl 17.7 KB
# Saved by TopBraid on Wed Aug 17 11:44:23 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation
# 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/surveyStation#> .
@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 180 Create a WellBoreDirectionalSurvey activity"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreDirectionalSurvey> ;
                            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:where ([ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b6 ;
                            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#surveyStation> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b8 ;
                            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:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b5
                                    ] ;
                            sp:variable _:b9
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b9 ;
                                      sp:arg2 _:b6
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellBoreDirectionalSurveyURI ;
                                      sp:arg1 _:b9 ;
                                      sp:arg2 _:b6 ;
                                      sp:arg3 _:b8
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildSurveyedPartOfAWellBoreURI ;
                                      sp:arg1 _:b9 ;
                                      sp:arg2 _:b6 ;
                                      sp:arg3 _:b8
                                    ] ;
                            sp:variable _:b3
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 181 Set time of WellBoreDirectionalSurvey"^^xsd:string ;
                sp:templates ([ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTim> ;
                            sp:subject _:b11
                          ]) ;
                sp:where ([ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#surveyStation> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b14
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTim> ;
                            sp:subject _:b14
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b12
                                    ] ;
                            sp:variable _:b16
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellBoreDirectionalSurveyURI ;
                                      sp:arg1 _:b16 ;
                                      sp:arg2 _:b13 ;
                                      sp:arg3 _:b15
                                    ] ;
                            sp:variable _:b11
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 182 Set md of WellBoreDirectionalSurvey"^^xsd:string ;
                sp:templates ([ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
                            sp:subject _:b18
                          ]) ;
                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#surveyStation> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b21
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
                            sp:subject _:b21
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b19
                                    ] ;
                            sp:variable _:b23
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildSurveyedPartOfAWellBoreURI ;
                                      sp:arg1 _:b23 ;
                                      sp:arg2 _:b20 ;
                                      sp:arg3 _:b22
                                    ] ;
                            sp:variable _:b18
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 183 Set tvd of WellBoreDirectionalSurvey"^^xsd:string ;
                sp:templates ([ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
                            sp:subject _:b25
                          ]) ;
                sp:where ([ sp:object _:b26 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#surveyStation> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b28
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
                            sp:subject _:b28
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b26
                                    ] ;
                            sp:variable _:b30
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildSurveyedPartOfAWellBoreURI ;
                                      sp:arg1 _:b30 ;
                                      sp:arg2 _:b27 ;
                                      sp:arg3 _:b29
                                    ] ;
                            sp:variable _:b25
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 184 Set inclination of WellBoreDirectionalSurvey"^^xsd:string ;
                sp:templates ([ sp:object _:b31 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#incl> ;
                            sp:subject _:b32
                          ]) ;
                sp:where ([ sp:object _:b33 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b34 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b35 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#surveyStation> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b36 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b35
                          ] [ sp:object _:b31 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#incl> ;
                            sp:subject _:b35
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b33
                                    ] ;
                            sp:variable _:b37
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildSurveyedPartOfAWellBoreURI ;
                                      sp:arg1 _:b37 ;
                                      sp:arg2 _:b34 ;
                                      sp:arg3 _:b36
                                    ] ;
                            sp:variable _:b32
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 185 Set azimuth of WellBoreDirectionalSurvey"^^xsd:string ;
                sp:templates ([ sp:object _:b38 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#azi> ;
                            sp:subject _:b39
                          ]) ;
                sp:where ([ sp:object _:b40 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b41 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b42 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#surveyStation> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b43 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b42
                          ] [ sp:object _:b38 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#azi> ;
                            sp:subject _:b42
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b40
                                    ] ;
                            sp:variable _:b44
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildSurveyedPartOfAWellBoreURI ;
                                      sp:arg1 _:b44 ;
                                      sp:arg2 _:b41 ;
                                      sp:arg3 _:b43
                                    ] ;
                            sp:variable _:b39
                          ])
              ] .

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

_:b38
      sp:varName "azi"^^xsd:string .

_:b39
      sp:varName "surveyedPartOfAWellBore"^^xsd:string .

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

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

_:b42
      sp:varName "surveyStation"^^xsd:string .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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