TRANSFORM_ddr-controlIncidentInfo-v1.1.1.ttl 18.9 KB
# Saved by TopBraid on Tue Aug 23 20:39:28 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin

@prefix :        <http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo#> .
@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 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 250 Create an WellControlIncident activity"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellControlIncident> ;
                            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 _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b1
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
                            sp:subject _:b1
                          ] [ sp:object _:b7 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasInflowLocation> ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfASpatialPartOfAWellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b7
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
                            sp:subject _:b7
                          ] [ sp:object _:b9 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
                            sp:subject _:b7
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#formation> ;
                            sp:subject _:b7
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#eTimLost> ;
                            sp:subject _:b1
                          ] [ sp:object _:b12 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#during> ;
                            sp:subject _:b1
                          ] [ sp:object _:b14 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b13
                          ] [ sp:object _:b15 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b13
                          ] [ sp:object _:b16 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasDrillBit> ;
                            sp:subject _:b13
                          ] [ sp:object _:b17 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasChokeValve> ;
                            sp:subject _:b13
                          ] [ sp:object _:b18 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b17
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#TemporalPartOfEquipment> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b17
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#ChokeValve> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b18
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presMaxChoke> ;
                            sp:subject _:b18
                          ] [ sp:object _:b20 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject _:b16
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#TemporalPartOfEquipment> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b16
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#DrillBit> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b20
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#diaBit> ;
                            sp:subject _:b20
                          ] [ sp:object _:b22 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b1
                          ] [ sp:object _:b23 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b22
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volMudGained> ;
                            sp:subject _:b1
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://purl.org/dc/elements/1.1/description> ;
                            sp:subject _:b1
                          ] [ sp:object _:b26 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#diaCsgLast> ;
                            sp:subject _:b3
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdCsgLast> ;
                            sp:subject _:b3
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBit> ;
                            sp:subject _:b3
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tempBottom> ;
                            sp:subject _:b3
                          ] [ sp:object _:b30 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wtMud> ;
                            sp:subject _:b3
                          ] [ sp:object _:b31 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#porePressure> ;
                            sp:subject _:b3
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presShutInCasing> ;
                            sp:subject _:b3
                          ] [ sp:object _:b33 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presShutInDrill> ;
                            sp:subject _:b3
                          ]) ;
                sp:where ([ sp:object _:b34 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b35 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b36 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#controlIncidentInfo> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b37 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
                            sp:subject _:b36
                          ] [ sp:object _:b5 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTim> ;
                            sp:subject _:b36
                          ] [ sp:object _:b8 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdInflow> ;
                            sp:subject _:b36
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b9 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvdInflow> ;
                                        sp:subject _:b36
                                      ])
                          ] [ sp:object _:b38 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumPhase> ;
                            sp:subject _:b36
                          ] [ sp:object _:b39 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumProprietaryCode> ;
                            sp:subject _:b36
                          ] [ sp:object _:b11 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#eTimLost> ;
                            sp:subject _:b36
                          ] [ sp:object _:b6 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimRegained> ;
                            sp:subject _:b36
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#diaBit> ;
                            sp:subject _:b36
                          ] [ sp:object _:b28 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdBit> ;
                            sp:subject _:b36
                          ] [ sp:object _:b30 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wtMud> ;
                            sp:subject _:b36
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b31 ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/ddr#porePressure> ;
                                        sp:subject _:b36
                                      ])
                          ] [ sp:object _:b26 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#diaCsgLast> ;
                            sp:subject _:b36
                          ] [ sp:object _:b27 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mdCsgLast> ;
                            sp:subject _:b36
                          ] [ sp:object _:b24 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#volMudGained> ;
                            sp:subject _:b36
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presShutInCasing> ;
                            sp:subject _:b36
                          ] [ sp:object _:b33 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presShutInDrill> ;
                            sp:subject _:b36
                          ] [ sp:object _:b40 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumIncidentType> ;
                            sp:subject _:b36
                          ] [ sp:object _:b41 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumKillingType> ;
                            sp:subject _:b36
                          ] [ sp:object _:b10 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#formation> ;
                            sp:subject _:b36
                          ] [ sp:object _:b29 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tempBottom> ;
                            sp:subject _:b36
                          ] [ sp:object _:b19 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#presMaxChoke> ;
                            sp:subject _:b36
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#description> ;
                            sp:subject _:b36
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
                            sp:subject _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b34
                                    ] ;
                            sp:variable _:b42
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
                                      sp:arg1 _:b42 ;
                                      sp:arg2 _:b35
                                    ] ;
                            sp:variable _:b2
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellControlIncidentURI ;
                                      sp:arg1 _:b42 ;
                                      sp:arg2 _:b35 ;
                                      sp:arg3 _:b37
                                    ] ;
                            sp:variable _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreDuringWellControlIncidentURI ;
                                      sp:arg1 _:b42 ;
                                      sp:arg2 _:b35 ;
                                      sp:arg3 _:b37
                                    ] ;
                            sp:variable _:b3
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectDrillingActivityPurposeType ;
                                      sp:arg1 _:b39
                                    ] ;
                            sp:variable _:b14
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType ;
                                      sp:arg1 _:b38
                                    ] ;
                            sp:variable _:b15
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectWellControlIncidentType ;
                                      sp:arg1 _:b40
                                    ] ;
                            sp:variable _:b12
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:selectWellKillingType ;
                                      sp:arg1 _:b41
                                    ] ;
                            sp:variable _:b23
                          ])
              ] .

<http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo>
      rdf:type owl:Ontology ;
      owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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