David Leal

Added classification of a DailyDrillingReport by status - normal,

preliminary, final.
1 -# Saved by TopBraid on Wed Aug 03 07:30:51 BST 2011 1 +# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr 4 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr
...@@ -20,143 +20,101 @@ ...@@ -20,143 +20,101 @@
20 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> 20 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
21 spin:rule 21 spin:rule
22 [ rdf:type sp:Construct ; 22 [ rdf:type sp:Construct ;
23 - rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity and WellBore 23 + rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
24 -Minimum data - createDate, dTimStart, nameWellBore 24 + sp:templates ([ sp:object _:b1 ;
25 -Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses (is this useful?)"""^^xsd:string ; 25 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
26 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
27 - sp:predicate rdf:type ;
28 - sp:subject _:b1
29 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
30 - sp:predicate rdf:type ;
31 - sp:subject _:b2
32 - ] [ sp:object _:b2 ;
33 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
34 - sp:subject _:b1
35 - ] [ sp:object _:b3 ;
36 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
37 - sp:subject _:b1
38 - ] [ sp:object _:b4 ;
39 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
40 - sp:subject _:b2
41 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
42 - sp:predicate rdf:type ;
43 - sp:subject _:b5
44 - ] [ sp:object _:b5 ;
45 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
46 sp:subject _:b2 26 sp:subject _:b2
47 - ] [ sp:object _:b6 ;
48 - sp:predicate rdfs:label ;
49 - sp:subject _:b5
50 - ] [ sp:object spin:_this ;
51 - sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
52 - sp:subject _:b1
53 ]) ; 27 ]) ;
54 - sp:where ([ sp:object _:b6 ; 28 + sp:where ([ sp:object _:b3 ;
55 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 29 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
56 sp:subject spin:_this 30 sp:subject spin:_this
57 ] [ sp:object _:b4 ; 31 ] [ sp:object _:b4 ;
58 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 32 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
59 sp:subject spin:_this 33 sp:subject spin:_this
60 - ] [ sp:object _:b3 ; 34 + ] [ sp:object _:b1 ;
61 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 35 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
62 sp:subject spin:_this 36 sp:subject spin:_this
63 ] [ rdf:type sp:Bind ; 37 ] [ rdf:type sp:Bind ;
64 sp:expression 38 sp:expression
65 [ rdf:type ep-spin-lib:normalizeString ; 39 [ rdf:type ep-spin-lib:normalizeString ;
66 - sp:arg1 _:b6 40 + sp:arg1 _:b3
67 - ] ;
68 - sp:variable _:b7
69 - ] [ rdf:type sp:Bind ;
70 - sp:expression
71 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
72 - sp:arg1 _:b7 ;
73 - sp:arg2 _:b3
74 ] ; 41 ] ;
75 - sp:variable _:b1 42 + sp:variable _:b5
76 ] [ rdf:type sp:Bind ; 43 ] [ rdf:type sp:Bind ;
77 sp:expression 44 sp:expression
78 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 45 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
79 - sp:arg1 _:b7 ; 46 + sp:arg1 _:b5 ;
80 sp:arg2 _:b4 47 sp:arg2 _:b4
81 ] ; 48 ] ;
82 sp:variable _:b2 49 sp:variable _:b2
83 - ] [ rdf:type sp:Bind ;
84 - sp:expression
85 - [ rdf:type ep-spin-lib:buildWellBoreURI ;
86 - sp:arg1 _:b7
87 - ] ;
88 - sp:variable _:b5
89 ]) 50 ])
90 ] ; 51 ] ;
91 spin:rule 52 spin:rule
92 [ rdf:type sp:Construct ; 53 [ rdf:type sp:Construct ;
93 - rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ; 54 + rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ;
94 - sp:templates ([ sp:object _:b8 ; 55 + sp:templates ([ sp:object _:b6 ;
95 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ; 56 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
96 - sp:subject _:b9 57 + sp:subject _:b7
97 ]) ; 58 ]) ;
98 - sp:where ([ sp:object _:b10 ; 59 + sp:where ([ sp:object _:b8 ;
99 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 60 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
100 sp:subject spin:_this 61 sp:subject spin:_this
101 - ] [ sp:object _:b11 ; 62 + ] [ sp:object _:b9 ;
102 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 63 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
103 sp:subject spin:_this 64 sp:subject spin:_this
104 - ] [ sp:object _:b12 ; 65 + ] [ sp:object _:b10 ;
105 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 66 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
106 sp:subject spin:_this 67 sp:subject spin:_this
107 - ] [ sp:object _:b8 ; 68 + ] [ sp:object _:b6 ;
108 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ; 69 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
109 - sp:subject _:b12 70 + sp:subject _:b10
110 ] [ rdf:type sp:Bind ; 71 ] [ rdf:type sp:Bind ;
111 sp:expression 72 sp:expression
112 [ rdf:type ep-spin-lib:normalizeString ; 73 [ rdf:type ep-spin-lib:normalizeString ;
113 - sp:arg1 _:b10 74 + sp:arg1 _:b8
114 ] ; 75 ] ;
115 - sp:variable _:b13 76 + sp:variable _:b11
116 ] [ rdf:type sp:Bind ; 77 ] [ rdf:type sp:Bind ;
117 sp:expression 78 sp:expression
118 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 79 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
119 - sp:arg1 _:b13 ; 80 + sp:arg1 _:b11 ;
120 - sp:arg2 _:b11 81 + sp:arg2 _:b9
121 ] ; 82 ] ;
122 - sp:variable _:b9 83 + sp:variable _:b7
123 ]) 84 ])
124 ] ; 85 ] ;
125 spin:rule 86 spin:rule
126 [ rdf:type sp:Construct ; 87 [ rdf:type sp:Construct ;
127 - rdfs:comment "STEP 109 Transfer md"^^xsd:string ; 88 + rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
128 - sp:templates ([ sp:object _:b14 ; 89 + sp:templates ([ sp:object _:b12 ;
129 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ; 90 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
130 - sp:subject _:b15 91 + sp:subject _:b13
131 ]) ; 92 ]) ;
132 - sp:where ([ sp:object _:b16 ; 93 + sp:where ([ sp:object _:b14 ;
133 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 94 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
134 sp:subject spin:_this 95 sp:subject spin:_this
135 - ] [ sp:object _:b17 ; 96 + ] [ sp:object _:b15 ;
136 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 97 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
137 sp:subject spin:_this 98 sp:subject spin:_this
138 - ] [ sp:object _:b18 ; 99 + ] [ sp:object _:b16 ;
139 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 100 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
140 sp:subject spin:_this 101 sp:subject spin:_this
141 - ] [ sp:object _:b15 ; 102 + ] [ sp:object _:b12 ;
142 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 103 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
143 - sp:subject _:b19 104 + sp:subject _:b16
144 - ] [ sp:object _:b14 ;
145 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
146 - sp:subject _:b18
147 ] [ rdf:type sp:Bind ; 105 ] [ rdf:type sp:Bind ;
148 sp:expression 106 sp:expression
149 [ rdf:type ep-spin-lib:normalizeString ; 107 [ rdf:type ep-spin-lib:normalizeString ;
150 - sp:arg1 _:b16 108 + sp:arg1 _:b14
151 ] ; 109 ] ;
152 - sp:variable _:b20 110 + sp:variable _:b17
153 ] [ rdf:type sp:Bind ; 111 ] [ rdf:type sp:Bind ;
154 sp:expression 112 sp:expression
155 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 113 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
156 - sp:arg1 _:b20 ; 114 + sp:arg1 _:b17 ;
157 - sp:arg2 _:b17 115 + sp:arg2 _:b15
158 ] ; 116 ] ;
159 - sp:variable _:b19 117 + sp:variable _:b13
160 ]) 118 ])
161 ] ; 119 ] ;
162 spin:rule 120 spin:rule
...@@ -164,335 +122,509 @@ Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUC ...@@ -164,335 +122,509 @@ Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUC
164 rdfs:comment "STEP 104 Create Well"^^xsd:string ; 122 rdfs:comment "STEP 104 Create Well"^^xsd:string ;
165 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 123 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
166 sp:predicate rdf:type ; 124 sp:predicate rdf:type ;
167 - sp:subject _:b21 125 + sp:subject _:b18
168 - ] [ sp:object _:b22 ; 126 + ] [ sp:object _:b19 ;
169 sp:predicate rdfs:label ; 127 sp:predicate rdfs:label ;
170 - sp:subject _:b21 128 + sp:subject _:b18
171 - ] [ sp:object _:b21 ; 129 + ] [ sp:object _:b18 ;
172 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; 130 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
173 - sp:subject _:b23 131 + sp:subject _:b20
174 - ] [ sp:object _:b24 ; 132 + ] [ sp:object _:b21 ;
175 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 133 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
176 - sp:subject _:b21 134 + sp:subject _:b18
177 ]) ; 135 ]) ;
178 - sp:where ([ sp:object _:b25 ; 136 + sp:where ([ sp:object _:b22 ;
179 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 137 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
180 sp:subject spin:_this 138 sp:subject spin:_this
181 - ] [ sp:object _:b22 ; 139 + ] [ sp:object _:b19 ;
182 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ; 140 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
183 sp:subject spin:_this 141 sp:subject spin:_this
184 - ] [ sp:object _:b26 ; 142 + ] [ sp:object _:b23 ;
185 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 143 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
186 sp:subject spin:_this 144 sp:subject spin:_this
187 - ] [ sp:object _:b24 ; 145 + ] [ sp:object _:b21 ;
188 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 146 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
189 - sp:subject _:b23 147 + sp:subject _:b20
190 ] [ rdf:type sp:Bind ; 148 ] [ rdf:type sp:Bind ;
191 sp:expression 149 sp:expression
192 [ rdf:type ep-spin-lib:normalizeString ; 150 [ rdf:type ep-spin-lib:normalizeString ;
193 - sp:arg1 _:b25 151 + sp:arg1 _:b22
194 ] ; 152 ] ;
195 - sp:variable _:b27 153 + sp:variable _:b24
196 ] [ rdf:type sp:Bind ; 154 ] [ rdf:type sp:Bind ;
197 sp:expression 155 sp:expression
198 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 156 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
199 - sp:arg1 _:b27 ; 157 + sp:arg1 _:b24 ;
200 - sp:arg2 _:b26 158 + sp:arg2 _:b23
201 ] ; 159 ] ;
202 - sp:variable _:b23 160 + sp:variable _:b20
203 ] [ rdf:type sp:Bind ; 161 ] [ rdf:type sp:Bind ;
204 sp:expression 162 sp:expression
205 [ rdf:type ep-spin-lib:normalizeString ; 163 [ rdf:type ep-spin-lib:normalizeString ;
206 - sp:arg1 _:b22 164 + sp:arg1 _:b19
207 ] ; 165 ] ;
208 - sp:variable _:b28 166 + sp:variable _:b25
209 ] [ rdf:type sp:Bind ; 167 ] [ rdf:type sp:Bind ;
210 sp:expression 168 sp:expression
211 [ rdf:type ep-spin-lib:buildWellURI ; 169 [ rdf:type ep-spin-lib:buildWellURI ;
212 - sp:arg1 _:b28 170 + sp:arg1 _:b25
213 ] ; 171 ] ;
214 - sp:variable _:b21 172 + sp:variable _:b18
215 ]) 173 ])
216 ] ; 174 ] ;
217 spin:rule 175 spin:rule
218 [ rdf:type sp:Construct ; 176 [ rdf:type sp:Construct ;
219 - rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ; 177 + rdfs:comment """STEP 103b
220 - sp:templates ([ sp:object _:b29 ; 178 +Classify a DailyDrillingReport as preliminary"""^^xsd:string ;
221 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ; 179 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PreliminaryDailyDrillingReport> ;
222 - sp:subject _:b30 180 + sp:predicate rdf:type ;
181 + sp:subject _:b26
223 ]) ; 182 ]) ;
224 - sp:where ([ sp:object _:b31 ; 183 + sp:where ([ sp:object _:b27 ;
225 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 184 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
226 sp:subject spin:_this 185 sp:subject spin:_this
227 - ] [ sp:object _:b32 ; 186 + ] [ sp:object _:b28 ;
228 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 187 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
229 sp:subject spin:_this 188 sp:subject spin:_this
230 - ] [ sp:object _:b33 ; 189 + ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> ;
231 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 190 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
232 sp:subject spin:_this 191 sp:subject spin:_this
233 - ] [ sp:object _:b29 ;
234 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
235 - sp:subject _:b33
236 ] [ rdf:type sp:Bind ; 192 ] [ rdf:type sp:Bind ;
237 sp:expression 193 sp:expression
238 [ rdf:type ep-spin-lib:normalizeString ; 194 [ rdf:type ep-spin-lib:normalizeString ;
239 - sp:arg1 _:b31 195 + sp:arg1 _:b27
240 ] ; 196 ] ;
241 - sp:variable _:b34 197 + sp:variable _:b29
242 ] [ rdf:type sp:Bind ; 198 ] [ rdf:type sp:Bind ;
243 sp:expression 199 sp:expression
244 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 200 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
245 - sp:arg1 _:b34 ; 201 + sp:arg1 _:b29 ;
246 - sp:arg2 _:b32 202 + sp:arg2 _:b28
247 ] ; 203 ] ;
248 - sp:variable _:b30 204 + sp:variable _:b26
249 ]) 205 ])
250 ] ; 206 ] ;
251 spin:rule 207 spin:rule
252 [ rdf:type sp:Construct ; 208 [ rdf:type sp:Construct ;
253 - rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ; 209 + rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity and WellBore
254 - sp:templates ([ sp:object _:b35 ; 210 +Minimum data - createDate, dTimStart, nameWellBore
255 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ; 211 +Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses (is this useful?)"""^^xsd:string ;
256 - sp:subject _:b36 212 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
213 + sp:predicate rdf:type ;
214 + sp:subject _:b30
215 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
216 + sp:predicate rdf:type ;
217 + sp:subject _:b31
218 + ] [ sp:object _:b31 ;
219 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
220 + sp:subject _:b30
221 + ] [ sp:object _:b32 ;
222 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
223 + sp:subject _:b30
224 + ] [ sp:object _:b33 ;
225 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
226 + sp:subject _:b31
227 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
228 + sp:predicate rdf:type ;
229 + sp:subject _:b34
230 + ] [ sp:object _:b34 ;
231 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
232 + sp:subject _:b31
233 + ] [ sp:object _:b35 ;
234 + sp:predicate rdfs:label ;
235 + sp:subject _:b34
236 + ] [ sp:object spin:_this ;
237 + sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
238 + sp:subject _:b30
257 ]) ; 239 ]) ;
258 - sp:where ([ sp:object _:b37 ; 240 + sp:where ([ sp:object _:b35 ;
259 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 241 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
260 sp:subject spin:_this 242 sp:subject spin:_this
261 - ] [ sp:object _:b38 ; 243 + ] [ sp:object _:b33 ;
262 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 244 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
263 sp:subject spin:_this 245 sp:subject spin:_this
264 - ] [ sp:object _:b39 ; 246 + ] [ sp:object _:b32 ;
265 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 247 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
266 sp:subject spin:_this 248 sp:subject spin:_this
267 - ] [ sp:object _:b35 ;
268 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
269 - sp:subject _:b39
270 ] [ rdf:type sp:Bind ; 249 ] [ rdf:type sp:Bind ;
271 sp:expression 250 sp:expression
272 [ rdf:type ep-spin-lib:normalizeString ; 251 [ rdf:type ep-spin-lib:normalizeString ;
273 - sp:arg1 _:b37 252 + sp:arg1 _:b35
274 ] ; 253 ] ;
275 - sp:variable _:b40 254 + sp:variable _:b36
255 + ] [ rdf:type sp:Bind ;
256 + sp:expression
257 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
258 + sp:arg1 _:b36 ;
259 + sp:arg2 _:b32
260 + ] ;
261 + sp:variable _:b30
276 ] [ rdf:type sp:Bind ; 262 ] [ rdf:type sp:Bind ;
277 sp:expression 263 sp:expression
278 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 264 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
279 - sp:arg1 _:b40 ; 265 + sp:arg1 _:b36 ;
280 - sp:arg2 _:b38 266 + sp:arg2 _:b33
281 ] ; 267 ] ;
282 - sp:variable _:b36 268 + sp:variable _:b31
269 + ] [ rdf:type sp:Bind ;
270 + sp:expression
271 + [ rdf:type ep-spin-lib:buildWellBoreURI ;
272 + sp:arg1 _:b36
273 + ] ;
274 + sp:variable _:b34
283 ]) 275 ])
284 ] ; 276 ] ;
285 spin:rule 277 spin:rule
286 [ rdf:type sp:Construct ; 278 [ rdf:type sp:Construct ;
287 rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ; 279 rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
288 - sp:templates ([ sp:object _:b41 ; 280 + sp:templates ([ sp:object _:b37 ;
289 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ; 281 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
290 - sp:subject _:b42 282 + sp:subject _:b38
291 ]) ; 283 ]) ;
292 - sp:where ([ sp:object _:b43 ; 284 + sp:where ([ sp:object _:b39 ;
293 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 285 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
294 sp:subject spin:_this 286 sp:subject spin:_this
295 - ] [ sp:object _:b44 ; 287 + ] [ sp:object _:b40 ;
296 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 288 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
297 sp:subject spin:_this 289 sp:subject spin:_this
298 - ] [ sp:object _:b45 ; 290 + ] [ sp:object _:b41 ;
299 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 291 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
300 sp:subject spin:_this 292 sp:subject spin:_this
301 - ] [ sp:object _:b41 ; 293 + ] [ sp:object _:b37 ;
302 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ; 294 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
303 - sp:subject _:b45 295 + sp:subject _:b41
304 ] [ rdf:type sp:Bind ; 296 ] [ rdf:type sp:Bind ;
305 sp:expression 297 sp:expression
306 [ rdf:type ep-spin-lib:normalizeString ; 298 [ rdf:type ep-spin-lib:normalizeString ;
307 - sp:arg1 _:b43 299 + sp:arg1 _:b39
308 ] ; 300 ] ;
309 - sp:variable _:b46 301 + sp:variable _:b42
310 ] [ rdf:type sp:Bind ; 302 ] [ rdf:type sp:Bind ;
311 sp:expression 303 sp:expression
312 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 304 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
313 - sp:arg1 _:b46 ; 305 + sp:arg1 _:b42 ;
314 - sp:arg2 _:b44 306 + sp:arg2 _:b40
315 ] ; 307 ] ;
316 - sp:variable _:b42 308 + sp:variable _:b38
317 ]) 309 ])
318 ] ; 310 ] ;
319 spin:rule 311 spin:rule
320 [ rdf:type sp:Construct ; 312 [ rdf:type sp:Construct ;
321 - rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ; 313 + rdfs:comment "STEP 109 Transfer md"^^xsd:string ;
322 - sp:templates ([ sp:object _:b47 ; 314 + sp:templates ([ sp:object _:b43 ;
323 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 315 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
324 - sp:subject _:b48 316 + sp:subject _:b44
325 ]) ; 317 ]) ;
326 - sp:where ([ sp:object _:b49 ; 318 + sp:where ([ sp:object _:b45 ;
327 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 319 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
328 sp:subject spin:_this 320 sp:subject spin:_this
329 - ] [ sp:object _:b50 ; 321 + ] [ sp:object _:b46 ;
330 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 322 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
331 sp:subject spin:_this 323 sp:subject spin:_this
332 ] [ sp:object _:b47 ; 324 ] [ sp:object _:b47 ;
333 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; 325 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
334 sp:subject spin:_this 326 sp:subject spin:_this
327 + ] [ sp:object _:b44 ;
328 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
329 + sp:subject _:b48
330 + ] [ sp:object _:b43 ;
331 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
332 + sp:subject _:b47
335 ] [ rdf:type sp:Bind ; 333 ] [ rdf:type sp:Bind ;
336 sp:expression 334 sp:expression
337 [ rdf:type ep-spin-lib:normalizeString ; 335 [ rdf:type ep-spin-lib:normalizeString ;
338 - sp:arg1 _:b49 336 + sp:arg1 _:b45
339 ] ; 337 ] ;
340 - sp:variable _:b51 338 + sp:variable _:b49
341 ] [ rdf:type sp:Bind ; 339 ] [ rdf:type sp:Bind ;
342 sp:expression 340 sp:expression
343 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 341 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
344 - sp:arg1 _:b51 ; 342 + sp:arg1 _:b49 ;
345 - sp:arg2 _:b50 343 + sp:arg2 _:b46
346 ] ; 344 ] ;
347 sp:variable _:b48 345 sp:variable _:b48
348 ]) 346 ])
347 + ] ;
348 + spin:rule
349 + [ rdf:type sp:Construct ;
350 + rdfs:comment """STEP 103c
351 +Classify a DailyDrillingReport as final"""^^xsd:string ;
352 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FinalDailyDrillingReport> ;
353 + sp:predicate rdf:type ;
354 + sp:subject _:b50
355 + ]) ;
356 + sp:where ([ sp:object _:b51 ;
357 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
358 + sp:subject spin:_this
359 + ] [ sp:object _:b52 ;
360 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
361 + sp:subject spin:_this
362 + ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_final> ;
363 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
364 + sp:subject spin:_this
365 + ] [ rdf:type sp:Bind ;
366 + sp:expression
367 + [ rdf:type ep-spin-lib:normalizeString ;
368 + sp:arg1 _:b51
369 + ] ;
370 + sp:variable _:b53
371 + ] [ rdf:type sp:Bind ;
372 + sp:expression
373 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
374 + sp:arg1 _:b53 ;
375 + sp:arg2 _:b52
376 + ] ;
377 + sp:variable _:b50
378 + ])
379 + ] ;
380 + spin:rule
381 + [ rdf:type sp:Construct ;
382 + rdfs:comment """STEP 103a
383 +Classify a DailyDrillingReport as normal"""^^xsd:string ;
384 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#NormalDailyDrillingReport> ;
385 + sp:predicate rdf:type ;
386 + sp:subject _:b54
387 + ]) ;
388 + sp:where ([ sp:object _:b55 ;
389 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
390 + sp:subject spin:_this
391 + ] [ sp:object _:b56 ;
392 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
393 + sp:subject spin:_this
394 + ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> ;
395 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
396 + sp:subject spin:_this
397 + ] [ rdf:type sp:Bind ;
398 + sp:expression
399 + [ rdf:type ep-spin-lib:normalizeString ;
400 + sp:arg1 _:b55
401 + ] ;
402 + sp:variable _:b57
403 + ] [ rdf:type sp:Bind ;
404 + sp:expression
405 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
406 + sp:arg1 _:b57 ;
407 + sp:arg2 _:b56
408 + ] ;
409 + sp:variable _:b54
410 + ])
411 + ] ;
412 + spin:rule
413 + [ rdf:type sp:Construct ;
414 + rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
415 + sp:templates ([ sp:object _:b58 ;
416 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
417 + sp:subject _:b59
418 + ]) ;
419 + sp:where ([ sp:object _:b60 ;
420 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
421 + sp:subject spin:_this
422 + ] [ sp:object _:b61 ;
423 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
424 + sp:subject spin:_this
425 + ] [ sp:object _:b62 ;
426 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
427 + sp:subject spin:_this
428 + ] [ sp:object _:b58 ;
429 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
430 + sp:subject _:b62
431 + ] [ rdf:type sp:Bind ;
432 + sp:expression
433 + [ rdf:type ep-spin-lib:normalizeString ;
434 + sp:arg1 _:b60
435 + ] ;
436 + sp:variable _:b63
437 + ] [ rdf:type sp:Bind ;
438 + sp:expression
439 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
440 + sp:arg1 _:b63 ;
441 + sp:arg2 _:b61
442 + ] ;
443 + sp:variable _:b59
444 + ])
349 ] . 445 ] .
350 446
351 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> 447 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
352 rdf:type owl:Ontology ; 448 rdf:type owl:Ontology ;
353 - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ; 449 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
354 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 450 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
355 451
356 -_:b47 452 +_:b50
357 - sp:varName "dTimEnd"^^xsd:string . 453 + sp:varName "dailyDrillingReport"^^xsd:string .
358 454
359 -_:b48 455 +_:b53
360 - sp:varName "dailyDrillingActivity"^^xsd:string . 456 + sp:varName "normalizedWellBoreName"^^xsd:string .
361 457
362 -_:b49 458 +_:b52
459 + sp:varName "createDate"^^xsd:string .
460 +
461 +_:b51
363 sp:varName "nameWellBore"^^xsd:string . 462 sp:varName "nameWellBore"^^xsd:string .
364 463
365 -_:b50 464 +_:b26
366 - sp:varName "dTimStart"^^xsd:string . 465 + sp:varName "dailyDrillingReport"^^xsd:string .
367 466
368 -_:b51 467 +_:b29
369 sp:varName "normalizedWellBoreName"^^xsd:string . 468 sp:varName "normalizedWellBoreName"^^xsd:string .
370 469
371 -_:b41 470 +_:b28
372 - sp:varName "forecast24Hr"^^xsd:string . 471 + sp:varName "createDate"^^xsd:string .
373 472
374 -_:b42 473 +_:b27
375 - sp:varName "dailyDrillingActivity"^^xsd:string . 474 + sp:varName "nameWellBore"^^xsd:string .
376 475
377 -_:b43 476 +_:b54
477 + sp:varName "dailyDrillingReport"^^xsd:string .
478 +
479 +_:b57
480 + sp:varName "normalizedWellBoreName"^^xsd:string .
481 +
482 +_:b56
483 + sp:varName "createDate"^^xsd:string .
484 +
485 +_:b55
378 sp:varName "nameWellBore"^^xsd:string . 486 sp:varName "nameWellBore"^^xsd:string .
379 487
380 -_:b44 488 +_:b5 sp:varName "normalizedWellBoreName"^^xsd:string .
381 - sp:varName "dTimStart"^^xsd:string .
382 489
383 -_:b45 490 +_:b4 sp:varName "dTimStart"^^xsd:string .
384 - sp:varName "statusInfo"^^xsd:string .
385 491
386 -_:b46 492 +_:b3 sp:varName "nameWellBore"^^xsd:string .
493 +
494 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
495 +
496 +_:b1 sp:varName "dTimEnd"^^xsd:string .
497 +
498 +_:b42
387 sp:varName "normalizedWellBoreName"^^xsd:string . 499 sp:varName "normalizedWellBoreName"^^xsd:string .
388 500
389 -_:b35 501 +_:b41
390 - sp:varName "ropCurrentValue"^^xsd:string . 502 + sp:varName "statusInfo"^^xsd:string .
391 503
392 -_:b36 504 +_:b40
393 - sp:varName "dailyDrillingActivity"^^xsd:string . 505 + sp:varName "dTimStart"^^xsd:string .
394 506
395 -_:b37 507 +_:b39
396 sp:varName "nameWellBore"^^xsd:string . 508 sp:varName "nameWellBore"^^xsd:string .
397 509
398 _:b38 510 _:b38
399 - sp:varName "dTimStart"^^xsd:string . 511 + sp:varName "dailyDrillingActivity"^^xsd:string .
400 512
401 -_:b39 513 +_:b37
402 - sp:varName "statusInfo"^^xsd:string . 514 + sp:varName "forecast24Hr"^^xsd:string .
403 515
404 -_:b40 516 +_:b63
405 sp:varName "normalizedWellBoreName"^^xsd:string . 517 sp:varName "normalizedWellBoreName"^^xsd:string .
406 518
407 -_:b29 519 +_:b62
408 - sp:varName "sum24Hr"^^xsd:string . 520 + sp:varName "statusInfo"^^xsd:string .
409 521
410 -_:b30 522 +_:b61
411 - sp:varName "dailyDrillingActivity"^^xsd:string . 523 + sp:varName "dTimStart"^^xsd:string .
412 524
413 -_:b31 525 +_:b60
414 sp:varName "nameWellBore"^^xsd:string . 526 sp:varName "nameWellBore"^^xsd:string .
415 527
416 -_:b32 528 +_:b59
417 - sp:varName "dTimStart"^^xsd:string . 529 + sp:varName "dailyDrillingActivity"^^xsd:string .
418 530
419 -_:b33 531 +_:b58
420 - sp:varName "statusInfo"^^xsd:string . 532 + sp:varName "ropCurrentValue"^^xsd:string .
421 533
422 -_:b34 534 +_:b11
423 sp:varName "normalizedWellBoreName"^^xsd:string . 535 sp:varName "normalizedWellBoreName"^^xsd:string .
424 536
425 -_:b21 537 +_:b10
426 - sp:varName "well"^^xsd:string . 538 + sp:varName "statusInfo"^^xsd:string .
427 539
428 -_:b22 540 +_:b9 sp:varName "dTimStart"^^xsd:string .
429 - sp:varName "nameWell"^^xsd:string .
430 541
431 -_:b23 542 +_:b8 sp:varName "nameWellBore"^^xsd:string .
432 - sp:varName "dailyDrillingActivity"^^xsd:string .
433 543
434 -_:b24 544 +_:b7 sp:varName "dailyDrillingActivity"^^xsd:string .
435 - sp:varName "wellBore"^^xsd:string .
436 545
437 -_:b25 546 +_:b6 sp:varName "sum24Hr"^^xsd:string .
438 - sp:varName "nameWellBore"^^xsd:string .
439 547
440 -_:b26 548 +_:b25
441 - sp:varName "dTimStart"^^xsd:string . 549 + sp:varName "normalizedWellName"^^xsd:string .
442 550
443 -_:b27 551 +_:b24
444 sp:varName "normalizedWellBoreName"^^xsd:string . 552 sp:varName "normalizedWellBoreName"^^xsd:string .
445 553
446 -_:b28 554 +_:b23
447 - sp:varName "normalizedWellName"^^xsd:string . 555 + sp:varName "dTimStart"^^xsd:string .
448 556
449 -_:b14 557 +_:b22
450 - sp:varName "md"^^xsd:string . 558 + sp:varName "nameWellBore"^^xsd:string .
451 559
452 -_:b15 560 +_:b21
453 sp:varName "wellBore"^^xsd:string . 561 sp:varName "wellBore"^^xsd:string .
454 562
455 -_:b16 563 +_:b20
456 - sp:varName "nameWellBore"^^xsd:string . 564 + sp:varName "dailyDrillingActivity"^^xsd:string .
457 565
458 -_:b17 566 +_:b19
459 - sp:varName "dTimStart"^^xsd:string . 567 + sp:varName "nameWell"^^xsd:string .
460 568
461 _:b18 569 _:b18
462 - sp:varName "statusInfo"^^xsd:string . 570 + sp:varName "well"^^xsd:string .
463 571
464 -_:b19 572 +_:b49
573 + sp:varName "normalizedWellBoreName"^^xsd:string .
574 +
575 +_:b48
465 sp:varName "dailyDrillingActivity"^^xsd:string . 576 sp:varName "dailyDrillingActivity"^^xsd:string .
466 577
467 -_:b20 578 +_:b47
579 + sp:varName "statusInfo"^^xsd:string .
580 +
581 +_:b46
582 + sp:varName "dTimStart"^^xsd:string .
583 +
584 +_:b45
585 + sp:varName "nameWellBore"^^xsd:string .
586 +
587 +_:b44
588 + sp:varName "wellBore"^^xsd:string .
589 +
590 +_:b43
591 + sp:varName "md"^^xsd:string .
592 +
593 +_:b17
468 sp:varName "normalizedWellBoreName"^^xsd:string . 594 sp:varName "normalizedWellBoreName"^^xsd:string .
469 595
470 -_:b8 sp:varName "distDrill"^^xsd:string . 596 +_:b16
597 + sp:varName "statusInfo"^^xsd:string .
471 598
472 -_:b9 sp:varName "dailyDrillingActivity"^^xsd:string . 599 +_:b15
600 + sp:varName "dTimStart"^^xsd:string .
473 601
474 -_:b10 602 +_:b14
475 sp:varName "nameWellBore"^^xsd:string . 603 sp:varName "nameWellBore"^^xsd:string .
476 604
477 -_:b11 605 +_:b13
478 - sp:varName "dTimStart"^^xsd:string . 606 + sp:varName "dailyDrillingActivity"^^xsd:string .
479 607
480 _:b12 608 _:b12
481 - sp:varName "statusInfo"^^xsd:string . 609 + sp:varName "distDrill"^^xsd:string .
482 610
483 -_:b13 611 +_:b36
484 sp:varName "normalizedWellBoreName"^^xsd:string . 612 sp:varName "normalizedWellBoreName"^^xsd:string .
485 613
486 -_:b1 sp:varName "dailyDrillingReport"^^xsd:string . 614 +_:b35
487 - 615 + sp:varName "nameWellBore"^^xsd:string .
488 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
489 616
490 -_:b3 sp:varName "createDate"^^xsd:string . 617 +_:b34
618 + sp:varName "wellBore"^^xsd:string .
491 619
492 -_:b4 sp:varName "dTimStart"^^xsd:string . 620 +_:b33
621 + sp:varName "dTimStart"^^xsd:string .
493 622
494 -_:b5 sp:varName "wellBore"^^xsd:string . 623 +_:b32
624 + sp:varName "createDate"^^xsd:string .
495 625
496 -_:b6 sp:varName "nameWellBore"^^xsd:string . 626 +_:b31
627 + sp:varName "dailyDrillingActivity"^^xsd:string .
497 628
498 -_:b7 sp:varName "normalizedWellBoreName"^^xsd:string . 629 +_:b30
630 + sp:varName "dailyDrillingReport"^^xsd:string .
......
1 -# Saved by TopBraid on Wed Aug 03 07:30:51 BST 2011 1 +# Saved by TopBraid on Wed Aug 03 12:31:51 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#> .
......