David Leal

Remaining uses of rdfs:label for argument passing in MPR transforms removed.

...@@ -24,31 +24,271 @@ ...@@ -24,31 +24,271 @@
24 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 24 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
25 spin:rule 25 spin:rule
26 [ rdf:type sp:Construct ; 26 [ rdf:type sp:Construct ;
27 - rdfs:comment """STEP 40005a Specify the fluid component - primary component. 27 + rdfs:comment "STEP 40004 Specify the fluid analysis result."^^xsd:string ;
28 -The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; 28 + sp:templates ([ sp:object
29 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; 29 + [ sp:varName "nameFluidAnalysis"^^xsd:string
30 + ] ;
31 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
32 + sp:subject
33 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
34 + ]
35 + ] [ sp:object
36 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
37 + ] ;
38 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
39 + sp:subject
40 + [ sp:varName "sampledFluid"^^xsd:string
41 + ]
42 + ]) ;
43 + sp:where ([ sp:object
44 + [ sp:varName "fluidSampleRef"^^xsd:string
45 + ] ;
46 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
47 + sp:subject spin:_this
48 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
30 sp:predicate rdf:type ; 49 sp:predicate rdf:type ;
31 - sp:subject _:b1
32 - ] [ sp:object _:b1 ;
33 - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
34 sp:subject 50 sp:subject
51 + [ sp:varName "fluidSampleRef"^^xsd:string
52 + ]
53 + ] [ sp:object
54 + [ sp:varName "fluidSampleRef"^^xsd:string
55 + ] ;
56 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
57 + sp:subject
58 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
59 + ]
60 + ] [ sp:object
35 [ sp:varName "sampledFluid"^^xsd:string 61 [ sp:varName "sampledFluid"^^xsd:string
62 + ] ;
63 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
64 + sp:subject
65 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
36 ] 66 ]
37 ] [ sp:object 67 ] [ sp:object
38 - [ sp:varName "fluidPhaseType"^^xsd:string 68 + [ sp:varName "name"^^xsd:string
69 + ] ;
70 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
71 + sp:subject
72 + [ sp:varName "fluidSampleRef"^^xsd:string
73 + ]
74 + ] [ sp:object
75 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
39 ] ; 76 ] ;
77 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
78 + sp:subject spin:_this
79 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
40 sp:predicate rdf:type ; 80 sp:predicate rdf:type ;
81 + sp:subject
82 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
83 + ]
84 + ] [ sp:object
85 + [ sp:varName "name"^^xsd:string
86 + ] ;
87 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
88 + sp:subject
89 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
90 + ]
91 + ] [ rdf:type sp:Optional ;
92 + sp:elements ([ sp:object
93 + [ sp:varName "nameFluidAnalysis"^^xsd:string
94 + ] ;
95 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
96 + sp:subject
97 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
98 + ]
99 + ])
100 + ])
101 + ] ;
102 + spin:rule
103 + [ rdf:type sp:Construct ;
104 + rdfs:comment """STEP 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
105 +kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
106 + sp:templates ([ sp:object _:b1 ;
107 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
108 + sp:subject
109 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
110 + ]
111 + ] [ sp:object
112 + [ sp:varName "facility"^^xsd:string
113 + ] ;
114 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
41 sp:subject _:b1 115 sp:subject _:b1
116 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
117 + sp:predicate rdf:type ;
118 + sp:subject
119 + [ sp:varName "facility"^^xsd:string
120 + ]
121 + ] [ sp:object
122 + [ sp:varName "normalizedFacilityName"^^xsd:string
123 + ] ;
124 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
125 + sp:subject
126 + [ sp:varName "facility"^^xsd:string
127 + ]
128 + ] [ sp:object
129 + [ sp:varName "facilityType"^^xsd:string
130 + ] ;
131 + sp:predicate rdf:type ;
132 + sp:subject
133 + [ sp:varName "facility"^^xsd:string
134 + ]
135 + ] [ sp:object
136 + [ sp:varName "normalizedFacilityName"^^xsd:string
137 + ] ;
138 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
139 + sp:subject
140 + [ sp:varName "facilityRef"^^xsd:string
141 + ]
142 + ]) ;
143 + sp:where ([ sp:object
144 + [ sp:varName "fluidSampleRef"^^xsd:string
145 + ] ;
146 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
147 + sp:subject spin:_this
148 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
149 + sp:predicate rdf:type ;
150 + sp:subject
151 + [ sp:varName "fluidSampleRef"^^xsd:string
152 + ]
153 + ] [ sp:object
154 + [ sp:varName "fluidSampleRef"^^xsd:string
155 + ] ;
156 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
157 + sp:subject
158 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
159 + ]
160 + ] [ sp:object
161 + [ sp:varName "facilityRef"^^xsd:string
162 + ] ;
163 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
164 + sp:subject
165 + [ sp:varName "fluidSampleRef"^^xsd:string
166 + ]
167 + ] [ sp:object
168 + [ sp:varName "facilityNameRef"^^xsd:string
169 + ] ;
170 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
171 + sp:subject
172 + [ sp:varName "facilityRef"^^xsd:string
173 + ]
174 + ] [ sp:object
175 + [ sp:varName "facilityName"^^xsd:string
176 + ] ;
177 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
178 + sp:subject
179 + [ sp:varName "facilityNameRef"^^xsd:string
180 + ]
181 + ] [ sp:object
182 + [ sp:varName "facilityKind"^^xsd:string
183 + ] ;
184 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
185 + sp:subject
186 + [ sp:varName "facilityNameRef"^^xsd:string
187 + ]
188 + ] [ rdf:type sp:NotExists ;
189 + sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
190 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
191 + sp:subject
192 + [ sp:varName "facilityNameRef"^^xsd:string
193 + ]
194 + ])
195 + ] [ rdf:type sp:NotExists ;
196 + sp:elements ([ sp:object
197 + [ sp:varName "facilityParent1Ref"^^xsd:string
198 + ] ;
199 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
200 + sp:subject
201 + [ sp:varName "fluidSampleRef"^^xsd:string
202 + ]
203 + ])
204 + ] [ rdf:type sp:Bind ;
205 + sp:expression
206 + [ rdf:type ep-spin-lib:normalizeString ;
207 + sp:arg1 [ sp:varName "facilityName"^^xsd:string
208 + ]
209 + ] ;
210 + sp:variable
211 + [ sp:varName "normalizedFacilityName"^^xsd:string
212 + ]
213 + ] [ rdf:type sp:Bind ;
214 + sp:expression
215 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
216 + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
217 + ]
218 + ] ;
219 + sp:variable
220 + [ sp:varName "facility"^^xsd:string
221 + ]
222 + ] [ rdf:type sp:Bind ;
223 + sp:expression
224 + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
225 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
226 + ]
227 + ] ;
228 + sp:variable
229 + [ sp:varName "facilityType"^^xsd:string
230 + ]
231 + ])
232 + ] ;
233 + spin:rule
234 + [ rdf:type sp:Construct ;
235 + rdfs:comment """STEP 40005b Specify the fluid component - non-primary component.
236 +The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
237 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
238 + sp:predicate rdf:type ;
239 + sp:subject _:b2
240 + ] [ sp:object _:b2 ;
241 + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
242 + sp:subject
243 + [ sp:varName "sampledFluid"^^xsd:string
244 + ]
42 ] [ sp:object 245 ] [ sp:object
43 [ sp:varName "fluidComponentKindType"^^xsd:string 246 [ sp:varName "fluidComponentKindType"^^xsd:string
44 ] ; 247 ] ;
45 sp:predicate rdf:type ; 248 sp:predicate rdf:type ;
46 - sp:subject _:b1 249 + sp:subject _:b2
47 ] [ sp:object 250 ] [ sp:object
48 [ sp:varName "fluidSubstanceKindType"^^xsd:string 251 [ sp:varName "fluidSubstanceKindType"^^xsd:string
49 ] ; 252 ] ;
50 sp:predicate rdf:type ; 253 sp:predicate rdf:type ;
51 - sp:subject _:b1 254 + sp:subject _:b2
255 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
256 + sp:predicate rdf:type ;
257 + sp:subject _:b3
258 + ] [ sp:object _:b2 ;
259 + sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
260 + sp:subject _:b3
261 + ] [ sp:object
262 + [ sp:varName "sampledFluid"^^xsd:string
263 + ] ;
264 + sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
265 + sp:subject _:b3
266 + ] [ sp:object _:b4 ;
267 + sp:predicate <http://www.reportinghub.no/ep/schema/material#massRatio> ;
268 + sp:subject _:b3
269 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
270 + sp:predicate rdf:type ;
271 + sp:subject _:b4
272 + ] [ sp:object
273 + [ sp:varName "realWeightPercent"^^xsd:string
274 + ] ;
275 + sp:predicate
276 + [ sp:varName "weightPercentScale"^^xsd:string
277 + ] ;
278 + sp:subject _:b4
279 + ] [ sp:object _:b5 ;
280 + sp:predicate <http://www.reportinghub.no/ep/schema/material#moleRatio> ;
281 + sp:subject _:b3
282 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
283 + sp:predicate rdf:type ;
284 + sp:subject _:b5
285 + ] [ sp:object
286 + [ sp:varName "realMolePercent"^^xsd:string
287 + ] ;
288 + sp:predicate
289 + [ sp:varName "molePercentScale"^^xsd:string
290 + ] ;
291 + sp:subject _:b5
52 ]) ; 292 ]) ;
53 sp:where ([ sp:object 293 sp:where ([ sp:object
54 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 294 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
...@@ -74,7 +314,7 @@ The componentName element is used differently in the examples for the primary an ...@@ -74,7 +314,7 @@ The componentName element is used differently in the examples for the primary an
74 sp:subject 314 sp:subject
75 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 315 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
76 ] 316 ]
77 - ] [ sp:object "true"^^xsd:boolean ; 317 + ] [ sp:object "false"^^xsd:boolean ;
78 sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; 318 sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
79 sp:subject 319 sp:subject
80 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 320 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
...@@ -86,48 +326,143 @@ The componentName element is used differently in the examples for the primary an ...@@ -86,48 +326,143 @@ The componentName element is used differently in the examples for the primary an
86 sp:subject 326 sp:subject
87 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 327 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
88 ] 328 ]
329 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
330 + sp:predicate rdf:type ;
331 + sp:subject
332 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
333 + ]
334 + ] [ sp:object
335 + [ sp:varName "name"^^xsd:string
336 + ] ;
337 + sp:predicate rdfs:label ;
338 + sp:subject
339 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
340 + ]
89 ] [ rdf:type sp:Optional ; 341 ] [ rdf:type sp:Optional ;
90 sp:elements ([ sp:object 342 sp:elements ([ sp:object
91 - [ sp:varName "componentBaseKindRef"^^xsd:string 343 + [ sp:varName "componentKindRef"^^xsd:string
92 ] ; 344 ] ;
93 - sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ; 345 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
346 + sp:subject
347 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
348 + ]
349 + ])
350 + ] [ rdf:type sp:Optional ;
351 + sp:elements ([ sp:object
352 + [ sp:varName "weightPercentRef"^^xsd:string
353 + ] ;
354 + sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
94 sp:subject 355 sp:subject
95 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 356 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
96 ] 357 ]
97 ] [ sp:object 358 ] [ sp:object
98 - [ sp:varName "componentBaseKindRef"^^xsd:string 359 + [ sp:varName "realWeightPercent"^^xsd:string
99 ] ; 360 ] ;
100 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#mapsTo> ; 361 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
101 sp:subject 362 sp:subject
102 - [ sp:varName "fluidSubstanceKindType"^^xsd:string 363 + [ sp:varName "weightPercentRef"^^xsd:string
364 + ]
365 + ] [ sp:object
366 + [ sp:varName "uomWeightPercent"^^xsd:string
367 + ] ;
368 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
369 + sp:subject
370 + [ sp:varName "weightPercentRef"^^xsd:string
103 ] 371 ]
104 ]) 372 ])
105 ] [ rdf:type sp:Optional ; 373 ] [ rdf:type sp:Optional ;
106 sp:elements ([ sp:object 374 sp:elements ([ sp:object
107 - [ sp:varName "componentKindRef"^^xsd:string 375 + [ sp:varName "molePercentRef"^^xsd:string
108 ] ; 376 ] ;
109 - sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ; 377 + sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
110 sp:subject 378 sp:subject
111 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 379 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
112 ] 380 ]
381 + ] [ sp:object
382 + [ sp:varName "realMolePercent"^^xsd:string
383 + ] ;
384 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
385 + sp:subject
386 + [ sp:varName "molePercentRef"^^xsd:string
387 + ]
388 + ] [ sp:object
389 + [ sp:varName "uomMolePercent"^^xsd:string
390 + ] ;
391 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
392 + sp:subject
393 + [ sp:varName "molePercentRef"^^xsd:string
394 + ]
113 ]) 395 ])
114 ] [ rdf:type sp:Bind ; 396 ] [ rdf:type sp:Bind ;
115 sp:expression 397 sp:expression
116 - [ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ; 398 + [ rdf:type ep-mpr-spin-lib:selectRatioScale ;
117 - sp:arg1 [ sp:varName "name"^^xsd:string 399 + sp:arg1 [ sp:varName "uomWeightPercent"^^xsd:string
118 ] 400 ]
119 ] ; 401 ] ;
120 - sp:variable 402 + sp:variable
121 - [ sp:varName "fluidPhaseType"^^xsd:string 403 + [ sp:varName "weightPercentScale"^^xsd:string
404 + ]
405 + ] [ rdf:type sp:Bind ;
406 + sp:expression
407 + [ rdf:type ep-mpr-spin-lib:selectRatioScale ;
408 + sp:arg1 [ sp:varName "uomMolePercent"^^xsd:string
409 + ]
410 + ] ;
411 + sp:variable
412 + [ sp:varName "molePercentScale"^^xsd:string
413 + ]
414 + ] [ rdf:type sp:Bind ;
415 + sp:expression
416 + [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
417 + sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
418 + ]
419 + ] ;
420 + sp:variable
421 + [ sp:varName "fluidComponentKindType"^^xsd:string
422 + ]
423 + ])
424 + ] ;
425 + spin:rule
426 + [ rdf:type sp:Construct ;
427 + rdfs:comment """STEP 40003 Create the Sample of fluid.
428 +The sample is anonymous. It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ;
429 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
430 + sp:predicate rdf:type ;
431 + sp:subject _:b6
432 + ] [ sp:object
433 + [ sp:varName "name"^^xsd:string
434 + ] ;
435 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
436 + sp:subject _:b6
437 + ] [ sp:object _:b6 ;
438 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
439 + sp:subject
440 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
441 + ]
442 + ]) ;
443 + sp:where ([ sp:object
444 + [ sp:varName "fluidSampleRef"^^xsd:string
445 + ] ;
446 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
447 + sp:subject spin:_this
448 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
449 + sp:predicate rdf:type ;
450 + sp:subject
451 + [ sp:varName "fluidSampleRef"^^xsd:string
122 ] 452 ]
123 - ] [ rdf:type sp:Bind ; 453 + ] [ sp:object
124 - sp:expression 454 + [ sp:varName "fluidSampleRef"^^xsd:string
125 - [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ; 455 + ] ;
126 - sp:arg1 [ sp:varName "componentKindRef"^^xsd:string 456 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
457 + sp:subject
458 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
127 ] 459 ]
460 + ] [ sp:object
461 + [ sp:varName "name"^^xsd:string
128 ] ; 462 ] ;
129 - sp:variable 463 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
130 - [ sp:varName "fluidComponentKindType"^^xsd:string 464 + sp:subject
465 + [ sp:varName "fluidSampleRef"^^xsd:string
131 ] 466 ]
132 ]) 467 ])
133 ] ; 468 ] ;
...@@ -135,79 +470,146 @@ The componentName element is used differently in the examples for the primary an ...@@ -135,79 +470,146 @@ The componentName element is used differently in the examples for the primary an
135 [ rdf:type sp:Construct ; 470 [ rdf:type sp:Construct ;
136 rdfs:comment """STEP 40002d Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume. 471 rdfs:comment """STEP 40002d Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
137 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; 472 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
138 - sp:templates ([ sp:object _:b2 ; 473 + sp:templates ([ sp:object _:b7 ;
139 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 474 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
140 - sp:subject _:b3 475 + sp:subject
141 - ] [ sp:object _:b4 ; 476 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
477 + ]
478 + ] [ sp:object
479 + [ sp:varName "facility"^^xsd:string
480 + ] ;
142 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 481 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
143 - sp:subject _:b2 482 + sp:subject _:b7
144 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 483 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
145 sp:predicate rdf:type ; 484 sp:predicate rdf:type ;
146 - sp:subject _:b4 485 + sp:subject
147 - ] [ sp:object _:b5 ; 486 + [ sp:varName "facility"^^xsd:string
148 - sp:predicate rdfs:label ; 487 + ]
149 - sp:subject _:b4 488 + ] [ sp:object
150 - ] [ sp:object _:b6 ; 489 + [ sp:varName "normalizedFacilityName"^^xsd:string
490 + ] ;
491 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
492 + sp:subject
493 + [ sp:varName "facility"^^xsd:string
494 + ]
495 + ] [ sp:object
496 + [ sp:varName "facilityType"^^xsd:string
497 + ] ;
151 sp:predicate rdf:type ; 498 sp:predicate rdf:type ;
152 - sp:subject _:b4 499 + sp:subject
153 - ] [ sp:object _:b5 ; 500 + [ sp:varName "facility"^^xsd:string
154 - sp:predicate rdfs:label ; 501 + ]
155 - sp:subject _:b7 502 + ] [ sp:object
503 + [ sp:varName "normalizedFacilityName"^^xsd:string
504 + ] ;
505 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
506 + sp:subject
507 + [ sp:varName "facilityRef"^^xsd:string
508 + ]
156 ]) ; 509 ]) ;
157 - sp:where ([ sp:object _:b8 ; 510 + sp:where ([ sp:object
511 + [ sp:varName "fluidSampleRef"^^xsd:string
512 + ] ;
158 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 513 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
159 sp:subject spin:_this 514 sp:subject spin:_this
160 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 515 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
161 sp:predicate rdf:type ; 516 sp:predicate rdf:type ;
162 - sp:subject _:b8 517 + sp:subject
163 - ] [ sp:object _:b8 ; 518 + [ sp:varName "fluidSampleRef"^^xsd:string
519 + ]
520 + ] [ sp:object
521 + [ sp:varName "fluidSampleRef"^^xsd:string
522 + ] ;
164 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 523 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
165 - sp:subject _:b3 524 + sp:subject
166 - ] [ sp:object _:b7 ; 525 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
526 + ]
527 + ] [ sp:object
528 + [ sp:varName "facilityRef"^^xsd:string
529 + ] ;
167 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 530 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
168 - sp:subject _:b8 531 + sp:subject
169 - ] [ sp:object _:b9 ; 532 + [ sp:varName "fluidSampleRef"^^xsd:string
533 + ]
534 + ] [ sp:object
535 + [ sp:varName "facilityNameRef"^^xsd:string
536 + ] ;
170 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 537 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
171 - sp:subject _:b7 538 + sp:subject
172 - ] [ sp:object _:b10 ; 539 + [ sp:varName "facilityRef"^^xsd:string
540 + ]
541 + ] [ sp:object
542 + [ sp:varName "facilityChildName"^^xsd:string
543 + ] ;
173 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 544 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
174 - sp:subject _:b9 545 + sp:subject
175 - ] [ sp:object _:b11 ; 546 + [ sp:varName "facilityNameRef"^^xsd:string
547 + ]
548 + ] [ sp:object
549 + [ sp:varName "facilityKind"^^xsd:string
550 + ] ;
176 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 551 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
177 - sp:subject _:b9 552 + sp:subject
553 + [ sp:varName "facilityNameRef"^^xsd:string
554 + ]
178 ] [ rdf:type sp:NotExists ; 555 ] [ rdf:type sp:NotExists ;
179 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 556 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
180 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 557 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
181 - sp:subject _:b9 558 + sp:subject
559 + [ sp:varName "facilityNameRef"^^xsd:string
560 + ]
182 ]) 561 ])
183 - ] [ sp:object _:b12 ; 562 + ] [ sp:object
563 + [ sp:varName "facilityParent1Ref"^^xsd:string
564 + ] ;
184 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ; 565 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
185 - sp:subject _:b8 566 + sp:subject
186 - ] [ sp:object _:b13 ; 567 + [ sp:varName "fluidSampleRef"^^xsd:string
568 + ]
569 + ] [ sp:object
570 + [ sp:varName "facilityParent1Name"^^xsd:string
571 + ] ;
187 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 572 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
188 - sp:subject _:b12 573 + sp:subject
189 - ] [ sp:object _:b14 ; 574 + [ sp:varName "facilityParent1Ref"^^xsd:string
575 + ]
576 + ] [ sp:object
577 + [ sp:varName "facilityParent2Ref"^^xsd:string
578 + ] ;
190 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ; 579 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
191 - sp:subject _:b8 580 + sp:subject
192 - ] [ sp:object _:b15 ; 581 + [ sp:varName "fluidSampleRef"^^xsd:string
582 + ]
583 + ] [ sp:object
584 + [ sp:varName "facilityParent2Name"^^xsd:string
585 + ] ;
193 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 586 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
194 - sp:subject _:b14 587 + sp:subject
588 + [ sp:varName "facilityParent2Ref"^^xsd:string
589 + ]
195 ] [ rdf:type sp:Bind ; 590 ] [ rdf:type sp:Bind ;
196 sp:expression 591 sp:expression
197 [ rdf:type ep-spin-lib:normalizeString ; 592 [ rdf:type ep-spin-lib:normalizeString ;
198 - sp:arg1 _:b10 593 + sp:arg1 [ sp:varName "facilityChildName"^^xsd:string
594 + ]
199 ] ; 595 ] ;
200 - sp:variable _:b16 596 + sp:variable
597 + [ sp:varName "normalizedFacilityChildName"^^xsd:string
598 + ]
201 ] [ rdf:type sp:Bind ; 599 ] [ rdf:type sp:Bind ;
202 sp:expression 600 sp:expression
203 [ rdf:type ep-spin-lib:normalizeString ; 601 [ rdf:type ep-spin-lib:normalizeString ;
204 - sp:arg1 _:b13 602 + sp:arg1 [ sp:varName "facilityParent1Name"^^xsd:string
603 + ]
205 ] ; 604 ] ;
206 - sp:variable _:b17 605 + sp:variable
606 + [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
607 + ]
207 ] [ rdf:type sp:Bind ; 608 ] [ rdf:type sp:Bind ;
208 sp:expression 609 sp:expression
209 [ rdf:type ep-spin-lib:normalizeString ; 610 [ rdf:type ep-spin-lib:normalizeString ;
210 - sp:arg1 _:b15 611 + sp:arg1 [ sp:varName "facilityParent2Name"^^xsd:string
612 + ]
211 ] ; 613 ] ;
212 sp:variable 614 sp:variable
213 [ sp:varName "normalizedFacilityParent2Name"^^xsd:string 615 [ sp:varName "normalizedFacilityParent2Name"^^xsd:string
...@@ -215,101 +617,36 @@ kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; ...@@ -215,101 +617,36 @@ kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
215 ] [ rdf:type sp:Bind ; 617 ] [ rdf:type sp:Bind ;
216 sp:expression 618 sp:expression
217 [ rdf:type fn:concat ; 619 [ rdf:type fn:concat ;
218 - sp:arg1 _:b17 ; 620 + sp:arg1 [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
219 - sp:arg2 "$" ;
220 - sp:arg3 _:b17 ;
221 - sp:arg4 "$" ;
222 - sp:arg5 _:b16
223 - ] ;
224 - sp:variable _:b5
225 - ] [ rdf:type sp:Bind ;
226 - sp:expression
227 - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
228 - sp:arg1 _:b5
229 - ] ;
230 - sp:variable _:b4
231 - ] [ rdf:type sp:Bind ;
232 - sp:expression
233 - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
234 - sp:arg1 _:b11
235 - ] ;
236 - sp:variable _:b6
237 - ])
238 ] ; 621 ] ;
239 - spin:rule 622 + sp:arg2 "$" ;
240 - [ rdf:type sp:Construct ; 623 + sp:arg3 [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
241 - rdfs:comment """STEP 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
242 -kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
243 - sp:templates ([ sp:object _:b18 ;
244 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
245 - sp:subject _:b19
246 - ] [ sp:object _:b20 ;
247 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
248 - sp:subject _:b18
249 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
250 - sp:predicate rdf:type ;
251 - sp:subject _:b20
252 - ] [ sp:object _:b21 ;
253 - sp:predicate rdfs:label ;
254 - sp:subject _:b20
255 - ] [ sp:object _:b22 ;
256 - sp:predicate rdf:type ;
257 - sp:subject _:b20
258 - ] [ sp:object _:b21 ;
259 - sp:predicate rdfs:label ;
260 - sp:subject _:b23
261 - ]) ;
262 - sp:where ([ sp:object _:b24 ;
263 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
264 - sp:subject spin:_this
265 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
266 - sp:predicate rdf:type ;
267 - sp:subject _:b24
268 - ] [ sp:object _:b24 ;
269 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
270 - sp:subject _:b19
271 - ] [ sp:object _:b23 ;
272 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
273 - sp:subject _:b24
274 - ] [ sp:object _:b25 ;
275 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
276 - sp:subject _:b23
277 - ] [ sp:object _:b26 ;
278 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
279 - sp:subject _:b25
280 - ] [ sp:object _:b27 ;
281 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
282 - sp:subject _:b25
283 - ] [ rdf:type sp:NotExists ;
284 - sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
285 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
286 - sp:subject _:b25
287 - ])
288 - ] [ rdf:type sp:NotExists ;
289 - sp:elements ([ sp:object
290 - [ sp:varName "facilityParent1Ref"^^xsd:string
291 ] ; 624 ] ;
292 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ; 625 + sp:arg4 "$" ;
293 - sp:subject _:b24 626 + sp:arg5 [ sp:varName "normalizedFacilityChildName"^^xsd:string
294 - ]) 627 + ]
295 - ] [ rdf:type sp:Bind ;
296 - sp:expression
297 - [ rdf:type ep-spin-lib:normalizeString ;
298 - sp:arg1 _:b26
299 ] ; 628 ] ;
300 - sp:variable _:b21 629 + sp:variable
630 + [ sp:varName "normalizedFacilityName"^^xsd:string
631 + ]
301 ] [ rdf:type sp:Bind ; 632 ] [ rdf:type sp:Bind ;
302 sp:expression 633 sp:expression
303 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 634 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
304 - sp:arg1 _:b21 635 + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
636 + ]
305 ] ; 637 ] ;
306 - sp:variable _:b20 638 + sp:variable
639 + [ sp:varName "facility"^^xsd:string
640 + ]
307 ] [ rdf:type sp:Bind ; 641 ] [ rdf:type sp:Bind ;
308 sp:expression 642 sp:expression
309 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 643 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
310 - sp:arg1 _:b27 644 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
645 + ]
311 ] ; 646 ] ;
312 - sp:variable _:b22 647 + sp:variable
648 + [ sp:varName "facilityType"^^xsd:string
649 + ]
313 ]) 650 ])
314 ] ; 651 ] ;
315 spin:rule 652 spin:rule
...@@ -317,329 +654,339 @@ kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; ...@@ -317,329 +654,339 @@ kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
317 rdfs:comment "STEP 40001 Create the FluidSampleReport, FluidSampling activity and FluidSample object ."^^xsd:string ; 654 rdfs:comment "STEP 40001 Create the FluidSampleReport, FluidSampling activity and FluidSample object ."^^xsd:string ;
318 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ; 655 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ;
319 sp:predicate rdf:type ; 656 sp:predicate rdf:type ;
320 - sp:subject _:b28 657 + sp:subject _:b8
321 - ] [ sp:object _:b29 ; 658 + ] [ sp:object _:b9 ;
322 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 659 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
323 - sp:subject _:b28 660 + sp:subject _:b8
324 - ] [ sp:object _:b30 ; 661 + ] [ sp:object _:b10 ;
325 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 662 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
326 - sp:subject _:b28 663 + sp:subject _:b8
327 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ; 664 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
328 sp:predicate rdf:type ; 665 sp:predicate rdf:type ;
329 - sp:subject _:b30 666 + sp:subject _:b10
330 - ] [ sp:object _:b31 ; 667 + ] [ sp:object _:b11 ;
331 sp:predicate rdf:type ; 668 sp:predicate rdf:type ;
332 - sp:subject _:b30 669 + sp:subject _:b10
333 - ] [ sp:object _:b32 ; 670 + ] [ sp:object _:b12 ;
334 sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; 671 sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
335 - sp:subject _:b30 672 + sp:subject _:b10
336 - ] [ sp:object _:b33 ; 673 + ] [ sp:object _:b13 ;
337 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 674 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
338 - sp:subject _:b30 675 + sp:subject _:b10
339 ]) ; 676 ]) ;
340 sp:where ([ sp:object spin:_this ; 677 sp:where ([ sp:object spin:_this ;
341 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 678 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
342 - sp:subject _:b29 679 + sp:subject _:b9
343 - ] [ sp:object _:b33 ; 680 + ] [ sp:object _:b13 ;
344 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 681 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
345 sp:subject spin:_this 682 sp:subject spin:_this
346 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 683 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
347 sp:predicate rdf:type ; 684 sp:predicate rdf:type ;
348 - sp:subject _:b33 685 + sp:subject _:b13
349 ] [ rdf:type sp:Optional ; 686 ] [ rdf:type sp:Optional ;
350 - sp:elements ([ sp:object _:b32 ; 687 + sp:elements ([ sp:object _:b12 ;
351 sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; 688 sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
352 - sp:subject _:b33 689 + sp:subject _:b13
353 ]) 690 ])
354 ] [ rdf:type sp:Optional ; 691 ] [ rdf:type sp:Optional ;
355 - sp:elements ([ sp:object _:b34 ; 692 + sp:elements ([ sp:object _:b14 ;
356 sp:predicate <http://www.epim.no/schemas/mprml/1#sampleTypeRef> ; 693 sp:predicate <http://www.epim.no/schemas/mprml/1#sampleTypeRef> ;
357 - sp:subject _:b33 694 + sp:subject _:b13
358 ]) 695 ])
359 ] [ rdf:type sp:Bind ; 696 ] [ rdf:type sp:Bind ;
360 sp:expression 697 sp:expression
361 [ rdf:type ep-mpr-spin-lib:selectFluidSamplingType ; 698 [ rdf:type ep-mpr-spin-lib:selectFluidSamplingType ;
362 - sp:arg1 _:b34 699 + sp:arg1 _:b14
363 - ] ;
364 - sp:variable _:b31
365 - ])
366 - ] ;
367 - spin:rule
368 - [ rdf:type sp:Construct ;
369 - rdfs:comment """STEP 40003 Create the Sample of fluid.
370 -The sample is anonymous. It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ;
371 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
372 - sp:predicate rdf:type ;
373 - sp:subject _:b35
374 - ] [ sp:object _:b36 ;
375 - sp:predicate rdfs:label ;
376 - sp:subject _:b35
377 - ] [ sp:object _:b35 ;
378 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
379 - sp:subject _:b37
380 - ]) ;
381 - sp:where ([ sp:object _:b38 ;
382 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
383 - sp:subject spin:_this
384 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
385 - sp:predicate rdf:type ;
386 - sp:subject _:b38
387 - ] [ sp:object _:b38 ;
388 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
389 - sp:subject _:b37
390 - ] [ sp:object _:b36 ;
391 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
392 - sp:subject _:b38
393 - ])
394 ] ; 700 ] ;
395 - spin:rule 701 + sp:variable _:b11
396 - [ rdf:type sp:Construct ;
397 - rdfs:comment "STEP 40004 Specify the fluid analysis result."^^xsd:string ;
398 - sp:templates ([ sp:object _:b39 ;
399 - sp:predicate rdfs:label ;
400 - sp:subject _:b40
401 - ] [ sp:object _:b41 ;
402 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
403 - sp:subject _:b42
404 - ]) ;
405 - sp:where ([ sp:object _:b43 ;
406 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
407 - sp:subject spin:_this
408 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
409 - sp:predicate rdf:type ;
410 - sp:subject _:b43
411 - ] [ sp:object _:b43 ;
412 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
413 - sp:subject _:b40
414 - ] [ sp:object _:b42 ;
415 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
416 - sp:subject _:b40
417 - ] [ sp:object _:b44 ;
418 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
419 - sp:subject _:b43
420 - ] [ sp:object _:b41 ;
421 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
422 - sp:subject spin:_this
423 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
424 - sp:predicate rdf:type ;
425 - sp:subject _:b41
426 - ] [ sp:object _:b44 ;
427 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
428 - sp:subject _:b41
429 - ] [ rdf:type sp:Optional ;
430 - sp:elements ([ sp:object _:b39 ;
431 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
432 - sp:subject _:b41
433 - ])
434 ]) 702 ])
435 ] ; 703 ] ;
436 spin:rule 704 spin:rule
437 [ rdf:type sp:Construct ; 705 [ rdf:type sp:Construct ;
438 rdfs:comment """STEP 40002a Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume. 706 rdfs:comment """STEP 40002a Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
439 kind is \"well\" and facilityAlias is supplied"""^^xsd:string ; 707 kind is \"well\" and facilityAlias is supplied"""^^xsd:string ;
440 - sp:templates ([ sp:object _:b45 ; 708 + sp:templates ([ sp:object _:b15 ;
441 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 709 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
442 - sp:subject _:b46 710 + sp:subject
443 - ] [ sp:object _:b47 ; 711 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
712 + ]
713 + ] [ sp:object
714 + [ sp:varName "facility"^^xsd:string
715 + ] ;
444 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 716 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
445 - sp:subject _:b45 717 + sp:subject _:b15
446 - ] [ sp:object _:b48 ; 718 + ] [ sp:object
447 - sp:predicate rdfs:label ; 719 + [ sp:varName "normalizedFacilityAlias"^^xsd:string
448 - sp:subject _:b49 720 + ] ;
721 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
722 + sp:subject
723 + [ sp:varName "facilityRef"^^xsd:string
724 + ]
449 ]) ; 725 ]) ;
450 - sp:where ([ sp:object _:b50 ; 726 + sp:where ([ sp:object
727 + [ sp:varName "fluidSampleRef"^^xsd:string
728 + ] ;
451 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 729 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
452 sp:subject spin:_this 730 sp:subject spin:_this
453 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 731 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
454 sp:predicate rdf:type ; 732 sp:predicate rdf:type ;
455 - sp:subject _:b50 733 + sp:subject
456 - ] [ sp:object _:b50 ; 734 + [ sp:varName "fluidSampleRef"^^xsd:string
735 + ]
736 + ] [ sp:object
737 + [ sp:varName "fluidSampleRef"^^xsd:string
738 + ] ;
457 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 739 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
458 - sp:subject _:b46 740 + sp:subject
459 - ] [ sp:object _:b49 ; 741 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
742 + ]
743 + ] [ sp:object
744 + [ sp:varName "facilityRef"^^xsd:string
745 + ] ;
460 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 746 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
461 - sp:subject _:b50 747 + sp:subject
462 - ] [ sp:object _:b51 ; 748 + [ sp:varName "fluidSampleRef"^^xsd:string
749 + ]
750 + ] [ sp:object
751 + [ sp:varName "facilityNameRef"^^xsd:string
752 + ] ;
463 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 753 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
464 - sp:subject _:b49 754 + sp:subject
755 + [ sp:varName "facilityRef"^^xsd:string
756 + ]
465 ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 757 ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
466 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 758 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
467 - sp:subject _:b51 759 + sp:subject
468 - ] [ sp:object _:b52 ; 760 + [ sp:varName "facilityNameRef"^^xsd:string
761 + ]
762 + ] [ sp:object
763 + [ sp:varName "facilityAliasRef"^^xsd:string
764 + ] ;
469 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityAliasRef> ; 765 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityAliasRef> ;
470 - sp:subject _:b50 766 + sp:subject
471 - ] [ sp:object _:b53 ; 767 + [ sp:varName "fluidSampleRef"^^xsd:string
768 + ]
769 + ] [ sp:object
770 + [ sp:varName "facilityAlias"^^xsd:string
771 + ] ;
472 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 772 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
473 - sp:subject _:b52 773 + sp:subject
774 + [ sp:varName "facilityAliasRef"^^xsd:string
775 + ]
474 ] [ rdf:type sp:Bind ; 776 ] [ rdf:type sp:Bind ;
475 sp:expression 777 sp:expression
476 [ rdf:type ep-spin-lib:normalizeString ; 778 [ rdf:type ep-spin-lib:normalizeString ;
477 - sp:arg1 _:b53 779 + sp:arg1 [ sp:varName "facilityAlias"^^xsd:string
780 + ]
478 ] ; 781 ] ;
479 - sp:variable _:b48 782 + sp:variable
783 + [ sp:varName "normalizedFacilityAlias"^^xsd:string
784 + ]
480 ] [ rdf:type sp:Bind ; 785 ] [ rdf:type sp:Bind ;
481 sp:expression 786 sp:expression
482 [ rdf:type rhspin:wellByName ; 787 [ rdf:type rhspin:wellByName ;
483 - arg:wellName _:b53 788 + arg:wellName
789 + [ sp:varName "facilityAlias"^^xsd:string
790 + ]
484 ] ; 791 ] ;
485 - sp:variable _:b47 792 + sp:variable
793 + [ sp:varName "facility"^^xsd:string
794 + ]
486 ]) 795 ])
487 ] ; 796 ] ;
488 spin:rule 797 spin:rule
489 [ rdf:type sp:Construct ; 798 [ rdf:type sp:Construct ;
490 rdfs:comment """STEP 40002c Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume. 799 rdfs:comment """STEP 40002c Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
491 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; 800 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
492 - sp:templates ([ sp:object _:b54 ; 801 + sp:templates ([ sp:object _:b16 ;
493 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 802 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
494 - sp:subject _:b55 803 + sp:subject
495 - ] [ sp:object _:b56 ; 804 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
805 + ]
806 + ] [ sp:object
807 + [ sp:varName "facility"^^xsd:string
808 + ] ;
496 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 809 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
497 - sp:subject _:b54 810 + sp:subject _:b16
498 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 811 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
499 sp:predicate rdf:type ; 812 sp:predicate rdf:type ;
500 - sp:subject _:b56 813 + sp:subject
501 - ] [ sp:object _:b57 ; 814 + [ sp:varName "facility"^^xsd:string
502 - sp:predicate rdfs:label ; 815 + ]
503 - sp:subject _:b56 816 + ] [ sp:object
504 - ] [ sp:object _:b58 ; 817 + [ sp:varName "normalizedFacilityName"^^xsd:string
818 + ] ;
819 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
820 + sp:subject
821 + [ sp:varName "facility"^^xsd:string
822 + ]
823 + ] [ sp:object
824 + [ sp:varName "facilityType"^^xsd:string
825 + ] ;
505 sp:predicate rdf:type ; 826 sp:predicate rdf:type ;
506 - sp:subject _:b56 827 + sp:subject
507 - ] [ sp:object _:b57 ; 828 + [ sp:varName "facility"^^xsd:string
508 - sp:predicate rdfs:label ; 829 + ]
509 - sp:subject _:b59 830 + ] [ sp:object
831 + [ sp:varName "normalizedFacilityName"^^xsd:string
832 + ] ;
833 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
834 + sp:subject
835 + [ sp:varName "facilityRef"^^xsd:string
836 + ]
510 ]) ; 837 ]) ;
511 - sp:where ([ sp:object _:b60 ; 838 + sp:where ([ sp:object
839 + [ sp:varName "fluidSampleRef"^^xsd:string
840 + ] ;
512 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 841 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
513 sp:subject spin:_this 842 sp:subject spin:_this
514 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 843 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
515 sp:predicate rdf:type ; 844 sp:predicate rdf:type ;
516 - sp:subject _:b60 845 + sp:subject
517 - ] [ sp:object _:b60 ; 846 + [ sp:varName "fluidSampleRef"^^xsd:string
847 + ]
848 + ] [ sp:object
849 + [ sp:varName "fluidSampleRef"^^xsd:string
850 + ] ;
518 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 851 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
519 - sp:subject _:b55 852 + sp:subject
520 - ] [ sp:object _:b59 ; 853 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
854 + ]
855 + ] [ sp:object
856 + [ sp:varName "facilityRef"^^xsd:string
857 + ] ;
521 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 858 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
522 - sp:subject _:b60 859 + sp:subject
523 - ] [ sp:object _:b61 ; 860 + [ sp:varName "fluidSampleRef"^^xsd:string
861 + ]
862 + ] [ sp:object
863 + [ sp:varName "facilityNameRef"^^xsd:string
864 + ] ;
524 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 865 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
525 - sp:subject _:b59 866 + sp:subject
526 - ] [ sp:object _:b62 ; 867 + [ sp:varName "facilityRef"^^xsd:string
868 + ]
869 + ] [ sp:object
870 + [ sp:varName "facilityChildName"^^xsd:string
871 + ] ;
527 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 872 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
528 - sp:subject _:b61 873 + sp:subject
529 - ] [ sp:object _:b63 ; 874 + [ sp:varName "facilityNameRef"^^xsd:string
875 + ]
876 + ] [ sp:object
877 + [ sp:varName "facilityKind"^^xsd:string
878 + ] ;
530 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 879 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
531 - sp:subject _:b61 880 + sp:subject
881 + [ sp:varName "facilityNameRef"^^xsd:string
882 + ]
532 ] [ rdf:type sp:NotExists ; 883 ] [ rdf:type sp:NotExists ;
533 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 884 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
534 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 885 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
535 - sp:subject _:b61 886 + sp:subject
887 + [ sp:varName "facilityNameRef"^^xsd:string
888 + ]
536 ]) 889 ])
537 - ] [ sp:object _:b64 ; 890 + ] [ sp:object
891 + [ sp:varName "facilityParent1Ref"^^xsd:string
892 + ] ;
538 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ; 893 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
539 - sp:subject _:b60 894 + sp:subject
540 - ] [ sp:object _:b65 ; 895 + [ sp:varName "fluidSampleRef"^^xsd:string
896 + ]
897 + ] [ sp:object
898 + [ sp:varName "facilityParent1Name"^^xsd:string
899 + ] ;
541 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 900 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
542 - sp:subject _:b64 901 + sp:subject
902 + [ sp:varName "facilityParent1Ref"^^xsd:string
903 + ]
543 ] [ rdf:type sp:NotExists ; 904 ] [ rdf:type sp:NotExists ;
544 sp:elements ([ sp:object 905 sp:elements ([ sp:object
545 [ sp:varName "facilityParent2Ref"^^xsd:string 906 [ sp:varName "facilityParent2Ref"^^xsd:string
546 ] ; 907 ] ;
547 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ; 908 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
548 - sp:subject _:b60 909 + sp:subject
910 + [ sp:varName "fluidSampleRef"^^xsd:string
911 + ]
549 ]) 912 ])
550 ] [ rdf:type sp:Bind ; 913 ] [ rdf:type sp:Bind ;
551 sp:expression 914 sp:expression
552 [ rdf:type ep-spin-lib:normalizeString ; 915 [ rdf:type ep-spin-lib:normalizeString ;
553 - sp:arg1 _:b62 916 + sp:arg1 [ sp:varName "facilityChildName"^^xsd:string
917 + ]
554 ] ; 918 ] ;
555 - sp:variable _:b66 919 + sp:variable
920 + [ sp:varName "normalizedFacilityChildName"^^xsd:string
921 + ]
556 ] [ rdf:type sp:Bind ; 922 ] [ rdf:type sp:Bind ;
557 sp:expression 923 sp:expression
558 [ rdf:type ep-spin-lib:normalizeString ; 924 [ rdf:type ep-spin-lib:normalizeString ;
559 - sp:arg1 _:b65 925 + sp:arg1 [ sp:varName "facilityParent1Name"^^xsd:string
926 + ]
560 ] ; 927 ] ;
561 - sp:variable _:b67 928 + sp:variable
929 + [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
930 + ]
562 ] [ rdf:type sp:Bind ; 931 ] [ rdf:type sp:Bind ;
563 sp:expression 932 sp:expression
564 [ rdf:type fn:concat ; 933 [ rdf:type fn:concat ;
565 - sp:arg1 _:b67 ; 934 + sp:arg1 [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
935 + ] ;
566 sp:arg2 "$" ; 936 sp:arg2 "$" ;
567 - sp:arg3 _:b66 937 + sp:arg3 [ sp:varName "normalizedFacilityChildName"^^xsd:string
938 + ]
568 ] ; 939 ] ;
569 - sp:variable _:b57 940 + sp:variable
941 + [ sp:varName "normalizedFacilityName"^^xsd:string
942 + ]
570 ] [ rdf:type sp:Bind ; 943 ] [ rdf:type sp:Bind ;
571 sp:expression 944 sp:expression
572 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 945 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
573 - sp:arg1 _:b57 946 + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
947 + ]
574 ] ; 948 ] ;
575 - sp:variable _:b56 949 + sp:variable
950 + [ sp:varName "facility"^^xsd:string
951 + ]
576 ] [ rdf:type sp:Bind ; 952 ] [ rdf:type sp:Bind ;
577 sp:expression 953 sp:expression
578 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 954 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
579 - sp:arg1 _:b63 955 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
956 + ]
580 ] ; 957 ] ;
581 - sp:variable _:b58 958 + sp:variable
959 + [ sp:varName "facilityType"^^xsd:string
960 + ]
582 ]) 961 ])
583 ] ; 962 ] ;
584 spin:rule 963 spin:rule
585 [ rdf:type sp:Construct ; 964 [ rdf:type sp:Construct ;
586 - rdfs:comment """STEP 40005b Specify the fluid component - non-primary component. 965 + rdfs:comment """STEP 40005a Specify the fluid component - primary component.
587 The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; 966 The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
588 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; 967 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
589 sp:predicate rdf:type ; 968 sp:predicate rdf:type ;
590 - sp:subject _:b68 969 + sp:subject _:b17
591 - ] [ sp:object _:b68 ; 970 + ] [ sp:object _:b17 ;
592 - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ; 971 + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
593 sp:subject 972 sp:subject
594 [ sp:varName "sampledFluid"^^xsd:string 973 [ sp:varName "sampledFluid"^^xsd:string
595 ] 974 ]
596 ] [ sp:object 975 ] [ sp:object
597 - [ sp:varName "fluidComponentKindType"^^xsd:string 976 + [ sp:varName "fluidPhaseType"^^xsd:string
598 - ] ;
599 - sp:predicate rdf:type ;
600 - sp:subject _:b68
601 - ] [ sp:object
602 - [ sp:varName "fluidSubstanceKindType"^^xsd:string
603 ] ; 977 ] ;
604 sp:predicate rdf:type ; 978 sp:predicate rdf:type ;
605 - sp:subject _:b68 979 + sp:subject _:b17
606 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
607 - sp:predicate rdf:type ;
608 - sp:subject _:b69
609 - ] [ sp:object _:b68 ;
610 - sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
611 - sp:subject _:b69
612 ] [ sp:object 980 ] [ sp:object
613 - [ sp:varName "sampledFluid"^^xsd:string 981 + [ sp:varName "fluidComponentKindType"^^xsd:string
614 ] ; 982 ] ;
615 - sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
616 - sp:subject _:b69
617 - ] [ sp:object _:b70 ;
618 - sp:predicate <http://www.reportinghub.no/ep/schema/material#massRatio> ;
619 - sp:subject _:b69
620 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
621 sp:predicate rdf:type ; 983 sp:predicate rdf:type ;
622 - sp:subject _:b70 984 + sp:subject _:b17
623 ] [ sp:object 985 ] [ sp:object
624 - [ sp:varName "realWeightPercent"^^xsd:string 986 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
625 - ] ;
626 - sp:predicate
627 - [ sp:varName "weightPercentScale"^^xsd:string
628 ] ; 987 ] ;
629 - sp:subject _:b70
630 - ] [ sp:object _:b71 ;
631 - sp:predicate <http://www.reportinghub.no/ep/schema/material#moleRatio> ;
632 - sp:subject _:b69
633 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
634 sp:predicate rdf:type ; 988 sp:predicate rdf:type ;
635 - sp:subject _:b71 989 + sp:subject _:b17
636 - ] [ sp:object
637 - [ sp:varName "realMolePercent"^^xsd:string
638 - ] ;
639 - sp:predicate
640 - [ sp:varName "molePercentScale"^^xsd:string
641 - ] ;
642 - sp:subject _:b71
643 ]) ; 990 ]) ;
644 sp:where ([ sp:object 991 sp:where ([ sp:object
645 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 992 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
...@@ -665,7 +1012,7 @@ The componentName element is used differently in the examples for the primary an ...@@ -665,7 +1012,7 @@ The componentName element is used differently in the examples for the primary an
665 sp:subject 1012 sp:subject
666 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 1013 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
667 ] 1014 ]
668 - ] [ sp:object "false"^^xsd:boolean ; 1015 + ] [ sp:object "true"^^xsd:boolean ;
669 sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; 1016 sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
670 sp:subject 1017 sp:subject
671 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 1018 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
...@@ -677,90 +1024,39 @@ The componentName element is used differently in the examples for the primary an ...@@ -677,90 +1024,39 @@ The componentName element is used differently in the examples for the primary an
677 sp:subject 1024 sp:subject
678 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 1025 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
679 ] 1026 ]
680 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
681 - sp:predicate rdf:type ;
682 - sp:subject
683 - [ sp:varName "fluidSubstanceKindType"^^xsd:string
684 - ]
685 - ] [ sp:object
686 - [ sp:varName "name"^^xsd:string
687 - ] ;
688 - sp:predicate rdfs:label ;
689 - sp:subject
690 - [ sp:varName "fluidSubstanceKindType"^^xsd:string
691 - ]
692 - ] [ rdf:type sp:Optional ;
693 - sp:elements ([ sp:object
694 - [ sp:varName "componentKindRef"^^xsd:string
695 - ] ;
696 - sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
697 - sp:subject
698 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string
699 - ]
700 - ])
701 ] [ rdf:type sp:Optional ; 1027 ] [ rdf:type sp:Optional ;
702 sp:elements ([ sp:object 1028 sp:elements ([ sp:object
703 - [ sp:varName "weightPercentRef"^^xsd:string 1029 + [ sp:varName "componentBaseKindRef"^^xsd:string
704 ] ; 1030 ] ;
705 - sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ; 1031 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
706 sp:subject 1032 sp:subject
707 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 1033 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
708 ] 1034 ]
709 ] [ sp:object 1035 ] [ sp:object
710 - [ sp:varName "realWeightPercent"^^xsd:string 1036 + [ sp:varName "componentBaseKindRef"^^xsd:string
711 - ] ;
712 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
713 - sp:subject
714 - [ sp:varName "weightPercentRef"^^xsd:string
715 - ]
716 - ] [ sp:object
717 - [ sp:varName "uomWeightPercent"^^xsd:string
718 ] ; 1037 ] ;
719 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 1038 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#mapsTo> ;
720 sp:subject 1039 sp:subject
721 - [ sp:varName "weightPercentRef"^^xsd:string 1040 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
722 ] 1041 ]
723 ]) 1042 ])
724 ] [ rdf:type sp:Optional ; 1043 ] [ rdf:type sp:Optional ;
725 sp:elements ([ sp:object 1044 sp:elements ([ sp:object
726 - [ sp:varName "molePercentRef"^^xsd:string 1045 + [ sp:varName "componentKindRef"^^xsd:string
727 ] ; 1046 ] ;
728 - sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ; 1047 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
729 sp:subject 1048 sp:subject
730 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 1049 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
731 ] 1050 ]
732 - ] [ sp:object
733 - [ sp:varName "realMolePercent"^^xsd:string
734 - ] ;
735 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
736 - sp:subject
737 - [ sp:varName "molePercentRef"^^xsd:string
738 - ]
739 - ] [ sp:object
740 - [ sp:varName "uomMolePercent"^^xsd:string
741 - ] ;
742 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
743 - sp:subject
744 - [ sp:varName "molePercentRef"^^xsd:string
745 - ]
746 ]) 1051 ])
747 ] [ rdf:type sp:Bind ; 1052 ] [ rdf:type sp:Bind ;
748 sp:expression 1053 sp:expression
749 - [ rdf:type ep-mpr-spin-lib:selectRatioScale ; 1054 + [ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
750 - sp:arg1 [ sp:varName "uomWeightPercent"^^xsd:string 1055 + sp:arg1 [ sp:varName "name"^^xsd:string
751 - ]
752 - ] ;
753 - sp:variable
754 - [ sp:varName "weightPercentScale"^^xsd:string
755 - ]
756 - ] [ rdf:type sp:Bind ;
757 - sp:expression
758 - [ rdf:type ep-mpr-spin-lib:selectRatioScale ;
759 - sp:arg1 [ sp:varName "uomMolePercent"^^xsd:string
760 ] 1056 ]
761 ] ; 1057 ] ;
762 sp:variable 1058 sp:variable
763 - [ sp:varName "molePercentScale"^^xsd:string 1059 + [ sp:varName "fluidPhaseType"^^xsd:string
764 ] 1060 ]
765 ] [ rdf:type sp:Bind ; 1061 ] [ rdf:type sp:Bind ;
766 sp:expression 1062 sp:expression
...@@ -776,175 +1072,19 @@ The componentName element is used differently in the examples for the primary an ...@@ -776,175 +1072,19 @@ The componentName element is used differently in the examples for the primary an
776 1072
777 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> 1073 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
778 rdf:type owl:Ontology ; 1074 rdf:type owl:Ontology ;
779 - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; 1075 + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
780 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 1076 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
781 1077
782 -_:b55 1078 +_:b9 sp:varName "productionReport"^^xsd:string .
783 - sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
784 -
785 -_:b56
786 - sp:varName "facility"^^xsd:string .
787 -
788 -_:b57
789 - sp:varName "normalizedFacilityName"^^xsd:string .
790 -
791 -_:b58
792 - sp:varName "facilityType"^^xsd:string .
793 -
794 -_:b59
795 - sp:varName "facilityRef"^^xsd:string .
796 -
797 -_:b60
798 - sp:varName "fluidSampleRef"^^xsd:string .
799 -
800 -_:b61
801 - sp:varName "facilityNameRef"^^xsd:string .
802 -
803 -_:b62
804 - sp:varName "facilityChildName"^^xsd:string .
805 -
806 -_:b63
807 - sp:varName "facilityKind"^^xsd:string .
808 -
809 -_:b64
810 - sp:varName "facilityParent1Ref"^^xsd:string .
811 -
812 -_:b65
813 - sp:varName "facilityParent1Name"^^xsd:string .
814 -
815 -_:b66
816 - sp:varName "normalizedFacilityChildName"^^xsd:string .
817 -
818 -_:b67
819 - sp:varName "normalizedFacilityParent1Name"^^xsd:string .
820 -
821 -_:b46
822 - sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
823 -
824 -_:b47
825 - sp:varName "facility"^^xsd:string .
826 -
827 -_:b48
828 - sp:varName "normalizedFacilityAlias"^^xsd:string .
829 -
830 -_:b49
831 - sp:varName "facilityRef"^^xsd:string .
832 -
833 -_:b50
834 - sp:varName "fluidSampleRef"^^xsd:string .
835 -
836 -_:b51
837 - sp:varName "facilityNameRef"^^xsd:string .
838 -
839 -_:b52
840 - sp:varName "facilityAliasRef"^^xsd:string .
841 -
842 -_:b53
843 - sp:varName "facilityAlias"^^xsd:string .
844 -
845 -_:b39
846 - sp:varName "nameFluidAnalysis"^^xsd:string .
847 -
848 -_:b40
849 - sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
850 -
851 -_:b41
852 - sp:varName "fluidAnalysisResultRef"^^xsd:string .
853 -
854 -_:b42
855 - sp:varName "sampledFluid"^^xsd:string .
856 -
857 -_:b43
858 - sp:varName "fluidSampleRef"^^xsd:string .
859 -
860 -_:b44
861 - sp:varName "name"^^xsd:string .
862 -
863 -_:b36
864 - sp:varName "name"^^xsd:string .
865 -
866 -_:b37
867 - sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
868 -
869 -_:b38
870 - sp:varName "fluidSampleRef"^^xsd:string .
871 -
872 -_:b29
873 - sp:varName "productionReport"^^xsd:string .
874 -
875 -_:b31
876 - sp:varName "fluidSamplingType"^^xsd:string .
877 -
878 -_:b32
879 - sp:varName "acquisitionDate"^^xsd:string .
880 -
881 -_:b33
882 - sp:varName "fluidSampleRef"^^xsd:string .
883 -
884 -_:b34
885 - sp:varName "sampleTypeRef"^^xsd:string .
886 -
887 -_:b19
888 - sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
889 -
890 -_:b20
891 - sp:varName "facility"^^xsd:string .
892 -
893 -_:b21
894 - sp:varName "normalizedFacilityName"^^xsd:string .
895 -
896 -_:b22
897 - sp:varName "facilityType"^^xsd:string .
898 -
899 -_:b23
900 - sp:varName "facilityRef"^^xsd:string .
901 -
902 -_:b24
903 - sp:varName "fluidSampleRef"^^xsd:string .
904 -
905 -_:b25
906 - sp:varName "facilityNameRef"^^xsd:string .
907 -
908 -_:b26
909 - sp:varName "facilityName"^^xsd:string .
910 -
911 -_:b27
912 - sp:varName "facilityKind"^^xsd:string .
913 -
914 -_:b3 sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
915 -
916 -_:b4 sp:varName "facility"^^xsd:string .
917 -
918 -_:b5 sp:varName "normalizedFacilityName"^^xsd:string .
919 -
920 -_:b6 sp:varName "facilityType"^^xsd:string .
921 -
922 -_:b7 sp:varName "facilityRef"^^xsd:string .
923 -
924 -_:b8 sp:varName "fluidSampleRef"^^xsd:string .
925 -
926 -_:b9 sp:varName "facilityNameRef"^^xsd:string .
927 -
928 -_:b10
929 - sp:varName "facilityChildName"^^xsd:string .
930 1079
931 _:b11 1080 _:b11
932 - sp:varName "facilityKind"^^xsd:string . 1081 + sp:varName "fluidSamplingType"^^xsd:string .
933 1082
934 _:b12 1083 _:b12
935 - sp:varName "facilityParent1Ref"^^xsd:string . 1084 + sp:varName "acquisitionDate"^^xsd:string .
936 1085
937 _:b13 1086 _:b13
938 - sp:varName "facilityParent1Name"^^xsd:string . 1087 + sp:varName "fluidSampleRef"^^xsd:string .
939 1088
940 _:b14 1089 _:b14
941 - sp:varName "facilityParent2Ref"^^xsd:string . 1090 + sp:varName "sampleTypeRef"^^xsd:string .
942 -
943 -_:b15
944 - sp:varName "facilityParent2Name"^^xsd:string .
945 -
946 -_:b16
947 - sp:varName "normalizedFacilityChildName"^^xsd:string .
948 -
949 -_:b17
950 - sp:varName "normalizedFacilityParent1Name"^^xsd:string .
......
This diff could not be displayed because it is too large.