David Price

Added Depth and activity URI property to drill report Operation section

# Saved by TopBraid on Sun Aug 14 22:37:58 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/spin/rh
@prefix ddr-tables: <http://www.reportinghub.no/ep/spin/ddr-tables#> .
......@@ -22,38 +24,64 @@ ddr-tables:Operations
sp:orderBy (_:b1) ;
sp:resultVariables (_:b1 _:b2 [ sp:varName "startDepth"^^xsd:string
] [ sp:varName "endDepth"^^xsd:string
] [ sp:varName "activity"^^xsd:string
] [ sp:varName "state"^^xsd:string
] _:b3 _:b4 [ sp:varName "state"^^xsd:string
] [ sp:varName "remark"^^xsd:string
]) ;
sp:where ([ sp:object _:b3 ;
sp:where ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object _:b4 ;
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b3
sp:subject _:b5
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b4
sp:subject _:b6
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject _:b6
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ;
sp:predicate rdf:type ;
sp:subject _:b4
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b7
] [ sp:object _:b3 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b8
])
])
] ;
rhspin:tableHeaders ("Start Time"^^xsd:string "End Time"^^xsd:string "Start Depth mMD"^^xsd:string "End Depth mMD"^^xsd:string "Depth mMD"^^xsd:string "Main - Sub Activity"^^xsd:string "State"^^xsd:string "Remark"^^xsd:string) .
<http://www.reportinghub.no/ep/spin/ddr-tables-v1.0>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
owl:versionInfo "0.1.0"^^xsd:string .
_:b3 sp:varName "depth"^^xsd:string .
_:b8 sp:varName "md"^^xsd:string .
_:b7 sp:varName "wellbore"^^xsd:string .
_:b4 sp:varName "activity"^^xsd:string .
_:b2 sp:varName "endTime"^^xsd:string .
_:b1 sp:varName "startTime"^^xsd:string .
_:b4 sp:varName "part"^^xsd:string .
_:b6 sp:varName "part"^^xsd:string .
_:b3 sp:varName "reportOn"^^xsd:string .
_:b5 sp:varName "reportOn"^^xsd:string .
......
# Saved by TopBraid on Sun Aug 14 22:37:58 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
......@@ -13,7 +13,7 @@
<rhswp:NameValuePair arg:name="Status:" arg:value="{TBD}" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{= spl:object(?dailyDrillingActivity, ep-activity:drillingOperator) }" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{= ui:label(?rig) }" />
<rhswp:NameValuePair arg:name="Spud date:" arg:value="{= ui:label(spl:object(?onWellBore, ddr:dTimSpud)) }" />
<rhswp:NameValuePair arg:name="Spud date:" arg:value="{TBD}" />
<rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:elevKelly) }" />
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{# SELECT ui:label(?wellBoreTightnessType) WHERE { ?temporalPartOfAWellBore rdf:type ?wellBoreTightnessType . ?wellBoreTightnessType a ep-well:WellBoreTightnessType} }" />
<rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:avgPresBH) }" />
......