David Leal

Some progress on the HTML browser, but I am finding it difficult to

debug, and currently it is not working properly.
# baseURI: http://www.reportinghub.no/ep/schema/1.0/report
# 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/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/well
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.0/report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-report:DailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:Report .
ep-report:FinalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:NormalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:PreliminaryDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:Report
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
# Saved by TopBraid on Thu Aug 11 18:17:22 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.0/report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-report:DailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:Report .
ep-report:DailyDrillingReportFinalisationType
rdf:type owl:Class ;
rdfs:subClassOf owl:Class .
ep-report:FinalDailyDrillingReport
rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:NormalDailyDrillingReport
rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:PreliminaryDailyDrillingReport
rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:Report
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
......
# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011
# Saved by TopBraid on Thu Aug 11 15:48:53 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
# imports: http://www.reportinghub.no/swp/ddr
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
@prefix ddr1: <http://www.reportinghub.no/swp/ddr#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
......@@ -21,7 +24,7 @@
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> ;
owl:imports <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://www.reportinghub.no/swp/ddr> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
......
# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011
# Saved by TopBraid on Thu Aug 11 15:48:53 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
<html let:activity="{= spl:object(?this, ep-activity:reportOn) }"
let:onWellBore="{# SELECT ?onWellBore WHERE { ?this ep-activity:reportOn/ep-activity:onWellBore ?onWellBore } }"
let:report="{= ?this }">
<head>
<link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" />
</head>
<body let:wellBore="{= spl:object(?onWellBore, ep-core:temporalPartOf) }">
<h1>Summary report Wellbore: {= rhspin:npdName(?wellBore) }</h1>
<div>End time: {= ui:label(spl:object(?activity, ep-activity:finishedAt)) }</div>
<hr />
<table><tr>
<html
let:dailyDrillingReport="{= ?this }"
let:dailyDrillingActivity="{= spl:object(?dailyDrillingReport, ep-activity:reportOn) }"
let:temporalPartOfAWellBore="{# SELECT ?temporalPartOfAWellBore WHERE { ?dailyDrillingReport ep-activity:reportOn/ep-activity:onWellBore ?temporalPartOfAWellBore } }"
>
<head>
<link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" />
</head>
<body
let:wellBore="{= spl:object(?temporalPartOfAWellBore, ep-core:temporalPartOf) }"
let:status="{# SELECT ?status WHERE { ?dailyDrillingReport rdf:type ?status . ?status rdf:type ep-report:DailyDrillingReportFinalisationType} }"
>
<!--
let:pressureTestType="{# SELECT ?pressureTestType WHERE { ?dailyDrillingActivity ep-core:hasPart ?pressureTest . ?pressureTest rdf:type ?pressureTestType . ?pressureTestType rdf:type ep-activity:PressureTestType} }"
-->
<h1>Summary report Wellbore: {= rhspin:npdName(?wellBore) }</h1>
<div>End time: {= ui:label(spl:object(?dailyDrillingActivity, ep-activity:finishedAt)) }</div>
<hr />
<table><tr>
<td class="ddrSummaryLeft">
<rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= rhspin:npdName(?wellBore) }" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(?status) }" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Spud date:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{ spl:object(?this, ???) }" />
<!-- <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:elevKelly) }}" />
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdKickoff) }" />
<rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdPlugTop) }" />
<rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{ spl:object(?activity, ???) }" />
<rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:mdKickoff) }" />
<rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:mdPlugTop) }" />
<rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{= rhspin:dtypeValue(?dailyDrillingActivity, ddr:ropCurrent) }" />
<rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{= ui:label(?pressureTestType) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:mdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvdCsgLast) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{= rhspin:dtypeValue(?dailyDrillingActivity, ddr:tvdCsgLast) }" />
</td>
<td class="ddrSummaryRight">
<rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(ui:label(spl:object(?activity, ep-activity:startedAt)), ' - ', ui:label(spl:object(?activity, ep-activity:finishedAt))) }" />
<td class="ddrSummaryRight">
<rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(ui:label(spl:object(?dailyDrillingActivity, ep-activity:startedAt)), ' - ', ui:label(spl:object(?dailyDrillingActivity, ep-activity:finishedAt))) }" />
<rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{= rhspin:npdId(?wellBore) }" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{= spl:object(?this, ep-activity:createdAt) }" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{= ui:label(spl:object(?dailyDrillingReport, ep-activity:createdAt)) }" />
<rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Temprature degC:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Temperature degC:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= spl:object(?activity, ddr:tvdKickoff) }" />
<rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvd) }" />
<rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= rhspin:dtypeValue(?activity, ddr:distDrill) }" />
<rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdDiaHoleStart) }" />
<rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:tvdKickoff) }" />
<rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:tvd) }" />
<rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= rhspin:dtypeValue(?dailyDrillingActivity, ddr:distDrill) }" />
<rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= rhspin:dtypeValue(?dailyDrillingActivity, ddr:mdDiaHoleStart) }" />
<rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:tvdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdCsgLast) }" />
</td>
</tr></table>
<rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:mdCsgLast) }" />
--> </td>
</tr></table>
</body>
</html>
......
# baseURI: http://www.reportinghub.no/swp/ddr
# imports: http://uispin.org/tui
# 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/schema/1.0/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
@prefix : <http://www.reportinghub.no/swp/ddr#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@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 ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
ui:instanceView <http://www.reportinghub.no/swp/DailyDrillingReport.uispin.html> .
<http://www.reportinghub.no/swp/ddr>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# Saved by TopBraid on Thu Aug 11 15:40:02 BST 2011
# baseURI: http://www.reportinghub.no/swp/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://uispin.org/tui
@prefix : <http://www.reportinghub.no/swp/ddr#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@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 ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
ui:instanceView <http://www.reportinghub.no/swp/DailyDrillingReport.uispin.html> .
<http://www.reportinghub.no/swp/ddr>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......