David Price

Renamed WDR-tables to DRILLING-tables and separated NPT from WDR report

# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables
# baseURI: http://www.reportinghub.no/ep/spin/drilling-tables
# 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
......@@ -16,13 +16,13 @@
@prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/spin/wdr-tables>
<http://www.reportinghub.no/ep/spin/drilling-tables>
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/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "0.1.0"^^xsd:string .
wdr-tables:DailyAndForecastComments
<http://www.reportinghub.no/ep/spin/drilling-tables#DailyAndForecastComments>
rdf:type rhspin:TableTemplate ;
rdfs:label "Daily and Forecast Comments"^^xsd:string ;
rdfs:subClassOf rhspin:WDRTableTemplates ;
......@@ -122,7 +122,7 @@ wdr-tables:DailyAndForecastComments
] ;
rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) .
wdr-tables:MissedProduction
<http://www.reportinghub.no/ep/spin/drilling-tables#MissedProduction>
rdf:type rhspin:TableTemplate ;
rdfs:label "Non Productive Time"^^xsd:string ;
rdfs:subClassOf rhspin:WDRTableTemplates ;
......@@ -241,7 +241,7 @@ wdr-tables:MissedProduction
] ;
rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) .
wdr-tables:Test
<http://www.reportinghub.no/ep/spin/drilling-tables#Test>
rdf:type rhspin:TableTemplate ;
rdfs:label "Test Table"^^xsd:string ;
rdfs:subClassOf rhspin:WDRTableTemplates ;
......
<div>
<hr />
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
<h2>{= ui:label(?template) }</h2>
</ui:setContext>
<table class="ddrTable">
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
<tr class="ddrTR">
<ui:forEach ui:resultSet="{#
SELECT ?header
WHERE {
?template rhspin:tableHeaders ?list .
?list &lt;http://jena.hpl.hp.com/ARQ/list#member&gt; ?header .
}
}">
<th class="ddrTH">{= ?header }</th>
</ui:forEach>
</tr>
</ui:setContext>
<ui:call ui:template="{= ?template }" arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }">
<ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }">
<tr class="ddrTR">
<ui:forEach ui:resultSet="{# SELECT ?cell WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cellIndex) } }">
<td class="ddrTD">{= ui:label(?cell) }</td>
</ui:forEach>
</tr>
</ui:forEach>
</ui:call>
</table>
<br />
</div>
\ No newline at end of file
<ui:group>
<ui:group >
<h1>Non Productive Time Report</h1>
<h2>Wellbore : {= rhspin:npdName(?wellBore) }</h2>
<h2>Start Date : {= ?startDate }</h2>
<hr />
<wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:MissedProduction" />
</ui:group>
</ui:group>
\ No newline at end of file
......@@ -9,7 +9,7 @@
# 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/well
# imports: http://www.reportinghub.no/ep/spin/wdr-tables
# imports: http://www.reportinghub.no/ep/spin/drilling-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
......@@ -103,7 +103,7 @@ arg:wellBore
<http://www.reportinghub.no/swp/wdr>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/wdr-tables> , <http://www.reportinghub.no/spin/rh> ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/drilling-tables> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "0.1.0"^^xsd:string .
wdrswp:Table
......@@ -113,9 +113,9 @@ wdrswp:Table
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the report."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
spin:constraint
[ rdf:type spl:Argument ;
......@@ -125,9 +125,9 @@ wdrswp:Table
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
rdfs:comment "The start date of the report."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
ui:prototype <http://www.reportinghub.no/swp/WDRTable.uispin.html> .
......@@ -137,16 +137,16 @@ wdrswp:WeeklyDrillingReportView
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the report to display."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The well bore."^^xsd:string ;
spl:predicate arg:wellBore ;
spl:valueType ep-well:WellBore
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the report to display."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
......
<div>
<hr />
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/wdr-tables&gt;">
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
<h2>{= ui:label(?template) }</h2>
</ui:setContext>
<table class="ddrTable">
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/wdr-tables&gt;">
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
<tr class="ddrTR">
<ui:forEach ui:resultSet="{#
SELECT ?header
......
......@@ -7,7 +7,5 @@
<wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:DailyAndForecastComments" />
<wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:MissedProduction" />
</ui:group>
</ui:group>
\ No newline at end of file
......