David Leal

Mapped comments for part activities

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