TRANSFORM_ddr-lithShowInfo-v1.1.1.ttl 13.8 KB
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/spin/1.1/lib

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
@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/lithShowInfo>
      rdf:type owl:Ontology ;
      owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
      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 200 Create a Lithology and shows observation activity"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#LithologyAndShowsObservation> ;
                            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#WellBoreSection> ;
                            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/activity#finishedAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ;
                            sp:subject _:b4
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b4
                          ] [ sp:object _:b7 ;
                            sp:predicate _:b8 ;
                            sp:subject _:b4
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ;
                            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#trueVerticalDepthToTheTopOfAPartOfAWellBore> ;
                            sp:subject _:b4
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            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/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ;
                            sp:subject _:b4
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
                            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#showDescription> ;
                            sp:subject _:b3
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/well#lithologyDescription> ;
                            sp:subject _:b3
                          ]) ;
                sp:where ([ sp:object _:b20 ;
                            sp:predicate ep-spin-lib:nameWellbore ;
                            sp:subject spin:_this
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#lithShowInfoRef> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
                            sp:subject _:b22
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ;
                            sp:subject _:b22
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                            sp:subject _:b23
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b23
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ;
                            sp:subject _:b22
                          ] [ 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:Optional ;
                            sp:elements ([ sp:object _:b27 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ;
                                        sp:subject _:b22
                                      ] [ sp:object _:b28 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b27
                                      ] [ sp:object _:b13 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b27
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b29 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ;
                                        sp:subject _:b22
                                      ] [ sp:object _:b30 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
                                        sp:subject _:b29
                                      ] [ sp:object _:b16 ;
                                        sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                                        sp:subject _:b29
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b18 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#show> ;
                                        sp:subject _:b22
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b19 ;
                                        sp:predicate <http://www.witsml.org/schemas/1series#lithology> ;
                                        sp:subject _:b22
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b20
                                    ] ;
                            sp:variable _:b31
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b31 ;
                                      sp:arg2 _:b21
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b22
                                    ] ;
                            sp:variable _:b32
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildLithShowObservationURI ;
                                      sp:arg1 _:b31 ;
                                      sp:arg2 _:b21 ;
                                      sp:arg3 _:b32
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b24
                                    ] ;
                            sp:variable _:b8
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectLengthScale ;
                                      sp:arg1 _:b28
                                    ] ;
                            sp:variable _:b14
                          ] [ 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:selectLengthScale ;
                                      sp:arg1 _:b30
                                    ] ;
                            sp:variable _:b17
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type rhspin:wellBoreByName ;
                                      sp:arg1 [ rdf:type xsd:string ;
                                                sp:arg1 _:b20
                                              ]
                                    ] ;
                            sp:variable _:b5
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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