Showing
1 changed file
with
566 additions
and
566 deletions
... | @@ -25,36 +25,15 @@ | ... | @@ -25,36 +25,15 @@ |
25 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 25 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
26 | spin:rule | 26 | spin:rule |
27 | [ rdf:type sp:Construct ; | 27 | [ rdf:type sp:Construct ; |
28 | - rdfs:comment """STEP 40011a Specify the fluid component - primary component. | 28 | + rdfs:comment "STEP 40011d Specify the mass of the fluid component if necessary"^^xsd:string ; |
29 | -The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; | 29 | + sp:templates ([ sp:object _:b1 ; |
30 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; | ||
31 | sp:predicate rdf:type ; | 30 | sp:predicate rdf:type ; |
32 | - sp:subject _:b1 | ||
33 | - ] [ sp:object _:b1 ; | ||
34 | - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ; | ||
35 | sp:subject | 31 | sp:subject |
36 | - [ sp:varName "sampledFluid"^^xsd:string | 32 | + [ sp:varName "fluidComponent"^^xsd:string |
37 | ] | 33 | ] |
38 | - ] [ sp:object | 34 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; |
39 | - [ sp:varName "fluidPhaseType"^^xsd:string | ||
40 | - ] ; | ||
41 | - sp:predicate rdf:type ; | ||
42 | - sp:subject _:b1 | ||
43 | - ] [ sp:object | ||
44 | - [ sp:varName "fluidComponentKindType"^^xsd:string | ||
45 | - ] ; | ||
46 | - sp:predicate rdf:type ; | ||
47 | - sp:subject _:b1 | ||
48 | - ] [ sp:object | ||
49 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
50 | - ] ; | ||
51 | sp:predicate rdf:type ; | 35 | sp:predicate rdf:type ; |
52 | sp:subject _:b1 | 36 | sp:subject _:b1 |
53 | - ] [ sp:object | ||
54 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
55 | - ] ; | ||
56 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
57 | - sp:subject _:b1 | ||
58 | ]) ; | 37 | ]) ; |
59 | sp:where ([ sp:object | 38 | sp:where ([ sp:object |
60 | [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 39 | [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
... | @@ -67,134 +46,28 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -67,134 +46,28 @@ The componentName element is used differently in the examples for the primary an |
67 | [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 46 | [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
68 | ] | 47 | ] |
69 | ] [ sp:object | 48 | ] [ sp:object |
70 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
71 | - ] ; | ||
72 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
73 | - sp:subject | ||
74 | - [ sp:varName "sampledFluid"^^xsd:string | ||
75 | - ] | ||
76 | - ] [ sp:object | ||
77 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 49 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
78 | ] ; | 50 | ] ; |
79 | sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | 51 | sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; |
80 | sp:subject | 52 | sp:subject |
81 | [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 53 | [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
82 | ] | 54 | ] |
83 | - ] [ sp:object "true"^^xsd:boolean ; | ||
84 | - sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; | ||
85 | - sp:subject | ||
86 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
87 | - ] | ||
88 | ] [ sp:object | 55 | ] [ sp:object |
89 | - [ sp:varName "name"^^xsd:string | 56 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
90 | ] ; | 57 | ] ; |
91 | - sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ; | 58 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
92 | sp:subject | 59 | sp:subject |
93 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 60 | + [ sp:varName "fluidComponent"^^xsd:string |
94 | ] | 61 | ] |
95 | - ] [ rdf:type sp:Optional ; | 62 | + ] [ rdf:type sp:Exists ; |
96 | - sp:elements ([ sp:object | ||
97 | - [ sp:varName "componentBaseKindRef"^^xsd:string | ||
98 | - ] ; | ||
99 | - sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ; | ||
100 | - sp:subject | ||
101 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
102 | - ] | ||
103 | - ] [ sp:object | ||
104 | - [ sp:varName "componentBaseKindRef"^^xsd:string | ||
105 | - ] ; | ||
106 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ; | ||
107 | - sp:subject | ||
108 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
109 | - ] | ||
110 | - ]) | ||
111 | - ] [ rdf:type sp:Optional ; | ||
112 | sp:elements ([ sp:object | 63 | sp:elements ([ sp:object |
113 | - [ sp:varName "componentKindRef"^^xsd:string | 64 | + [ sp:varName "molePercentRef"^^xsd:string |
114 | ] ; | 65 | ] ; |
115 | - sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ; | 66 | + sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ; |
116 | sp:subject | 67 | sp:subject |
117 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 68 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
118 | ] | 69 | ] |
119 | ]) | 70 | ]) |
120 | - ] [ rdf:type sp:Bind ; | ||
121 | - sp:expression | ||
122 | - [ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ; | ||
123 | - sp:arg1 [ sp:varName "name"^^xsd:string | ||
124 | - ] | ||
125 | - ] ; | ||
126 | - sp:variable | ||
127 | - [ sp:varName "fluidPhaseType"^^xsd:string | ||
128 | - ] | ||
129 | - ] [ rdf:type sp:Bind ; | ||
130 | - sp:expression | ||
131 | - [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ; | ||
132 | - sp:arg1 [ sp:varName "componentKindRef"^^xsd:string | ||
133 | - ] | ||
134 | - ] ; | ||
135 | - sp:variable | ||
136 | - [ sp:varName "fluidComponentKindType"^^xsd:string | ||
137 | - ] | ||
138 | - ]) | ||
139 | - ] ; | ||
140 | - spin:rule | ||
141 | - [ rdf:type sp:Construct ; | ||
142 | - rdfs:comment "STEP 40002 Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume."^^xsd:string ; | ||
143 | - sp:templates ([ sp:object _:b2 ; | ||
144 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; | ||
145 | - sp:subject | ||
146 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
147 | - ] | ||
148 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
149 | - sp:predicate rdf:type ; | ||
150 | - sp:subject _:b2 | ||
151 | - ] [ sp:object | ||
152 | - [ sp:varName "facility"^^xsd:string | ||
153 | - ] ; | ||
154 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
155 | - sp:subject _:b2 | ||
156 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
157 | - sp:predicate rdf:type ; | ||
158 | - sp:subject | ||
159 | - [ sp:varName "facility"^^xsd:string | ||
160 | - ] | ||
161 | - ]) ; | ||
162 | - sp:where ([ sp:object | ||
163 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
164 | - ] ; | ||
165 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
166 | - sp:subject spin:_this | ||
167 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; | ||
168 | - sp:predicate rdf:type ; | ||
169 | - sp:subject | ||
170 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
171 | - ] | ||
172 | - ] [ sp:object | ||
173 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
174 | - ] ; | ||
175 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
176 | - sp:subject | ||
177 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
178 | - ] | ||
179 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ; | ||
180 | - sp:predicate rdf:type ; | ||
181 | - sp:subject | ||
182 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
183 | - ] | ||
184 | - ] [ sp:object | ||
185 | - [ sp:varName "facilityRef"^^xsd:string | ||
186 | - ] ; | ||
187 | - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | ||
188 | - sp:subject | ||
189 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
190 | - ] | ||
191 | - ] [ sp:object | ||
192 | - [ sp:varName "facilityRef"^^xsd:string | ||
193 | - ] ; | ||
194 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
195 | - sp:subject | ||
196 | - [ sp:varName "facility"^^xsd:string | ||
197 | - ] | ||
198 | ]) | 71 | ]) |
199 | ] ; | 72 | ] ; |
200 | spin:rule | 73 | spin:rule |
... | @@ -202,33 +75,33 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -202,33 +75,33 @@ The componentName element is used differently in the examples for the primary an |
202 | rdfs:comment "STEP 40001 Create the FluidSampleReport and FluidSampling activity ."^^xsd:string ; | 75 | rdfs:comment "STEP 40001 Create the FluidSampleReport and FluidSampling activity ."^^xsd:string ; |
203 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ; | 76 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ; |
204 | sp:predicate rdf:type ; | 77 | sp:predicate rdf:type ; |
205 | - sp:subject _:b3 | 78 | + sp:subject _:b2 |
206 | ] [ sp:object | 79 | ] [ sp:object |
207 | [ sp:varName "productionReport"^^xsd:string | 80 | [ sp:varName "productionReport"^^xsd:string |
208 | ] ; | 81 | ] ; |
209 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 82 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
210 | - sp:subject _:b3 | 83 | + sp:subject _:b2 |
211 | - ] [ sp:object _:b4 ; | 84 | + ] [ sp:object _:b3 ; |
212 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 85 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
213 | - sp:subject _:b3 | 86 | + sp:subject _:b2 |
214 | ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ; | 87 | ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ; |
215 | sp:predicate rdf:type ; | 88 | sp:predicate rdf:type ; |
216 | - sp:subject _:b4 | 89 | + sp:subject _:b3 |
217 | ] [ sp:object | 90 | ] [ sp:object |
218 | [ sp:varName "fluidSamplingType"^^xsd:string | 91 | [ sp:varName "fluidSamplingType"^^xsd:string |
219 | ] ; | 92 | ] ; |
220 | sp:predicate rdf:type ; | 93 | sp:predicate rdf:type ; |
221 | - sp:subject _:b4 | 94 | + sp:subject _:b3 |
222 | ] [ sp:object | 95 | ] [ sp:object |
223 | [ sp:varName "acquisitionDate"^^xsd:string | 96 | [ sp:varName "acquisitionDate"^^xsd:string |
224 | ] ; | 97 | ] ; |
225 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 98 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
226 | - sp:subject _:b4 | 99 | + sp:subject _:b3 |
227 | ] [ sp:object | 100 | ] [ sp:object |
228 | [ sp:varName "fluidSampleRef"^^xsd:string | 101 | [ sp:varName "fluidSampleRef"^^xsd:string |
229 | ] ; | 102 | ] ; |
230 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 103 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
231 | - sp:subject _:b4 | 104 | + sp:subject _:b3 |
232 | ]) ; | 105 | ]) ; |
233 | sp:where ([ sp:object spin:_this ; | 106 | sp:where ([ sp:object spin:_this ; |
234 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 107 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
... | @@ -281,11 +154,11 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -281,11 +154,11 @@ The componentName element is used differently in the examples for the primary an |
281 | ] ; | 154 | ] ; |
282 | spin:rule | 155 | spin:rule |
283 | [ rdf:type sp:Construct ; | 156 | [ rdf:type sp:Construct ; |
284 | - rdfs:comment "STEP 40003c Set the facility for the sample of fluid - from sampling facility if possible"^^xsd:string ; | 157 | + rdfs:comment "STEP 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ; |
285 | sp:templates ([ sp:object | 158 | sp:templates ([ sp:object |
286 | - [ sp:varName "normalizedFacilityName"^^xsd:string | 159 | + [ sp:varName "acquisitionDate"^^xsd:string |
287 | ] ; | 160 | ] ; |
288 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; | 161 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; |
289 | sp:subject | 162 | sp:subject |
290 | [ sp:varName "fluidSampleRef"^^xsd:string | 163 | [ sp:varName "fluidSampleRef"^^xsd:string |
291 | ] | 164 | ] |
... | @@ -301,136 +174,100 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -301,136 +174,100 @@ The componentName element is used differently in the examples for the primary an |
301 | [ sp:varName "fluidSampleRef"^^xsd:string | 174 | [ sp:varName "fluidSampleRef"^^xsd:string |
302 | ] | 175 | ] |
303 | ] [ sp:object | 176 | ] [ sp:object |
304 | - [ sp:varName "facilityRef"^^xsd:string | 177 | + [ sp:varName "acquisitionDate"^^xsd:string |
305 | ] ; | 178 | ] ; |
306 | - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | 179 | + sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; |
307 | sp:subject | 180 | sp:subject |
308 | [ sp:varName "fluidSampleRef"^^xsd:string | 181 | [ sp:varName "fluidSampleRef"^^xsd:string |
309 | ] | 182 | ] |
310 | - ] [ rdf:type sp:Bind ; | ||
311 | - sp:expression | ||
312 | - [ rdf:type spl:object ; | ||
313 | - sp:arg1 [ sp:varName "facilityRef"^^xsd:string | ||
314 | - ] ; | ||
315 | - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
316 | - ] ; | ||
317 | - sp:variable | ||
318 | - [ sp:varName "normalizedFacilityName"^^xsd:string | ||
319 | - ] | ||
320 | ]) | 183 | ]) |
321 | ] ; | 184 | ] ; |
322 | spin:rule | 185 | spin:rule |
323 | [ rdf:type sp:Construct ; | 186 | [ rdf:type sp:Construct ; |
324 | - rdfs:comment """STEP 40011b Specify the fluid component - non-primary component - label found | 187 | + rdfs:comment "STEP 40010 Specify the fluid analysis result."^^xsd:string ; |
325 | -The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; | 188 | + sp:templates ([ sp:object |
326 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; | 189 | + [ sp:varName "nameFluidAnalysis"^^xsd:string |
327 | - sp:predicate rdf:type ; | 190 | + ] ; |
328 | - sp:subject _:b5 | 191 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
329 | - ] [ sp:object _:b5 ; | ||
330 | - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ; | ||
331 | sp:subject | 192 | sp:subject |
332 | - [ sp:varName "sampledFluid"^^xsd:string | 193 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string |
333 | ] | 194 | ] |
334 | ] [ sp:object | 195 | ] [ sp:object |
335 | - [ sp:varName "fluidComponentKindType"^^xsd:string | 196 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
336 | - ] ; | ||
337 | - sp:predicate rdf:type ; | ||
338 | - sp:subject _:b5 | ||
339 | - ] [ sp:object | ||
340 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
341 | - ] ; | ||
342 | - sp:predicate rdf:type ; | ||
343 | - sp:subject _:b5 | ||
344 | - ] [ sp:object | ||
345 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
346 | ] ; | 197 | ] ; |
347 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 198 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
348 | - sp:subject _:b5 | 199 | + sp:subject |
200 | + [ sp:varName "sampledFluid"^^xsd:string | ||
201 | + ] | ||
349 | ]) ; | 202 | ]) ; |
350 | sp:where ([ sp:object | 203 | sp:where ([ sp:object |
351 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 204 | + [ sp:varName "fluidSampleRef"^^xsd:string |
352 | ] ; | 205 | ] ; |
353 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 206 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
354 | sp:subject spin:_this | 207 | sp:subject spin:_this |
355 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | 208 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; |
356 | sp:predicate rdf:type ; | 209 | sp:predicate rdf:type ; |
357 | sp:subject | 210 | sp:subject |
358 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 211 | + [ sp:varName "fluidSampleRef"^^xsd:string |
359 | ] | 212 | ] |
360 | ] [ sp:object | 213 | ] [ sp:object |
361 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 214 | + [ sp:varName "fluidSampleRef"^^xsd:string |
362 | ] ; | 215 | ] ; |
363 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 216 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
364 | sp:subject | 217 | sp:subject |
365 | - [ sp:varName "sampledFluid"^^xsd:string | 218 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string |
366 | ] | 219 | ] |
367 | ] [ sp:object | 220 | ] [ sp:object |
368 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 221 | + [ sp:varName "sampledFluid"^^xsd:string |
369 | ] ; | 222 | ] ; |
370 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | 223 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ; |
371 | - sp:subject | ||
372 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
373 | - ] | ||
374 | - ] [ sp:object "false"^^xsd:boolean ; | ||
375 | - sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; | ||
376 | sp:subject | 224 | sp:subject |
377 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 225 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string |
378 | ] | 226 | ] |
379 | ] [ sp:object | 227 | ] [ sp:object |
380 | [ sp:varName "name"^^xsd:string | 228 | [ sp:varName "name"^^xsd:string |
381 | ] ; | 229 | ] ; |
382 | - sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ; | 230 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
383 | sp:subject | 231 | sp:subject |
384 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 232 | + [ sp:varName "fluidSampleRef"^^xsd:string |
385 | ] | 233 | ] |
386 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; | 234 | + ] [ sp:object |
235 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
236 | + ] ; | ||
237 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
238 | + sp:subject spin:_this | ||
239 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | ||
387 | sp:predicate rdf:type ; | 240 | sp:predicate rdf:type ; |
388 | sp:subject | 241 | sp:subject |
389 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | 242 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
390 | ] | 243 | ] |
391 | ] [ sp:object | 244 | ] [ sp:object |
392 | [ sp:varName "name"^^xsd:string | 245 | [ sp:varName "name"^^xsd:string |
393 | ] ; | 246 | ] ; |
394 | - sp:predicate rdfs:label ; | 247 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ; |
395 | sp:subject | 248 | sp:subject |
396 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | 249 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
397 | ] | 250 | ] |
398 | ] [ rdf:type sp:Optional ; | 251 | ] [ rdf:type sp:Optional ; |
399 | sp:elements ([ sp:object | 252 | sp:elements ([ sp:object |
400 | - [ sp:varName "componentKindRef"^^xsd:string | 253 | + [ sp:varName "nameFluidAnalysis"^^xsd:string |
401 | ] ; | 254 | ] ; |
402 | - sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ; | 255 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ; |
403 | sp:subject | 256 | sp:subject |
404 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 257 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
405 | ] | 258 | ] |
406 | ]) | 259 | ]) |
407 | - ] [ rdf:type sp:Bind ; | ||
408 | - sp:expression | ||
409 | - [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ; | ||
410 | - sp:arg1 [ sp:varName "componentKindRef"^^xsd:string | ||
411 | - ] | ||
412 | - ] ; | ||
413 | - sp:variable | ||
414 | - [ sp:varName "fluidComponentKindType"^^xsd:string | ||
415 | - ] | ||
416 | ]) | 260 | ]) |
417 | ] ; | 261 | ] ; |
418 | spin:rule | 262 | spin:rule |
419 | [ rdf:type sp:Construct ; | 263 | [ rdf:type sp:Construct ; |
420 | - rdfs:comment "STEP 40010 Specify the fluid analysis result."^^xsd:string ; | 264 | + rdfs:comment "STEP 40003b Set the date for the sample of fluid - from report date if not"^^xsd:string ; |
421 | sp:templates ([ sp:object | 265 | sp:templates ([ sp:object |
422 | - [ sp:varName "nameFluidAnalysis"^^xsd:string | 266 | + [ sp:varName "intervalIdentifier"^^xsd:string |
423 | - ] ; | ||
424 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
425 | - sp:subject | ||
426 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
427 | - ] | ||
428 | - ] [ sp:object | ||
429 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
430 | ] ; | 267 | ] ; |
431 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 268 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; |
432 | sp:subject | 269 | sp:subject |
433 | - [ sp:varName "sampledFluid"^^xsd:string | 270 | + [ sp:varName "fluidSampleRef"^^xsd:string |
434 | ] | 271 | ] |
435 | ]) ; | 272 | ]) ; |
436 | sp:where ([ sp:object | 273 | sp:where ([ sp:object |
... | @@ -438,82 +275,47 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -438,82 +275,47 @@ The componentName element is used differently in the examples for the primary an |
438 | ] ; | 275 | ] ; |
439 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 276 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
440 | sp:subject spin:_this | 277 | sp:subject spin:_this |
441 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; | ||
442 | - sp:predicate rdf:type ; | ||
443 | - sp:subject | ||
444 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
445 | - ] | ||
446 | - ] [ sp:object | ||
447 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
448 | - ] ; | ||
449 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
450 | - sp:subject | ||
451 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
452 | - ] | ||
453 | - ] [ sp:object | ||
454 | - [ sp:varName "sampledFluid"^^xsd:string | ||
455 | - ] ; | ||
456 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ; | ||
457 | - sp:subject | ||
458 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
459 | - ] | ||
460 | ] [ sp:object | 278 | ] [ sp:object |
461 | - [ sp:varName "name"^^xsd:string | 279 | + [ sp:varName "intervalIdentifier"^^xsd:string |
462 | - ] ; | ||
463 | - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
464 | - sp:subject | ||
465 | - [ sp:varName "fluidSampleRef"^^xsd:string | ||
466 | - ] | ||
467 | - ] [ sp:object | ||
468 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
469 | ] ; | 280 | ] ; |
470 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 281 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
471 | sp:subject spin:_this | 282 | sp:subject spin:_this |
472 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | 283 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; |
473 | sp:predicate rdf:type ; | 284 | sp:predicate rdf:type ; |
474 | sp:subject | 285 | sp:subject |
475 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 286 | + [ sp:varName "fluidSampleRef"^^xsd:string |
476 | - ] | ||
477 | - ] [ sp:object | ||
478 | - [ sp:varName "name"^^xsd:string | ||
479 | - ] ; | ||
480 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ; | ||
481 | - sp:subject | ||
482 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
483 | ] | 287 | ] |
484 | - ] [ rdf:type sp:Optional ; | 288 | + ] [ rdf:type sp:NotExists ; |
485 | sp:elements ([ sp:object | 289 | sp:elements ([ sp:object |
486 | - [ sp:varName "nameFluidAnalysis"^^xsd:string | 290 | + [ sp:varName "acquisitionDate"^^xsd:string |
487 | ] ; | 291 | ] ; |
488 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ; | 292 | + sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; |
489 | sp:subject | 293 | sp:subject |
490 | - [ sp:varName "fluidAnalysisResultRef"^^xsd:string | 294 | + [ sp:varName "fluidSampleRef"^^xsd:string |
491 | ] | 295 | ] |
492 | ]) | 296 | ]) |
493 | ]) | 297 | ]) |
494 | ] ; | 298 | ] ; |
495 | spin:rule | 299 | spin:rule |
496 | [ rdf:type sp:Construct ; | 300 | [ rdf:type sp:Construct ; |
497 | - rdfs:comment """STEP 40003e Create the Sample of fluid. | 301 | + rdfs:comment "STEP 40002 Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume."^^xsd:string ; |
498 | -It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ; | 302 | + sp:templates ([ sp:object _:b4 ; |
499 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; | 303 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; |
500 | - sp:predicate rdf:type ; | ||
501 | - sp:subject | ||
502 | - [ sp:varName "sampledFluid"^^xsd:string | ||
503 | - ] | ||
504 | - ] [ sp:object | ||
505 | - [ sp:varName "name"^^xsd:string | ||
506 | - ] ; | ||
507 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
508 | sp:subject | 304 | sp:subject |
509 | - [ sp:varName "sampledFluid"^^xsd:string | 305 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string |
510 | ] | 306 | ] |
307 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
308 | + sp:predicate rdf:type ; | ||
309 | + sp:subject _:b4 | ||
511 | ] [ sp:object | 310 | ] [ sp:object |
512 | - [ sp:varName "sampledFluid"^^xsd:string | 311 | + [ sp:varName "facility"^^xsd:string |
513 | ] ; | 312 | ] ; |
514 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ; | 313 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
314 | + sp:subject _:b4 | ||
315 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
316 | + sp:predicate rdf:type ; | ||
515 | sp:subject | 317 | sp:subject |
516 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | 318 | + [ sp:varName "facility"^^xsd:string |
517 | ] | 319 | ] |
518 | ]) ; | 320 | ]) ; |
519 | sp:where ([ sp:object | 321 | sp:where ([ sp:object |
... | @@ -527,56 +329,83 @@ It is matched to its results via the sample name, which is assumed to be unique | ... | @@ -527,56 +329,83 @@ It is matched to its results via the sample name, which is assumed to be unique |
527 | [ sp:varName "fluidSampleRef"^^xsd:string | 329 | [ sp:varName "fluidSampleRef"^^xsd:string |
528 | ] | 330 | ] |
529 | ] [ sp:object | 331 | ] [ sp:object |
530 | - [ sp:varName "intervalIdentifier"^^xsd:string | 332 | + [ sp:varName "fluidSampleRef"^^xsd:string |
531 | - ] ; | ||
532 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
533 | - sp:subject spin:_this | ||
534 | - ] [ sp:object | ||
535 | - [ sp:varName "time"^^xsd:string | ||
536 | ] ; | 333 | ] ; |
537 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; | 334 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
538 | sp:subject | 335 | sp:subject |
539 | - [ sp:varName "fluidSampleRef"^^xsd:string | 336 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string |
337 | + ] | ||
338 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ; | ||
339 | + sp:predicate rdf:type ; | ||
340 | + sp:subject | ||
341 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
540 | ] | 342 | ] |
541 | ] [ sp:object | 343 | ] [ sp:object |
542 | - [ sp:varName "normalizedFacilityName"^^xsd:string | 344 | + [ sp:varName "facilityRef"^^xsd:string |
543 | ] ; | 345 | ] ; |
544 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; | 346 | + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; |
545 | sp:subject | 347 | sp:subject |
546 | [ sp:varName "fluidSampleRef"^^xsd:string | 348 | [ sp:varName "fluidSampleRef"^^xsd:string |
547 | ] | 349 | ] |
548 | ] [ sp:object | 350 | ] [ sp:object |
549 | - [ sp:varName "fluidSampleRef"^^xsd:string | 351 | + [ sp:varName "facilityRef"^^xsd:string |
550 | ] ; | 352 | ] ; |
551 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 353 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
552 | sp:subject | 354 | sp:subject |
553 | - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | 355 | + [ sp:varName "facility"^^xsd:string |
554 | ] | 356 | ] |
555 | - ] [ sp:object | 357 | + ]) |
556 | - [ sp:varName "name"^^xsd:string | 358 | + ] ; |
359 | + spin:rule | ||
360 | + [ rdf:type sp:Construct ; | ||
361 | + rdfs:comment "STEP 40010a Create the mass of the sample of fluid if necessary"^^xsd:string ; | ||
362 | + sp:templates ([ sp:object _:b5 ; | ||
363 | + sp:predicate rdf:type ; | ||
364 | + sp:subject | ||
365 | + [ sp:varName "sampledFluid"^^xsd:string | ||
366 | + ] | ||
367 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
368 | + sp:predicate rdf:type ; | ||
369 | + sp:subject _:b5 | ||
370 | + ]) ; | ||
371 | + sp:where ([ sp:object | ||
372 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
557 | ] ; | 373 | ] ; |
558 | - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | 374 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
375 | + sp:subject spin:_this | ||
376 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | ||
377 | + sp:predicate rdf:type ; | ||
559 | sp:subject | 378 | sp:subject |
560 | - [ sp:varName "fluidSampleRef"^^xsd:string | 379 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
561 | ] | 380 | ] |
562 | - ] [ rdf:type sp:Bind ; | 381 | + ] [ sp:object |
563 | - sp:expression | 382 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
564 | - [ rdf:type ep-mpr-spin-lib:buildSampledFluidURI ; | ||
565 | - sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
566 | - ] ; | ||
567 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
568 | - ] ; | ||
569 | - sp:arg3 [ sp:varName "name"^^xsd:string | ||
570 | - ] | ||
571 | ] ; | 383 | ] ; |
572 | - sp:variable | 384 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
385 | + sp:subject | ||
573 | [ sp:varName "sampledFluid"^^xsd:string | 386 | [ sp:varName "sampledFluid"^^xsd:string |
574 | ] | 387 | ] |
388 | + ] [ rdf:type sp:Exists ; | ||
389 | + sp:elements ([ sp:object | ||
390 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
391 | + ] ; | ||
392 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
393 | + sp:subject | ||
394 | + [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
395 | + ] | ||
396 | + ] [ sp:object | ||
397 | + [ sp:varName "weightPercentRef"^^xsd:string | ||
398 | + ] ; | ||
399 | + sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ; | ||
400 | + sp:subject | ||
401 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
402 | + ] | ||
403 | + ]) | ||
575 | ]) | 404 | ]) |
576 | ] ; | 405 | ] ; |
577 | spin:rule | 406 | spin:rule |
578 | [ rdf:type sp:Construct ; | 407 | [ rdf:type sp:Construct ; |
579 | - rdfs:comment """STEP 40011c Specify the fluid component - non-primary component - label not found, so new substance type created | 408 | + rdfs:comment """STEP 40011b Specify the fluid component - non-primary component - label found |
580 | The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; | 409 | The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; |
581 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; | 410 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; |
582 | sp:predicate rdf:type ; | 411 | sp:predicate rdf:type ; |
... | @@ -592,22 +421,10 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -592,22 +421,10 @@ The componentName element is used differently in the examples for the primary an |
592 | sp:predicate rdf:type ; | 421 | sp:predicate rdf:type ; |
593 | sp:subject _:b6 | 422 | sp:subject _:b6 |
594 | ] [ sp:object | 423 | ] [ sp:object |
595 | - [ sp:varName "substanceType"^^xsd:string | 424 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string |
596 | ] ; | 425 | ] ; |
597 | sp:predicate rdf:type ; | 426 | sp:predicate rdf:type ; |
598 | sp:subject _:b6 | 427 | sp:subject _:b6 |
599 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; | ||
600 | - sp:predicate rdf:type ; | ||
601 | - sp:subject | ||
602 | - [ sp:varName "substanceType"^^xsd:string | ||
603 | - ] | ||
604 | - ] [ sp:object | ||
605 | - [ sp:varName "name"^^xsd:string | ||
606 | - ] ; | ||
607 | - sp:predicate rdfs:label ; | ||
608 | - sp:subject | ||
609 | - [ sp:varName "substanceType"^^xsd:string | ||
610 | - ] | ||
611 | ] [ sp:object | 428 | ] [ sp:object |
612 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 429 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
613 | ] ; | 430 | ] ; |
... | @@ -650,20 +467,18 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -650,20 +467,18 @@ The componentName element is used differently in the examples for the primary an |
650 | sp:subject | 467 | sp:subject |
651 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 468 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
652 | ] | 469 | ] |
653 | - ] [ rdf:type sp:NotExists ; | 470 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; |
654 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; | 471 | + sp:predicate rdf:type ; |
655 | - sp:predicate rdf:type ; | 472 | + sp:subject |
656 | - sp:subject | 473 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string |
657 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | 474 | + ] |
658 | - ] | 475 | + ] [ sp:object |
659 | - ] [ sp:object | 476 | + [ sp:varName "name"^^xsd:string |
660 | - [ sp:varName "name"^^xsd:string | 477 | + ] ; |
661 | - ] ; | 478 | + sp:predicate rdfs:label ; |
662 | - sp:predicate rdfs:label ; | 479 | + sp:subject |
663 | - sp:subject | 480 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string |
664 | - [ sp:varName "fluidSubstanceKindType"^^xsd:string | 481 | + ] |
665 | - ] | ||
666 | - ]) | ||
667 | ] [ rdf:type sp:Optional ; | 482 | ] [ rdf:type sp:Optional ; |
668 | sp:elements ([ sp:object | 483 | sp:elements ([ sp:object |
669 | [ sp:varName "componentKindRef"^^xsd:string | 484 | [ sp:varName "componentKindRef"^^xsd:string |
... | @@ -682,62 +497,311 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -682,62 +497,311 @@ The componentName element is used differently in the examples for the primary an |
682 | sp:variable | 497 | sp:variable |
683 | [ sp:varName "fluidComponentKindType"^^xsd:string | 498 | [ sp:varName "fluidComponentKindType"^^xsd:string |
684 | ] | 499 | ] |
685 | - ] [ rdf:type sp:Bind ; | ||
686 | - sp:expression | ||
687 | - [ rdf:type ep-mpr-spin-lib:buildSubstanceTypeURI ; | ||
688 | - sp:arg1 [ sp:varName "name"^^xsd:string | ||
689 | - ] | ||
690 | - ] ; | ||
691 | - sp:variable | ||
692 | - [ sp:varName "substanceType"^^xsd:string | ||
693 | - ] | ||
694 | ]) | 500 | ]) |
695 | ] ; | 501 | ] ; |
696 | spin:rule | 502 | spin:rule |
697 | [ rdf:type sp:Construct ; | 503 | [ rdf:type sp:Construct ; |
698 | - rdfs:comment "STEP 40003b Set the date for the sample of fluid - from report date if not"^^xsd:string ; | 504 | + rdfs:comment "STEP 40011e Specify the mole of the fluid component if necessary"^^xsd:string ; |
699 | - sp:templates ([ sp:object | 505 | + sp:templates ([ sp:object _:b7 ; |
700 | - [ sp:varName "intervalIdentifier"^^xsd:string | 506 | + sp:predicate rdf:type ; |
701 | - ] ; | ||
702 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; | ||
703 | sp:subject | 507 | sp:subject |
704 | - [ sp:varName "fluidSampleRef"^^xsd:string | 508 | + [ sp:varName "fluidComponent"^^xsd:string |
705 | ] | 509 | ] |
510 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ; | ||
511 | + sp:predicate rdf:type ; | ||
512 | + sp:subject _:b7 | ||
706 | ]) ; | 513 | ]) ; |
707 | sp:where ([ sp:object | 514 | sp:where ([ sp:object |
708 | - [ sp:varName "fluidSampleRef"^^xsd:string | 515 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
709 | ] ; | 516 | ] ; |
710 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 517 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
711 | sp:subject spin:_this | 518 | sp:subject spin:_this |
519 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | ||
520 | + sp:predicate rdf:type ; | ||
521 | + sp:subject | ||
522 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
523 | + ] | ||
712 | ] [ sp:object | 524 | ] [ sp:object |
713 | - [ sp:varName "intervalIdentifier"^^xsd:string | 525 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
714 | ] ; | 526 | ] ; |
715 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 527 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; |
716 | - sp:subject spin:_this | ||
717 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; | ||
718 | - sp:predicate rdf:type ; | ||
719 | sp:subject | 528 | sp:subject |
720 | - [ sp:varName "fluidSampleRef"^^xsd:string | 529 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
721 | ] | 530 | ] |
722 | - ] [ rdf:type sp:NotExists ; | 531 | + ] [ sp:object |
532 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
533 | + ] ; | ||
534 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
535 | + sp:subject | ||
536 | + [ sp:varName "fluidComponent"^^xsd:string | ||
537 | + ] | ||
538 | + ] [ rdf:type sp:Exists ; | ||
723 | sp:elements ([ sp:object | 539 | sp:elements ([ sp:object |
724 | - [ sp:varName "acquisitionDate"^^xsd:string | 540 | + [ sp:varName "molePercentRef"^^xsd:string |
725 | ] ; | 541 | ] ; |
726 | - sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; | 542 | + sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ; |
727 | sp:subject | 543 | sp:subject |
728 | - [ sp:varName "fluidSampleRef"^^xsd:string | 544 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
729 | ] | 545 | ] |
730 | ]) | 546 | ]) |
731 | ]) | 547 | ]) |
732 | ] ; | 548 | ] ; |
733 | spin:rule | 549 | spin:rule |
734 | [ rdf:type sp:Construct ; | 550 | [ rdf:type sp:Construct ; |
735 | - rdfs:comment "STEP 40004 Set the valid from and valid to for the report."^^xsd:string ; | 551 | + rdfs:comment """STEP 40003e Create the Sample of fluid. |
736 | - sp:templates ([ sp:object | 552 | +It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ; |
737 | - [ sp:varName "validFrom"^^xsd:string | 553 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; |
738 | - ] ; | 554 | + sp:predicate rdf:type ; |
739 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#validFrom> ; | 555 | + sp:subject |
740 | - sp:subject | 556 | + [ sp:varName "sampledFluid"^^xsd:string |
557 | + ] | ||
558 | + ] [ sp:object | ||
559 | + [ sp:varName "name"^^xsd:string | ||
560 | + ] ; | ||
561 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
562 | + sp:subject | ||
563 | + [ sp:varName "sampledFluid"^^xsd:string | ||
564 | + ] | ||
565 | + ] [ sp:object | ||
566 | + [ sp:varName "sampledFluid"^^xsd:string | ||
567 | + ] ; | ||
568 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ; | ||
569 | + sp:subject | ||
570 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
571 | + ] | ||
572 | + ]) ; | ||
573 | + sp:where ([ sp:object | ||
574 | + [ sp:varName "fluidSampleRef"^^xsd:string | ||
575 | + ] ; | ||
576 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
577 | + sp:subject spin:_this | ||
578 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; | ||
579 | + sp:predicate rdf:type ; | ||
580 | + sp:subject | ||
581 | + [ sp:varName "fluidSampleRef"^^xsd:string | ||
582 | + ] | ||
583 | + ] [ sp:object | ||
584 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
585 | + ] ; | ||
586 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
587 | + sp:subject spin:_this | ||
588 | + ] [ sp:object | ||
589 | + [ sp:varName "time"^^xsd:string | ||
590 | + ] ; | ||
591 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; | ||
592 | + sp:subject | ||
593 | + [ sp:varName "fluidSampleRef"^^xsd:string | ||
594 | + ] | ||
595 | + ] [ sp:object | ||
596 | + [ sp:varName "normalizedFacilityName"^^xsd:string | ||
597 | + ] ; | ||
598 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; | ||
599 | + sp:subject | ||
600 | + [ sp:varName "fluidSampleRef"^^xsd:string | ||
601 | + ] | ||
602 | + ] [ sp:object | ||
603 | + [ sp:varName "fluidSampleRef"^^xsd:string | ||
604 | + ] ; | ||
605 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
606 | + sp:subject | ||
607 | + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string | ||
608 | + ] | ||
609 | + ] [ sp:object | ||
610 | + [ sp:varName "name"^^xsd:string | ||
611 | + ] ; | ||
612 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
613 | + sp:subject | ||
614 | + [ sp:varName "fluidSampleRef"^^xsd:string | ||
615 | + ] | ||
616 | + ] [ rdf:type sp:Bind ; | ||
617 | + sp:expression | ||
618 | + [ rdf:type ep-mpr-spin-lib:buildSampledFluidURI ; | ||
619 | + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
620 | + ] ; | ||
621 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
622 | + ] ; | ||
623 | + sp:arg3 [ sp:varName "name"^^xsd:string | ||
624 | + ] | ||
625 | + ] ; | ||
626 | + sp:variable | ||
627 | + [ sp:varName "sampledFluid"^^xsd:string | ||
628 | + ] | ||
629 | + ]) | ||
630 | + ] ; | ||
631 | + spin:rule | ||
632 | + [ rdf:type sp:Construct ; | ||
633 | + rdfs:comment "STEP 40010b Create the mole of the sample of fluid if necessary"^^xsd:string ; | ||
634 | + sp:templates ([ sp:object _:b8 ; | ||
635 | + sp:predicate rdf:type ; | ||
636 | + sp:subject | ||
637 | + [ sp:varName "sampledFluid"^^xsd:string | ||
638 | + ] | ||
639 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ; | ||
640 | + sp:predicate rdf:type ; | ||
641 | + sp:subject _:b8 | ||
642 | + ]) ; | ||
643 | + sp:where ([ sp:object | ||
644 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
645 | + ] ; | ||
646 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
647 | + sp:subject spin:_this | ||
648 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | ||
649 | + sp:predicate rdf:type ; | ||
650 | + sp:subject | ||
651 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
652 | + ] | ||
653 | + ] [ sp:object | ||
654 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
655 | + ] ; | ||
656 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
657 | + sp:subject | ||
658 | + [ sp:varName "sampledFluid"^^xsd:string | ||
659 | + ] | ||
660 | + ] [ rdf:type sp:Exists ; | ||
661 | + sp:elements ([ sp:object | ||
662 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
663 | + ] ; | ||
664 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
665 | + sp:subject | ||
666 | + [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
667 | + ] | ||
668 | + ] [ sp:object | ||
669 | + [ sp:varName "molePercentRef"^^xsd:string | ||
670 | + ] ; | ||
671 | + sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ; | ||
672 | + sp:subject | ||
673 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
674 | + ] | ||
675 | + ]) | ||
676 | + ]) | ||
677 | + ] ; | ||
678 | + spin:rule | ||
679 | + [ rdf:type sp:Construct ; | ||
680 | + rdfs:comment """STEP 40011c Specify the fluid component - non-primary component - label not found, so new substance type created | ||
681 | +The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; | ||
682 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; | ||
683 | + sp:predicate rdf:type ; | ||
684 | + sp:subject _:b9 | ||
685 | + ] [ sp:object _:b9 ; | ||
686 | + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ; | ||
687 | + sp:subject | ||
688 | + [ sp:varName "sampledFluid"^^xsd:string | ||
689 | + ] | ||
690 | + ] [ sp:object | ||
691 | + [ sp:varName "fluidComponentKindType"^^xsd:string | ||
692 | + ] ; | ||
693 | + sp:predicate rdf:type ; | ||
694 | + sp:subject _:b9 | ||
695 | + ] [ sp:object | ||
696 | + [ sp:varName "substanceType"^^xsd:string | ||
697 | + ] ; | ||
698 | + sp:predicate rdf:type ; | ||
699 | + sp:subject _:b9 | ||
700 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; | ||
701 | + sp:predicate rdf:type ; | ||
702 | + sp:subject | ||
703 | + [ sp:varName "substanceType"^^xsd:string | ||
704 | + ] | ||
705 | + ] [ sp:object | ||
706 | + [ sp:varName "name"^^xsd:string | ||
707 | + ] ; | ||
708 | + sp:predicate rdfs:label ; | ||
709 | + sp:subject | ||
710 | + [ sp:varName "substanceType"^^xsd:string | ||
711 | + ] | ||
712 | + ] [ sp:object | ||
713 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
714 | + ] ; | ||
715 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
716 | + sp:subject _:b9 | ||
717 | + ]) ; | ||
718 | + sp:where ([ sp:object | ||
719 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
720 | + ] ; | ||
721 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
722 | + sp:subject spin:_this | ||
723 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; | ||
724 | + sp:predicate rdf:type ; | ||
725 | + sp:subject | ||
726 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
727 | + ] | ||
728 | + ] [ sp:object | ||
729 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
730 | + ] ; | ||
731 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
732 | + sp:subject | ||
733 | + [ sp:varName "sampledFluid"^^xsd:string | ||
734 | + ] | ||
735 | + ] [ sp:object | ||
736 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
737 | + ] ; | ||
738 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
739 | + sp:subject | ||
740 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
741 | + ] | ||
742 | + ] [ sp:object "false"^^xsd:boolean ; | ||
743 | + sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; | ||
744 | + sp:subject | ||
745 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
746 | + ] | ||
747 | + ] [ sp:object | ||
748 | + [ sp:varName "name"^^xsd:string | ||
749 | + ] ; | ||
750 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ; | ||
751 | + sp:subject | ||
752 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
753 | + ] | ||
754 | + ] [ rdf:type sp:NotExists ; | ||
755 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; | ||
756 | + sp:predicate rdf:type ; | ||
757 | + sp:subject | ||
758 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
759 | + ] | ||
760 | + ] [ sp:object | ||
761 | + [ sp:varName "name"^^xsd:string | ||
762 | + ] ; | ||
763 | + sp:predicate rdfs:label ; | ||
764 | + sp:subject | ||
765 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
766 | + ] | ||
767 | + ]) | ||
768 | + ] [ rdf:type sp:Optional ; | ||
769 | + sp:elements ([ sp:object | ||
770 | + [ sp:varName "componentKindRef"^^xsd:string | ||
771 | + ] ; | ||
772 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ; | ||
773 | + sp:subject | ||
774 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
775 | + ] | ||
776 | + ]) | ||
777 | + ] [ rdf:type sp:Bind ; | ||
778 | + sp:expression | ||
779 | + [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ; | ||
780 | + sp:arg1 [ sp:varName "componentKindRef"^^xsd:string | ||
781 | + ] | ||
782 | + ] ; | ||
783 | + sp:variable | ||
784 | + [ sp:varName "fluidComponentKindType"^^xsd:string | ||
785 | + ] | ||
786 | + ] [ rdf:type sp:Bind ; | ||
787 | + sp:expression | ||
788 | + [ rdf:type ep-mpr-spin-lib:buildSubstanceTypeURI ; | ||
789 | + sp:arg1 [ sp:varName "name"^^xsd:string | ||
790 | + ] | ||
791 | + ] ; | ||
792 | + sp:variable | ||
793 | + [ sp:varName "substanceType"^^xsd:string | ||
794 | + ] | ||
795 | + ]) | ||
796 | + ] ; | ||
797 | + spin:rule | ||
798 | + [ rdf:type sp:Construct ; | ||
799 | + rdfs:comment "STEP 40004 Set the valid from and valid to for the report."^^xsd:string ; | ||
800 | + sp:templates ([ sp:object | ||
801 | + [ sp:varName "validFrom"^^xsd:string | ||
802 | + ] ; | ||
803 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#validFrom> ; | ||
804 | + sp:subject | ||
741 | [ sp:varName "fluidSampleReport"^^xsd:string | 805 | [ sp:varName "fluidSampleReport"^^xsd:string |
742 | ] | 806 | ] |
743 | ] [ sp:object | 807 | ] [ sp:object |
... | @@ -904,31 +968,115 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -904,31 +968,115 @@ The componentName element is used differently in the examples for the primary an |
904 | ] ; | 968 | ] ; |
905 | spin:rule | 969 | spin:rule |
906 | [ rdf:type sp:Construct ; | 970 | [ rdf:type sp:Construct ; |
907 | - rdfs:comment "STEP 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ; | 971 | + rdfs:comment """STEP 40011a Specify the fluid component - primary component. |
908 | - sp:templates ([ sp:object | 972 | +The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; |
909 | - [ sp:varName "acquisitionDate"^^xsd:string | 973 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; |
910 | - ] ; | 974 | + sp:predicate rdf:type ; |
911 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; | 975 | + sp:subject _:b10 |
912 | - sp:subject | 976 | + ] [ sp:object _:b10 ; |
913 | - [ sp:varName "fluidSampleRef"^^xsd:string | 977 | + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ; |
914 | - ] | 978 | + sp:subject |
915 | - ]) ; | 979 | + [ sp:varName "sampledFluid"^^xsd:string |
980 | + ] | ||
981 | + ] [ sp:object | ||
982 | + [ sp:varName "fluidPhaseType"^^xsd:string | ||
983 | + ] ; | ||
984 | + sp:predicate rdf:type ; | ||
985 | + sp:subject _:b10 | ||
986 | + ] [ sp:object | ||
987 | + [ sp:varName "fluidComponentKindType"^^xsd:string | ||
988 | + ] ; | ||
989 | + sp:predicate rdf:type ; | ||
990 | + sp:subject _:b10 | ||
991 | + ] [ sp:object | ||
992 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
993 | + ] ; | ||
994 | + sp:predicate rdf:type ; | ||
995 | + sp:subject _:b10 | ||
996 | + ] [ sp:object | ||
997 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
998 | + ] ; | ||
999 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1000 | + sp:subject _:b10 | ||
1001 | + ]) ; | ||
916 | sp:where ([ sp:object | 1002 | sp:where ([ sp:object |
917 | - [ sp:varName "fluidSampleRef"^^xsd:string | 1003 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
918 | ] ; | 1004 | ] ; |
919 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 1005 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
920 | sp:subject spin:_this | 1006 | sp:subject spin:_this |
921 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; | 1007 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; |
922 | sp:predicate rdf:type ; | 1008 | sp:predicate rdf:type ; |
923 | sp:subject | 1009 | sp:subject |
924 | - [ sp:varName "fluidSampleRef"^^xsd:string | 1010 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
925 | ] | 1011 | ] |
926 | ] [ sp:object | 1012 | ] [ sp:object |
927 | - [ sp:varName "acquisitionDate"^^xsd:string | 1013 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string |
928 | ] ; | 1014 | ] ; |
929 | - sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; | 1015 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
930 | sp:subject | 1016 | sp:subject |
931 | - [ sp:varName "fluidSampleRef"^^xsd:string | 1017 | + [ sp:varName "sampledFluid"^^xsd:string |
1018 | + ] | ||
1019 | + ] [ sp:object | ||
1020 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1021 | + ] ; | ||
1022 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
1023 | + sp:subject | ||
1024 | + [ sp:varName "fluidAnalysisResultRef"^^xsd:string | ||
1025 | + ] | ||
1026 | + ] [ sp:object "true"^^xsd:boolean ; | ||
1027 | + sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; | ||
1028 | + sp:subject | ||
1029 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1030 | + ] | ||
1031 | + ] [ sp:object | ||
1032 | + [ sp:varName "name"^^xsd:string | ||
1033 | + ] ; | ||
1034 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ; | ||
1035 | + sp:subject | ||
1036 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1037 | + ] | ||
1038 | + ] [ rdf:type sp:Optional ; | ||
1039 | + sp:elements ([ sp:object | ||
1040 | + [ sp:varName "componentBaseKindRef"^^xsd:string | ||
1041 | + ] ; | ||
1042 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ; | ||
1043 | + sp:subject | ||
1044 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1045 | + ] | ||
1046 | + ] [ sp:object | ||
1047 | + [ sp:varName "componentBaseKindRef"^^xsd:string | ||
1048 | + ] ; | ||
1049 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ; | ||
1050 | + sp:subject | ||
1051 | + [ sp:varName "fluidSubstanceKindType"^^xsd:string | ||
1052 | + ] | ||
1053 | + ]) | ||
1054 | + ] [ rdf:type sp:Optional ; | ||
1055 | + sp:elements ([ sp:object | ||
1056 | + [ sp:varName "componentKindRef"^^xsd:string | ||
1057 | + ] ; | ||
1058 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ; | ||
1059 | + sp:subject | ||
1060 | + [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1061 | + ] | ||
1062 | + ]) | ||
1063 | + ] [ rdf:type sp:Bind ; | ||
1064 | + sp:expression | ||
1065 | + [ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ; | ||
1066 | + sp:arg1 [ sp:varName "name"^^xsd:string | ||
1067 | + ] | ||
1068 | + ] ; | ||
1069 | + sp:variable | ||
1070 | + [ sp:varName "fluidPhaseType"^^xsd:string | ||
1071 | + ] | ||
1072 | + ] [ rdf:type sp:Bind ; | ||
1073 | + sp:expression | ||
1074 | + [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ; | ||
1075 | + sp:arg1 [ sp:varName "componentKindRef"^^xsd:string | ||
1076 | + ] | ||
1077 | + ] ; | ||
1078 | + sp:variable | ||
1079 | + [ sp:varName "fluidComponentKindType"^^xsd:string | ||
932 | ] | 1080 | ] |
933 | ]) | 1081 | ]) |
934 | ] ; | 1082 | ] ; |
... | @@ -968,85 +1116,78 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -968,85 +1116,78 @@ The componentName element is used differently in the examples for the primary an |
968 | ] | 1116 | ] |
969 | ]) | 1117 | ]) |
970 | ]) | 1118 | ]) |
971 | - ] . | 1119 | + ] ; |
972 | - | ||
973 | -<http://www.epim.no/schemas/mprml/1#MassConcentrationMeasurePercent> | ||
974 | spin:rule | 1120 | spin:rule |
975 | [ rdf:type sp:Construct ; | 1121 | [ rdf:type sp:Construct ; |
976 | - rdfs:comment "STEP 40091b Set the mass of component if necessary"^^xsd:string ; | 1122 | + rdfs:comment "STEP 40003c Set the facility for the sample of fluid - from sampling facility if possible"^^xsd:string ; |
977 | - sp:templates ([ sp:object _:b7 ; | 1123 | + sp:templates ([ sp:object |
978 | - sp:predicate rdf:type ; | 1124 | + [ sp:varName "normalizedFacilityName"^^xsd:string |
1125 | + ] ; | ||
1126 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; | ||
979 | sp:subject | 1127 | sp:subject |
980 | - [ sp:varName "component"^^xsd:string | 1128 | + [ sp:varName "fluidSampleRef"^^xsd:string |
981 | ] | 1129 | ] |
982 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
983 | - sp:predicate rdf:type ; | ||
984 | - sp:subject _:b7 | ||
985 | ]) ; | 1130 | ]) ; |
986 | sp:where ([ sp:object | 1131 | sp:where ([ sp:object |
987 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 1132 | + [ sp:varName "fluidSampleRef"^^xsd:string |
988 | ] ; | 1133 | ] ; |
989 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | 1134 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
990 | - sp:subject | 1135 | + sp:subject spin:_this |
991 | - [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | 1136 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; |
992 | - ] | 1137 | + sp:predicate rdf:type ; |
993 | - ] [ sp:object spin:_this ; | ||
994 | - sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ; | ||
995 | sp:subject | 1138 | sp:subject |
996 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 1139 | + [ sp:varName "fluidSampleRef"^^xsd:string |
997 | ] | 1140 | ] |
998 | ] [ sp:object | 1141 | ] [ sp:object |
999 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 1142 | + [ sp:varName "facilityRef"^^xsd:string |
1000 | ] ; | 1143 | ] ; |
1001 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1144 | + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; |
1002 | sp:subject | 1145 | sp:subject |
1003 | - [ sp:varName "component"^^xsd:string | 1146 | + [ sp:varName "fluidSampleRef"^^xsd:string |
1147 | + ] | ||
1148 | + ] [ rdf:type sp:Bind ; | ||
1149 | + sp:expression | ||
1150 | + [ rdf:type spl:object ; | ||
1151 | + sp:arg1 [ sp:varName "facilityRef"^^xsd:string | ||
1152 | + ] ; | ||
1153 | + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
1154 | + ] ; | ||
1155 | + sp:variable | ||
1156 | + [ sp:varName "normalizedFacilityName"^^xsd:string | ||
1004 | ] | 1157 | ] |
1005 | - ] [ rdf:type sp:NotExists ; | ||
1006 | - sp:elements ([ sp:object | ||
1007 | - [ sp:varName "massOfComponent"^^xsd:string | ||
1008 | - ] ; | ||
1009 | - sp:predicate rdf:type ; | ||
1010 | - sp:subject | ||
1011 | - [ sp:varName "component"^^xsd:string | ||
1012 | - ] | ||
1013 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
1014 | - sp:predicate rdf:type ; | ||
1015 | - sp:subject | ||
1016 | - [ sp:varName "massOfComponent"^^xsd:string | ||
1017 | - ] | ||
1018 | - ]) | ||
1019 | ]) | 1158 | ]) |
1020 | - ] ; | 1159 | + ] . |
1160 | + | ||
1161 | +<http://www.epim.no/schemas/mprml/1#MassConcentrationMeasurePercent> | ||
1021 | spin:rule | 1162 | spin:rule |
1022 | [ rdf:type sp:Construct ; | 1163 | [ rdf:type sp:Construct ; |
1023 | - rdfs:comment "STEP 40091c Set the mass ratio for the pair."^^xsd:string ; | 1164 | + rdfs:comment "STEP 40091 Set the mass ratio for the pair."^^xsd:string ; |
1024 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MassPair> ; | 1165 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MassPair> ; |
1025 | sp:predicate rdf:type ; | 1166 | sp:predicate rdf:type ; |
1026 | - sp:subject _:b8 | 1167 | + sp:subject _:b11 |
1027 | ] [ sp:object | 1168 | ] [ sp:object |
1028 | [ sp:varName "massOfComponent"^^xsd:string | 1169 | [ sp:varName "massOfComponent"^^xsd:string |
1029 | ] ; | 1170 | ] ; |
1030 | sp:predicate <http://www.reportinghub.no/ep/schema/core#firstOfPair> ; | 1171 | sp:predicate <http://www.reportinghub.no/ep/schema/core#firstOfPair> ; |
1031 | - sp:subject _:b8 | 1172 | + sp:subject _:b11 |
1032 | ] [ sp:object | 1173 | ] [ sp:object |
1033 | [ sp:varName "massOfWhole"^^xsd:string | 1174 | [ sp:varName "massOfWhole"^^xsd:string |
1034 | ] ; | 1175 | ] ; |
1035 | sp:predicate <http://www.reportinghub.no/ep/schema/core#secondOfPair> ; | 1176 | sp:predicate <http://www.reportinghub.no/ep/schema/core#secondOfPair> ; |
1036 | - sp:subject _:b8 | 1177 | + sp:subject _:b11 |
1037 | - ] [ sp:object _:b9 ; | 1178 | + ] [ sp:object _:b12 ; |
1038 | sp:predicate <http://www.reportinghub.no/ep/schema/core#divide> ; | 1179 | sp:predicate <http://www.reportinghub.no/ep/schema/core#divide> ; |
1039 | - sp:subject _:b8 | 1180 | + sp:subject _:b11 |
1040 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ; | 1181 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ; |
1041 | sp:predicate rdf:type ; | 1182 | sp:predicate rdf:type ; |
1042 | - sp:subject _:b9 | 1183 | + sp:subject _:b12 |
1043 | ] [ sp:object | 1184 | ] [ sp:object |
1044 | [ sp:varName "realWeightPercent"^^xsd:string | 1185 | [ sp:varName "realWeightPercent"^^xsd:string |
1045 | ] ; | 1186 | ] ; |
1046 | sp:predicate | 1187 | sp:predicate |
1047 | [ sp:varName "weightPercentScale"^^xsd:string | 1188 | [ sp:varName "weightPercentScale"^^xsd:string |
1048 | ] ; | 1189 | ] ; |
1049 | - sp:subject _:b9 | 1190 | + sp:subject _:b12 |
1050 | ]) ; | 1191 | ]) ; |
1051 | sp:where ([ sp:object | 1192 | sp:where ([ sp:object |
1052 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string | 1193 | [ sp:varName "fluidSampleCompositionRef"^^xsd:string |
... | @@ -1118,153 +1259,12 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -1118,153 +1259,12 @@ The componentName element is used differently in the examples for the primary an |
1118 | [ sp:varName "weightPercentScale"^^xsd:string | 1259 | [ sp:varName "weightPercentScale"^^xsd:string |
1119 | ] | 1260 | ] |
1120 | ]) | 1261 | ]) |
1121 | - ] ; | ||
1122 | - spin:rule | ||
1123 | - [ rdf:type sp:Construct ; | ||
1124 | - rdfs:comment "STEP 40091a Set the mass of whole if necessary"^^xsd:string ; | ||
1125 | - sp:templates ([ sp:object _:b10 ; | ||
1126 | - sp:predicate rdf:type ; | ||
1127 | - sp:subject | ||
1128 | - [ sp:varName "whole"^^xsd:string | ||
1129 | - ] | ||
1130 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
1131 | - sp:predicate rdf:type ; | ||
1132 | - sp:subject _:b10 | ||
1133 | - ]) ; | ||
1134 | - sp:where ([ sp:object | ||
1135 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1136 | - ] ; | ||
1137 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
1138 | - sp:subject | ||
1139 | - [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
1140 | - ] | ||
1141 | - ] [ sp:object spin:_this ; | ||
1142 | - sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ; | ||
1143 | - sp:subject | ||
1144 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1145 | - ] | ||
1146 | - ] [ sp:object | ||
1147 | - [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
1148 | - ] ; | ||
1149 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1150 | - sp:subject | ||
1151 | - [ sp:varName "whole"^^xsd:string | ||
1152 | - ] | ||
1153 | - ] [ rdf:type sp:NotExists ; | ||
1154 | - sp:elements ([ sp:object | ||
1155 | - [ sp:varName "massOfWhole"^^xsd:string | ||
1156 | - ] ; | ||
1157 | - sp:predicate rdf:type ; | ||
1158 | - sp:subject | ||
1159 | - [ sp:varName "whole"^^xsd:string | ||
1160 | - ] | ||
1161 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
1162 | - sp:predicate rdf:type ; | ||
1163 | - sp:subject | ||
1164 | - [ sp:varName "massOfWhole"^^xsd:string | ||
1165 | - ] | ||
1166 | - ]) | ||
1167 | - ]) | ||
1168 | ] . | 1262 | ] . |
1169 | 1263 | ||
1170 | <http://www.epim.no/schemas/mprml/1#MolarFractionMeasurePercent> | 1264 | <http://www.epim.no/schemas/mprml/1#MolarFractionMeasurePercent> |
1171 | spin:rule | 1265 | spin:rule |
1172 | [ rdf:type sp:Construct ; | 1266 | [ rdf:type sp:Construct ; |
1173 | - rdfs:comment "STEP 40092b Set the mole of the component if necessary"^^xsd:string ; | 1267 | + rdfs:comment "STEP 40092 Set the mole ratio for the pair."^^xsd:string ; |
1174 | - sp:templates ([ sp:object _:b11 ; | ||
1175 | - sp:predicate rdf:type ; | ||
1176 | - sp:subject | ||
1177 | - [ sp:varName "component"^^xsd:string | ||
1178 | - ] | ||
1179 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ; | ||
1180 | - sp:predicate rdf:type ; | ||
1181 | - sp:subject _:b11 | ||
1182 | - ]) ; | ||
1183 | - sp:where ([ sp:object | ||
1184 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1185 | - ] ; | ||
1186 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
1187 | - sp:subject | ||
1188 | - [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
1189 | - ] | ||
1190 | - ] [ sp:object spin:_this ; | ||
1191 | - sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ; | ||
1192 | - sp:subject | ||
1193 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1194 | - ] | ||
1195 | - ] [ sp:object | ||
1196 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1197 | - ] ; | ||
1198 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1199 | - sp:subject | ||
1200 | - [ sp:varName "component"^^xsd:string | ||
1201 | - ] | ||
1202 | - ] [ rdf:type sp:NotExists ; | ||
1203 | - sp:elements ([ sp:object | ||
1204 | - [ sp:varName "moleOfComponent"^^xsd:string | ||
1205 | - ] ; | ||
1206 | - sp:predicate rdf:type ; | ||
1207 | - sp:subject | ||
1208 | - [ sp:varName "component"^^xsd:string | ||
1209 | - ] | ||
1210 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ; | ||
1211 | - sp:predicate rdf:type ; | ||
1212 | - sp:subject | ||
1213 | - [ sp:varName "moleOfComponent"^^xsd:string | ||
1214 | - ] | ||
1215 | - ]) | ||
1216 | - ]) | ||
1217 | - ] ; | ||
1218 | - spin:rule | ||
1219 | - [ rdf:type sp:Construct ; | ||
1220 | - rdfs:comment "STEP 40092a Set the mole of the sample if necessary"^^xsd:string ; | ||
1221 | - sp:templates ([ sp:object _:b12 ; | ||
1222 | - sp:predicate rdf:type ; | ||
1223 | - sp:subject | ||
1224 | - [ sp:varName "whole"^^xsd:string | ||
1225 | - ] | ||
1226 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ; | ||
1227 | - sp:predicate rdf:type ; | ||
1228 | - sp:subject _:b12 | ||
1229 | - ]) ; | ||
1230 | - sp:where ([ sp:object | ||
1231 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1232 | - ] ; | ||
1233 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ; | ||
1234 | - sp:subject | ||
1235 | - [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
1236 | - ] | ||
1237 | - ] [ sp:object spin:_this ; | ||
1238 | - sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ; | ||
1239 | - sp:subject | ||
1240 | - [ sp:varName "fluidSampleCompositionRef"^^xsd:string | ||
1241 | - ] | ||
1242 | - ] [ sp:object | ||
1243 | - [ sp:varName "fluidAnalysisResultsRef"^^xsd:string | ||
1244 | - ] ; | ||
1245 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1246 | - sp:subject | ||
1247 | - [ sp:varName "whole"^^xsd:string | ||
1248 | - ] | ||
1249 | - ] [ rdf:type sp:NotExists ; | ||
1250 | - sp:elements ([ sp:object | ||
1251 | - [ sp:varName "moleOfWhole"^^xsd:string | ||
1252 | - ] ; | ||
1253 | - sp:predicate rdf:type ; | ||
1254 | - sp:subject | ||
1255 | - [ sp:varName "whole"^^xsd:string | ||
1256 | - ] | ||
1257 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ; | ||
1258 | - sp:predicate rdf:type ; | ||
1259 | - sp:subject | ||
1260 | - [ sp:varName "moleOfWhole"^^xsd:string | ||
1261 | - ] | ||
1262 | - ]) | ||
1263 | - ]) | ||
1264 | - ] ; | ||
1265 | - spin:rule | ||
1266 | - [ rdf:type sp:Construct ; | ||
1267 | - rdfs:comment "STEP 40092c Set the mole ratio for the pair."^^xsd:string ; | ||
1268 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MolePair> ; | 1268 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MolePair> ; |
1269 | sp:predicate rdf:type ; | 1269 | sp:predicate rdf:type ; |
1270 | sp:subject _:b13 | 1270 | sp:subject _:b13 |
... | @@ -1366,5 +1366,5 @@ The componentName element is used differently in the examples for the primary an | ... | @@ -1366,5 +1366,5 @@ The componentName element is used differently in the examples for the primary an |
1366 | 1366 | ||
1367 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> | 1367 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> |
1368 | rdf:type owl:Ontology ; | 1368 | rdf:type owl:Ontology ; |
1369 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/material-class-maps-to-mpr-enumeration> , <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> ; | 1369 | + 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> , <http://www.reportinghub.no/ep/schema/1.0/material-class-maps-to-mpr-enumeration> ; |
1370 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1370 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment