David Leal

Merge branch 'MPR_09-20'

...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
22 22
23 <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> 23 <http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
24 rdf:type owl:Ontology ; 24 rdf:type owl:Ontology ;
25 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> ; 25 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://spinrdf.org/spin> ;
26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
27 27
28 ep-mpr-spin-lib:Function 28 ep-mpr-spin-lib:Function
...@@ -135,7 +135,7 @@ ep-mpr-spin-lib:buildSampledFluidURI ...@@ -135,7 +135,7 @@ ep-mpr-spin-lib:buildSampledFluidURI
135 spin:body 135 spin:body
136 [ rdf:type sp:Select ; 136 [ rdf:type sp:Select ;
137 rdfs:comment """arg1 is the name of the installation 137 rdfs:comment """arg1 is the name of the installation
138 -arg2 is the nominal time 138 +arg2 is the report interval identifier
139 arg3 is the name of the sample"""^^xsd:string ; 139 arg3 is the name of the sample"""^^xsd:string ;
140 sp:resultVariables ([ sp:varName "uri"^^xsd:string 140 sp:resultVariables ([ sp:varName "uri"^^xsd:string
141 ]) ; 141 ]) ;
......
...@@ -25,24 +25,13 @@ ...@@ -25,24 +25,13 @@
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 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 ; 28 + rdfs:comment "STEP 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ;
29 - sp:templates ([ sp:object _:b1 ; 29 + sp:templates ([ sp:object
30 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 30 + [ sp:varName "acquisitionDate"^^xsd:string
31 - sp:subject
32 - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
33 - ]
34 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
35 - sp:predicate rdf:type ;
36 - sp:subject _:b1
37 - ] [ sp:object
38 - [ sp:varName "facility"^^xsd:string
39 ] ; 31 ] ;
40 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 32 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
41 - sp:subject _:b1
42 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
43 - sp:predicate rdf:type ;
44 sp:subject 33 sp:subject
45 - [ sp:varName "facility"^^xsd:string 34 + [ sp:varName "fluidSampleRef"^^xsd:string
46 ] 35 ]
47 ]) ; 36 ]) ;
48 sp:where ([ sp:object 37 sp:where ([ sp:object
...@@ -56,49 +45,30 @@ ...@@ -56,49 +45,30 @@
56 [ sp:varName "fluidSampleRef"^^xsd:string 45 [ sp:varName "fluidSampleRef"^^xsd:string
57 ] 46 ]
58 ] [ sp:object 47 ] [ sp:object
59 - [ sp:varName "fluidSampleRef"^^xsd:string 48 + [ sp:varName "acquisitionDate"^^xsd:string
60 - ] ;
61 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
62 - sp:subject
63 - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
64 - ]
65 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
66 - sp:predicate rdf:type ;
67 - sp:subject
68 - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
69 - ]
70 - ] [ sp:object
71 - [ sp:varName "facilityRef"^^xsd:string
72 ] ; 49 ] ;
73 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 50 + sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
74 sp:subject 51 sp:subject
75 [ sp:varName "fluidSampleRef"^^xsd:string 52 [ sp:varName "fluidSampleRef"^^xsd:string
76 ] 53 ]
77 - ] [ sp:object
78 - [ sp:varName "facilityRef"^^xsd:string
79 - ] ;
80 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
81 - sp:subject
82 - [ sp:varName "facility"^^xsd:string
83 - ]
84 ]) 54 ])
85 ] ; 55 ] ;
86 spin:rule 56 spin:rule
87 [ rdf:type sp:Construct ; 57 [ rdf:type sp:Construct ;
88 - rdfs:comment "STEP 40010 Specify the fluid analysis result."^^xsd:string ; 58 + rdfs:comment "STEP 40004 Set the valid from and valid to for the report."^^xsd:string ;
89 sp:templates ([ sp:object 59 sp:templates ([ sp:object
90 - [ sp:varName "nameFluidAnalysis"^^xsd:string 60 + [ sp:varName "validFrom"^^xsd:string
91 ] ; 61 ] ;
92 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 62 + sp:predicate <http://www.reportinghub.no/ep/schema/report#validFrom> ;
93 sp:subject 63 sp:subject
94 - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string 64 + [ sp:varName "fluidSampleReport"^^xsd:string
95 ] 65 ]
96 ] [ sp:object 66 ] [ sp:object
97 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string 67 + [ sp:varName "validTo"^^xsd:string
98 ] ; 68 ] ;
99 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 69 + sp:predicate <http://www.reportinghub.no/ep/schema/report#validTo> ;
100 sp:subject 70 sp:subject
101 - [ sp:varName "sampledFluid"^^xsd:string 71 + [ sp:varName "fluidSampleReport"^^xsd:string
102 ] 72 ]
103 ]) ; 73 ]) ;
104 sp:where ([ sp:object 74 sp:where ([ sp:object
...@@ -116,95 +86,153 @@ ...@@ -116,95 +86,153 @@
116 ] ; 86 ] ;
117 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 87 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
118 sp:subject 88 sp:subject
119 - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string 89 + [ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
90 + ]
91 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
92 + sp:predicate rdf:type ;
93 + sp:subject
94 + [ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
120 ] 95 ]
121 ] [ sp:object 96 ] [ sp:object
122 - [ sp:varName "sampledFluid"^^xsd:string 97 + [ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
123 ] ; 98 ] ;
124 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ; 99 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
125 sp:subject 100 sp:subject
126 - [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string 101 + [ sp:varName "fluidSampleReport"^^xsd:string
127 ] 102 ]
128 ] [ sp:object 103 ] [ sp:object
129 - [ sp:varName "name"^^xsd:string 104 + [ sp:varName "customDataRef"^^xsd:string
130 ] ; 105 ] ;
131 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 106 + sp:predicate <http://www.epim.no/schemas/mprml/1#customDataRef> ;
132 sp:subject 107 sp:subject
133 [ sp:varName "fluidSampleRef"^^xsd:string 108 [ sp:varName "fluidSampleRef"^^xsd:string
134 ] 109 ]
135 ] [ sp:object 110 ] [ sp:object
136 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string 111 + [ sp:varName "extensionNameValueRef"^^xsd:string
137 ] ; 112 ] ;
138 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 113 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
139 - sp:subject spin:_this 114 + sp:subject
140 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ; 115 + [ sp:varName "customDataRef"^^xsd:string
116 + ]
117 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#extensionNameValue> ;
141 sp:predicate rdf:type ; 118 sp:predicate rdf:type ;
142 sp:subject 119 sp:subject
143 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string 120 + [ sp:varName "extensionNameValueRef"^^xsd:string
121 + ]
122 + ] [ rdf:type sp:Optional ;
123 + sp:elements ([ sp:object
124 + [ sp:varName "validFromRef"^^xsd:string
125 + ] ;
126 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
127 + sp:subject
128 + [ sp:varName "extensionNameValueRef"^^xsd:string
129 + ]
130 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
131 + sp:predicate rdf:type ;
132 + sp:subject
133 + [ sp:varName "validFromRef"^^xsd:string
144 ] 134 ]
145 ] [ sp:object 135 ] [ sp:object
146 - [ sp:varName "name"^^xsd:string 136 + [ sp:varName "validFromText"^^xsd:string
147 ] ; 137 ] ;
148 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ; 138 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
149 sp:subject 139 sp:subject
150 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string 140 + [ sp:varName "validFromRef"^^xsd:string
151 ] 141 ]
152 - ] [ rdf:type sp:Optional ; 142 + ] [ sp:object "ValidFrom" ;
153 - sp:elements ([ sp:object 143 + sp:predicate <http://topbraid.org/sxml#text> ;
154 - [ sp:varName "nameFluidAnalysis"^^xsd:string 144 + sp:subject
145 + [ sp:varName "validFromText"^^xsd:string
146 + ]
147 + ] [ sp:object
148 + [ sp:varName "valueFromRef"^^xsd:string
155 ] ; 149 ] ;
156 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ; 150 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
157 sp:subject 151 sp:subject
158 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string 152 + [ sp:varName "extensionNameValueRef"^^xsd:string
159 ] 153 ]
160 - ]) 154 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ;
161 - ]) 155 + sp:predicate rdf:type ;
156 + sp:subject
157 + [ sp:varName "valueFromRef"^^xsd:string
158 + ]
159 + ] [ sp:object
160 + [ sp:varName "valueFromText"^^xsd:string
162 ] ; 161 ] ;
163 - spin:rule 162 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
164 - [ rdf:type sp:Construct ; 163 + sp:subject
165 - rdfs:comment "STEP 40003b Set the date for the sample of fluid - from report date if not"^^xsd:string ; 164 + [ sp:varName "valueFromRef"^^xsd:string
166 - sp:templates ([ sp:object 165 + ]
167 - [ sp:varName "intervalIdentifier"^^xsd:string 166 + ] [ sp:object
167 + [ sp:varName "validFrom"^^xsd:string
168 ] ; 168 ] ;
169 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; 169 + sp:predicate <http://topbraid.org/sxml#text> ;
170 sp:subject 170 sp:subject
171 - [ sp:varName "fluidSampleRef"^^xsd:string 171 + [ sp:varName "valueFromText"^^xsd:string
172 ] 172 ]
173 - ]) ; 173 + ])
174 - sp:where ([ sp:object 174 + ] [ rdf:type sp:Optional ;
175 - [ sp:varName "fluidSampleRef"^^xsd:string 175 + sp:elements ([ sp:object
176 + [ sp:varName "validToRef"^^xsd:string
176 ] ; 177 ] ;
177 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 178 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
178 - sp:subject spin:_this 179 + sp:subject
180 + [ sp:varName "extensionNameValueRef"^^xsd:string
181 + ]
182 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
183 + sp:predicate rdf:type ;
184 + sp:subject
185 + [ sp:varName "validToRef"^^xsd:string
186 + ]
179 ] [ sp:object 187 ] [ sp:object
180 - [ sp:varName "intervalIdentifier"^^xsd:string 188 + [ sp:varName "validToText"^^xsd:string
181 ] ; 189 ] ;
182 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 190 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
183 - sp:subject spin:_this 191 + sp:subject
184 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 192 + [ sp:varName "validToRef"^^xsd:string
193 + ]
194 + ] [ sp:object "ValidTo" ;
195 + sp:predicate <http://topbraid.org/sxml#text> ;
196 + sp:subject
197 + [ sp:varName "validToText"^^xsd:string
198 + ]
199 + ] [ sp:object
200 + [ sp:varName "valueToRef"^^xsd:string
201 + ] ;
202 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
203 + sp:subject
204 + [ sp:varName "extensionNameValueRef"^^xsd:string
205 + ]
206 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ;
185 sp:predicate rdf:type ; 207 sp:predicate rdf:type ;
186 sp:subject 208 sp:subject
187 - [ sp:varName "fluidSampleRef"^^xsd:string 209 + [ sp:varName "valueToRef"^^xsd:string
188 ] 210 ]
189 - ] [ rdf:type sp:NotExists ; 211 + ] [ sp:object
190 - sp:elements ([ sp:object 212 + [ sp:varName "valueToText"^^xsd:string
191 - [ sp:varName "acquisitionDate"^^xsd:string
192 ] ; 213 ] ;
193 - sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; 214 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
194 sp:subject 215 sp:subject
195 - [ sp:varName "fluidSampleRef"^^xsd:string 216 + [ sp:varName "valueToRef"^^xsd:string
217 + ]
218 + ] [ sp:object
219 + [ sp:varName "validTo"^^xsd:string
220 + ] ;
221 + sp:predicate <http://topbraid.org/sxml#text> ;
222 + sp:subject
223 + [ sp:varName "valueToText"^^xsd:string
196 ] 224 ]
197 ]) 225 ])
198 ]) 226 ])
199 ] ; 227 ] ;
200 spin:rule 228 spin:rule
201 [ rdf:type sp:Construct ; 229 [ rdf:type sp:Construct ;
202 - rdfs:comment """STEP 40011c Specify the fluid component - non-primary component - label not found, so new substance type created 230 + rdfs:comment """STEP 40011b Specify the fluid component - non-primary component - label found
203 The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; 231 The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
204 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; 232 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
205 sp:predicate rdf:type ; 233 sp:predicate rdf:type ;
206 - sp:subject _:b2 234 + sp:subject _:b1
207 - ] [ sp:object _:b2 ; 235 + ] [ sp:object _:b1 ;
208 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ; 236 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
209 sp:subject 237 sp:subject
210 [ sp:varName "sampledFluid"^^xsd:string 238 [ sp:varName "sampledFluid"^^xsd:string
...@@ -213,40 +241,28 @@ The componentName element is used differently in the examples for the primary an ...@@ -213,40 +241,28 @@ The componentName element is used differently in the examples for the primary an
213 [ sp:varName "fluidComponentKindType"^^xsd:string 241 [ sp:varName "fluidComponentKindType"^^xsd:string
214 ] ; 242 ] ;
215 sp:predicate rdf:type ; 243 sp:predicate rdf:type ;
216 - sp:subject _:b2 244 + sp:subject _:b1
217 ] [ sp:object 245 ] [ sp:object
218 - [ sp:varName "substanceType"^^xsd:string 246 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
219 ] ; 247 ] ;
220 sp:predicate rdf:type ; 248 sp:predicate rdf:type ;
221 - sp:subject _:b2 249 + sp:subject _:b1
222 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
223 - sp:predicate rdf:type ;
224 - sp:subject
225 - [ sp:varName "substanceType"^^xsd:string
226 - ]
227 - ] [ sp:object
228 - [ sp:varName "name"^^xsd:string
229 - ] ;
230 - sp:predicate rdfs:label ;
231 - sp:subject
232 - [ sp:varName "substanceType"^^xsd:string
233 - ]
234 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ; 250 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
235 sp:predicate rdf:type ; 251 sp:predicate rdf:type ;
236 - sp:subject _:b3 252 + sp:subject _:b2
237 - ] [ sp:object _:b2 ; 253 + ] [ sp:object _:b1 ;
238 sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ; 254 sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
239 - sp:subject _:b3 255 + sp:subject _:b2
240 ] [ sp:object 256 ] [ sp:object
241 [ sp:varName "sampledFluid"^^xsd:string 257 [ sp:varName "sampledFluid"^^xsd:string
242 ] ; 258 ] ;
243 sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ; 259 sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
244 - sp:subject _:b3 260 + sp:subject _:b2
245 ] [ sp:object 261 ] [ sp:object
246 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 262 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
247 ] ; 263 ] ;
248 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 264 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
249 - sp:subject _:b3 265 + sp:subject _:b2
250 ]) ; 266 ]) ;
251 sp:where ([ sp:object 267 sp:where ([ sp:object
252 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 268 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
...@@ -284,8 +300,7 @@ The componentName element is used differently in the examples for the primary an ...@@ -284,8 +300,7 @@ The componentName element is used differently in the examples for the primary an
284 sp:subject 300 sp:subject
285 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 301 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
286 ] 302 ]
287 - ] [ rdf:type sp:NotExists ; 303 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
288 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
289 sp:predicate rdf:type ; 304 sp:predicate rdf:type ;
290 sp:subject 305 sp:subject
291 [ sp:varName "fluidSubstanceKindType"^^xsd:string 306 [ sp:varName "fluidSubstanceKindType"^^xsd:string
...@@ -297,7 +312,6 @@ The componentName element is used differently in the examples for the primary an ...@@ -297,7 +312,6 @@ The componentName element is used differently in the examples for the primary an
297 sp:subject 312 sp:subject
298 [ sp:varName "fluidSubstanceKindType"^^xsd:string 313 [ sp:varName "fluidSubstanceKindType"^^xsd:string
299 ] 314 ]
300 - ])
301 ] [ rdf:type sp:Optional ; 315 ] [ rdf:type sp:Optional ;
302 sp:elements ([ sp:object 316 sp:elements ([ sp:object
303 [ sp:varName "componentKindRef"^^xsd:string 317 [ sp:varName "componentKindRef"^^xsd:string
...@@ -316,25 +330,76 @@ The componentName element is used differently in the examples for the primary an ...@@ -316,25 +330,76 @@ The componentName element is used differently in the examples for the primary an
316 sp:variable 330 sp:variable
317 [ sp:varName "fluidComponentKindType"^^xsd:string 331 [ sp:varName "fluidComponentKindType"^^xsd:string
318 ] 332 ]
319 - ] [ rdf:type sp:Bind ;
320 - sp:expression
321 - [ rdf:type ep-mpr-spin-lib:buildSubstanceTypeURI ;
322 - sp:arg1 [ sp:varName "name"^^xsd:string
323 - ]
324 - ] ;
325 - sp:variable
326 - [ sp:varName "substanceType"^^xsd:string
327 - ]
328 ]) 333 ])
329 ] ; 334 ] ;
330 spin:rule 335 spin:rule
331 [ rdf:type sp:Construct ; 336 [ rdf:type sp:Construct ;
332 - rdfs:comment "STEP 40001 Create the FluidSampleReport and FluidSampling activity ."^^xsd:string ; 337 + 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 ;
333 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ; 338 + sp:templates ([ sp:object _:b3 ;
339 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
340 + sp:subject
341 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
342 + ]
343 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
334 sp:predicate rdf:type ; 344 sp:predicate rdf:type ;
335 - sp:subject _:b4 345 + sp:subject _:b3
336 ] [ sp:object 346 ] [ sp:object
337 - [ sp:varName "productionReport"^^xsd:string 347 + [ sp:varName "facility"^^xsd:string
348 + ] ;
349 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
350 + sp:subject _:b3
351 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
352 + sp:predicate rdf:type ;
353 + sp:subject
354 + [ sp:varName "facility"^^xsd:string
355 + ]
356 + ]) ;
357 + sp:where ([ sp:object
358 + [ sp:varName "fluidSampleRef"^^xsd:string
359 + ] ;
360 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
361 + sp:subject spin:_this
362 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
363 + sp:predicate rdf:type ;
364 + sp:subject
365 + [ sp:varName "fluidSampleRef"^^xsd:string
366 + ]
367 + ] [ sp:object
368 + [ sp:varName "fluidSampleRef"^^xsd:string
369 + ] ;
370 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
371 + sp:subject
372 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
373 + ]
374 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
375 + sp:predicate rdf:type ;
376 + sp:subject
377 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
378 + ]
379 + ] [ sp:object
380 + [ sp:varName "facilityRef"^^xsd:string
381 + ] ;
382 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
383 + sp:subject
384 + [ sp:varName "fluidSampleRef"^^xsd:string
385 + ]
386 + ] [ sp:object
387 + [ sp:varName "facilityRef"^^xsd:string
388 + ] ;
389 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
390 + sp:subject
391 + [ sp:varName "facility"^^xsd:string
392 + ]
393 + ])
394 + ] ;
395 + spin:rule
396 + [ rdf:type sp:Construct ;
397 + rdfs:comment "STEP 40001 Create the FluidSampleReport and FluidSampling activity ."^^xsd:string ;
398 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ;
399 + sp:predicate rdf:type ;
400 + sp:subject _:b4
401 + ] [ sp:object
402 + [ sp:varName "productionReport"^^xsd:string
338 ] ; 403 ] ;
339 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 404 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
340 sp:subject _:b4 405 sp:subject _:b4
...@@ -411,120 +476,48 @@ The componentName element is used differently in the examples for the primary an ...@@ -411,120 +476,48 @@ The componentName element is used differently in the examples for the primary an
411 ] ; 476 ] ;
412 spin:rule 477 spin:rule
413 [ rdf:type sp:Construct ; 478 [ rdf:type sp:Construct ;
414 - rdfs:comment """STEP 40011a Specify the fluid component - primary component. 479 + rdfs:comment "STEP 40003d Set the facility for the sample of fluid - from reporting facility if not"^^xsd:string ;
415 -The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; 480 + sp:templates ([ sp:object
416 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; 481 + [ sp:varName "normalizedFacilityName"^^xsd:string
417 - sp:predicate rdf:type ; 482 + ] ;
418 - sp:subject _:b6 483 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
419 - ] [ sp:object _:b6 ;
420 - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
421 sp:subject 484 sp:subject
422 - [ sp:varName "sampledFluid"^^xsd:string 485 + [ sp:varName "fluidSampleRef"^^xsd:string
423 ] 486 ]
424 - ] [ sp:object
425 - [ sp:varName "fluidPhaseType"^^xsd:string
426 - ] ;
427 - sp:predicate rdf:type ;
428 - sp:subject _:b6
429 - ] [ sp:object
430 - [ sp:varName "fluidComponentKindType"^^xsd:string
431 - ] ;
432 - sp:predicate rdf:type ;
433 - sp:subject _:b6
434 - ] [ sp:object
435 - [ sp:varName "fluidSubstanceKindType"^^xsd:string
436 - ] ;
437 - sp:predicate rdf:type ;
438 - sp:subject _:b6
439 ]) ; 487 ]) ;
440 sp:where ([ sp:object 488 sp:where ([ sp:object
441 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string 489 + [ sp:varName "fluidSampleRef"^^xsd:string
442 ] ; 490 ] ;
443 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 491 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
444 sp:subject spin:_this 492 sp:subject spin:_this
445 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
446 - sp:predicate rdf:type ;
447 - sp:subject
448 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string
449 - ]
450 - ] [ sp:object
451 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string
452 - ] ;
453 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
454 - sp:subject
455 - [ sp:varName "sampledFluid"^^xsd:string
456 - ]
457 - ] [ sp:object
458 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string
459 - ] ;
460 - sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
461 - sp:subject
462 - [ sp:varName "fluidAnalysisResultRef"^^xsd:string
463 - ]
464 - ] [ sp:object "true"^^xsd:boolean ;
465 - sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
466 - sp:subject
467 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string
468 - ]
469 - ] [ sp:object
470 - [ sp:varName "name"^^xsd:string
471 - ] ;
472 - sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ;
473 - sp:subject
474 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string
475 - ]
476 - ] [ rdf:type sp:Optional ;
477 - sp:elements ([ sp:object
478 - [ sp:varName "componentBaseKindRef"^^xsd:string
479 - ] ;
480 - sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
481 - sp:subject
482 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string
483 - ]
484 ] [ sp:object 493 ] [ sp:object
485 - [ sp:varName "componentBaseKindRef"^^xsd:string 494 + [ sp:varName "normalizedFacilityName"^^xsd:string
486 ] ; 495 ] ;
487 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ; 496 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
497 + sp:subject spin:_this
498 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
499 + sp:predicate rdf:type ;
488 sp:subject 500 sp:subject
489 - [ sp:varName "fluidSubstanceKindType"^^xsd:string 501 + [ sp:varName "fluidSampleRef"^^xsd:string
490 ] 502 ]
491 - ]) 503 + ] [ rdf:type sp:NotExists ;
492 - ] [ rdf:type sp:Optional ;
493 sp:elements ([ sp:object 504 sp:elements ([ sp:object
494 - [ sp:varName "componentKindRef"^^xsd:string 505 + [ sp:varName "facilityRef"^^xsd:string
495 ] ; 506 ] ;
496 - sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ; 507 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
497 sp:subject 508 sp:subject
498 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string 509 + [ sp:varName "fluidSampleRef"^^xsd:string
499 ] 510 ]
500 ]) 511 ])
501 - ] [ rdf:type sp:Bind ;
502 - sp:expression
503 - [ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
504 - sp:arg1 [ sp:varName "name"^^xsd:string
505 - ]
506 - ] ;
507 - sp:variable
508 - [ sp:varName "fluidPhaseType"^^xsd:string
509 - ]
510 - ] [ rdf:type sp:Bind ;
511 - sp:expression
512 - [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
513 - sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
514 - ]
515 - ] ;
516 - sp:variable
517 - [ sp:varName "fluidComponentKindType"^^xsd:string
518 - ]
519 ]) 512 ])
520 ] ; 513 ] ;
521 spin:rule 514 spin:rule
522 [ rdf:type sp:Construct ; 515 [ rdf:type sp:Construct ;
523 - rdfs:comment "STEP 40003c Set the facility for the sample of fluid - from sampling facility if possible"^^xsd:string ; 516 + rdfs:comment "STEP 40003b Set the date for the sample of fluid - from report date if not"^^xsd:string ;
524 sp:templates ([ sp:object 517 sp:templates ([ sp:object
525 - [ sp:varName "normalizedFacilityName"^^xsd:string 518 + [ sp:varName "intervalIdentifier"^^xsd:string
526 ] ; 519 ] ;
527 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; 520 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
528 sp:subject 521 sp:subject
529 [ sp:varName "fluidSampleRef"^^xsd:string 522 [ sp:varName "fluidSampleRef"^^xsd:string
530 ] 523 ]
...@@ -534,68 +527,54 @@ The componentName element is used differently in the examples for the primary an ...@@ -534,68 +527,54 @@ The componentName element is used differently in the examples for the primary an
534 ] ; 527 ] ;
535 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 528 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
536 sp:subject spin:_this 529 sp:subject spin:_this
530 + ] [ sp:object
531 + [ sp:varName "intervalIdentifier"^^xsd:string
532 + ] ;
533 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
534 + sp:subject spin:_this
537 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 535 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
538 sp:predicate rdf:type ; 536 sp:predicate rdf:type ;
539 sp:subject 537 sp:subject
540 [ sp:varName "fluidSampleRef"^^xsd:string 538 [ sp:varName "fluidSampleRef"^^xsd:string
541 ] 539 ]
542 - ] [ sp:object 540 + ] [ rdf:type sp:NotExists ;
543 - [ sp:varName "facilityRef"^^xsd:string 541 + sp:elements ([ sp:object
542 + [ sp:varName "acquisitionDate"^^xsd:string
544 ] ; 543 ] ;
545 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 544 + sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
546 sp:subject 545 sp:subject
547 [ sp:varName "fluidSampleRef"^^xsd:string 546 [ sp:varName "fluidSampleRef"^^xsd:string
548 ] 547 ]
549 - ] [ rdf:type sp:Bind ; 548 + ])
550 - sp:expression
551 - [ rdf:type spl:object ;
552 - sp:arg1 [ sp:varName "facilityRef"^^xsd:string
553 - ] ;
554 - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
555 - ] ;
556 - sp:variable
557 - [ sp:varName "normalizedFacilityName"^^xsd:string
558 - ]
559 ]) 549 ])
560 ] ; 550 ] ;
561 spin:rule 551 spin:rule
562 [ rdf:type sp:Construct ; 552 [ rdf:type sp:Construct ;
563 - rdfs:comment """STEP 40011b Specify the fluid component - non-primary component - label found 553 + rdfs:comment """STEP 40011a Specify the fluid component - primary component.
564 The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ; 554 The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
565 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ; 555 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
566 sp:predicate rdf:type ; 556 sp:predicate rdf:type ;
567 - sp:subject _:b7 557 + sp:subject _:b6
568 - ] [ sp:object _:b7 ; 558 + ] [ sp:object _:b6 ;
569 - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ; 559 + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
570 sp:subject 560 sp:subject
571 [ sp:varName "sampledFluid"^^xsd:string 561 [ sp:varName "sampledFluid"^^xsd:string
572 ] 562 ]
573 ] [ sp:object 563 ] [ sp:object
574 - [ sp:varName "fluidComponentKindType"^^xsd:string 564 + [ sp:varName "fluidPhaseType"^^xsd:string
575 ] ; 565 ] ;
576 sp:predicate rdf:type ; 566 sp:predicate rdf:type ;
577 - sp:subject _:b7 567 + sp:subject _:b6
578 ] [ sp:object 568 ] [ sp:object
579 - [ sp:varName "fluidSubstanceKindType"^^xsd:string 569 + [ sp:varName "fluidComponentKindType"^^xsd:string
580 ] ; 570 ] ;
581 sp:predicate rdf:type ; 571 sp:predicate rdf:type ;
582 - sp:subject _:b7 572 + sp:subject _:b6
583 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
584 - sp:predicate rdf:type ;
585 - sp:subject _:b8
586 - ] [ sp:object _:b7 ;
587 - sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
588 - sp:subject _:b8
589 - ] [ sp:object
590 - [ sp:varName "sampledFluid"^^xsd:string
591 - ] ;
592 - sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
593 - sp:subject _:b8
594 ] [ sp:object 573 ] [ sp:object
595 - [ sp:varName "fluidSampleCompositionRef"^^xsd:string 574 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
596 ] ; 575 ] ;
597 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 576 + sp:predicate rdf:type ;
598 - sp:subject _:b8 577 + sp:subject _:b6
599 ]) ; 578 ]) ;
600 sp:where ([ sp:object 579 sp:where ([ sp:object
601 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 580 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
...@@ -621,7 +600,7 @@ The componentName element is used differently in the examples for the primary an ...@@ -621,7 +600,7 @@ The componentName element is used differently in the examples for the primary an
621 sp:subject 600 sp:subject
622 [ sp:varName "fluidAnalysisResultRef"^^xsd:string 601 [ sp:varName "fluidAnalysisResultRef"^^xsd:string
623 ] 602 ]
624 - ] [ sp:object "false"^^xsd:boolean ; 603 + ] [ sp:object "true"^^xsd:boolean ;
625 sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ; 604 sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
626 sp:subject 605 sp:subject
627 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 606 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
...@@ -633,18 +612,22 @@ The componentName element is used differently in the examples for the primary an ...@@ -633,18 +612,22 @@ The componentName element is used differently in the examples for the primary an
633 sp:subject 612 sp:subject
634 [ sp:varName "fluidSampleCompositionRef"^^xsd:string 613 [ sp:varName "fluidSampleCompositionRef"^^xsd:string
635 ] 614 ]
636 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ; 615 + ] [ rdf:type sp:Optional ;
637 - sp:predicate rdf:type ; 616 + sp:elements ([ sp:object
617 + [ sp:varName "componentBaseKindRef"^^xsd:string
618 + ] ;
619 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
638 sp:subject 620 sp:subject
639 - [ sp:varName "fluidSubstanceKindType"^^xsd:string 621 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
640 ] 622 ]
641 ] [ sp:object 623 ] [ sp:object
642 - [ sp:varName "name"^^xsd:string 624 + [ sp:varName "componentBaseKindRef"^^xsd:string
643 ] ; 625 ] ;
644 - sp:predicate rdfs:label ; 626 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ;
645 sp:subject 627 sp:subject
646 [ sp:varName "fluidSubstanceKindType"^^xsd:string 628 [ sp:varName "fluidSubstanceKindType"^^xsd:string
647 ] 629 ]
630 + ])
648 ] [ rdf:type sp:Optional ; 631 ] [ rdf:type sp:Optional ;
649 sp:elements ([ sp:object 632 sp:elements ([ sp:object
650 [ sp:varName "componentKindRef"^^xsd:string 633 [ sp:varName "componentKindRef"^^xsd:string
...@@ -656,6 +639,15 @@ The componentName element is used differently in the examples for the primary an ...@@ -656,6 +639,15 @@ The componentName element is used differently in the examples for the primary an
656 ]) 639 ])
657 ] [ rdf:type sp:Bind ; 640 ] [ rdf:type sp:Bind ;
658 sp:expression 641 sp:expression
642 + [ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
643 + sp:arg1 [ sp:varName "name"^^xsd:string
644 + ]
645 + ] ;
646 + sp:variable
647 + [ sp:varName "fluidPhaseType"^^xsd:string
648 + ]
649 + ] [ rdf:type sp:Bind ;
650 + sp:expression
659 [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ; 651 [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
660 sp:arg1 [ sp:varName "componentKindRef"^^xsd:string 652 sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
661 ] 653 ]
...@@ -700,6 +692,11 @@ It is matched to its results via the sample name, which is assumed to be unique ...@@ -700,6 +692,11 @@ It is matched to its results via the sample name, which is assumed to be unique
700 [ sp:varName "fluidSampleRef"^^xsd:string 692 [ sp:varName "fluidSampleRef"^^xsd:string
701 ] 693 ]
702 ] [ sp:object 694 ] [ sp:object
695 + [ sp:varName "intervalIdentifier"^^xsd:string
696 + ] ;
697 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
698 + sp:subject spin:_this
699 + ] [ sp:object
703 [ sp:varName "time"^^xsd:string 700 [ sp:varName "time"^^xsd:string
704 ] ; 701 ] ;
705 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; 702 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
...@@ -732,7 +729,7 @@ It is matched to its results via the sample name, which is assumed to be unique ...@@ -732,7 +729,7 @@ It is matched to its results via the sample name, which is assumed to be unique
732 [ rdf:type ep-mpr-spin-lib:buildSampledFluidURI ; 729 [ rdf:type ep-mpr-spin-lib:buildSampledFluidURI ;
733 sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string 730 sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
734 ] ; 731 ] ;
735 - sp:arg2 [ sp:varName "time"^^xsd:string 732 + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
736 ] ; 733 ] ;
737 sp:arg3 [ sp:varName "name"^^xsd:string 734 sp:arg3 [ sp:varName "name"^^xsd:string
738 ] 735 ]
...@@ -744,13 +741,20 @@ It is matched to its results via the sample name, which is assumed to be unique ...@@ -744,13 +741,20 @@ It is matched to its results via the sample name, which is assumed to be unique
744 ] ; 741 ] ;
745 spin:rule 742 spin:rule
746 [ rdf:type sp:Construct ; 743 [ rdf:type sp:Construct ;
747 - rdfs:comment "STEP 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ; 744 + rdfs:comment "STEP 40010 Specify the fluid analysis result."^^xsd:string ;
748 sp:templates ([ sp:object 745 sp:templates ([ sp:object
749 - [ sp:varName "acquisitionDate"^^xsd:string 746 + [ sp:varName "nameFluidAnalysis"^^xsd:string
750 ] ; 747 ] ;
751 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ; 748 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
752 sp:subject 749 sp:subject
753 - [ sp:varName "fluidSampleRef"^^xsd:string 750 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
751 + ]
752 + ] [ sp:object
753 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
754 + ] ;
755 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
756 + sp:subject
757 + [ sp:varName "sampledFluid"^^xsd:string
754 ] 758 ]
755 ]) ; 759 ]) ;
756 sp:where ([ sp:object 760 sp:where ([ sp:object
...@@ -764,67 +768,63 @@ It is matched to its results via the sample name, which is assumed to be unique ...@@ -764,67 +768,63 @@ It is matched to its results via the sample name, which is assumed to be unique
764 [ sp:varName "fluidSampleRef"^^xsd:string 768 [ sp:varName "fluidSampleRef"^^xsd:string
765 ] 769 ]
766 ] [ sp:object 770 ] [ sp:object
767 - [ sp:varName "acquisitionDate"^^xsd:string 771 + [ sp:varName "fluidSampleRef"^^xsd:string
768 ] ; 772 ] ;
769 - sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; 773 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
770 sp:subject 774 sp:subject
771 - [ sp:varName "fluidSampleRef"^^xsd:string 775 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
772 ] 776 ]
773 - ]) 777 + ] [ sp:object
778 + [ sp:varName "sampledFluid"^^xsd:string
774 ] ; 779 ] ;
775 - spin:rule 780 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
776 - [ rdf:type sp:Construct ; 781 + sp:subject
777 - rdfs:comment "STEP 40003d Set the facility for the sample of fluid - from reporting facility if not"^^xsd:string ; 782 + [ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
778 - sp:templates ([ sp:object 783 + ]
779 - [ sp:varName "normalizedFacilityName"^^xsd:string 784 + ] [ sp:object
785 + [ sp:varName "name"^^xsd:string
780 ] ; 786 ] ;
781 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; 787 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
782 sp:subject 788 sp:subject
783 [ sp:varName "fluidSampleRef"^^xsd:string 789 [ sp:varName "fluidSampleRef"^^xsd:string
784 ] 790 ]
785 - ]) ; 791 + ] [ sp:object
786 - sp:where ([ sp:object 792 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
787 - [ sp:varName "fluidSampleRef"^^xsd:string
788 ] ; 793 ] ;
789 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 794 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
790 sp:subject spin:_this 795 sp:subject spin:_this
796 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
797 + sp:predicate rdf:type ;
798 + sp:subject
799 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
800 + ]
791 ] [ sp:object 801 ] [ sp:object
792 - [ sp:varName "normalizedFacilityName"^^xsd:string 802 + [ sp:varName "name"^^xsd:string
793 ] ; 803 ] ;
794 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ; 804 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
795 - sp:subject spin:_this
796 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
797 - sp:predicate rdf:type ;
798 sp:subject 805 sp:subject
799 - [ sp:varName "fluidSampleRef"^^xsd:string 806 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
800 ] 807 ]
801 - ] [ rdf:type sp:NotExists ; 808 + ] [ rdf:type sp:Optional ;
802 sp:elements ([ sp:object 809 sp:elements ([ sp:object
803 - [ sp:varName "facilityRef"^^xsd:string 810 + [ sp:varName "nameFluidAnalysis"^^xsd:string
804 ] ; 811 ] ;
805 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 812 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
806 sp:subject 813 sp:subject
807 - [ sp:varName "fluidSampleRef"^^xsd:string 814 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
808 ] 815 ]
809 ]) 816 ])
810 ]) 817 ])
811 ] ; 818 ] ;
812 spin:rule 819 spin:rule
813 [ rdf:type sp:Construct ; 820 [ rdf:type sp:Construct ;
814 - rdfs:comment "STEP 40004 Set the valid from and valid to for the report."^^xsd:string ; 821 + rdfs:comment "STEP 40003c Set the facility for the sample of fluid - from sampling facility if possible"^^xsd:string ;
815 sp:templates ([ sp:object 822 sp:templates ([ sp:object
816 - [ sp:varName "validFrom"^^xsd:string 823 + [ sp:varName "normalizedFacilityName"^^xsd:string
817 - ] ;
818 - sp:predicate <http://www.reportinghub.no/ep/schema/report#validFrom> ;
819 - sp:subject
820 - [ sp:varName "fluidSampleReport"^^xsd:string
821 - ]
822 - ] [ sp:object
823 - [ sp:varName "validTo"^^xsd:string
824 ] ; 824 ] ;
825 - sp:predicate <http://www.reportinghub.no/ep/schema/report#validTo> ; 825 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
826 sp:subject 826 sp:subject
827 - [ sp:varName "fluidSampleReport"^^xsd:string 827 + [ sp:varName "fluidSampleRef"^^xsd:string
828 ] 828 ]
829 ]) ; 829 ]) ;
830 sp:where ([ sp:object 830 sp:where ([ sp:object
...@@ -838,147 +838,152 @@ It is matched to its results via the sample name, which is assumed to be unique ...@@ -838,147 +838,152 @@ It is matched to its results via the sample name, which is assumed to be unique
838 [ sp:varName "fluidSampleRef"^^xsd:string 838 [ sp:varName "fluidSampleRef"^^xsd:string
839 ] 839 ]
840 ] [ sp:object 840 ] [ sp:object
841 - [ sp:varName "fluidSampleRef"^^xsd:string 841 + [ sp:varName "facilityRef"^^xsd:string
842 ] ; 842 ] ;
843 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 843 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
844 - sp:subject
845 - [ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
846 - ]
847 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
848 - sp:predicate rdf:type ;
849 sp:subject 844 sp:subject
850 - [ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string 845 + [ sp:varName "fluidSampleRef"^^xsd:string
851 ] 846 ]
852 - ] [ sp:object 847 + ] [ rdf:type sp:Bind ;
853 - [ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string 848 + sp:expression
849 + [ rdf:type spl:object ;
850 + sp:arg1 [ sp:varName "facilityRef"^^xsd:string
854 ] ; 851 ] ;
855 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 852 + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
856 - sp:subject
857 - [ sp:varName "fluidSampleReport"^^xsd:string
858 - ]
859 - ] [ sp:object
860 - [ sp:varName "customDataRef"^^xsd:string
861 ] ; 853 ] ;
862 - sp:predicate <http://www.epim.no/schemas/mprml/1#customDataRef> ; 854 + sp:variable
863 - sp:subject 855 + [ sp:varName "normalizedFacilityName"^^xsd:string
864 - [ sp:varName "fluidSampleRef"^^xsd:string
865 ] 856 ]
866 - ] [ sp:object 857 + ])
867 - [ sp:varName "extensionNameValueRef"^^xsd:string
868 ] ; 858 ] ;
869 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 859 + spin:rule
870 - sp:subject 860 + [ rdf:type sp:Construct ;
871 - [ sp:varName "customDataRef"^^xsd:string 861 + rdfs:comment """STEP 40011c Specify the fluid component - non-primary component - label not found, so new substance type created
872 - ] 862 +The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
873 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#extensionNameValue> ; 863 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
874 sp:predicate rdf:type ; 864 sp:predicate rdf:type ;
865 + sp:subject _:b7
866 + ] [ sp:object _:b7 ;
867 + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
875 sp:subject 868 sp:subject
876 - [ sp:varName "extensionNameValueRef"^^xsd:string 869 + [ sp:varName "sampledFluid"^^xsd:string
877 ] 870 ]
878 - ] [ rdf:type sp:Optional ; 871 + ] [ sp:object
879 - sp:elements ([ sp:object 872 + [ sp:varName "fluidComponentKindType"^^xsd:string
880 - [ sp:varName "validFromRef"^^xsd:string
881 ] ; 873 ] ;
882 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
883 - sp:subject
884 - [ sp:varName "extensionNameValueRef"^^xsd:string
885 - ]
886 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
887 sp:predicate rdf:type ; 874 sp:predicate rdf:type ;
888 - sp:subject 875 + sp:subject _:b7
889 - [ sp:varName "validFromRef"^^xsd:string
890 - ]
891 ] [ sp:object 876 ] [ sp:object
892 - [ sp:varName "validFromText"^^xsd:string 877 + [ sp:varName "substanceType"^^xsd:string
893 ] ; 878 ] ;
894 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 879 + sp:predicate rdf:type ;
895 - sp:subject 880 + sp:subject _:b7
896 - [ sp:varName "validFromRef"^^xsd:string 881 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
897 - ] 882 + sp:predicate rdf:type ;
898 - ] [ sp:object "ValidFrom" ;
899 - sp:predicate <http://topbraid.org/sxml#text> ;
900 sp:subject 883 sp:subject
901 - [ sp:varName "validFromText"^^xsd:string 884 + [ sp:varName "substanceType"^^xsd:string
902 ] 885 ]
903 ] [ sp:object 886 ] [ sp:object
904 - [ sp:varName "valueFromRef"^^xsd:string 887 + [ sp:varName "name"^^xsd:string
905 ] ; 888 ] ;
906 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 889 + sp:predicate rdfs:label ;
907 sp:subject 890 sp:subject
908 - [ sp:varName "extensionNameValueRef"^^xsd:string 891 + [ sp:varName "substanceType"^^xsd:string
909 ] 892 ]
910 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ; 893 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
911 sp:predicate rdf:type ; 894 sp:predicate rdf:type ;
912 - sp:subject 895 + sp:subject _:b8
913 - [ sp:varName "valueFromRef"^^xsd:string 896 + ] [ sp:object _:b7 ;
914 - ] 897 + sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
898 + sp:subject _:b8
915 ] [ sp:object 899 ] [ sp:object
916 - [ sp:varName "valueFromText"^^xsd:string 900 + [ sp:varName "sampledFluid"^^xsd:string
917 ] ; 901 ] ;
918 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 902 + sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
919 - sp:subject 903 + sp:subject _:b8
920 - [ sp:varName "valueFromRef"^^xsd:string
921 - ]
922 ] [ sp:object 904 ] [ sp:object
923 - [ sp:varName "validFrom"^^xsd:string 905 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
924 ] ; 906 ] ;
925 - sp:predicate <http://topbraid.org/sxml#text> ; 907 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
926 - sp:subject 908 + sp:subject _:b8
927 - [ sp:varName "valueFromText"^^xsd:string 909 + ]) ;
928 - ] 910 + sp:where ([ sp:object
929 - ]) 911 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
930 - ] [ rdf:type sp:Optional ;
931 - sp:elements ([ sp:object
932 - [ sp:varName "validToRef"^^xsd:string
933 ] ; 912 ] ;
934 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 913 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
914 + sp:subject spin:_this
915 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
916 + sp:predicate rdf:type ;
935 sp:subject 917 sp:subject
936 - [ sp:varName "extensionNameValueRef"^^xsd:string 918 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
937 ] 919 ]
938 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ; 920 + ] [ sp:object
939 - sp:predicate rdf:type ; 921 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
922 + ] ;
923 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
940 sp:subject 924 sp:subject
941 - [ sp:varName "validToRef"^^xsd:string 925 + [ sp:varName "sampledFluid"^^xsd:string
942 ] 926 ]
943 ] [ sp:object 927 ] [ sp:object
944 - [ sp:varName "validToText"^^xsd:string 928 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
945 ] ; 929 ] ;
946 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 930 + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
947 sp:subject 931 sp:subject
948 - [ sp:varName "validToRef"^^xsd:string 932 + [ sp:varName "fluidAnalysisResultRef"^^xsd:string
949 ] 933 ]
950 - ] [ sp:object "ValidTo" ; 934 + ] [ sp:object "false"^^xsd:boolean ;
951 - sp:predicate <http://topbraid.org/sxml#text> ; 935 + sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
952 sp:subject 936 sp:subject
953 - [ sp:varName "validToText"^^xsd:string 937 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
954 ] 938 ]
955 ] [ sp:object 939 ] [ sp:object
956 - [ sp:varName "valueToRef"^^xsd:string 940 + [ sp:varName "name"^^xsd:string
957 ] ; 941 ] ;
958 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 942 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ;
959 sp:subject 943 sp:subject
960 - [ sp:varName "extensionNameValueRef"^^xsd:string 944 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
961 ] 945 ]
962 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ; 946 + ] [ rdf:type sp:NotExists ;
947 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
963 sp:predicate rdf:type ; 948 sp:predicate rdf:type ;
964 sp:subject 949 sp:subject
965 - [ sp:varName "valueToRef"^^xsd:string 950 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
966 ] 951 ]
967 ] [ sp:object 952 ] [ sp:object
968 - [ sp:varName "valueToText"^^xsd:string 953 + [ sp:varName "name"^^xsd:string
969 ] ; 954 ] ;
970 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 955 + sp:predicate rdfs:label ;
971 sp:subject 956 sp:subject
972 - [ sp:varName "valueToRef"^^xsd:string 957 + [ sp:varName "fluidSubstanceKindType"^^xsd:string
973 ] 958 ]
974 - ] [ sp:object 959 + ])
975 - [ sp:varName "validTo"^^xsd:string 960 + ] [ rdf:type sp:Optional ;
961 + sp:elements ([ sp:object
962 + [ sp:varName "componentKindRef"^^xsd:string
976 ] ; 963 ] ;
977 - sp:predicate <http://topbraid.org/sxml#text> ; 964 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
978 sp:subject 965 sp:subject
979 - [ sp:varName "valueToText"^^xsd:string 966 + [ sp:varName "fluidSampleCompositionRef"^^xsd:string
980 ] 967 ]
981 ]) 968 ])
969 + ] [ rdf:type sp:Bind ;
970 + sp:expression
971 + [ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
972 + sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
973 + ]
974 + ] ;
975 + sp:variable
976 + [ sp:varName "fluidComponentKindType"^^xsd:string
977 + ]
978 + ] [ rdf:type sp:Bind ;
979 + sp:expression
980 + [ rdf:type ep-mpr-spin-lib:buildSubstanceTypeURI ;
981 + sp:arg1 [ sp:varName "name"^^xsd:string
982 + ]
983 + ] ;
984 + sp:variable
985 + [ sp:varName "substanceType"^^xsd:string
986 + ]
982 ]) 987 ])
983 ] . 988 ] .
984 989
...@@ -1102,5 +1107,5 @@ It is matched to its results via the sample name, which is assumed to be unique ...@@ -1102,5 +1107,5 @@ It is matched to its results via the sample name, which is assumed to be unique
1102 1107
1103 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> 1108 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
1104 rdf:type owl:Ontology ; 1109 rdf:type owl:Ontology ;
1105 - 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> ; 1110 + 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> ;
1106 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 1111 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
This diff could not be displayed because it is too large.