David Leal

Back to work on productVolume transform with functions in SPIN_EPIM-DPR-lib

1 +# Saved by TopBraid on Sun Oct 09 08:50:58 BST 2011
2 +# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/geography
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
6 +# imports: http://spinrdf.org/spin
7 +# imports: http://www.witsml.org/schemas/131/addendum/combo
8 +
9 +@prefix combo: <http://www.witsml.org/schemas/131/addendum/combo#> .
10 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
11 +@prefix ep-geog: <http://www.reportinghub.no/ep/schema/1.0/geography#> .
12 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
13 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
14 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
15 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
16 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
17 +@prefix sp: <http://spinrdf.org/sp#> .
18 +@prefix spin: <http://spinrdf.org/spin#> .
19 +@prefix spl: <http://spinrdf.org/spl#> .
20 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
21 +
22 +<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
23 + rdf:type owl:Ontology ;
24 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://spinrdf.org/spin> ;
25 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
26 +
27 +ep-dpr-spin-lib:Function
28 + rdf:type spin:Function ;
29 + rdfs:label "function"^^xsd:string ;
30 + rdfs:subClassOf spin:Functions .
31 +
32 +ep-dpr-spin-lib:buildProductionFacilityURI
33 + rdf:type spin:Function ;
34 + rdfs:label "build ProductionFacility URI"^^xsd:string ;
35 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
36 + spin:body
37 + [ rdf:type sp:Select ;
38 + sp:resultVariables (_:b1) ;
39 + sp:where ([ rdf:type sp:Bind ;
40 + sp:expression
41 + [ rdf:type ep-spin-lib:buildURI ;
42 + sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ;
43 + sp:arg2 [ rdf:type fn:concat ;
44 + sp:arg1 spin:_arg1
45 + ]
46 + ] ;
47 + sp:variable _:b1
48 + ])
49 + ] .
50 +
51 +ep-dpr-spin-lib:buildProductionFlowURI
52 + rdf:type spin:Function ;
53 + rdfs:label "build ProductionFlow URI"^^xsd:string ;
54 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
55 + spin:body
56 + [ rdf:type sp:Select ;
57 + sp:resultVariables (_:b2) ;
58 + sp:where ([ rdf:type sp:Bind ;
59 + sp:expression
60 + [ rdf:type ep-spin-lib:buildURI ;
61 + sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
62 + sp:arg2 [ rdf:type fn:concat ;
63 + sp:arg1 spin:_arg1
64 + ]
65 + ] ;
66 + sp:variable _:b2
67 + ])
68 + ] .
69 +
70 +ep-dpr-spin-lib:selectProductionFacilityType
71 + rdf:type spin:Function ;
72 + rdfs:label "select ProductionFacilityType"^^xsd:string ;
73 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
74 + spin:body
75 + [ rdf:type sp:Select ;
76 + sp:resultVariables (_:b3) ;
77 + sp:where ([ rdf:type sp:Bind ;
78 + sp:expression
79 + [ rdf:type sp:if ;
80 + sp:arg1 [ rdf:type sp:eq ;
81 + sp:arg1 spin:_arg1 ;
82 + sp:arg2 combo:RF_field
83 + ] ;
84 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Field> ;
85 + sp:arg3 [ rdf:type sp:if ;
86 + sp:arg1 [ rdf:type sp:eq ;
87 + sp:arg1 spin:_arg1 ;
88 + sp:arg2 combo:RF_country
89 + ] ;
90 + sp:arg2 ep-geog:Country ;
91 + sp:arg3 [ rdf:type sp:if ;
92 + sp:arg1 [ rdf:type sp:eq ;
93 + sp:arg1 spin:_arg1 ;
94 + sp:arg2 combo:RF_controller--lift
95 + ] ;
96 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Controller-lift> ;
97 + sp:arg3 [ rdf:type sp:if ;
98 + sp:arg1 [ rdf:type sp:eq ;
99 + sp:arg1 spin:_arg1 ;
100 + sp:arg2 combo:RF_unknown
101 + ] ;
102 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
103 + sp:arg3 [ rdf:type sp:if ;
104 + sp:arg1 [ rdf:type sp:eq ;
105 + sp:arg1 spin:_arg1 ;
106 + sp:arg2 combo:RF_completion
107 + ] ;
108 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Completion> ;
109 + sp:arg3 [ rdf:type sp:if ;
110 + sp:arg1 [ rdf:type sp:eq ;
111 + sp:arg1 spin:_arg1 ;
112 + sp:arg2 combo:RF_manifold--production
113 + ] ;
114 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold-production> ;
115 + sp:arg3 [ rdf:type sp:if ;
116 + sp:arg1 [ rdf:type sp:eq ;
117 + sp:arg1 spin:_arg1 ;
118 + sp:arg2 combo:RF_wellbore
119 + ] ;
120 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellBore> ;
121 + sp:arg3 [ rdf:type sp:if ;
122 + sp:arg1 [ rdf:type sp:eq ;
123 + sp:arg1 spin:_arg1 ;
124 + sp:arg2 combo:RF_template
125 + ] ;
126 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Template> ;
127 + sp:arg3 [ rdf:type sp:if ;
128 + sp:arg1 [ rdf:type sp:eq ;
129 + sp:arg1 spin:_arg1 ;
130 + sp:arg2 combo:RF_platform
131 + ] ;
132 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Platform> ;
133 + sp:arg3 [ rdf:type sp:if ;
134 + sp:arg1 [ rdf:type sp:eq ;
135 + sp:arg1 spin:_arg1 ;
136 + sp:arg2 combo:RF_zone
137 + ] ;
138 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Zone> ;
139 + sp:arg3 [ rdf:type sp:if ;
140 + sp:arg1 [ rdf:type sp:eq ;
141 + sp:arg1 spin:_arg1 ;
142 + sp:arg2 combo:RF_wellhead
143 + ] ;
144 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellHead> ;
145 + sp:arg3 [ rdf:type sp:if ;
146 + sp:arg1 [ rdf:type sp:eq ;
147 + sp:arg1 spin:_arg1 ;
148 + sp:arg2 combo:RF_state
149 + ] ;
150 + sp:arg2 ep-geog:State ;
151 + sp:arg3 [ rdf:type sp:if ;
152 + sp:arg1 [ rdf:type sp:eq ;
153 + sp:arg1 spin:_arg1 ;
154 + sp:arg2 combo:RF_wellgroup
155 + ] ;
156 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellGroup> ;
157 + sp:arg3 [ rdf:type sp:if ;
158 + sp:arg1 [ rdf:type sp:eq ;
159 + sp:arg1 spin:_arg1 ;
160 + sp:arg2 combo:RF_flowline--production
161 + ] ;
162 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Flowline-production> ;
163 + sp:arg3 [ rdf:type sp:if ;
164 + sp:arg1 [ rdf:type sp:eq ;
165 + sp:arg1 spin:_arg1 ;
166 + sp:arg2 combo:RF_cluster
167 + ] ;
168 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#Cluster> ;
169 + sp:arg3 [ rdf:type sp:if ;
170 + sp:arg1 [ rdf:type sp:eq ;
171 + sp:arg1 spin:_arg1 ;
172 + sp:arg2 combo:RF_bottomhole
173 + ] ;
174 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellBoreBottom> ;
175 + sp:arg3 [ rdf:type sp:if ;
176 + sp:arg1 [ rdf:type sp:eq ;
177 + sp:arg1 spin:_arg1 ;
178 + sp:arg2 combo:RF_manifold--injection
179 + ] ;
180 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold-injection> ;
181 + sp:arg3 [ rdf:type sp:if ;
182 + sp:arg1 [ rdf:type sp:eq ;
183 + sp:arg1 spin:_arg1 ;
184 + sp:arg2 combo:RF_tank
185 + ] ;
186 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Tank> ;
187 + sp:arg3 [ rdf:type sp:if ;
188 + sp:arg1 [ rdf:type sp:eq ;
189 + sp:arg1 spin:_arg1 ;
190 + sp:arg2 combo:RF_county
191 + ] ;
192 + sp:arg2 ep-geog:County ;
193 + sp:arg3 [ rdf:type sp:if ;
194 + sp:arg1 [ rdf:type sp:eq ;
195 + sp:arg1 spin:_arg1 ;
196 + sp:arg2 combo:RF_separator
197 + ] ;
198 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Separator> ;
199 + sp:arg3 [ rdf:type sp:if ;
200 + sp:arg1 [ rdf:type sp:eq ;
201 + sp:arg1 spin:_arg1 ;
202 + sp:arg2 combo:RF_lease
203 + ] ;
204 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Lease> ;
205 + sp:arg3 [ rdf:type sp:if ;
206 + sp:arg1 [ rdf:type sp:eq ;
207 + sp:arg1 spin:_arg1 ;
208 + sp:arg2 combo:RF_flowline
209 + ] ;
210 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Flowline> ;
211 + sp:arg3 [ rdf:type sp:if ;
212 + sp:arg1 [ rdf:type sp:eq ;
213 + sp:arg1 spin:_arg1 ;
214 + sp:arg2 combo:RF_reservoir
215 + ] ;
216 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Reservoir> ;
217 + sp:arg3 [ rdf:type sp:if ;
218 + sp:arg1 [ rdf:type sp:eq ;
219 + sp:arg1 spin:_arg1 ;
220 + sp:arg2 combo:RF_well
221 + ] ;
222 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#Well> ;
223 + sp:arg3 [ rdf:type sp:if ;
224 + sp:arg1 [ rdf:type sp:eq ;
225 + sp:arg1 spin:_arg1 ;
226 + sp:arg2 combo:RF_compressor
227 + ] ;
228 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Compressor> ;
229 + sp:arg3 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
230 + ]
231 + ]
232 + ]
233 + ]
234 + ]
235 + ]
236 + ]
237 + ]
238 + ]
239 + ]
240 + ]
241 + ]
242 + ]
243 + ]
244 + ]
245 + ]
246 + ]
247 + ]
248 + ]
249 + ]
250 + ]
251 + ]
252 + ]
253 + ]
254 + ] ;
255 + sp:variable _:b3
256 + ])
257 + ] .
258 +
259 +ep-dpr-spin-lib:selectProductionFlowPurposeType
260 + rdf:type spin:Function ;
261 + rdfs:label "select ProductionFlowPurposeType"^^xsd:string ;
262 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
263 + spin:body
264 + [ rdf:type sp:Select ;
265 + sp:resultVariables (_:b4) ;
266 + sp:where ([ rdf:type sp:Bind ;
267 + sp:expression
268 + [ rdf:type sp:if ;
269 + sp:arg1 [ rdf:type sp:eq ;
270 + sp:arg1 spin:_arg1 ;
271 + sp:arg2 combo:RF_field
272 + ] ;
273 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Field> ;
274 + sp:arg3 [ rdf:type sp:if ;
275 + sp:arg1 [ rdf:type sp:eq ;
276 + sp:arg1 spin:_arg1 ;
277 + sp:arg2 combo:RF_country
278 + ] ;
279 + sp:arg2 ep-geog:Country ;
280 + sp:arg3 [ rdf:type sp:if ;
281 + sp:arg1 [ rdf:type sp:eq ;
282 + sp:arg1 spin:_arg1 ;
283 + sp:arg2 combo:RF_controller--lift
284 + ] ;
285 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Controller-lift> ;
286 + sp:arg3 [ rdf:type sp:if ;
287 + sp:arg1 [ rdf:type sp:eq ;
288 + sp:arg1 spin:_arg1 ;
289 + sp:arg2 combo:RF_unknown
290 + ] ;
291 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
292 + sp:arg3 [ rdf:type sp:if ;
293 + sp:arg1 [ rdf:type sp:eq ;
294 + sp:arg1 spin:_arg1 ;
295 + sp:arg2 combo:RF_completion
296 + ] ;
297 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Completion> ;
298 + sp:arg3 [ rdf:type sp:if ;
299 + sp:arg1 [ rdf:type sp:eq ;
300 + sp:arg1 spin:_arg1 ;
301 + sp:arg2 combo:RF_manifold--production
302 + ] ;
303 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold-production> ;
304 + sp:arg3 [ rdf:type sp:if ;
305 + sp:arg1 [ rdf:type sp:eq ;
306 + sp:arg1 spin:_arg1 ;
307 + sp:arg2 combo:RF_wellbore
308 + ] ;
309 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellBore> ;
310 + sp:arg3 [ rdf:type sp:if ;
311 + sp:arg1 [ rdf:type sp:eq ;
312 + sp:arg1 spin:_arg1 ;
313 + sp:arg2 combo:RF_template
314 + ] ;
315 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Template> ;
316 + sp:arg3 [ rdf:type sp:if ;
317 + sp:arg1 [ rdf:type sp:eq ;
318 + sp:arg1 spin:_arg1 ;
319 + sp:arg2 combo:RF_platform
320 + ] ;
321 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Platform> ;
322 + sp:arg3 [ rdf:type sp:if ;
323 + sp:arg1 [ rdf:type sp:eq ;
324 + sp:arg1 spin:_arg1 ;
325 + sp:arg2 combo:RF_zone
326 + ] ;
327 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Zone> ;
328 + sp:arg3 [ rdf:type sp:if ;
329 + sp:arg1 [ rdf:type sp:eq ;
330 + sp:arg1 spin:_arg1 ;
331 + sp:arg2 combo:RF_wellhead
332 + ] ;
333 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellHead> ;
334 + sp:arg3 [ rdf:type sp:if ;
335 + sp:arg1 [ rdf:type sp:eq ;
336 + sp:arg1 spin:_arg1 ;
337 + sp:arg2 combo:RF_state
338 + ] ;
339 + sp:arg2 ep-geog:State ;
340 + sp:arg3 [ rdf:type sp:if ;
341 + sp:arg1 [ rdf:type sp:eq ;
342 + sp:arg1 spin:_arg1 ;
343 + sp:arg2 combo:RF_wellgroup
344 + ] ;
345 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellGroup> ;
346 + sp:arg3 [ rdf:type sp:if ;
347 + sp:arg1 [ rdf:type sp:eq ;
348 + sp:arg1 spin:_arg1 ;
349 + sp:arg2 combo:RF_flowline--production
350 + ] ;
351 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Flowline-production> ;
352 + sp:arg3 [ rdf:type sp:if ;
353 + sp:arg1 [ rdf:type sp:eq ;
354 + sp:arg1 spin:_arg1 ;
355 + sp:arg2 combo:RF_cluster
356 + ] ;
357 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#Cluster> ;
358 + sp:arg3 [ rdf:type sp:if ;
359 + sp:arg1 [ rdf:type sp:eq ;
360 + sp:arg1 spin:_arg1 ;
361 + sp:arg2 combo:RF_bottomhole
362 + ] ;
363 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellBoreBottom> ;
364 + sp:arg3 [ rdf:type sp:if ;
365 + sp:arg1 [ rdf:type sp:eq ;
366 + sp:arg1 spin:_arg1 ;
367 + sp:arg2 combo:RF_manifold--injection
368 + ] ;
369 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold-injection> ;
370 + sp:arg3 [ rdf:type sp:if ;
371 + sp:arg1 [ rdf:type sp:eq ;
372 + sp:arg1 spin:_arg1 ;
373 + sp:arg2 combo:RF_tank
374 + ] ;
375 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Tank> ;
376 + sp:arg3 [ rdf:type sp:if ;
377 + sp:arg1 [ rdf:type sp:eq ;
378 + sp:arg1 spin:_arg1 ;
379 + sp:arg2 combo:RF_county
380 + ] ;
381 + sp:arg2 ep-geog:County ;
382 + sp:arg3 [ rdf:type sp:if ;
383 + sp:arg1 [ rdf:type sp:eq ;
384 + sp:arg1 spin:_arg1 ;
385 + sp:arg2 combo:RF_separator
386 + ] ;
387 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Separator> ;
388 + sp:arg3 [ rdf:type sp:if ;
389 + sp:arg1 [ rdf:type sp:eq ;
390 + sp:arg1 spin:_arg1 ;
391 + sp:arg2 combo:RF_lease
392 + ] ;
393 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Lease> ;
394 + sp:arg3 [ rdf:type sp:if ;
395 + sp:arg1 [ rdf:type sp:eq ;
396 + sp:arg1 spin:_arg1 ;
397 + sp:arg2 combo:RF_flowline
398 + ] ;
399 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Flowline> ;
400 + sp:arg3 [ rdf:type sp:if ;
401 + sp:arg1 [ rdf:type sp:eq ;
402 + sp:arg1 spin:_arg1 ;
403 + sp:arg2 combo:RF_reservoir
404 + ] ;
405 + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Reservoir> ;
406 + sp:arg3 [ rdf:type sp:if ;
407 + sp:arg1 [ rdf:type sp:eq ;
408 + sp:arg1 spin:_arg1 ;
409 + sp:arg2 combo:RF_well
410 + ] ;
411 + sp:arg2 <http://www.reportinghub.no/ep/schema/well#Well> ;
412 + sp:arg3 [ rdf:type sp:if ;
413 + sp:arg1 [ rdf:type sp:eq ;
414 + sp:arg1 spin:_arg1 ;
415 + sp:arg2 combo:RF_compressor
416 + ] ;
417 + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Compressor> ;
418 + sp:arg3 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
419 + ]
420 + ]
421 + ]
422 + ]
423 + ]
424 + ]
425 + ]
426 + ]
427 + ]
428 + ]
429 + ]
430 + ]
431 + ]
432 + ]
433 + ]
434 + ]
435 + ]
436 + ]
437 + ]
438 + ]
439 + ]
440 + ]
441 + ]
442 + ]
443 + ] ;
444 + sp:variable _:b4
445 + ])
446 + ] .
447 +
448 +_:b4 sp:varName "productionFlowPurposeType"^^xsd:string .
449 +
450 +_:b2 sp:varName "uri"^^xsd:string .
451 +
452 +_:b1 sp:varName "uri"^^xsd:string .
453 +
454 +_:b3 sp:varName "productionFacilityType"^^xsd:string .
1 +# Saved by TopBraid on Sun Oct 09 08:50:58 BST 2011
2 +# baseURI: null
3 +
4 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
5 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
6 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 +@prefix visual: <http://topbraid.org/visual#> .
11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 +
13 +[] rdf:type inference:Configuration ;
14 + composite:child
15 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
16 + composite:index "0"^^xsd:int
17 + ] .
This diff could not be displayed because it is too large.
1 +<<<<<<< HEAD
2 +<<<<<<< HEAD
1 # Saved by TopBraid on Sat Oct 08 13:36:59 BST 2011 3 # Saved by TopBraid on Sat Oct 08 13:36:59 BST 2011
4 +=======
5 +# Saved by TopBraid on Sat Oct 08 09:52:24 BST 2011
6 +>>>>>>> DL_work_on_DPR
7 +=======
8 +# Saved by TopBraid on Sun Oct 09 09:00:17 BST 2011
9 +>>>>>>> DL_work_on_DPR
2 # baseURI: null 10 # baseURI: null
3 11
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 12 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
1 -# Saved by TopBraid on Sat Oct 08 12:30:45 BST 2011 1 +# Saved by TopBraid on Sun Oct 09 09:55:56 BST 2011
2 -# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0 2 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0
3 -# imports: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume 3 +# imports: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
4 -# imports: http://spinrdf.org/spin 4 +# imports: http://spinrdf.org/spin
5 - 5 +
6 -@prefix TRANSFORM_dpr-collector-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0#> . 6 +@prefix TRANSFORM_dpr-collector-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0#> .
7 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 -@prefix productVolume: <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> . 8 +@prefix productVolume: <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
9 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 9 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 10 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 -@prefix sp: <http://spinrdf.org/sp#> . 11 +@prefix sp: <http://spinrdf.org/sp#> .
12 -@prefix spin: <http://spinrdf.org/spin#> . 12 +@prefix spin: <http://spinrdf.org/spin#> .
13 -@prefix spl: <http://spinrdf.org/spl#> . 13 +@prefix spl: <http://spinrdf.org/spl#> .
14 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 14 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 - 15 +
16 -<http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0> 16 +<http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0>
17 - rdf:type owl:Ontology ; 17 + rdf:type owl:Ontology ;
18 - owl:imports <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume> , <http://spinrdf.org/spin> ; 18 + owl:imports <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume> , <http://spinrdf.org/spin> ;
19 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 19 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 -# Saved by TopBraid on Sat Oct 08 12:30:45 BST 2011 1 +# Saved by TopBraid on Sun Oct 09 09:55:56 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#> .
......
1 +# Saved by TopBraid on Sat Oct 08 12:56:31 BST 2011
2 +# baseURI: null
3 +
4 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
5 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
6 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 +@prefix visual: <http://topbraid.org/visual#> .
11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 +
13 +[] rdf:type inference:Configuration ;
14 + composite:child
15 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
16 + composite:index "0"^^xsd:int
17 + ] .
1 +# Saved by TopBraid on Sun Oct 09 09:56:38 BST 2011
2 +# baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
6 +# imports: http://spinrdf.org/spin
7 +# imports: http://www.witsml.org/schemas/131/addendum/combo
8 +
9 +@prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
10 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
11 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 +@prefix sp: <http://spinrdf.org/sp#> .
16 +@prefix spin: <http://spinrdf.org/spin#> .
17 +@prefix spl: <http://spinrdf.org/spl#> .
18 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
19 +
20 +<http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume>
21 + rdf:type owl:Ontology ;
22 + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> ;
23 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
24 +
25 +<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
26 + spin:rule
27 + [ rdf:type sp:Construct ;
28 + rdfs:comment """STEP 20101 Record the Facility that has the flows
29 +Nothing is done with the namingSystem!"""^^xsd:string ;
30 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
31 + sp:predicate rdf:type ;
32 + sp:subject _:b1
33 + ] [ sp:object _:b2 ;
34 + sp:predicate rdf:type ;
35 + sp:subject _:b1
36 + ] [ sp:object _:b3 ;
37 + sp:predicate rdfs:label ;
38 + sp:subject _:b1
39 + ]) ;
40 + sp:where ([ sp:object _:b4 ;
41 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
42 + sp:subject spin:_this
43 + ] [ sp:object _:b5 ;
44 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
45 + sp:subject _:b4
46 + ] [ sp:object _:b3 ;
47 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
48 + sp:subject _:b5
49 + ] [ rdf:type sp:Optional ;
50 + sp:elements ([ sp:object
51 + [ sp:varName "facilityNamingSystem"^^xsd:string
52 + ] ;
53 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
54 + sp:subject _:b5
55 + ])
56 + ] [ rdf:type sp:Optional ;
57 + sp:elements ([ sp:object _:b6 ;
58 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
59 + sp:subject _:b5
60 + ])
61 + ] [ rdf:type sp:Bind ;
62 + sp:expression
63 + [ rdf:type ep-spin-lib:normalizeString ;
64 + sp:arg1 _:b3
65 + ] ;
66 + sp:variable _:b7
67 + ] [ rdf:type sp:Bind ;
68 + sp:expression
69 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
70 + sp:arg1 _:b7
71 + ] ;
72 + sp:variable _:b1
73 + ] [ rdf:type sp:Bind ;
74 + sp:expression
75 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
76 + sp:arg1 _:b6
77 + ] ;
78 + sp:variable _:b2
79 + ])
80 + ] ;
81 + spin:rule
82 + [ rdf:type sp:Construct ;
83 + rdfs:comment "STEP 20102 record the flows"^^xsd:string ;
84 + sp:templates ([ sp:object _:b8 ;
85 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
86 + sp:subject _:b9
87 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
88 + sp:predicate rdf:type ;
89 + sp:subject _:b8
90 + ] [ sp:object _:b10 ;
91 + sp:predicate rdf:type ;
92 + sp:subject _:b8
93 + ] [ sp:object
94 + [ sp:varName "productionFlowType"^^xsd:string
95 + ] ;
96 + sp:predicate rdf:type ;
97 + sp:subject _:b8
98 + ] [ sp:object _:b11 ;
99 + sp:predicate rdfs:label ;
100 + sp:subject _:b8
101 + ]) ;
102 + sp:where ([ sp:object _:b12 ;
103 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
104 + sp:subject spin:_this
105 + ] [ sp:object _:b13 ;
106 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
107 + sp:subject _:b12
108 + ] [ sp:object _:b14 ;
109 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
110 + sp:subject _:b13
111 + ] [ sp:object _:b15 ;
112 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
113 + sp:subject _:b12
114 + ] [ sp:object _:b11 ;
115 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
116 + sp:subject _:b15
117 + ] [ sp:object _:b16 ;
118 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
119 + sp:subject _:b15
120 + ] [ rdf:type sp:Optional ;
121 + sp:elements ([ sp:object
122 + [ sp:varName "flowDirection"^^xsd:string
123 + ] ;
124 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
125 + sp:subject _:b15
126 + ])
127 + ] [ rdf:type sp:Optional ;
128 + sp:elements ([ sp:object
129 + [ sp:varName "flowQualifier"^^xsd:string
130 + ] ;
131 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
132 + sp:subject _:b15
133 + ])
134 + ] [ rdf:type sp:Bind ;
135 + sp:expression
136 + [ rdf:type ep-spin-lib:normalizeString ;
137 + sp:arg1 _:b14
138 + ] ;
139 + sp:variable _:b17
140 + ] [ rdf:type sp:Bind ;
141 + sp:expression
142 + [ rdf:type ep-spin-lib:buildProductionFacilityURI ;
143 + sp:arg1 _:b17
144 + ] ;
145 + sp:variable _:b9
146 + ] [ rdf:type sp:Bind ;
147 + sp:expression
148 + [ rdf:type ep-spin-lib:normalizeString ;
149 + sp:arg1 _:b11
150 + ] ;
151 + sp:variable _:b18
152 + ] [ rdf:type sp:Bind ;
153 + sp:expression
154 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
155 + sp:arg1 _:b18
156 + ] ;
157 + sp:variable _:b8
158 + ] [ rdf:type sp:Bind ;
159 + sp:expression
160 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
161 + sp:arg1 _:b16
162 + ] ;
163 + sp:variable _:b10
164 + ] [ rdf:type sp:Bind ;
165 + sp:expression
166 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowQualifierType ;
167 + sp:arg1 _:b16
168 + ] ;
169 + sp:variable
170 + [ sp:varName "productionFlowQualitierType"^^xsd:string
171 + ]
172 + ])
173 + ] ;
174 + spin:rule
175 + [ rdf:type sp:Construct ;
176 + rdfs:comment "STEP 9999 stream of conciousness"^^xsd:string ;
177 + sp:templates () ;
178 + sp:where ([ sp:object _:b19 ;
179 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
180 + sp:subject spin:_this
181 + ] [ sp:object _:b20 ;
182 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
183 + sp:subject _:b19
184 + ] [ sp:object
185 + [ sp:varName "facilityName"^^xsd:string
186 + ] ;
187 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
188 + sp:subject _:b20
189 + ] [ rdf:type sp:Optional ;
190 + sp:elements ([ sp:object
191 + [ sp:varName "facilityNamingSystem"^^xsd:string
192 + ] ;
193 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
194 + sp:subject _:b20
195 + ])
196 + ] [ rdf:type sp:Optional ;
197 + sp:elements ([ sp:object
198 + [ sp:varName "facilityKind"^^xsd:string
199 + ] ;
200 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
201 + sp:subject _:b20
202 + ])
203 + ] [ sp:object _:b21 ;
204 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
205 + sp:subject _:b19
206 + ] [ sp:object
207 + [ sp:varName "flowName"^^xsd:string
208 + ] ;
209 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
210 + sp:subject _:b21
211 + ] [ sp:object
212 + [ sp:varName "flowKind"^^xsd:string
213 + ] ;
214 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
215 + sp:subject _:b21
216 + ] [ sp:object
217 + [ sp:varName "flowDirection"^^xsd:string
218 + ] ;
219 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
220 + sp:subject _:b21
221 + ] [ sp:object
222 + [ sp:varName "flowQualifier"^^xsd:string
223 + ] ;
224 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
225 + sp:subject _:b21
226 + ] [ sp:object _:b22 ;
227 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
228 + sp:subject _:b21
229 + ] [ sp:object _:b23 ;
230 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
231 + sp:subject _:b22
232 + ] [ sp:object
233 + [ sp:varName "productName"^^xsd:string
234 + ] ;
235 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
236 + sp:subject _:b23
237 + ] [ rdf:type sp:Optional ;
238 + sp:elements ([ sp:object
239 + [ sp:varName "productNamingSystem"^^xsd:string
240 + ] ;
241 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
242 + sp:subject _:b23
243 + ])
244 + ] [ rdf:type sp:Optional ;
245 + sp:elements ([ sp:object _:b24 ;
246 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
247 + sp:subject _:b23
248 + ])
249 + ] [ sp:object _:b24 ;
250 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
251 + sp:subject _:b22
252 + ] [ sp:object _:b25 ;
253 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
254 + sp:subject _:b22
255 + ] [ sp:object
256 + [ sp:varName "periodKind"^^xsd:string
257 + ] ;
258 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
259 + sp:subject _:b25
260 + ] [ sp:object
261 + [ sp:varName "startTime"^^xsd:string
262 + ] ;
263 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
264 + sp:subject _:b25
265 + ] [ sp:object
266 + [ sp:varName "endTime"^^xsd:string
267 + ] ;
268 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
269 + sp:subject _:b25
270 + ] [ rdf:type sp:Optional ;
271 + sp:elements ([ sp:object _:b26 ;
272 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
273 + sp:subject _:b25
274 + ] [ sp:object
275 + [ sp:varName "realVolume"^^xsd:string
276 + ] ;
277 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
278 + sp:subject _:b26
279 + ] [ sp:object
280 + [ sp:varName "uomVolume"^^xsd:string
281 + ] ;
282 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
283 + sp:subject _:b26
284 + ])
285 + ] [ rdf:type sp:Optional ;
286 + sp:elements ([ sp:object _:b27 ;
287 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
288 + sp:subject _:b25
289 + ] [ sp:object
290 + [ sp:varName "realVolumeStd"^^xsd:string
291 + ] ;
292 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
293 + sp:subject _:b27
294 + ] [ sp:object
295 + [ sp:varName "uomVolumeStd"^^xsd:string
296 + ] ;
297 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
298 + sp:subject _:b27
299 + ])
300 + ])
301 + ] .
302 +
303 +_:b2 sp:varName "productionFacilityType"^^xsd:string .
304 +
305 +_:b1 sp:varName "productionFacility"^^xsd:string .
306 +
307 +_:b7 sp:varName "normalizedFacilityName"^^xsd:string .
308 +
309 +_:b6 sp:varName "facilityKind"^^xsd:string .
310 +
311 +_:b3 sp:varName "facilityName"^^xsd:string .
312 +
313 +_:b5 sp:varName "facilityNameRef"^^xsd:string .
314 +
315 +_:b4 sp:varName "facilityRef"^^xsd:string .
316 +
317 +_:b10
318 + sp:varName "productionFlowPurposeType"^^xsd:string .
319 +
320 +_:b8 sp:varName "productionFlow"^^xsd:string .
321 +
322 +_:b18
323 + sp:varName "normalizedFlowName"^^xsd:string .
324 +
325 +_:b9 sp:varName "productionFacility"^^xsd:string .
326 +
327 +_:b17
328 + sp:varName "normalizedFacilityName"^^xsd:string .
329 +
330 +_:b16
331 + sp:varName "flowKind"^^xsd:string .
332 +
333 +_:b11
334 + sp:varName "flowName"^^xsd:string .
335 +
336 +_:b15
337 + sp:varName "flowRef"^^xsd:string .
338 +
339 +_:b14
340 + sp:varName "facilityName"^^xsd:string .
341 +
342 +_:b13
343 + sp:varName "facilityNameRef"^^xsd:string .
344 +
345 +_:b12
346 + sp:varName "facilityRef"^^xsd:string .
347 +
348 +_:b27
349 + sp:varName "volumeStdRef"^^xsd:string .
350 +
351 +_:b26
352 + sp:varName "volumeRef"^^xsd:string .
353 +
354 +_:b25
355 + sp:varName "period"^^xsd:string .
356 +
357 +_:b24
358 + sp:varName "productKind"^^xsd:string .
359 +
360 +_:b23
361 + sp:varName "productNameRef"^^xsd:string .
362 +
363 +_:b22
364 + sp:varName "product"^^xsd:string .
365 +
366 +_:b21
367 + sp:varName "flow"^^xsd:string .
368 +
369 +_:b20
370 + sp:varName "facilityNameRef"^^xsd:string .
371 +
372 +_:b19
373 + sp:varName "facility"^^xsd:string .