TRANSFORM_ddr-wellDatum-v1.1.1.ttl 16.4 KB
# Saved by TopBraid on Tue Sep 27 14:13:13 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellDatum
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://spinrdf.org/spin

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/wellDatum#> .
@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/transform/1.1/wellDatum>
      rdf:type owl:Ontology ;
      owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.witsml.org/schemas/1series> , <http://spinrdf.org/spin> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

<http://www.witsml.org/schemas/1series#Obj_drillReport>
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 169d Transfer wellDatum (step number chosen to ensure that it comes after the rig definition)"^^xsd:string ;
                sp:templates ([ sp:object _:b1 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/report#datumObjectForDailyDrillingReport> ;
                            sp:subject _:b2
                          ] [ sp:object _:b3 ;
                            sp:predicate rdfs:comment ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingWater-meanSeaLevel> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/report#nameAsDatumObject> ;
                            sp:subject _:b1
                          ] [ sp:object _:b1 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b5
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b5
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b5
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/facility#depthOfSurroundingWater> ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b7
                          ] [ sp:object _:b8 ;
                            sp:predicate _:b9 ;
                            sp:subject _:b7
                          ]) ;
                sp:where ([ sp:object _:b10 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
                            sp:subject spin:_this
                          ] [ sp:object <http://www.witsml.org/schemas/1series#ECE_SL> ;
                            sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
                            sp:subject _:b12
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b4 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#name> ;
                                        sp:subject _:b12
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b13 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#elevationRef> ;
                                        sp:subject _:b12
                                      ] [ sp:object _:b14 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b13
                                      ] [ sp:object _:b8 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b13
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b3 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#comment> ;
                                        sp:subject _:b12
                                      ])
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
                            sp:subject _:b16
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b15
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b10
                                    ] ;
                            sp:variable _:b17
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
                                      sp:arg1 _:b17 ;
                                      sp:arg2 _:b11
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b17 ;
                                      sp:arg2 [ sp:varName "dTimStart"^^xsd:string
                                              ]
                                    ] ;
                            sp:variable _:b16
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectClassOfWellDatumObject ;
                                      sp:arg1 [ sp:varName "code"^^xsd:string
                                              ]
                                    ] ;
                            sp:variable
                                    [ sp:varName "classOfWellDatumObject"^^xsd:string
                                    ]
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b14
                                    ] ;
                            sp:variable _:b9
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 169c Transfer wellDatum (step number chosen to ensure that it comes after the rig definition)"^^xsd:string ;
                sp:templates ([ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/report#datumObjectForDailyDrillingReport> ;
                            sp:subject _:b19
                          ] [ sp:object _:b20 ;
                            sp:predicate rdfs:comment ;
                            sp:subject _:b18
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b18
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/report#nameAsDatumObject> ;
                            sp:subject _:b18
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b22
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b22
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b22
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
                            sp:subject _:b18
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b24
                          ] [ sp:object _:b25 ;
                            sp:predicate _:b26 ;
                            sp:subject _:b24
                          ]) ;
                sp:where ([ sp:object _:b27 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
                            sp:subject spin:_this
                          ] [ sp:object <http://www.witsml.org/schemas/1series#ECE_KB> ;
                            sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
                            sp:subject _:b29
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b21 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#name> ;
                                        sp:subject _:b29
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b30 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#elevationRef> ;
                                        sp:subject _:b29
                                      ] [ sp:object _:b31 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b30
                                      ] [ sp:object _:b25 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b30
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b20 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#comment> ;
                                        sp:subject _:b29
                                      ])
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
                            sp:subject _:b33
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b32
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b23
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b27
                                    ] ;
                            sp:variable _:b34
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
                                      sp:arg1 _:b34 ;
                                      sp:arg2 _:b28
                                    ] ;
                            sp:variable _:b19
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b34 ;
                                      sp:arg2 [ sp:varName "dTimStart"^^xsd:string
                                              ]
                                    ] ;
                            sp:variable _:b33
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectClassOfWellDatumObject ;
                                      sp:arg1 [ sp:varName "code"^^xsd:string
                                              ]
                                    ] ;
                            sp:variable
                                    [ sp:varName "classOfWellDatumObject"^^xsd:string
                                    ]
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b31
                                    ] ;
                            sp:variable _:b26
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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