Showing
2 changed files
with
128 additions
and
10 deletions
1 | -# Saved by TopBraid on Sat Oct 15 16:08:08 BST 2011 | ||
2 | # baseURI: http://www.reportinghub.no/ep/spin/wdr-tables | 1 | # baseURI: http://www.reportinghub.no/ep/spin/wdr-tables |
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 |
5 | -# imports: http://spinrdf.org/spin | ||
6 | # imports: http://www.reportinghub.no/spin/rh | 5 | # imports: http://www.reportinghub.no/spin/rh |
7 | 6 | ||
8 | @prefix arg: <http://spinrdf.org/arg#> . | 7 | @prefix arg: <http://spinrdf.org/arg#> . |
... | @@ -20,7 +19,7 @@ | ... | @@ -20,7 +19,7 @@ |
20 | <http://www.reportinghub.no/ep/spin/wdr-tables> | 19 | <http://www.reportinghub.no/ep/spin/wdr-tables> |
21 | rdf:type owl:Ontology ; | 20 | rdf:type owl:Ontology ; |
22 | 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 ; |
23 | - 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> ; | 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> ; |
24 | owl:versionInfo "0.1.0"^^xsd:string . | 23 | owl:versionInfo "0.1.0"^^xsd:string . |
25 | 24 | ||
26 | wdr-tables:DailyAndForecastComments | 25 | wdr-tables:DailyAndForecastComments |
... | @@ -83,6 +82,123 @@ wdr-tables:DailyAndForecastComments | ... | @@ -83,6 +82,123 @@ wdr-tables:DailyAndForecastComments |
83 | ] ; | 82 | ] ; |
84 | rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . | 83 | rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . |
85 | 84 | ||
85 | +wdr-tables:MissedProduction | ||
86 | + rdf:type rhspin:TableTemplate ; | ||
87 | + rdfs:label "Non Productive Time"^^xsd:string ; | ||
88 | + rdfs:subClassOf rhspin:WDRTableTemplates ; | ||
89 | + spin:body | ||
90 | + [ rdf:type sp:Select ; | ||
91 | + sp:orderBy ([ sp:varName "day"^^xsd:string | ||
92 | + ]) ; | ||
93 | + sp:resultVariables ([ sp:varName "day"^^xsd:string | ||
94 | + ] [ sp:varName "startTime"^^xsd:string | ||
95 | + ] [ sp:varName "duration"^^xsd:string | ||
96 | + ] [ sp:varName "comment"^^xsd:string | ||
97 | + ]) ; | ||
98 | + sp:where ([ sp:object | ||
99 | + [ sp:varName "wellBore"^^xsd:string | ||
100 | + ] ; | ||
101 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
102 | + sp:subject | ||
103 | + [ sp:varName "dayWellbore"^^xsd:string | ||
104 | + ] | ||
105 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | ||
106 | + sp:predicate rdf:type ; | ||
107 | + sp:subject | ||
108 | + [ sp:varName "dayWellbore"^^xsd:string | ||
109 | + ] | ||
110 | + ] [ sp:object | ||
111 | + [ sp:varName "dayWellbore"^^xsd:string | ||
112 | + ] ; | ||
113 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
114 | + sp:subject | ||
115 | + [ sp:varName "partWellbore"^^xsd:string | ||
116 | + ] | ||
117 | + ] [ sp:object | ||
118 | + [ sp:varName "partWellbore"^^xsd:string | ||
119 | + ] ; | ||
120 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
121 | + sp:subject | ||
122 | + [ sp:varName "failure"^^xsd:string | ||
123 | + ] | ||
124 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#EquipmentFailureAndRepair> ; | ||
125 | + sp:predicate rdf:type ; | ||
126 | + sp:subject | ||
127 | + [ sp:varName "failure"^^xsd:string | ||
128 | + ] | ||
129 | + ] [ sp:object | ||
130 | + [ sp:varName "timeOfFailure"^^xsd:string | ||
131 | + ] ; | ||
132 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#timeOfFailure> ; | ||
133 | + sp:subject | ||
134 | + [ sp:varName "failure"^^xsd:string | ||
135 | + ] | ||
136 | + ] [ rdf:type sp:Bind ; | ||
137 | + sp:expression | ||
138 | + [ rdf:type spif:dateFormat ; | ||
139 | + arg:date | ||
140 | + [ sp:varName "timeOfFailure"^^xsd:string | ||
141 | + ] ; | ||
142 | + arg:pattern "yyyy-MM-dd" | ||
143 | + ] ; | ||
144 | + sp:variable | ||
145 | + [ sp:varName "day"^^xsd:string | ||
146 | + ] | ||
147 | + ] [ rdf:type sp:Bind ; | ||
148 | + sp:expression | ||
149 | + [ rdf:type spif:dateFormat ; | ||
150 | + arg:date | ||
151 | + [ sp:varName "startDate"^^xsd:string | ||
152 | + ] ; | ||
153 | + arg:pattern "yyyy-MM-dd" | ||
154 | + ] ; | ||
155 | + sp:variable | ||
156 | + [ sp:varName "startDateDay"^^xsd:string | ||
157 | + ] | ||
158 | + ] [ rdf:type sp:Filter ; | ||
159 | + sp:expression | ||
160 | + [ rdf:type sp:le ; | ||
161 | + sp:arg1 [ sp:varName "startDateDay"^^xsd:string | ||
162 | + ] ; | ||
163 | + sp:arg2 [ sp:varName "day"^^xsd:string | ||
164 | + ] | ||
165 | + ] | ||
166 | + ] [ sp:object | ||
167 | + [ sp:varName "comment"^^xsd:string | ||
168 | + ] ; | ||
169 | + sp:predicate rdfs:comment ; | ||
170 | + sp:subject | ||
171 | + [ sp:varName "failure"^^xsd:string | ||
172 | + ] | ||
173 | + ] [ sp:object | ||
174 | + [ sp:varName "mpt"^^xsd:string | ||
175 | + ] ; | ||
176 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#missedProductionTime> ; | ||
177 | + sp:subject | ||
178 | + [ sp:varName "failure"^^xsd:string | ||
179 | + ] | ||
180 | + ] [ sp:object | ||
181 | + [ sp:varName "duration"^^xsd:string | ||
182 | + ] ; | ||
183 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#minute> ; | ||
184 | + sp:subject | ||
185 | + [ sp:varName "mpt"^^xsd:string | ||
186 | + ] | ||
187 | + ] [ rdf:type sp:Bind ; | ||
188 | + sp:expression | ||
189 | + [ rdf:type spif:dateFormat ; | ||
190 | + arg:date | ||
191 | + [ sp:varName "timeOfFailure"^^xsd:string | ||
192 | + ] ; | ||
193 | + arg:pattern "HH:mm" | ||
194 | + ] ; | ||
195 | + sp:variable | ||
196 | + [ sp:varName "startTime"^^xsd:string | ||
197 | + ] | ||
198 | + ]) | ||
199 | + ] ; | ||
200 | + rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) . | ||
201 | + | ||
86 | wdr-tables:Test | 202 | wdr-tables:Test |
87 | rdf:type rhspin:TableTemplate ; | 203 | rdf:type rhspin:TableTemplate ; |
88 | rdfs:label "Test Table"^^xsd:string ; | 204 | rdfs:label "Test Table"^^xsd:string ; |
... | @@ -116,14 +232,8 @@ wdr-tables:Test | ... | @@ -116,14 +232,8 @@ wdr-tables:Test |
116 | ] ; | 232 | ] ; |
117 | rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . | 233 | rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . |
118 | 234 | ||
119 | -_:b3 sp:varName "nextDayForecast"^^xsd:string . | ||
120 | - | ||
121 | -_:b2 sp:varName "dailySummary"^^xsd:string . | ||
122 | - | ||
123 | _:b8 sp:varName "startDateDay"^^xsd:string . | 235 | _:b8 sp:varName "startDateDay"^^xsd:string . |
124 | 236 | ||
125 | -_:b1 sp:varName "day"^^xsd:string . | ||
126 | - | ||
127 | _:b7 sp:varName "startedAt"^^xsd:string . | 237 | _:b7 sp:varName "startedAt"^^xsd:string . |
128 | 238 | ||
129 | _:b6 sp:varName "ddats"^^xsd:string . | 239 | _:b6 sp:varName "ddats"^^xsd:string . |
... | @@ -131,3 +241,9 @@ _:b6 sp:varName "ddats"^^xsd:string . | ... | @@ -131,3 +241,9 @@ _:b6 sp:varName "ddats"^^xsd:string . |
131 | _:b5 sp:varName "partWellbore"^^xsd:string . | 241 | _:b5 sp:varName "partWellbore"^^xsd:string . |
132 | 242 | ||
133 | _:b4 sp:varName "dayWellbore"^^xsd:string . | 243 | _:b4 sp:varName "dayWellbore"^^xsd:string . |
244 | + | ||
245 | +_:b3 sp:varName "nextDayForecast"^^xsd:string . | ||
246 | + | ||
247 | +_:b2 sp:varName "dailySummary"^^xsd:string . | ||
248 | + | ||
249 | +_:b1 sp:varName "day"^^xsd:string . | ... | ... |
1 | <ui:group> | 1 | <ui:group> |
2 | <ui:group > | 2 | <ui:group > |
3 | <h1>Weekly Partner Report</h1> | 3 | <h1>Weekly Partner Report</h1> |
4 | - <h2> {# SELECT ?wbName WHERE {?wellBore ep-core:npdCode ?wbName}}</h2> | 4 | + <h2>Wellbore : {# SELECT ?wbName WHERE {?wellBore ep-core:npdCode ?wbName}}</h2> |
5 | <h2>Start Date : {= ?startDate }</h2> | 5 | <h2>Start Date : {= ?startDate }</h2> |
6 | <hr /> | 6 | <hr /> |
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 | + | ||
10 | </ui:group> | 12 | </ui:group> |
11 | </ui:group> | 13 | </ui:group> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment