TRANSFORM_ddr-activity-(v1.1.1).ttl 15.3 KB
# Saved by TopBraid on Mon Aug 08 17:04:22 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.1/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/1.1/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/well

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
@prefix bindEP-NativeOWL:  <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization:  <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1:  <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib:  <http://www.reportinghub.no/ep/spin/lib#> .
@prefix iso15926:  <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix normalization:  <http://www.reportinghub.no/ep/transform/normalization#> .
@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/schema/ddr#Obj_drillReport>
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 130 Transfer proprietaryCode"^^xsd:string ;
                sp:templates ([ sp:object _:b1 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b2
                          ]) ;
                sp:where ([ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b4
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject _:b4
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumProprietaryCode> ;
                            sp:subject _:b4
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b3
                                    ] ;
                            sp:variable _:b8
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartActivityURI ;
                                      sp:arg1 _:b8 ;
                                      sp:arg2 _:b6 ;
                                      sp:arg3 _:b5
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectDrillingActivityPurposeType ;
                                      sp:arg1 _:b7
                                    ] ;
                            sp:variable _:b1
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 129 Transfer tvd"^^xsd:string ;
                sp:templates ([ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
                            sp:subject _:b10
                          ]) ;
                sp:where ([ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b12 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b12
                          ] [ sp:object _:b14 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject _:b12
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
                            sp:subject _:b12
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b15
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b11
                                    ] ;
                            sp:variable _:b16
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartActivityURI ;
                                      sp:arg1 _:b16 ;
                                      sp:arg2 _:b14 ;
                                      sp:arg3 _:b13
                                    ] ;
                            sp:variable _:b15
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 128 Transfer md"^^xsd:string ;
                sp:templates ([ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
                            sp:subject _:b18
                          ]) ;
                sp:where ([ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b20
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject _:b20
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
                            sp:subject _:b20
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b23
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b19
                                    ] ;
                            sp:variable _:b24
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartActivityURI ;
                                      sp:arg1 _:b24 ;
                                      sp:arg2 _:b22 ;
                                      sp:arg3 _:b21
                                    ] ;
                            sp:variable _:b23
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 127 Create part activity and temporal part of WellBore"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b25
                          ] [ sp:object _:b25 ;
                            sp:predicate iso15926:hasPart ;
                            sp:subject _:b26
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject _:b25
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
                            sp:subject _:b25
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b29
                          ] [ sp:object _:b30 ;
                            sp:predicate iso15926:temporalPartOf ;
                            sp:subject _:b29
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b25
                          ]) ;
                sp:where ([ sp:object _:b31 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b33 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b34 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b33
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject _:b33
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
                            sp:subject _:b33
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b31
                                    ] ;
                            sp:variable _:b35
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildPartActivityURI ;
                                      sp:arg1 _:b35 ;
                                      sp:arg2 _:b27 ;
                                      sp:arg3 _:b34
                                    ] ;
                            sp:variable _:b25
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellBoreURI ;
                                      sp:arg1 _:b35
                                    ] ;
                            sp:variable _:b30
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b35 ;
                                      sp:arg2 _:b32
                                    ] ;
                            sp:variable _:b26
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
                                      sp:arg1 _:b35 ;
                                      sp:arg2 _:b27 ;
                                      sp:arg3 _:b28
                                    ] ;
                            sp:variable _:b29
                          ])
              ] .

<http://www.reportinghub.no/ep/transform/1.1/ddr/activity>
      rdf:type owl:Ontology ;
      owl:imports <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/schema/1.1/activity> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.1/activity-purpose> , <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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