David Leal

All data for report header complete.

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