David Price

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

1 -# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables 1 +# baseURI: http://www.reportinghub.no/ep/spin/drilling-tables
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose 3 # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
4 # imports: http://www.reportinghub.no/ep/schema/1.0/ddr 4 # imports: http://www.reportinghub.no/ep/schema/1.0/ddr
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
16 @prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> . 16 @prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> .
17 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 17 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 18
19 -<http://www.reportinghub.no/ep/spin/wdr-tables> 19 +<http://www.reportinghub.no/ep/spin/drilling-tables>
20 rdf:type owl:Ontology ; 20 rdf:type owl:Ontology ;
21 rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; 21 rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
22 - 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> ; 22 + 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> ;
23 owl:versionInfo "0.1.0"^^xsd:string . 23 owl:versionInfo "0.1.0"^^xsd:string .
24 24
25 -wdr-tables:DailyAndForecastComments 25 +<http://www.reportinghub.no/ep/spin/drilling-tables#DailyAndForecastComments>
26 rdf:type rhspin:TableTemplate ; 26 rdf:type rhspin:TableTemplate ;
27 rdfs:label "Daily and Forecast Comments"^^xsd:string ; 27 rdfs:label "Daily and Forecast Comments"^^xsd:string ;
28 rdfs:subClassOf rhspin:WDRTableTemplates ; 28 rdfs:subClassOf rhspin:WDRTableTemplates ;
...@@ -122,7 +122,7 @@ wdr-tables:DailyAndForecastComments ...@@ -122,7 +122,7 @@ wdr-tables:DailyAndForecastComments
122 ] ; 122 ] ;
123 rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . 123 rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) .
124 124
125 -wdr-tables:MissedProduction 125 +<http://www.reportinghub.no/ep/spin/drilling-tables#MissedProduction>
126 rdf:type rhspin:TableTemplate ; 126 rdf:type rhspin:TableTemplate ;
127 rdfs:label "Non Productive Time"^^xsd:string ; 127 rdfs:label "Non Productive Time"^^xsd:string ;
128 rdfs:subClassOf rhspin:WDRTableTemplates ; 128 rdfs:subClassOf rhspin:WDRTableTemplates ;
...@@ -241,7 +241,7 @@ wdr-tables:MissedProduction ...@@ -241,7 +241,7 @@ wdr-tables:MissedProduction
241 ] ; 241 ] ;
242 rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) . 242 rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) .
243 243
244 -wdr-tables:Test 244 +<http://www.reportinghub.no/ep/spin/drilling-tables#Test>
245 rdf:type rhspin:TableTemplate ; 245 rdf:type rhspin:TableTemplate ;
246 rdfs:label "Test Table"^^xsd:string ; 246 rdfs:label "Test Table"^^xsd:string ;
247 rdfs:subClassOf rhspin:WDRTableTemplates ; 247 rdfs:subClassOf rhspin:WDRTableTemplates ;
......
1 +<div>
2 + <hr />
3 + <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
4 + <h2>{= ui:label(?template) }</h2>
5 + </ui:setContext>
6 + <table class="ddrTable">
7 + <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
8 + <tr class="ddrTR">
9 + <ui:forEach ui:resultSet="{#
10 + SELECT ?header
11 + WHERE {
12 + ?template rhspin:tableHeaders ?list .
13 + ?list &lt;http://jena.hpl.hp.com/ARQ/list#member&gt; ?header .
14 + }
15 + }">
16 + <th class="ddrTH">{= ?header }</th>
17 + </ui:forEach>
18 + </tr>
19 + </ui:setContext>
20 + <ui:call ui:template="{= ?template }" arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }">
21 + <ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }">
22 + <tr class="ddrTR">
23 + <ui:forEach ui:resultSet="{# SELECT ?cell WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cellIndex) } }">
24 + <td class="ddrTD">{= ui:label(?cell) }</td>
25 + </ui:forEach>
26 + </tr>
27 + </ui:forEach>
28 + </ui:call>
29 + </table>
30 + <br />
31 +</div>
...\ No newline at end of file ...\ No newline at end of file
1 +<ui:group>
2 + <ui:group >
3 + <h1>Non Productive Time Report</h1>
4 + <h2>Wellbore : {= rhspin:npdName(?wellBore) }</h2>
5 + <h2>Start Date : {= ?startDate }</h2>
6 + <hr />
7 +
8 + <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:MissedProduction" />
9 +
10 + </ui:group>
11 +</ui:group>
...\ No newline at end of file ...\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 # imports: http://www.reportinghub.no/ep/schema/1.0/organization 9 # imports: http://www.reportinghub.no/ep/schema/1.0/organization
10 # imports: http://www.reportinghub.no/ep/schema/1.0/report 10 # imports: http://www.reportinghub.no/ep/schema/1.0/report
11 # imports: http://www.reportinghub.no/ep/schema/1.0/well 11 # imports: http://www.reportinghub.no/ep/schema/1.0/well
12 -# imports: http://www.reportinghub.no/ep/spin/wdr-tables 12 +# imports: http://www.reportinghub.no/ep/spin/drilling-tables
13 # imports: http://www.reportinghub.no/spin/rh 13 # imports: http://www.reportinghub.no/spin/rh
14 14
15 @prefix arg: <http://spinrdf.org/arg#> . 15 @prefix arg: <http://spinrdf.org/arg#> .
...@@ -103,7 +103,7 @@ arg:wellBore ...@@ -103,7 +103,7 @@ arg:wellBore
103 103
104 <http://www.reportinghub.no/swp/wdr> 104 <http://www.reportinghub.no/swp/wdr>
105 rdf:type owl:Ontology ; 105 rdf:type owl:Ontology ;
106 - 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> ; 106 + 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> ;
107 owl:versionInfo "0.1.0"^^xsd:string . 107 owl:versionInfo "0.1.0"^^xsd:string .
108 108
109 wdrswp:Table 109 wdrswp:Table
...@@ -113,9 +113,9 @@ wdrswp:Table ...@@ -113,9 +113,9 @@ wdrswp:Table
113 rdfs:subClassOf ui:Element ; 113 rdfs:subClassOf ui:Element ;
114 spin:constraint 114 spin:constraint
115 [ rdf:type spl:Argument ; 115 [ rdf:type spl:Argument ;
116 - rdfs:comment "The start date of the report."^^xsd:string ; 116 + rdfs:comment "The SPIN Template to execute."^^xsd:string ;
117 - spl:predicate arg:startDate ; 117 + spl:predicate arg:template ;
118 - spl:valueType xsd:date 118 + spl:valueType spin:Template
119 ] ; 119 ] ;
120 spin:constraint 120 spin:constraint
121 [ rdf:type spl:Argument ; 121 [ rdf:type spl:Argument ;
...@@ -125,9 +125,9 @@ wdrswp:Table ...@@ -125,9 +125,9 @@ wdrswp:Table
125 ] ; 125 ] ;
126 spin:constraint 126 spin:constraint
127 [ rdf:type spl:Argument ; 127 [ rdf:type spl:Argument ;
128 - rdfs:comment "The SPIN Template to execute."^^xsd:string ; 128 + rdfs:comment "The start date of the report."^^xsd:string ;
129 - spl:predicate arg:template ; 129 + spl:predicate arg:startDate ;
130 - spl:valueType spin:Template 130 + spl:valueType xsd:date
131 ] ; 131 ] ;
132 ui:prototype <http://www.reportinghub.no/swp/WDRTable.uispin.html> . 132 ui:prototype <http://www.reportinghub.no/swp/WDRTable.uispin.html> .
133 133
...@@ -137,16 +137,16 @@ wdrswp:WeeklyDrillingReportView ...@@ -137,16 +137,16 @@ wdrswp:WeeklyDrillingReportView
137 rdfs:subClassOf ui:Element ; 137 rdfs:subClassOf ui:Element ;
138 spin:constraint 138 spin:constraint
139 [ rdf:type spl:Argument ; 139 [ rdf:type spl:Argument ;
140 - rdfs:comment "The start date of the report to display."^^xsd:string ;
141 - spl:predicate arg:startDate ;
142 - spl:valueType xsd:date
143 - ] ;
144 - spin:constraint
145 - [ rdf:type spl:Argument ;
146 rdfs:comment "The well bore."^^xsd:string ; 140 rdfs:comment "The well bore."^^xsd:string ;
147 spl:predicate arg:wellBore ; 141 spl:predicate arg:wellBore ;
148 spl:valueType ep-well:WellBore 142 spl:valueType ep-well:WellBore
149 ] ; 143 ] ;
144 + spin:constraint
145 + [ rdf:type spl:Argument ;
146 + rdfs:comment "The start date of the report to display."^^xsd:string ;
147 + spl:predicate arg:startDate ;
148 + spl:valueType xsd:date
149 + ] ;
150 ui:headIncludes 150 ui:headIncludes
151 [ rdf:type html:Link ; 151 [ rdf:type html:Link ;
152 html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; 152 html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
......
1 <div> 1 <div>
2 <hr /> 2 <hr />
3 - <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/wdr-tables&gt;"> 3 + <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
4 <h2>{= ui:label(?template) }</h2> 4 <h2>{= ui:label(?template) }</h2>
5 </ui:setContext> 5 </ui:setContext>
6 <table class="ddrTable"> 6 <table class="ddrTable">
7 - <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/wdr-tables&gt;"> 7 + <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
8 <tr class="ddrTR"> 8 <tr class="ddrTR">
9 <ui:forEach ui:resultSet="{# 9 <ui:forEach ui:resultSet="{#
10 SELECT ?header 10 SELECT ?header
......
...@@ -7,7 +7,5 @@ ...@@ -7,7 +7,5 @@
7 7
8 <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:DailyAndForecastComments" /> 8 <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:DailyAndForecastComments" />
9 9
10 - <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:MissedProduction" />
11 -
12 </ui:group> 10 </ui:group>
13 </ui:group> 11 </ui:group>
...\ No newline at end of file ...\ No newline at end of file
......