TRANSFORM_ddr-fluid-v1.1.1.ttl 18.5 KB
# Saved by TopBraid on Tue Sep 20 22:42:20 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/fluid
# 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/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/fluid#> .
@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/fluid>
      rdf:type owl:Ontology ;
      owl:imports <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/activity> , <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 155 Fluid reading activity"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FluidReading> ;
                            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#TemporalPartOfAWellBore> ;
                            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#SpatialPartOfAWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b5
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
                            sp:subject _:b5
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b1
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onFluid> ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object _:b7 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#MudClass> ;
                            sp:subject _:b6
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#FluidType> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b7
                          ] [ sp:object _:b9 ;
                            sp:predicate rdfs:comment ;
                            sp:subject _:b7
                          ] [ sp:object _:b10 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
                            sp:subject _:b6
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b12 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PlasticViscosity> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b12
                          ] [ sp:object _:b13 ;
                            sp:predicate _:b14 ;
                            sp:subject _:b12
                          ] [ sp:object _:b15 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#YieldPoint> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b15
                          ] [ sp:object _:b16 ;
                            sp:predicate _:b17 ;
                            sp:subject _:b15
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
                            sp:subject _:b5
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b18
                          ] [ sp:object _:b19 ;
                            sp:predicate _:b20 ;
                            sp:subject _:b18
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
                            sp:subject _:b5
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b21
                          ] [ sp:object _:b22 ;
                            sp:predicate _:b23 ;
                            sp:subject _:b21
                          ] [ sp:object _:b24 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b6
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b24
                          ] [ sp:object _:b25 ;
                            sp:predicate _:b26 ;
                            sp:subject _:b24
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#BlowOutPreventer> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b27
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
                            sp:subject _:b27
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/equipment#maximumPressureForBlowOutPreventer> ;
                            sp:subject _:b27
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b28
                          ] [ sp:object _:b29 ;
                            sp:predicate _:b30 ;
                            sp:subject _:b28
                          ]) ;
                sp:where ([ sp:object _:b31 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b2
                          ] [ sp:object _:b33 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#fluidRef> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
                            sp:subject _:b33
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#type> ;
                            sp:subject _:b33
                          ] [ sp:object _:b34 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#pvRef> ;
                            sp:subject _:b33
                          ] [ sp:object _:b35 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b34
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b34
                          ] [ sp:object _:b36 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ;
                            sp:subject _:b33
                          ] [ sp:object _:b37 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b36
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b36
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b8 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#MudClass> ;
                                        sp:subject _:b33
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b38 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#tvdRef> ;
                                        sp:subject _:b33
                                      ] [ sp:object _:b39 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b38
                                      ] [ sp:object _:b22 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b38
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b40 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#ypRef> ;
                                        sp:subject _:b33
                                      ] [ sp:object _:b41 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b40
                                      ] [ sp:object _:b16 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b40
                                      ])
                          ] [ sp:object _:b42 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#densityRef> ;
                            sp:subject _:b33
                          ] [ sp:object _:b43 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b42
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b42
                          ] [ sp:object _:b44 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#presBopRatingRef> ;
                            sp:subject _:b33
                          ] [ sp:object _:b45 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b44
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b44
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b31
                                    ] ;
                            sp:variable _:b46
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b33
                                    ] ;
                            sp:variable _:b47
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildFluidReadingURI ;
                                      sp:arg1 _:b46 ;
                                      sp:arg2 _:b32 ;
                                      sp:arg3 _:b47
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b46 ;
                                      sp:arg2 _:b32
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b37
                                    ] ;
                            sp:variable _:b20
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b39
                                    ] ;
                            sp:variable _:b23
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectDensityScale ;
                                      sp:arg1 _:b43
                                    ] ;
                            sp:variable _:b26
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectPlasticViscosityScale ;
                                      sp:arg1 _:b35
                                    ] ;
                            sp:variable _:b14
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectYieldPointScale ;
                                      sp:arg1 _:b41
                                    ] ;
                            sp:variable _:b17
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectPressureScale ;
                                      sp:arg1 _:b45
                                    ] ;
                            sp:variable _:b30
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectMudClass ;
                                      sp:arg1 _:b8
                                    ] ;
                            sp:variable _:b10
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

_:b45
      sp:varName "uomPressure"^^xsd:string .

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

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

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

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

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

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

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

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

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

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

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