Showing
3 changed files
with
149 additions
and
67 deletions
1 | -# Saved by TopBraid on Sun Aug 14 23:37:07 BST 2011 | 1 | +# Saved by TopBraid on Mon Aug 15 00:07:43 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0 | 2 | # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0 |
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 |
... | @@ -15,57 +15,117 @@ | ... | @@ -15,57 +15,117 @@ |
15 | @prefix spl: <http://spinrdf.org/spl#> . | 15 | @prefix spl: <http://spinrdf.org/spl#> . |
16 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 16 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
17 | 17 | ||
18 | +ddr-tables:BitRecord | ||
19 | + rdf:type rhspin:TableTemplate ; | ||
20 | + rdfs:label "Bit Record"^^xsd:string ; | ||
21 | + rdfs:subClassOf rhspin:DDRTableTemplates ; | ||
22 | + spin:body | ||
23 | + [ rdf:type sp:Select ; | ||
24 | + sp:resultVariables ([ sp:varName "bitSize"^^xsd:string | ||
25 | + ] [ sp:varName "runNop"^^xsd:string | ||
26 | + ] [ sp:varName "startDepth"^^xsd:string | ||
27 | + ] [ sp:varName "endDepth"^^xsd:string | ||
28 | + ] _:b1 _:b2 [ sp:varName "state"^^xsd:string | ||
29 | + ] _:b3 [ sp:varName "drill24h"^^xsd:string | ||
30 | + ] [ sp:varName "rop"^^xsd:string | ||
31 | + ]) ; | ||
32 | + sp:where ([ sp:object _:b4 ; | ||
33 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | ||
34 | + sp:subject | ||
35 | + [ sp:varName "report"^^xsd:string | ||
36 | + ] | ||
37 | + ] [ sp:object _:b5 ; | ||
38 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
39 | + sp:subject _:b4 | ||
40 | + ] [ sp:object | ||
41 | + [ sp:varName "startTime"^^xsd:string | ||
42 | + ] ; | ||
43 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
44 | + sp:subject _:b5 | ||
45 | + ] [ sp:object | ||
46 | + [ sp:varName "endTime"^^xsd:string | ||
47 | + ] ; | ||
48 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; | ||
49 | + sp:subject _:b5 | ||
50 | + ] [ rdf:type sp:Optional ; | ||
51 | + sp:elements ([ sp:object _:b2 ; | ||
52 | + sp:predicate rdf:type ; | ||
53 | + sp:subject _:b5 | ||
54 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ; | ||
55 | + sp:predicate rdf:type ; | ||
56 | + sp:subject _:b2 | ||
57 | + ]) | ||
58 | + ] [ rdf:type sp:Optional ; | ||
59 | + sp:elements ([ sp:object _:b6 ; | ||
60 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
61 | + sp:subject _:b5 | ||
62 | + ] [ sp:object _:b7 ; | ||
63 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; | ||
64 | + sp:subject _:b6 | ||
65 | + ] [ sp:object _:b1 ; | ||
66 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
67 | + sp:subject _:b7 | ||
68 | + ]) | ||
69 | + ] [ rdf:type sp:Optional ; | ||
70 | + sp:elements ([ sp:object _:b3 ; | ||
71 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ; | ||
72 | + sp:subject _:b5 | ||
73 | + ]) | ||
74 | + ]) | ||
75 | + ] ; | ||
76 | + rhspin:tableHeaders ("Bit Size in"^^xsd:string "Run No."^^xsd:string "Manufacturer"^^xsd:string "Model"^^xsd:string "Hours Drilled"^^xsd:string "MD Start m"^^xsd:string "MD End m"^^xsd:string "Hole Made (last 24H)"^^xsd:string "Hours Drilled (last24H)"^^xsd:string "ROP m/h"^^xsd:string) . | ||
77 | + | ||
18 | ddr-tables:EquipmentFailure | 78 | ddr-tables:EquipmentFailure |
19 | rdf:type rhspin:TableTemplate ; | 79 | rdf:type rhspin:TableTemplate ; |
20 | rdfs:label "Equipment Failure Information"^^xsd:string ; | 80 | rdfs:label "Equipment Failure Information"^^xsd:string ; |
21 | rdfs:subClassOf rhspin:DDRTableTemplates ; | 81 | rdfs:subClassOf rhspin:DDRTableTemplates ; |
22 | spin:body | 82 | spin:body |
23 | [ rdf:type sp:Select ; | 83 | [ rdf:type sp:Select ; |
24 | - sp:orderBy (_:b1) ; | 84 | + sp:orderBy (_:b8) ; |
25 | - sp:resultVariables (_:b1 _:b2 _:b3 [ sp:varName "activity"^^xsd:string | 85 | + sp:resultVariables (_:b8 _:b9 _:b10 [ sp:varName "activity"^^xsd:string |
26 | ] [ sp:varName "downtime"^^xsd:string | 86 | ] [ sp:varName "downtime"^^xsd:string |
27 | ] [ sp:varName "repairedTime"^^xsd:string | 87 | ] [ sp:varName "repairedTime"^^xsd:string |
28 | - ] _:b4) ; | 88 | + ] _:b11) ; |
29 | - sp:where ([ sp:object _:b5 ; | 89 | + sp:where ([ sp:object _:b12 ; |
30 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | 90 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; |
31 | sp:subject | 91 | sp:subject |
32 | [ sp:varName "report"^^xsd:string | 92 | [ sp:varName "report"^^xsd:string |
33 | ] | 93 | ] |
34 | - ] [ sp:object _:b6 ; | 94 | + ] [ sp:object _:b13 ; |
35 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 95 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
36 | - sp:subject _:b5 | 96 | + sp:subject _:b12 |
37 | - ] [ sp:object _:b1 ; | 97 | + ] [ sp:object _:b8 ; |
38 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | 98 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; |
39 | - sp:subject _:b6 | 99 | + sp:subject _:b13 |
40 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity-equipment_failure> ; | 100 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity-equipment_failure> ; |
41 | sp:predicate rdf:type ; | 101 | sp:predicate rdf:type ; |
42 | - sp:subject _:b6 | 102 | + sp:subject _:b13 |
43 | ] [ rdf:type sp:Optional ; | 103 | ] [ rdf:type sp:Optional ; |
44 | - sp:elements ([ sp:object _:b7 ; | 104 | + sp:elements ([ sp:object _:b14 ; |
45 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 105 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
46 | - sp:subject _:b6 | 106 | + sp:subject _:b13 |
47 | - ] [ sp:object _:b8 ; | 107 | + ] [ sp:object _:b15 ; |
48 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; | 108 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; |
49 | - sp:subject _:b7 | 109 | + sp:subject _:b14 |
50 | - ] [ sp:object _:b2 ; | 110 | + ] [ sp:object _:b9 ; |
51 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 111 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
52 | - sp:subject _:b8 | 112 | + sp:subject _:b15 |
53 | ]) | 113 | ]) |
54 | ] [ rdf:type sp:Optional ; | 114 | ] [ rdf:type sp:Optional ; |
55 | - sp:elements ([ sp:object _:b7 ; | 115 | + sp:elements ([ sp:object _:b14 ; |
56 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 116 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
57 | - sp:subject _:b6 | 117 | + sp:subject _:b13 |
58 | - ] [ sp:object _:b9 ; | 118 | + ] [ sp:object _:b16 ; |
59 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ; | 119 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ; |
60 | - sp:subject _:b7 | 120 | + sp:subject _:b14 |
61 | - ] [ sp:object _:b3 ; | 121 | + ] [ sp:object _:b10 ; |
62 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 122 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
63 | - sp:subject _:b9 | 123 | + sp:subject _:b16 |
64 | ]) | 124 | ]) |
65 | ] [ rdf:type sp:Optional ; | 125 | ] [ rdf:type sp:Optional ; |
66 | - sp:elements ([ sp:object _:b4 ; | 126 | + sp:elements ([ sp:object _:b11 ; |
67 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ; | 127 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ; |
68 | - sp:subject _:b6 | 128 | + sp:subject _:b13 |
69 | ]) | 129 | ]) |
70 | ]) | 130 | ]) |
71 | ] ; | 131 | ] ; |
... | @@ -77,48 +137,48 @@ ddr-tables:Operations | ... | @@ -77,48 +137,48 @@ ddr-tables:Operations |
77 | rdfs:subClassOf rhspin:DDRTableTemplates ; | 137 | rdfs:subClassOf rhspin:DDRTableTemplates ; |
78 | spin:body | 138 | spin:body |
79 | [ rdf:type sp:Select ; | 139 | [ rdf:type sp:Select ; |
80 | - sp:orderBy (_:b10) ; | 140 | + sp:orderBy (_:b17) ; |
81 | - sp:resultVariables (_:b10 _:b11 [ sp:varName "startDepth"^^xsd:string | 141 | + sp:resultVariables (_:b17 _:b18 [ sp:varName "startDepth"^^xsd:string |
82 | ] [ sp:varName "endDepth"^^xsd:string | 142 | ] [ sp:varName "endDepth"^^xsd:string |
83 | - ] _:b12 _:b13 [ sp:varName "state"^^xsd:string | 143 | + ] _:b19 _:b20 [ sp:varName "state"^^xsd:string |
84 | - ] _:b14) ; | 144 | + ] _:b21) ; |
85 | - sp:where ([ sp:object _:b15 ; | 145 | + sp:where ([ sp:object _:b22 ; |
86 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | 146 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; |
87 | sp:subject | 147 | sp:subject |
88 | [ sp:varName "report"^^xsd:string | 148 | [ sp:varName "report"^^xsd:string |
89 | ] | 149 | ] |
90 | - ] [ sp:object _:b16 ; | 150 | + ] [ sp:object _:b23 ; |
91 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 151 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
92 | - sp:subject _:b15 | 152 | + sp:subject _:b22 |
93 | - ] [ sp:object _:b10 ; | 153 | + ] [ sp:object _:b17 ; |
94 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | 154 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; |
95 | - sp:subject _:b16 | 155 | + sp:subject _:b23 |
96 | - ] [ sp:object _:b11 ; | 156 | + ] [ sp:object _:b18 ; |
97 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; | 157 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; |
98 | - sp:subject _:b16 | 158 | + sp:subject _:b23 |
99 | ] [ rdf:type sp:Optional ; | 159 | ] [ rdf:type sp:Optional ; |
100 | - sp:elements ([ sp:object _:b13 ; | 160 | + sp:elements ([ sp:object _:b20 ; |
101 | sp:predicate rdf:type ; | 161 | sp:predicate rdf:type ; |
102 | - sp:subject _:b16 | 162 | + sp:subject _:b23 |
103 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ; | 163 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ; |
104 | sp:predicate rdf:type ; | 164 | sp:predicate rdf:type ; |
105 | - sp:subject _:b13 | 165 | + sp:subject _:b20 |
106 | ]) | 166 | ]) |
107 | ] [ rdf:type sp:Optional ; | 167 | ] [ rdf:type sp:Optional ; |
108 | - sp:elements ([ sp:object _:b17 ; | 168 | + sp:elements ([ sp:object _:b24 ; |
109 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 169 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
110 | - sp:subject _:b16 | 170 | + sp:subject _:b23 |
111 | - ] [ sp:object _:b18 ; | 171 | + ] [ sp:object _:b25 ; |
112 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; | 172 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; |
113 | - sp:subject _:b17 | 173 | + sp:subject _:b24 |
114 | - ] [ sp:object _:b12 ; | 174 | + ] [ sp:object _:b19 ; |
115 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 175 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
116 | - sp:subject _:b18 | 176 | + sp:subject _:b25 |
117 | ]) | 177 | ]) |
118 | ] [ rdf:type sp:Optional ; | 178 | ] [ rdf:type sp:Optional ; |
119 | - sp:elements ([ sp:object _:b14 ; | 179 | + sp:elements ([ sp:object _:b21 ; |
120 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ; | 180 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ; |
121 | - sp:subject _:b16 | 181 | + sp:subject _:b23 |
122 | ]) | 182 | ]) |
123 | ]) | 183 | ]) |
124 | ] ; | 184 | ] ; |
... | @@ -127,50 +187,71 @@ ddr-tables:Operations | ... | @@ -127,50 +187,71 @@ ddr-tables:Operations |
127 | <http://www.reportinghub.no/ep/spin/ddr-tables-v1.0> | 187 | <http://www.reportinghub.no/ep/spin/ddr-tables-v1.0> |
128 | rdf:type owl:Ontology ; | 188 | rdf:type owl:Ontology ; |
129 | rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; | 189 | rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; |
130 | - 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> ; | 190 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ; |
131 | owl:versionInfo "0.1.0"^^xsd:string . | 191 | owl:versionInfo "0.1.0"^^xsd:string . |
132 | 192 | ||
133 | -_:b9 sp:varName "tvd"^^xsd:string . | 193 | +_:b3 sp:varName "remark"^^xsd:string . |
134 | 194 | ||
135 | -_:b8 sp:varName "md"^^xsd:string . | 195 | +_:b1 sp:varName "depth"^^xsd:string . |
136 | 196 | ||
137 | -_:b7 sp:varName "wellbore"^^xsd:string . | 197 | +_:b7 sp:varName "md"^^xsd:string . |
138 | 198 | ||
139 | -_:b6 sp:varName "part"^^xsd:string . | 199 | +_:b6 sp:varName "wellbore"^^xsd:string . |
140 | 200 | ||
141 | -_:b5 sp:varName "reportOn"^^xsd:string . | 201 | +_:b2 sp:varName "activity"^^xsd:string . |
142 | 202 | ||
143 | -_:b4 sp:varName "failureDescription"^^xsd:string . | 203 | +_:b5 sp:varName "part"^^xsd:string . |
144 | 204 | ||
145 | -_:b3 sp:varName "depthTVD"^^xsd:string . | 205 | +_:b4 sp:varName "reportOn"^^xsd:string . |
146 | 206 | ||
147 | -_:b2 sp:varName "depthMD"^^xsd:string . | 207 | +_:b25 |
208 | + sp:varName "md"^^xsd:string . | ||
148 | 209 | ||
149 | -_:b1 sp:varName "startTime"^^xsd:string . | 210 | +_:b24 |
211 | + sp:varName "wellbore"^^xsd:string . | ||
150 | 212 | ||
151 | -_:b14 | 213 | +_:b23 |
214 | + sp:varName "part"^^xsd:string . | ||
215 | + | ||
216 | +_:b22 | ||
217 | + sp:varName "reportOn"^^xsd:string . | ||
218 | + | ||
219 | +_:b21 | ||
152 | sp:varName "remark"^^xsd:string . | 220 | sp:varName "remark"^^xsd:string . |
153 | 221 | ||
154 | -_:b12 | 222 | +_:b20 |
223 | + sp:varName "activity"^^xsd:string . | ||
224 | + | ||
225 | +_:b19 | ||
155 | sp:varName "depth"^^xsd:string . | 226 | sp:varName "depth"^^xsd:string . |
156 | 227 | ||
157 | _:b18 | 228 | _:b18 |
158 | - sp:varName "md"^^xsd:string . | 229 | + sp:varName "endTime"^^xsd:string . |
159 | 230 | ||
160 | _:b17 | 231 | _:b17 |
232 | + sp:varName "startTime"^^xsd:string . | ||
233 | + | ||
234 | +_:b16 | ||
235 | + sp:varName "tvd"^^xsd:string . | ||
236 | + | ||
237 | +_:b15 | ||
238 | + sp:varName "md"^^xsd:string . | ||
239 | + | ||
240 | +_:b14 | ||
161 | sp:varName "wellbore"^^xsd:string . | 241 | sp:varName "wellbore"^^xsd:string . |
162 | 242 | ||
163 | _:b13 | 243 | _:b13 |
164 | - sp:varName "activity"^^xsd:string . | 244 | + sp:varName "part"^^xsd:string . |
245 | + | ||
246 | +_:b12 | ||
247 | + sp:varName "reportOn"^^xsd:string . | ||
165 | 248 | ||
166 | _:b11 | 249 | _:b11 |
167 | - sp:varName "endTime"^^xsd:string . | 250 | + sp:varName "failureDescription"^^xsd:string . |
168 | 251 | ||
169 | _:b10 | 252 | _:b10 |
170 | - sp:varName "startTime"^^xsd:string . | 253 | + sp:varName "depthTVD"^^xsd:string . |
171 | 254 | ||
172 | -_:b16 | 255 | +_:b9 sp:varName "depthMD"^^xsd:string . |
173 | - sp:varName "part"^^xsd:string . | ||
174 | 256 | ||
175 | -_:b15 | 257 | +_:b8 sp:varName "startTime"^^xsd:string . |
176 | - sp:varName "reportOn"^^xsd:string . | ... | ... |
1 | -# Saved by TopBraid on Sun Aug 14 23:37:07 BST 2011 | 1 | +# Saved by TopBraid on Mon Aug 15 00:07:43 BST 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
... | @@ -59,6 +59,7 @@ | ... | @@ -59,6 +59,7 @@ |
59 | 59 | ||
60 | <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:EquipmentFailure" /> | 60 | <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:EquipmentFailure" /> |
61 | 61 | ||
62 | + <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:BitRecord" /> | ||
62 | 63 | ||
63 | </ui:group> | 64 | </ui:group> |
64 | </ui:group> | 65 | </ui:group> | ... | ... |
-
Please register or login to post a comment