TRANSFORM_ddr-drillReport-(v1.1.1).ttl 14.7 KB
# Saved by TopBraid on Thu Aug 04 16:09:10 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/activity
# imports: http://www.reportinghub.no/ep/schema/well

@prefix NPD_1104121247071:  <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@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 p1:      <http://example.org/file1#> .
@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 103
Classify a DailyDrillingReport"""^^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#createDate> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
                                      sp:arg1 _:b5
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b3
                                    ] ;
                            sp:variable _:b6
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
                                      sp:arg1 _:b6 ;
                                      sp:arg2 _:b4
                                    ] ;
                            sp:variable _:b2
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b7
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b8
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
                            sp:subject _:b7
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
                            sp:subject _:b7
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
                            sp:subject _:b8
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b11
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b12
                          ] [ sp:object _:b12 ;
                            sp:predicate iso15926:temporalPartOf ;
                            sp:subject _:b11
                          ] [ sp:object _:b13 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b12
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b8
                          ]) ;
                sp:where ([ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b13
                                    ] ;
                            sp:variable _:b14
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
                                      sp:arg1 _:b14 ;
                                      sp:arg2 _:b9
                                    ] ;
                            sp:variable _:b7
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b14 ;
                                      sp:arg2 _:b10
                                    ] ;
                            sp:variable _:b8
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
                                      sp:arg1 _:b14 ;
                                      sp:arg2 _:b10
                                    ] ;
                            sp:variable _:b11
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellBoreURI ;
                                      sp:arg1 _:b14
                                    ] ;
                            sp:variable _:b12
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 104 Create Well"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b15
                          ] [ sp:object _:b16 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b15
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
                            sp:subject _:b17
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b15
                          ]) ;
                sp:where ([ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b17
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b19
                                    ] ;
                            sp:variable _:b21
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b21 ;
                                      sp:arg2 _:b20
                                    ] ;
                            sp:variable _:b17
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b16
                                    ] ;
                            sp:variable _:b22
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellURI ;
                                      sp:arg1 _:b22
                                    ] ;
                            sp:variable _:b15
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
                sp:templates ([ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
                            sp:subject _:b24
                          ]) ;
                sp:where ([ sp:object _:b25 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b26 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b23 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b25
                                    ] ;
                            sp:variable _:b27
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b27 ;
                                      sp:arg2 _:b26
                                    ] ;
                            sp:variable _:b24
                          ])
              ] .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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