TRANSFORM_ddr-porePressure-v1.1.1.ttl 11.9 KB
# Saved by TopBraid on Fri Oct 28 15:51:07 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
# 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/activity
# imports: http://spinrdf.org/spin

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
@prefix afn:     <http://jena.hpl.hp.com/ARQ/function#> .
@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/porePressure>
      rdf:type owl:Ontology ;
      owl:imports <http://www.witsml.org/schemas/1series> , <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 .

<http://www.witsml.org/schemas/1series#Obj_drillReport>
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 180 Create a PorePressureDetermination activity"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination> ;
                            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 _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b3
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b3
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#PositionWithinWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b4
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
                            sp:subject _:b4
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
                            sp:subject _:b4
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object _:b7 ;
                            sp:predicate _:b8 ;
                            sp:subject _:b6
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
                            sp:subject _:b4
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b9
                          ] [ sp:object _:b10 ;
                            sp:predicate _:b11 ;
                            sp:subject _:b9
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#porePressureEquivalentMudDensity> ;
                            sp:subject _:b3
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b12
                          ] [ sp:object _:b13 ;
                            sp:predicate _:b14 ;
                            sp:subject _:b12
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b16 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ]) ;
                sp:where ([ sp:object _:b17 ;
                            sp:predicate ep-spin-lib:nameWellbore ;
                            sp:subject spin:_this
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#porePressureRef> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
                            sp:subject _:b19
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ;
                            sp:subject _:b19
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b20
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b20
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#readingKindRef> ;
                            sp:subject _:b19
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#equivalentMudWeightRef> ;
                            sp:subject _:b19
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b23
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b23
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b25 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#tvdRef> ;
                                        sp:subject _:b19
                                      ] [ sp:object _:b26 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b25
                                      ] [ sp:object _:b10 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b25
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b17
                                    ] ;
                            sp:variable _:b27
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b27 ;
                                      sp:arg2 _:b18
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b19
                                    ] ;
                            sp:variable _:b28
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPorePressureDeterminationURI ;
                                      sp:arg1 _:b27 ;
                                      sp:arg2 _:b18 ;
                                      sp:arg3 _:b28
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b21
                                    ] ;
                            sp:variable _:b8
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b26
                                    ] ;
                            sp:variable _:b11
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectDensityScale ;
                                      sp:arg1 _:b24
                                    ] ;
                            sp:variable _:b14
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectPorePressureDeterminationType ;
                                      sp:arg1 _:b22
                                    ] ;
                            sp:variable _:b16
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type rhspin:wellBoreByName ;
                                      sp:arg1 [ rdf:type xsd:string ;
                                                sp:arg1 _:b17
                                              ]
                                    ] ;
                            sp:variable _:b5
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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