TRANSFORM_ddr-surveyStation-v1.1.1.ttl 13.1 KB
# Saved by TopBraid on Fri Oct 28 17:30:55 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation
# 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://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://spinrdf.org/spin

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation#> .
@prefix afn:     <http://jena.hpl.hp.com/ARQ/function#> .
@prefix arg:     <http://spinrdf.org/arg#> .
@prefix ddr:     <http://www.witsml.org/schemas/1series#> .
@prefix ep-core:  <http://www.reportinghub.no/ep/schema/core#> .
@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 rhspin:  <http://www.reportinghub.no/spin/rh#> .
@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/ddr/surveyStation>
      rdf:type owl:Ontology ;
      owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

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 ep-core:hasPart ;
                            sp:subject _:b2
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b1
                          ] [ sp:object ep-core:PhysicalObject ;
                            sp:predicate rdf:type ;
                            sp:subject _:b4
                          ] [ sp:object _:b5 ;
                            sp:predicate ep-core:temporalPartOf ;
                            sp:subject _:b4
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#PositionWithinWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b5
                          ] [ sp:object _:b6 ;
                            sp:predicate ep-core:spatialPartOf ;
                            sp:subject _:b5
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
                            sp:subject _:b5
                          ] [ sp:object ep-core:Length ;
                            sp:predicate rdf:type ;
                            sp:subject _:b7
                          ] [ sp:object _:b8 ;
                            sp:predicate _:b9 ;
                            sp:subject _:b7
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
                            sp:subject _:b5
                          ] [ sp:object ep-core:Length ;
                            sp:predicate rdf:type ;
                            sp:subject _:b10
                          ] [ sp:object _:b11 ;
                            sp:predicate _:b12 ;
                            sp:subject _:b10
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#inclination> ;
                            sp:subject _:b5
                          ] [ sp:object ep-core:PlaneAngle ;
                            sp:predicate rdf:type ;
                            sp:subject _:b13
                          ] [ sp:object _:b14 ;
                            sp:predicate _:b15 ;
                            sp:subject _:b13
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#azimuth> ;
                            sp:subject _:b5
                          ] [ sp:object ep-core:PlaneAngle ;
                            sp:predicate rdf:type ;
                            sp:subject _:b16
                          ] [ sp:object _:b17 ;
                            sp:predicate _:b18 ;
                            sp:subject _:b16
                          ]) ;
                sp:where ([ sp:object _:b19 ;
                            sp:predicate ep-spin-lib:nameWellbore ;
                            sp:subject spin:_this
                          ] [ sp:object _:b20 ;
                            sp:predicate ddr:dTimStart ;
                            sp:subject spin:_this
                          ] [ sp:object _:b21 ;
                            sp:predicate ddr:surveyStationRef ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b3 ;
                                        sp:predicate ddr:dTim ;
                                        sp:subject _:b21
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b22 ;
                                        sp:predicate ddr:mdRef ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b23 ;
                                        sp:predicate ddr:uomRef ;
                                        sp:subject _:b22
                                      ] [ sp:object _:b8 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b22
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b24 ;
                                        sp:predicate ddr:tvdRef ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b25 ;
                                        sp:predicate ddr:uomRef ;
                                        sp:subject _:b24
                                      ] [ sp:object _:b11 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b24
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b26 ;
                                        sp:predicate ddr:inclRef ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b27 ;
                                        sp:predicate ddr:uomRef ;
                                        sp:subject _:b26
                                      ] [ sp:object _:b14 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b26
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b28 ;
                                        sp:predicate ddr:aziRef ;
                                        sp:subject _:b21
                                      ] [ sp:object _:b29 ;
                                        sp:predicate ddr:uomRef ;
                                        sp:subject _:b28
                                      ] [ sp:object _:b17 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b28
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b19
                                    ] ;
                            sp:variable _:b30
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b30 ;
                                      sp:arg2 _:b20
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b21
                                    ] ;
                            sp:variable _:b31
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellBoreDirectionalSurveyURI ;
                                      sp:arg1 _:b30 ;
                                      sp:arg2 _:b20 ;
                                      sp:arg3 _:b31
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b23
                                    ] ;
                            sp:variable _:b9
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b25
                                    ] ;
                            sp:variable _:b12
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectPlaneAngleScale ;
                                      sp:arg1 _:b27
                                    ] ;
                            sp:variable _:b15
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectPlaneAngleScale ;
                                      sp:arg1 _:b29
                                    ] ;
                            sp:variable _:b18
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type rhspin:wellBoreByName ;
                                      arg:wellBoreName
                                              [ rdf:type xsd:string ;
                                                sp:arg1 _:b19
                                              ]
                                    ] ;
                            sp:variable _:b6
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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