David Leal

Updated production flow URI.

1 +# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011
1 # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 2 # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
2 -# imports: http://spinrdf.org/spin 3 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
3 # imports: http://www.reportinghub.no/ep/schema/1.0/production 4 # imports: http://www.reportinghub.no/ep/schema/1.0/production
4 # imports: http://www.reportinghub.no/ep/schema/1.0/production-core 5 # imports: http://www.reportinghub.no/ep/schema/1.0/production-core
5 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib 6 +# imports: http://spinrdf.org/spin
6 # imports: http://www.witsml.org/schemas/131/addendum/combo 7 # imports: http://www.witsml.org/schemas/131/addendum/combo
7 8
8 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . 9 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
...@@ -48,7 +49,7 @@ sp:if ...@@ -48,7 +49,7 @@ sp:if
48 49
49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> 50 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
50 rdf:type owl:Ontology ; 51 rdf:type owl:Ontology ;
51 - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; 52 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 53 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
53 54
54 ep-dpr-spin-lib:BuildDailyProductionReportURI 55 ep-dpr-spin-lib:BuildDailyProductionReportURI
...@@ -361,7 +362,9 @@ ep-dpr-spin-lib:buildProductionFlowURI ...@@ -361,7 +362,9 @@ ep-dpr-spin-lib:buildProductionFlowURI
361 [ rdf:type ep-spin-lib:buildURI ; 362 [ rdf:type ep-spin-lib:buildURI ;
362 sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ; 363 sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
363 sp:arg2 [ rdf:type fn:concat ; 364 sp:arg2 [ rdf:type fn:concat ;
364 - sp:arg1 spin:_arg1 365 + sp:arg1 spin:_arg1 ;
366 + sp:arg2 "$" ;
367 + sp:arg3 spin:_arg2
365 ] 368 ]
366 ] ; 369 ] ;
367 sp:variable _:b13 370 sp:variable _:b13
...@@ -5515,6 +5518,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5515,6 +5518,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5515 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5518 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5516 spin:body 5519 spin:body
5517 [ rdf:type sp:Select ; 5520 [ rdf:type sp:Select ;
5521 + sp:resultVariables (_:b28) ;
5522 + sp:where ([ rdf:type sp:Bind ;
5523 + sp:expression
5524 + [ rdf:type sp:if ;
5525 + sp:arg1 [ rdf:type sp:eq ;
5526 + sp:arg1 spin:_arg1 ;
5527 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5528 + ] ;
5529 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5530 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5531 + ] ;
5532 + sp:variable _:b28
5533 + ])
5534 + ] ;
5535 + spin:body
5536 + [ rdf:type sp:Select ;
5518 sp:resultVariables ([ sp:varName "myVar"^^xsd:string 5537 sp:resultVariables ([ sp:varName "myVar"^^xsd:string
5519 ]) ; 5538 ]) ;
5520 sp:where ([ rdf:type sp:Bind ; 5539 sp:where ([ rdf:type sp:Bind ;
...@@ -5594,22 +5613,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5594,22 +5613,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5594 [ sp:varName "myVar"^^xsd:string 5613 [ sp:varName "myVar"^^xsd:string
5595 ] 5614 ]
5596 ]) 5615 ])
5597 - ] ;
5598 - spin:body
5599 - [ rdf:type sp:Select ;
5600 - sp:resultVariables (_:b28) ;
5601 - sp:where ([ rdf:type sp:Bind ;
5602 - sp:expression
5603 - [ rdf:type sp:if ;
5604 - sp:arg1 [ rdf:type sp:eq ;
5605 - sp:arg1 spin:_arg1 ;
5606 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5607 - ] ;
5608 - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5609 - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5610 - ] ;
5611 - sp:variable _:b28
5612 - ])
5613 ] . 5616 ] .
5614 5617
5615 ep-dpr-spin-lib:selectTemperatureScale 5618 ep-dpr-spin-lib:selectTemperatureScale
...@@ -7192,9 +7195,6 @@ _:b15 ...@@ -7192,9 +7195,6 @@ _:b15
7192 _:b14 7195 _:b14
7193 sp:varName "uri"^^xsd:string . 7196 sp:varName "uri"^^xsd:string .
7194 7197
7195 -_:b13
7196 - sp:varName "uri"^^xsd:string .
7197 -
7198 _:b12 7198 _:b12
7199 sp:varName "uri"^^xsd:string . 7199 sp:varName "uri"^^xsd:string .
7200 7200
...@@ -7221,3 +7221,6 @@ _:b3 sp:varName "UUID"^^xsd:string . ...@@ -7221,3 +7221,6 @@ _:b3 sp:varName "UUID"^^xsd:string .
7221 _:b2 sp:varName "uri"^^xsd:string . 7221 _:b2 sp:varName "uri"^^xsd:string .
7222 7222
7223 _:b1 sp:varName "uri"^^xsd:string . 7223 _:b1 sp:varName "uri"^^xsd:string .
7224 +
7225 +_:b13
7226 + sp:varName "uri"^^xsd:string .
......
1 +# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011
1 # baseURI: null 2 # baseURI: null
2 3
3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
1 +# Saved by TopBraid on Fri Dec 16 17:56:20 GMT 2011
1 # baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume 2 # baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
2 -# imports: http://spinrdf.org/spin 3 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
3 -# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
4 # imports: http://www.reportinghub.no/ep/schema/1.0/core 5 # imports: http://www.reportinghub.no/ep/schema/1.0/core
6 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
5 # imports: http://www.reportinghub.no/ep/schema/1.0/facility 7 # imports: http://www.reportinghub.no/ep/schema/1.0/facility
6 # imports: http://www.reportinghub.no/ep/schema/1.0/production-core 8 # imports: http://www.reportinghub.no/ep/schema/1.0/production-core
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility 9 +# imports: http://spinrdf.org/spin
8 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib
9 # imports: http://www.witsml.org/schemas/131/addendum/combo 10 # imports: http://www.witsml.org/schemas/131/addendum/combo
10 11
11 @prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> . 12 @prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
...@@ -31,325 +32,166 @@ ...@@ -31,325 +32,166 @@
31 <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume> 32 <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
32 spin:rule 33 spin:rule
33 [ rdf:type sp:Construct ; 34 [ rdf:type sp:Construct ;
34 - rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ; 35 + rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
35 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ; 36 + sp:templates ([ sp:object _:b1 ;
36 - sp:predicate rdf:type ; 37 + sp:predicate _:b2 ;
37 - sp:subject _:b1 38 + sp:subject _:b3
38 - ] [ sp:object 39 + ] [ sp:object _:b4 ;
39 - [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
40 - ] ;
41 - sp:predicate rdf:type ;
42 - sp:subject _:b1
43 - ] [ sp:object
44 - [ sp:varName "productFlowToDate"^^xsd:string
45 - ] ;
46 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
47 - sp:subject _:b1
48 - ] [ sp:object
49 - [ sp:varName "endTime"^^xsd:string
50 - ] ;
51 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
52 - sp:subject _:b1
53 - ] [ sp:object _:b2 ;
54 - sp:predicate
55 - [ sp:varName "relationshipToMeasure"^^xsd:string
56 - ] ;
57 - sp:subject _:b1
58 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
59 sp:predicate rdf:type ; 40 sp:predicate rdf:type ;
60 - sp:subject _:b2
61 - ] [ sp:object
62 - [ sp:varName "realVolume"^^xsd:string
63 - ] ;
64 - sp:predicate
65 - [ sp:varName "volumeScale"^^xsd:string
66 - ] ;
67 - sp:subject _:b2
68 - ] [ sp:object _:b3 ;
69 - sp:predicate
70 - [ sp:varName "relationshipToMeasure"^^xsd:string
71 - ] ;
72 sp:subject _:b1 41 sp:subject _:b1
73 - ] [ sp:object
74 - [ sp:varName "volumeStdType"^^xsd:string
75 - ] ;
76 - sp:predicate rdf:type ;
77 - sp:subject _:b3
78 - ] [ sp:object
79 - [ sp:varName "realVolumeStd"^^xsd:string
80 - ] ;
81 - sp:predicate
82 - [ sp:varName "volumeStdScale"^^xsd:string
83 - ] ;
84 - sp:subject _:b3
85 ]) ; 42 ]) ;
86 - sp:where ([ sp:object 43 + sp:where ([ sp:object _:b5 ;
87 - [ sp:varName "standardTempPres"^^xsd:string
88 - ] ;
89 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
90 - sp:subject spin:_this
91 - ] [ sp:object
92 - [ sp:varName "facilityRef"^^xsd:string
93 - ] ;
94 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 44 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
95 sp:subject spin:_this 45 sp:subject spin:_this
96 - ] [ sp:object 46 + ] [ sp:object _:b6 ;
97 - [ sp:varName "flowRef"^^xsd:string 47 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
98 - ] ; 48 + sp:subject _:b5
49 + ] [ sp:object _:b7 ;
50 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
51 + sp:subject _:b6
52 + ] [ sp:object _:b8 ;
99 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; 53 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
100 - sp:subject 54 + sp:subject _:b5
101 - [ sp:varName "facilityRef"^^xsd:string 55 + ] [ sp:object _:b9 ;
102 - ] 56 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
103 - ] [ sp:object 57 + sp:subject _:b8
104 - [ sp:varName "productRef"^^xsd:string 58 + ] [ sp:object _:b10 ;
105 - ] ; 59 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
106 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; 60 + sp:subject _:b8
107 - sp:subject 61 + ] [ sp:object _:b11 ;
108 - [ sp:varName "flowRef"^^xsd:string
109 - ]
110 - ] [ sp:object
111 - [ sp:varName "productRef"^^xsd:string
112 - ] ;
113 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
114 - sp:subject
115 - [ sp:varName "productFlowToDate"^^xsd:string
116 - ]
117 - ] [ sp:object
118 - [ sp:varName "periodRef"^^xsd:string
119 - ] ;
120 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
121 - sp:subject
122 - [ sp:varName "productRef"^^xsd:string
123 - ]
124 - ] [ sp:object
125 - [ sp:varName "periodKindRef"^^xsd:string
126 - ] ;
127 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 62 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
128 - sp:subject 63 + sp:subject _:b10
129 - [ sp:varName "periodRef"^^xsd:string
130 - ]
131 - ] [ sp:object
132 - [ sp:varName "endTime"^^xsd:string
133 - ] ;
134 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
135 - sp:subject
136 - [ sp:varName "periodRef"^^xsd:string
137 - ]
138 - ] [ rdf:type sp:Optional ;
139 - sp:elements ([ sp:object
140 - [ sp:varName "volumeRef"^^xsd:string
141 - ] ;
142 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
143 - sp:subject
144 - [ sp:varName "periodRef"^^xsd:string
145 - ]
146 - ] [ sp:object
147 - [ sp:varName "realVolume"^^xsd:string
148 - ] ;
149 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
150 - sp:subject
151 - [ sp:varName "volumeRef"^^xsd:string
152 - ]
153 - ] [ sp:object
154 - [ sp:varName "uomVolume"^^xsd:string
155 - ] ;
156 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
157 - sp:subject
158 - [ sp:varName "volumeRef"^^xsd:string
159 - ]
160 - ])
161 - ] [ rdf:type sp:Optional ;
162 - sp:elements ([ sp:object
163 - [ sp:varName "volumeStdRef"^^xsd:string
164 - ] ;
165 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
166 - sp:subject
167 - [ sp:varName "periodRef"^^xsd:string
168 - ]
169 - ] [ sp:object
170 - [ sp:varName "realVolumeStd"^^xsd:string
171 - ] ;
172 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
173 - sp:subject
174 - [ sp:varName "volumeStdRef"^^xsd:string
175 - ]
176 - ] [ sp:object
177 - [ sp:varName "uomVolumeStd"^^xsd:string
178 - ] ;
179 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
180 - sp:subject
181 - [ sp:varName "volumeStdRef"^^xsd:string
182 - ]
183 - ])
184 ] [ rdf:type sp:Bind ; 64 ] [ rdf:type sp:Bind ;
185 sp:expression 65 sp:expression
186 - [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ; 66 + [ rdf:type ep-spin-lib:normalizeString ;
187 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string 67 + sp:arg1 _:b7
188 - ]
189 - ] ;
190 - sp:variable
191 - [ sp:varName "relationshipToMeasure"^^xsd:string
192 - ]
193 - ] [ rdf:type sp:Bind ;
194 - sp:expression
195 - [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
196 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
197 - ]
198 - ] ;
199 - sp:variable
200 - [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
201 - ]
202 - ] [ rdf:type sp:Bind ;
203 - sp:expression
204 - [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
205 - sp:arg1 [ sp:varName "standardTempPres"^^xsd:string
206 - ]
207 ] ; 68 ] ;
208 - sp:variable 69 + sp:variable _:b12
209 - [ sp:varName "volumeStdType"^^xsd:string
210 - ]
211 ] [ rdf:type sp:Bind ; 70 ] [ rdf:type sp:Bind ;
212 sp:expression 71 sp:expression
213 - [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; 72 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
214 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string 73 + sp:arg1 [ sp:varName "flowKind"^^xsd:string
215 ] 74 ]
216 ] ; 75 ] ;
217 - sp:variable 76 + sp:variable _:b13
218 - [ sp:varName "volumeScale"^^xsd:string
219 - ]
220 ] [ rdf:type sp:Bind ; 77 ] [ rdf:type sp:Bind ;
221 sp:expression 78 sp:expression
222 - [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; 79 + [ rdf:type spl:object ;
223 - sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string 80 + sp:arg1 _:b13 ;
224 - ] 81 + sp:arg2 rdfs:label
225 - ] ;
226 - sp:variable
227 - [ sp:varName "volumeStdScale"^^xsd:string
228 - ]
229 - ])
230 - ] ;
231 - spin:rule
232 - [ rdf:type sp:Construct ;
233 - rdfs:comment """STEP 20102 Record the Facility that has the flows
234 -Nothing is done with the namingSystem!"""^^xsd:string ;
235 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
236 - sp:predicate rdf:type ;
237 - sp:subject _:b4
238 - ] [ sp:object _:b5 ;
239 - sp:predicate rdf:type ;
240 - sp:subject _:b4
241 - ]) ;
242 - sp:where ([ sp:object _:b6 ;
243 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
244 - sp:subject spin:_this
245 - ] [ sp:object _:b7 ;
246 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
247 - sp:subject _:b6
248 - ] [ sp:object _:b8 ;
249 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
250 - sp:subject _:b7
251 - ] [ rdf:type sp:Optional ;
252 - sp:elements ([ sp:object
253 - [ sp:varName "facilityNamingSystem"^^xsd:string
254 ] ; 82 ] ;
255 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ; 83 + sp:variable _:b14
256 - sp:subject _:b7
257 - ])
258 - ] [ rdf:type sp:Optional ;
259 - sp:elements ([ sp:object _:b9 ;
260 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
261 - sp:subject _:b7
262 - ])
263 ] [ rdf:type sp:Bind ; 84 ] [ rdf:type sp:Bind ;
264 sp:expression 85 sp:expression
265 - [ rdf:type ep-spin-lib:normalizeString ; 86 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
266 - sp:arg1 _:b8 87 + sp:arg1 _:b12 ;
88 + sp:arg2 _:b14
267 ] ; 89 ] ;
268 - sp:variable _:b10 90 + sp:variable _:b3
269 ] [ rdf:type sp:Bind ; 91 ] [ rdf:type sp:Bind ;
270 sp:expression 92 sp:expression
271 - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 93 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
272 - sp:arg1 _:b10 94 + sp:arg1 _:b11
273 ] ; 95 ] ;
274 sp:variable _:b4 96 sp:variable _:b4
275 ] [ rdf:type sp:Bind ; 97 ] [ rdf:type sp:Bind ;
276 sp:expression 98 sp:expression
277 - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; 99 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
278 sp:arg1 _:b9 100 sp:arg1 _:b9
279 ] ; 101 ] ;
280 - sp:variable _:b5 102 + sp:variable _:b2
281 ]) 103 ])
282 ] ; 104 ] ;
283 spin:rule 105 spin:rule
284 [ rdf:type sp:Construct ; 106 [ rdf:type sp:Construct ;
285 rdfs:comment """STEP 20103b record the related facility 107 rdfs:comment """STEP 20103b record the related facility
286 nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ; 108 nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
287 - sp:templates ([ sp:object _:b11 ; 109 + sp:templates ([ sp:object _:b15 ;
288 - sp:predicate _:b12 ; 110 + sp:predicate _:b16 ;
289 - sp:subject _:b13 111 + sp:subject _:b17
290 - ] [ sp:object _:b14 ; 112 + ] [ sp:object _:b18 ;
291 sp:predicate rdf:type ; 113 sp:predicate rdf:type ;
292 - sp:subject _:b11 114 + sp:subject _:b15
293 ]) ; 115 ]) ;
294 - sp:where ([ sp:object _:b15 ; 116 + sp:where ([ sp:object _:b19 ;
295 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 117 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
296 sp:subject spin:_this 118 sp:subject spin:_this
297 - ] [ sp:object _:b16 ; 119 + ] [ sp:object _:b20 ;
120 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
121 + sp:subject _:b19
122 + ] [ sp:object _:b21 ;
123 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
124 + sp:subject _:b20
125 + ] [ sp:object _:b22 ;
298 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; 126 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
299 - sp:subject _:b15 127 + sp:subject _:b19
300 - ] [ sp:object _:b17 ; 128 + ] [ sp:object _:b23 ;
301 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 129 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
302 - sp:subject _:b16 130 + sp:subject _:b22
303 - ] [ sp:object _:b18 ; 131 + ] [ sp:object _:b24 ;
304 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; 132 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
305 - sp:subject _:b16 133 + sp:subject _:b22
306 - ] [ sp:object _:b19 ; 134 + ] [ sp:object _:b25 ;
307 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; 135 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
308 - sp:subject _:b16 136 + sp:subject _:b22
309 - ] [ sp:object _:b20 ; 137 + ] [ sp:object _:b26 ;
310 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 138 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
311 - sp:subject _:b19 139 + sp:subject _:b25
312 ] [ rdf:type sp:Optional ; 140 ] [ rdf:type sp:Optional ;
313 - sp:elements ([ sp:object _:b21 ; 141 + sp:elements ([ sp:object _:b27 ;
314 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 142 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
315 - sp:subject _:b19 143 + sp:subject _:b25
316 ]) 144 ])
317 ] [ rdf:type sp:Bind ; 145 ] [ rdf:type sp:Bind ;
318 sp:expression 146 sp:expression
319 [ rdf:type ep-spin-lib:normalizeString ; 147 [ rdf:type ep-spin-lib:normalizeString ;
320 - sp:arg1 _:b17 148 + sp:arg1 _:b21
149 + ] ;
150 + sp:variable _:b28
151 + ] [ rdf:type sp:Bind ;
152 + sp:expression
153 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
154 + sp:arg1 _:b23
155 + ] ;
156 + sp:variable _:b29
157 + ] [ rdf:type sp:Bind ;
158 + sp:expression
159 + [ rdf:type spl:object ;
160 + sp:arg1 _:b29 ;
161 + sp:arg2 rdfs:label
321 ] ; 162 ] ;
322 - sp:variable _:b22 163 + sp:variable _:b30
323 ] [ rdf:type sp:Bind ; 164 ] [ rdf:type sp:Bind ;
324 sp:expression 165 sp:expression
325 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 166 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
326 - sp:arg1 _:b22 167 + sp:arg1 _:b28 ;
168 + sp:arg2 _:b30
327 ] ; 169 ] ;
328 - sp:variable _:b13 170 + sp:variable _:b17
329 ] [ rdf:type sp:Bind ; 171 ] [ rdf:type sp:Bind ;
330 sp:expression 172 sp:expression
331 [ rdf:type ep-spin-lib:normalizeString ; 173 [ rdf:type ep-spin-lib:normalizeString ;
332 - sp:arg1 _:b20 174 + sp:arg1 _:b26
333 ] ; 175 ] ;
334 - sp:variable _:b23 176 + sp:variable _:b31
335 ] [ rdf:type sp:Bind ; 177 ] [ rdf:type sp:Bind ;
336 sp:expression 178 sp:expression
337 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 179 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
338 - sp:arg1 _:b23 180 + sp:arg1 _:b31
339 ] ; 181 ] ;
340 - sp:variable _:b11 182 + sp:variable _:b15
341 ] [ rdf:type sp:Bind ; 183 ] [ rdf:type sp:Bind ;
342 sp:expression 184 sp:expression
343 [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; 185 [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
344 - sp:arg1 _:b21 186 + sp:arg1 _:b27
345 ] ; 187 ] ;
346 - sp:variable _:b14 188 + sp:variable _:b18
347 ] [ rdf:type sp:Bind ; 189 ] [ rdf:type sp:Bind ;
348 sp:expression 190 sp:expression
349 [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; 191 [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
350 - sp:arg1 _:b18 192 + sp:arg1 _:b24
351 ] ; 193 ] ;
352 - sp:variable _:b12 194 + sp:variable _:b16
353 ]) 195 ])
354 ] ; 196 ] ;
355 spin:rule 197 spin:rule
...@@ -386,11 +228,11 @@ namingSystem not processed"""^^xsd:string ; ...@@ -386,11 +228,11 @@ namingSystem not processed"""^^xsd:string ;
386 [ sp:varName "productFlow"^^xsd:string 228 [ sp:varName "productFlow"^^xsd:string
387 ] ; 229 ] ;
388 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 230 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
389 - sp:subject _:b24 231 + sp:subject _:b32
390 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ; 232 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
391 sp:predicate rdf:type ; 233 sp:predicate rdf:type ;
392 - sp:subject _:b24 234 + sp:subject _:b32
393 - ] [ sp:object _:b24 ; 235 + ] [ sp:object _:b32 ;
394 sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; 236 sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
395 sp:subject 237 sp:subject
396 [ sp:varName "productionFlowToDate"^^xsd:string 238 [ sp:varName "productionFlowToDate"^^xsd:string
...@@ -399,7 +241,7 @@ namingSystem not processed"""^^xsd:string ; ...@@ -399,7 +241,7 @@ namingSystem not processed"""^^xsd:string ;
399 [ sp:varName "productRef"^^xsd:string 241 [ sp:varName "productRef"^^xsd:string
400 ] ; 242 ] ;
401 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 243 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
402 - sp:subject _:b24 244 + sp:subject _:b32
403 ]) ; 245 ]) ;
404 sp:where ([ sp:object spin:_this ; 246 sp:where ([ sp:object spin:_this ;
405 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 247 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
...@@ -521,334 +363,518 @@ namingSystem not processed"""^^xsd:string ; ...@@ -521,334 +363,518 @@ namingSystem not processed"""^^xsd:string ;
521 ] ; 363 ] ;
522 spin:rule 364 spin:rule
523 [ rdf:type sp:Construct ; 365 [ rdf:type sp:Construct ;
524 - rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ; 366 + rdfs:comment "STEP 20103a record the flows"^^xsd:string ;
525 - sp:templates ([ sp:object _:b25 ; 367 + sp:templates ([ sp:object _:b33 ;
526 - sp:predicate _:b26 ; 368 + sp:predicate _:b34 ;
527 - sp:subject _:b27 369 + sp:subject _:b35
528 - ] [ sp:object _:b28 ; 370 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
529 sp:predicate rdf:type ; 371 sp:predicate rdf:type ;
530 - sp:subject _:b25 372 + sp:subject _:b35
373 + ] [ sp:object _:b36 ;
374 + sp:predicate rdf:type ;
375 + sp:subject _:b35
376 + ] [ sp:object _:b37 ;
377 + sp:predicate rdf:type ;
378 + sp:subject _:b35
379 + ] [ sp:object _:b38 ;
380 + sp:predicate rdfs:label ;
381 + sp:subject _:b35
382 + ] [ sp:object _:b35 ;
383 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
384 + sp:subject _:b39
385 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
386 + sp:predicate rdf:type ;
387 + sp:subject _:b39
388 + ] [ sp:object _:b39 ;
389 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
390 + sp:subject _:b40
391 + ] [ sp:object _:b41 ;
392 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
393 + sp:subject _:b39
531 ]) ; 394 ]) ;
532 - sp:where ([ sp:object _:b29 ; 395 + sp:where ([ sp:object spin:_this ;
396 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
397 + sp:subject _:b42
398 + ] [ sp:object _:b40 ;
399 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
400 + sp:subject _:b42
401 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
402 + sp:predicate rdf:type ;
403 + sp:subject _:b40
404 + ] [ sp:object _:b43 ;
533 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 405 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
534 sp:subject spin:_this 406 sp:subject spin:_this
535 - ] [ sp:object _:b30 ; 407 + ] [ sp:object _:b44 ;
408 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
409 + sp:subject _:b43
410 + ] [ sp:object _:b45 ;
411 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
412 + sp:subject _:b44
413 + ] [ sp:object _:b41 ;
536 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; 414 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
537 - sp:subject _:b29 415 + sp:subject _:b43
538 - ] [ sp:object _:b31 ; 416 + ] [ sp:object _:b38 ;
539 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 417 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
540 - sp:subject _:b30 418 + sp:subject _:b41
541 - ] [ sp:object _:b32 ; 419 + ] [ sp:object _:b46 ;
542 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
543 - sp:subject _:b30
544 - ] [ sp:object _:b33 ;
545 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
546 - sp:subject _:b30
547 - ] [ sp:object _:b34 ;
548 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 420 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
549 - sp:subject _:b33 421 + sp:subject _:b41
422 + ] [ sp:object _:b47 ;
423 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
424 + sp:subject _:b41
425 + ] [ rdf:type sp:Optional ;
426 + sp:elements ([ sp:object _:b48 ;
427 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
428 + sp:subject _:b41
429 + ])
550 ] [ rdf:type sp:Bind ; 430 ] [ rdf:type sp:Bind ;
551 sp:expression 431 sp:expression
552 [ rdf:type ep-spin-lib:normalizeString ; 432 [ rdf:type ep-spin-lib:normalizeString ;
553 - sp:arg1 _:b31 433 + sp:arg1 _:b45
554 ] ; 434 ] ;
555 - sp:variable _:b35 435 + sp:variable _:b49
436 + ] [ rdf:type sp:Bind ;
437 + sp:expression
438 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
439 + sp:arg1 _:b49
440 + ] ;
441 + sp:variable _:b33
442 + ] [ rdf:type sp:Bind ;
443 + sp:expression
444 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
445 + sp:arg1 _:b46
446 + ] ;
447 + sp:variable _:b36
448 + ] [ rdf:type sp:Bind ;
449 + sp:expression
450 + [ rdf:type spl:object ;
451 + sp:arg1 _:b36 ;
452 + sp:arg2 rdfs:label
453 + ] ;
454 + sp:variable _:b50
556 ] [ rdf:type sp:Bind ; 455 ] [ rdf:type sp:Bind ;
557 sp:expression 456 sp:expression
558 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 457 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
559 - sp:arg1 _:b35 458 + sp:arg1 _:b49 ;
459 + sp:arg2 _:b50
560 ] ; 460 ] ;
561 - sp:variable _:b27 461 + sp:variable _:b35
562 ] [ rdf:type sp:Bind ; 462 ] [ rdf:type sp:Bind ;
563 sp:expression 463 sp:expression
564 - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; 464 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
565 - sp:arg1 _:b34 465 + sp:arg1 _:b48
566 ] ; 466 ] ;
567 - sp:variable _:b28 467 + sp:variable _:b37
568 ] [ rdf:type sp:Bind ; 468 ] [ rdf:type sp:Bind ;
569 sp:expression 469 sp:expression
570 - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; 470 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
571 - sp:arg1 _:b32 471 + sp:arg1 _:b47
572 ] ; 472 ] ;
573 - sp:variable _:b26 473 + sp:variable _:b34
574 ]) 474 ])
575 ] ; 475 ] ;
576 spin:rule 476 spin:rule
577 [ rdf:type sp:Construct ; 477 [ rdf:type sp:Construct ;
578 - rdfs:comment "STEP 20103a record the flows"^^xsd:string ; 478 + rdfs:comment """STEP 20102 Record the Facility that has the flows
579 - sp:templates ([ sp:object 479 +Nothing is done with the namingSystem!"""^^xsd:string ;
580 - [ sp:varName "productionFacility"^^xsd:string 480 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
481 + sp:predicate rdf:type ;
482 + sp:subject _:b51
483 + ] [ sp:object _:b52 ;
484 + sp:predicate rdf:type ;
485 + sp:subject _:b51
486 + ]) ;
487 + sp:where ([ sp:object _:b53 ;
488 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
489 + sp:subject spin:_this
490 + ] [ sp:object _:b54 ;
491 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
492 + sp:subject _:b53
493 + ] [ sp:object _:b55 ;
494 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
495 + sp:subject _:b54
496 + ] [ rdf:type sp:Optional ;
497 + sp:elements ([ sp:object
498 + [ sp:varName "facilityNamingSystem"^^xsd:string
581 ] ; 499 ] ;
582 - sp:predicate 500 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
583 - [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string 501 + sp:subject _:b54
502 + ])
503 + ] [ rdf:type sp:Optional ;
504 + sp:elements ([ sp:object _:b56 ;
505 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
506 + sp:subject _:b54
507 + ])
508 + ] [ rdf:type sp:Bind ;
509 + sp:expression
510 + [ rdf:type ep-spin-lib:normalizeString ;
511 + sp:arg1 _:b55
584 ] ; 512 ] ;
585 - sp:subject 513 + sp:variable _:b57
586 - [ sp:varName "productionFlow"^^xsd:string 514 + ] [ rdf:type sp:Bind ;
587 - ] 515 + sp:expression
588 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; 516 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
517 + sp:arg1 _:b57
518 + ] ;
519 + sp:variable _:b51
520 + ] [ rdf:type sp:Bind ;
521 + sp:expression
522 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
523 + sp:arg1 _:b56
524 + ] ;
525 + sp:variable _:b52
526 + ])
527 + ] ;
528 + spin:rule
529 + [ rdf:type sp:Construct ;
530 + rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ;
531 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
589 sp:predicate rdf:type ; 532 sp:predicate rdf:type ;
590 - sp:subject 533 + sp:subject _:b58
591 - [ sp:varName "productionFlow"^^xsd:string
592 - ]
593 ] [ sp:object 534 ] [ sp:object
594 - [ sp:varName "productionFlowPurposeType"^^xsd:string 535 + [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
595 ] ; 536 ] ;
596 sp:predicate rdf:type ; 537 sp:predicate rdf:type ;
597 - sp:subject 538 + sp:subject _:b58
598 - [ sp:varName "productionFlow"^^xsd:string 539 + ] [ sp:object
599 - ] 540 + [ sp:varName "productFlowToDate"^^xsd:string
541 + ] ;
542 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
543 + sp:subject _:b58
600 ] [ sp:object 544 ] [ sp:object
601 - [ sp:varName "productionFlowDefinitionType"^^xsd:string 545 + [ sp:varName "endTime"^^xsd:string
546 + ] ;
547 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
548 + sp:subject _:b58
549 + ] [ sp:object _:b59 ;
550 + sp:predicate
551 + [ sp:varName "relationshipToMeasure"^^xsd:string
602 ] ; 552 ] ;
553 + sp:subject _:b58
554 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
603 sp:predicate rdf:type ; 555 sp:predicate rdf:type ;
604 - sp:subject 556 + sp:subject _:b59
605 - [ sp:varName "productionFlow"^^xsd:string
606 - ]
607 ] [ sp:object 557 ] [ sp:object
608 - [ sp:varName "flowName"^^xsd:string 558 + [ sp:varName "realVolume"^^xsd:string
609 ] ; 559 ] ;
610 - sp:predicate rdfs:label ; 560 + sp:predicate
611 - sp:subject 561 + [ sp:varName "volumeScale"^^xsd:string
612 - [ sp:varName "productionFlow"^^xsd:string 562 + ] ;
613 - ] 563 + sp:subject _:b59
564 + ] [ sp:object _:b60 ;
565 + sp:predicate
566 + [ sp:varName "relationshipToMeasure"^^xsd:string
567 + ] ;
568 + sp:subject _:b58
614 ] [ sp:object 569 ] [ sp:object
615 - [ sp:varName "productionFlow"^^xsd:string 570 + [ sp:varName "volumeStdType"^^xsd:string
616 ] ; 571 ] ;
617 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
618 - sp:subject _:b36
619 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
620 sp:predicate rdf:type ; 572 sp:predicate rdf:type ;
621 - sp:subject _:b36 573 + sp:subject _:b60
622 - ] [ sp:object _:b36 ;
623 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
624 - sp:subject
625 - [ sp:varName "productionFlowsToDate"^^xsd:string
626 - ]
627 ] [ sp:object 574 ] [ sp:object
628 - [ sp:varName "flowRef"^^xsd:string 575 + [ sp:varName "realVolumeStd"^^xsd:string
629 ] ; 576 ] ;
630 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 577 + sp:predicate
631 - sp:subject _:b36 578 + [ sp:varName "volumeStdScale"^^xsd:string
579 + ] ;
580 + sp:subject _:b60
632 ]) ; 581 ]) ;
633 - sp:where ([ sp:object spin:_this ; 582 + sp:where ([ sp:object
634 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 583 + [ sp:varName "standardTempPres"^^xsd:string
635 - sp:subject
636 - [ sp:varName "dailyProductionFlows"^^xsd:string
637 - ]
638 - ] [ sp:object
639 - [ sp:varName "productionFlowsToDate"^^xsd:string
640 ] ; 584 ] ;
641 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 585 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
642 - sp:subject 586 + sp:subject spin:_this
643 - [ sp:varName "dailyProductionFlows"^^xsd:string
644 - ]
645 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
646 - sp:predicate rdf:type ;
647 - sp:subject
648 - [ sp:varName "productionFlowsToDate"^^xsd:string
649 - ]
650 ] [ sp:object 587 ] [ sp:object
651 [ sp:varName "facilityRef"^^xsd:string 588 [ sp:varName "facilityRef"^^xsd:string
652 ] ; 589 ] ;
653 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 590 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
654 sp:subject spin:_this 591 sp:subject spin:_this
655 ] [ sp:object 592 ] [ sp:object
656 - [ sp:varName "facilityNameRef"^^xsd:string 593 + [ sp:varName "flowRef"^^xsd:string
657 ] ; 594 ] ;
658 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; 595 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
659 sp:subject 596 sp:subject
660 [ sp:varName "facilityRef"^^xsd:string 597 [ sp:varName "facilityRef"^^xsd:string
661 ] 598 ]
662 ] [ sp:object 599 ] [ sp:object
663 - [ sp:varName "facilityName"^^xsd:string 600 + [ sp:varName "productRef"^^xsd:string
664 ] ; 601 ] ;
665 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 602 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
666 sp:subject 603 sp:subject
667 - [ sp:varName "facilityNameRef"^^xsd:string 604 + [ sp:varName "flowRef"^^xsd:string
668 ] 605 ]
669 ] [ sp:object 606 ] [ sp:object
670 - [ sp:varName "flowRef"^^xsd:string 607 + [ sp:varName "productRef"^^xsd:string
671 ] ; 608 ] ;
672 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; 609 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
673 sp:subject 610 sp:subject
674 - [ sp:varName "facilityRef"^^xsd:string 611 + [ sp:varName "productFlowToDate"^^xsd:string
675 ] 612 ]
676 ] [ sp:object 613 ] [ sp:object
677 - [ sp:varName "flowName"^^xsd:string 614 + [ sp:varName "periodRef"^^xsd:string
678 ] ; 615 ] ;
679 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 616 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
680 sp:subject 617 sp:subject
681 - [ sp:varName "flowRef"^^xsd:string 618 + [ sp:varName "productRef"^^xsd:string
682 ] 619 ]
683 ] [ sp:object 620 ] [ sp:object
684 - [ sp:varName "flowKind"^^xsd:string 621 + [ sp:varName "periodKindRef"^^xsd:string
685 ] ; 622 ] ;
686 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 623 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
687 sp:subject 624 sp:subject
688 - [ sp:varName "flowRef"^^xsd:string 625 + [ sp:varName "periodRef"^^xsd:string
689 ] 626 ]
690 ] [ sp:object 627 ] [ sp:object
691 - [ sp:varName "flowDirection"^^xsd:string 628 + [ sp:varName "endTime"^^xsd:string
692 ] ; 629 ] ;
693 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; 630 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
694 sp:subject 631 sp:subject
695 - [ sp:varName "flowRef"^^xsd:string 632 + [ sp:varName "periodRef"^^xsd:string
696 ] 633 ]
697 ] [ rdf:type sp:Optional ; 634 ] [ rdf:type sp:Optional ;
698 sp:elements ([ sp:object 635 sp:elements ([ sp:object
699 - [ sp:varName "flowQualifier"^^xsd:string 636 + [ sp:varName "volumeRef"^^xsd:string
700 ] ; 637 ] ;
701 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ; 638 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
702 sp:subject 639 sp:subject
703 - [ sp:varName "flowRef"^^xsd:string 640 + [ sp:varName "periodRef"^^xsd:string
704 ] 641 ]
705 - ]) 642 + ] [ sp:object
706 - ] [ rdf:type sp:Bind ; 643 + [ sp:varName "realVolume"^^xsd:string
707 - sp:expression 644 + ] ;
708 - [ rdf:type ep-spin-lib:normalizeString ; 645 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
709 - sp:arg1 [ sp:varName "facilityName"^^xsd:string 646 + sp:subject
647 + [ sp:varName "volumeRef"^^xsd:string
710 ] 648 ]
649 + ] [ sp:object
650 + [ sp:varName "uomVolume"^^xsd:string
711 ] ; 651 ] ;
712 - sp:variable 652 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
713 - [ sp:varName "normalizedFacilityName"^^xsd:string 653 + sp:subject
654 + [ sp:varName "volumeRef"^^xsd:string
714 ] 655 ]
715 - ] [ rdf:type sp:Bind ; 656 + ])
716 - sp:expression 657 + ] [ rdf:type sp:Optional ;
717 - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 658 + sp:elements ([ sp:object
718 - sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string 659 + [ sp:varName "volumeStdRef"^^xsd:string
660 + ] ;
661 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
662 + sp:subject
663 + [ sp:varName "periodRef"^^xsd:string
664 + ]
665 + ] [ sp:object
666 + [ sp:varName "realVolumeStd"^^xsd:string
667 + ] ;
668 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
669 + sp:subject
670 + [ sp:varName "volumeStdRef"^^xsd:string
719 ] 671 ]
672 + ] [ sp:object
673 + [ sp:varName "uomVolumeStd"^^xsd:string
720 ] ; 674 ] ;
721 - sp:variable 675 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
722 - [ sp:varName "productionFacility"^^xsd:string 676 + sp:subject
677 + [ sp:varName "volumeStdRef"^^xsd:string
723 ] 678 ]
679 + ])
724 ] [ rdf:type sp:Bind ; 680 ] [ rdf:type sp:Bind ;
725 sp:expression 681 sp:expression
726 - [ rdf:type ep-spin-lib:normalizeString ; 682 + [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
727 - sp:arg1 [ sp:varName "flowName"^^xsd:string 683 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
728 ] 684 ]
729 ] ; 685 ] ;
730 sp:variable 686 sp:variable
731 - [ sp:varName "normalizedFlowName"^^xsd:string 687 + [ sp:varName "relationshipToMeasure"^^xsd:string
732 ] 688 ]
733 ] [ rdf:type sp:Bind ; 689 ] [ rdf:type sp:Bind ;
734 sp:expression 690 sp:expression
735 - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 691 + [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
736 - sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string 692 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
737 ] 693 ]
738 ] ; 694 ] ;
739 sp:variable 695 sp:variable
740 - [ sp:varName "productionFlow"^^xsd:string 696 + [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
741 ] 697 ]
742 ] [ rdf:type sp:Bind ; 698 ] [ rdf:type sp:Bind ;
743 sp:expression 699 sp:expression
744 - [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; 700 + [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
745 - sp:arg1 [ sp:varName "flowKind"^^xsd:string 701 + sp:arg1 [ sp:varName "standardTempPres"^^xsd:string
746 ] 702 ]
747 ] ; 703 ] ;
748 sp:variable 704 sp:variable
749 - [ sp:varName "productionFlowPurposeType"^^xsd:string 705 + [ sp:varName "volumeStdType"^^xsd:string
750 ] 706 ]
751 ] [ rdf:type sp:Bind ; 707 ] [ rdf:type sp:Bind ;
752 sp:expression 708 sp:expression
753 - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ; 709 + [ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
754 - sp:arg1 [ sp:varName "flowQualifier"^^xsd:string 710 + sp:arg1 [ sp:varName "uomVolume"^^xsd:string
755 ] 711 ]
756 ] ; 712 ] ;
757 sp:variable 713 sp:variable
758 - [ sp:varName "productionFlowDefinitionType"^^xsd:string 714 + [ sp:varName "volumeScale"^^xsd:string
759 ] 715 ]
760 ] [ rdf:type sp:Bind ; 716 ] [ rdf:type sp:Bind ;
761 sp:expression 717 sp:expression
762 - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ; 718 + [ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
763 - sp:arg1 [ sp:varName "flowDirection"^^xsd:string 719 + sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string
764 ] 720 ]
765 ] ; 721 ] ;
766 sp:variable 722 sp:variable
767 - [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string 723 + [ sp:varName "volumeStdScale"^^xsd:string
768 ] 724 ]
769 ]) 725 ])
770 ] . 726 ] .
771 727
772 -_:b11 728 +_:b51
773 - sp:varName "relatedFacility"^^xsd:string . 729 + sp:varName "productionFacility"^^xsd:string .
774 730
775 -_:b12 731 +_:b52
776 - sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . 732 + sp:varName "productionFacilityType"^^xsd:string .
777 733
778 -_:b13 734 +_:b53
779 - sp:varName "productionFlow"^^xsd:string . 735 + sp:varName "facilityRef"^^xsd:string .
780 736
781 -_:b14 737 +_:b54
782 - sp:varName "relatedFacilityType"^^xsd:string . 738 + sp:varName "facilityNameRef"^^xsd:string .
783 739
784 -_:b15 740 +_:b55
741 + sp:varName "facilityName"^^xsd:string .
742 +
743 +_:b56
744 + sp:varName "facilityKind"^^xsd:string .
745 +
746 +_:b57
747 + sp:varName "normalizedFacilityName"^^xsd:string .
748 +
749 +_:b42
750 + sp:varName "dailyProductionFlows"^^xsd:string .
751 +
752 +_:b40
753 + sp:varName "productionFlowsToDate"^^xsd:string .
754 +
755 +_:b43
785 sp:varName "facilityRef"^^xsd:string . 756 sp:varName "facilityRef"^^xsd:string .
786 757
787 -_:b16 758 +_:b44
759 + sp:varName "facilityNameRef"^^xsd:string .
760 +
761 +_:b45
762 + sp:varName "facilityName"^^xsd:string .
763 +
764 +_:b41
788 sp:varName "flowRef"^^xsd:string . 765 sp:varName "flowRef"^^xsd:string .
789 766
790 -_:b17 767 +_:b38
791 sp:varName "flowName"^^xsd:string . 768 sp:varName "flowName"^^xsd:string .
792 769
793 -_:b18 770 +_:b46
771 + sp:varName "flowKind"^^xsd:string .
772 +
773 +_:b47
794 sp:varName "flowDirection"^^xsd:string . 774 sp:varName "flowDirection"^^xsd:string .
795 775
796 -_:b19 776 +_:b48
797 - sp:varName "relatedFacilityRef"^^xsd:string . 777 + sp:varName "flowQualifier"^^xsd:string .
798 778
799 -_:b20 779 +_:b49
800 - sp:varName "relatedFacilityName"^^xsd:string . 780 + sp:varName "normalizedFacilityName"^^xsd:string .
801 781
802 -_:b21 782 +_:b33
803 - sp:varName "relatedFacilityKind"^^xsd:string . 783 + sp:varName "productionFacility"^^xsd:string .
804 784
805 -_:b22 785 +_:b36
806 - sp:varName "normalizedFlowName"^^xsd:string . 786 + sp:varName "productionFlowPurposeType"^^xsd:string .
807 787
808 -_:b23 788 +_:b50
809 - sp:varName "normalizedRelatedFacilityName"^^xsd:string . 789 + sp:varName "productionFlowPurposeTypeName"^^xsd:string .
810 790
811 -_:b4 sp:varName "productionFacility"^^xsd:string . 791 +_:b35
792 + sp:varName "productionFlow"^^xsd:string .
812 793
813 -_:b5 sp:varName "productionFacilityType"^^xsd:string . 794 +_:b37
795 + sp:varName "productionFlowDefinitionType"^^xsd:string .
814 796
815 -_:b6 sp:varName "facilityRef"^^xsd:string . 797 +_:b34
798 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
816 799
817 -_:b7 sp:varName "facilityNameRef"^^xsd:string . 800 +_:b19
801 + sp:varName "facilityRef"^^xsd:string .
818 802
819 -_:b8 sp:varName "facilityName"^^xsd:string . 803 +_:b20
804 + sp:varName "facilityNameRef"^^xsd:string .
820 805
821 -_:b9 sp:varName "facilityKind"^^xsd:string . 806 +_:b21
807 + sp:varName "facilityName"^^xsd:string .
822 808
823 -_:b10 809 +_:b22
824 - sp:varName "normalizedFacilityName"^^xsd:string . 810 + sp:varName "flowRef"^^xsd:string .
811 +
812 +_:b23
813 + sp:varName "flowKind"^^xsd:string .
814 +
815 +_:b24
816 + sp:varName "flowDirection"^^xsd:string .
817 +
818 +_:b25
819 + sp:varName "relatedFacilityRef"^^xsd:string .
825 820
826 _:b26 821 _:b26
827 - sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . 822 + sp:varName "relatedFacilityName"^^xsd:string .
828 823
829 _:b27 824 _:b27
830 - sp:varName "productionFlow"^^xsd:string . 825 + sp:varName "relatedFacilityKind"^^xsd:string .
831 826
832 _:b28 827 _:b28
833 - sp:varName "relatedFacilityType"^^xsd:string . 828 + sp:varName "normalizedFacilityName"^^xsd:string .
834 829
835 _:b29 830 _:b29
836 - sp:varName "facilityRef"^^xsd:string . 831 + sp:varName "productionFlowPurposeType"^^xsd:string .
837 832
838 _:b30 833 _:b30
839 - sp:varName "flowRef"^^xsd:string . 834 + sp:varName "productionFlowPurposeTypeName"^^xsd:string .
835 +
836 +_:b17
837 + sp:varName "productionFlow"^^xsd:string .
840 838
841 _:b31 839 _:b31
842 - sp:varName "flowName"^^xsd:string . 840 + sp:varName "normalizedRelatedFacilityName"^^xsd:string .
843 841
844 -_:b32 842 +_:b15
845 - sp:varName "flowDirection"^^xsd:string . 843 + sp:varName "relatedFacility"^^xsd:string .
846 844
847 -_:b33 845 +_:b18
846 + sp:varName "relatedFacilityType"^^xsd:string .
847 +
848 +_:b16
849 + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
850 +
851 +_:b5 sp:varName "facilityRef"^^xsd:string .
852 +
853 +_:b6 sp:varName "facilityNameRef"^^xsd:string .
854 +
855 +_:b7 sp:varName "facilityName"^^xsd:string .
856 +
857 +_:b8 sp:varName "flowRef"^^xsd:string .
858 +
859 +_:b9 sp:varName "flowDirection"^^xsd:string .
860 +
861 +_:b10
848 sp:varName "relatedFacilityRef"^^xsd:string . 862 sp:varName "relatedFacilityRef"^^xsd:string .
849 863
850 -_:b34 864 +_:b11
851 sp:varName "relatedFacilityKind"^^xsd:string . 865 sp:varName "relatedFacilityKind"^^xsd:string .
852 866
853 -_:b35 867 +_:b12
854 - sp:varName "normalizedFlowName"^^xsd:string . 868 + sp:varName "normalizedFacilityName"^^xsd:string .
869 +
870 +_:b13
871 + sp:varName "productionFlowPurposeType"^^xsd:string .
872 +
873 +_:b14
874 + sp:varName "productionFlowPurposeTypeName"^^xsd:string .
875 +
876 +_:b3 sp:varName "productionFlow"^^xsd:string .
877 +
878 +_:b4 sp:varName "relatedFacilityType"^^xsd:string .
879 +
880 +_:b2 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
......
1 -# Saved by TopBraid on Thu Dec 15 19:02:38 GMT 2011 1 +# Saved by TopBraid on Fri Dec 16 17:53:47 GMT 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 2 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
3 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
4 # imports: http://www.epim.no/schemas/mprml/1 4 # imports: http://www.epim.no/schemas/mprml/1
...@@ -23,141 +23,122 @@ ...@@ -23,141 +23,122 @@
23 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 23 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
24 spin:rule 24 spin:rule
25 [ rdf:type sp:Construct ; 25 [ rdf:type sp:Construct ;
26 - rdfs:comment "STEP 20106 This step (not in the DPR) is there because there can be multiple volumeValue elements"^^xsd:string ; 26 + rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ;
27 - sp:templates ([ sp:object _:b1 ; 27 + sp:templates ([ sp:object
28 - sp:predicate _:b2 ; 28 + [ sp:varName "relatedFacility"^^xsd:string
29 - sp:subject _:b3 29 + ] ;
30 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ; 30 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
31 - sp:predicate rdf:type ;
32 - sp:subject _:b1
33 - ] [ sp:object _:b4 ;
34 - sp:predicate rdf:type ;
35 - sp:subject _:b1
36 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
37 - sp:predicate rdf:type ;
38 - sp:subject _:b4
39 - ] [ sp:object _:b5 ;
40 - sp:predicate _:b6 ;
41 - sp:subject _:b4
42 - ] [ sp:object _:b7 ;
43 - sp:predicate rdf:type ;
44 sp:subject _:b1 31 sp:subject _:b1
45 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; 32 + ] [ sp:object _:b2 ;
46 - sp:predicate rdf:type ; 33 + sp:predicate _:b3 ;
47 - sp:subject _:b7
48 - ] [ sp:object _:b8 ;
49 - sp:predicate _:b9 ;
50 - sp:subject _:b7
51 - ] [ sp:object _:b10 ;
52 - sp:predicate rdf:type ;
53 sp:subject _:b1 34 sp:subject _:b1
54 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ; 35 + ] [ sp:object _:b4 ;
55 sp:predicate rdf:type ; 36 sp:predicate rdf:type ;
56 - sp:subject _:b10 37 + sp:subject _:b2
57 - ] [ sp:object _:b11 ;
58 - sp:predicate _:b12 ;
59 - sp:subject _:b10
60 ]) ; 38 ]) ;
61 - sp:where ([ sp:object _:b13 ; 39 + sp:where ([ sp:object _:b5 ;
62 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 40 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
63 sp:subject spin:_this 41 sp:subject spin:_this
64 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 42 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
65 sp:predicate rdf:type ; 43 sp:predicate rdf:type ;
66 - sp:subject _:b13 44 + sp:subject _:b5
67 - ] [ sp:object _:b14 ; 45 + ] [ sp:object _:b6 ;
68 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 46 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
69 - sp:subject _:b13 47 + sp:subject _:b5
70 - ] [ sp:object _:b15 ; 48 + ] [ sp:object _:b7 ;
71 - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 49 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
72 - sp:subject _:b14 50 + sp:subject _:b6
73 - ] [ sp:object _:b16 ;
74 - sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
75 - sp:subject _:b15
76 - ] [ sp:object _:b17 ;
77 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
78 - sp:subject _:b16
79 - ] [ sp:object _:b18 ;
80 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
81 - sp:subject _:b17
82 - ] [ sp:object _:b17 ;
83 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
84 - sp:subject _:b3
85 - ] [ sp:object _:b19 ;
86 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
87 - sp:subject _:b17
88 - ] [ sp:object _:b20 ;
89 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
90 - sp:subject _:b19
91 - ] [ sp:object _:b5 ;
92 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
93 - sp:subject _:b20
94 - ] [ sp:object _:b21 ;
95 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
96 - sp:subject _:b20
97 - ] [ rdf:type sp:Optional ;
98 - sp:elements ([ sp:object _:b22 ;
99 - sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
100 - sp:subject _:b19
101 ] [ sp:object _:b8 ; 51 ] [ sp:object _:b8 ;
102 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 52 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
103 - sp:subject _:b22 53 + sp:subject _:b7
104 - ] [ sp:object _:b23 ; 54 + ] [ sp:object _:b9 ;
105 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 55 + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
106 - sp:subject _:b22 56 + sp:subject _:b6
107 - ]) 57 + ] [ sp:object _:b10 ;
108 - ] [ rdf:type sp:Optional ; 58 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
109 - sp:elements ([ sp:object _:b24 ; 59 + sp:subject _:b9
110 - sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
111 - sp:subject _:b19
112 ] [ sp:object _:b11 ; 60 ] [ sp:object _:b11 ;
113 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 61 + sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
114 - sp:subject _:b24 62 + sp:subject _:b9
115 - ] [ sp:object _:b25 ; 63 + ] [ sp:object _:b12 ;
116 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 64 + sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
117 - sp:subject _:b24 65 + sp:subject _:b9
118 - ]) 66 + ] [ sp:object _:b13 ;
67 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
68 + sp:subject _:b12
119 ] [ rdf:type sp:Bind ; 69 ] [ rdf:type sp:Bind ;
120 sp:expression 70 sp:expression
121 - [ rdf:type ep-mpr-spin-lib:selectRelationshipToMeasure ; 71 + [ rdf:type ep-spin-lib:normalizeString ;
122 - sp:arg1 _:b18 72 + sp:arg1 _:b8
123 ] ; 73 ] ;
124 - sp:variable _:b2 74 + sp:variable _:b14
125 ] [ rdf:type sp:Bind ; 75 ] [ rdf:type sp:Bind ;
126 sp:expression 76 sp:expression
127 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ; 77 + [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
128 - sp:arg1 _:b21 78 + sp:arg1 _:b10
129 ] ; 79 ] ;
130 - sp:variable _:b6 80 + sp:variable _:b15
131 ] [ rdf:type sp:Bind ; 81 ] [ rdf:type sp:Bind ;
132 sp:expression 82 sp:expression
133 - [ rdf:type ep-mpr-spin-lib:selectTemperatureScale ; 83 + [ rdf:type spl:object ;
134 - sp:arg1 _:b23 84 + sp:arg1 _:b15 ;
85 + sp:arg2 rdfs:label
135 ] ; 86 ] ;
136 - sp:variable _:b9 87 + sp:variable _:b16
137 ] [ rdf:type sp:Bind ; 88 ] [ rdf:type sp:Bind ;
138 sp:expression 89 sp:expression
139 - [ rdf:type ep-mpr-spin-lib:selectPressureScale ; 90 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
140 - sp:arg1 _:b25 91 + sp:arg1 _:b14 ;
92 + sp:arg2 _:b16
93 + ] ;
94 + sp:variable _:b1
95 + ] [ rdf:type sp:Bind ;
96 + sp:expression
97 + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
98 + sp:arg1 _:b13
99 + ] ;
100 + sp:variable _:b4
101 + ] [ rdf:type sp:Bind ;
102 + sp:expression
103 + [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
104 + sp:arg1 _:b11
141 ] ; 105 ] ;
142 - sp:variable _:b12 106 + sp:variable _:b3
143 ]) 107 ])
144 ] ; 108 ] ;
145 spin:rule 109 spin:rule
146 [ rdf:type sp:Construct ; 110 [ rdf:type sp:Construct ;
147 - rdfs:comment """STEP 20102 Record the Facility that has the flows 111 + rdfs:comment """STEP 20105 record the temporal parts of product flows
148 -Nothing is done with the namingSystem!"""^^xsd:string ; 112 +period/kind is optional, but is assumed mandatory here. This is because it is not clear how to obtain the default value which is the period of the report.
149 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; 113 +There are several different ways of specifying the time of the period. Temporarily, only dTimStart and dTimEnd are supported."""^^xsd:string ;
114 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
150 sp:predicate rdf:type ; 115 sp:predicate rdf:type ;
151 - sp:subject 116 + sp:subject _:b17
152 - [ sp:varName "productionFacility"^^xsd:string
153 - ]
154 ] [ sp:object 117 ] [ sp:object
155 - [ sp:varName "productionFacilityType"^^xsd:string 118 + [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
156 ] ; 119 ] ;
157 sp:predicate rdf:type ; 120 sp:predicate rdf:type ;
158 - sp:subject 121 + sp:subject _:b17
159 - [ sp:varName "productionFacility"^^xsd:string 122 + ] [ sp:object
160 - ] 123 + [ sp:varName "productFlowToDate"^^xsd:string
124 + ] ;
125 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
126 + sp:subject _:b17
127 + ] [ sp:object
128 + [ sp:varName "dTimStart"^^xsd:string
129 + ] ;
130 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
131 + sp:subject _:b17
132 + ] [ sp:object
133 + [ sp:varName "dTimEnd"^^xsd:string
134 + ] ;
135 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
136 + sp:subject _:b17
137 + ] [ sp:object
138 + [ sp:varName "periodRef"^^xsd:string
139 + ] ;
140 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
141 + sp:subject _:b17
161 ]) ; 142 ]) ;
162 sp:where ([ sp:object 143 sp:where ([ sp:object
163 [ sp:varName "productVolumeRef"^^xsd:string 144 [ sp:varName "productVolumeRef"^^xsd:string
...@@ -177,88 +158,146 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -177,88 +158,146 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
177 [ sp:varName "productVolumeRef"^^xsd:string 158 [ sp:varName "productVolumeRef"^^xsd:string
178 ] 159 ]
179 ] [ sp:object 160 ] [ sp:object
180 - [ sp:varName "facilityNameRef"^^xsd:string 161 + [ sp:varName "flowRef"^^xsd:string
181 ] ; 162 ] ;
182 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 163 + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
183 sp:subject 164 sp:subject
184 [ sp:varName "facilityRef"^^xsd:string 165 [ sp:varName "facilityRef"^^xsd:string
185 ] 166 ]
186 ] [ sp:object 167 ] [ sp:object
187 - [ sp:varName "facilityName"^^xsd:string 168 + [ sp:varName "productRef"^^xsd:string
188 ] ; 169 ] ;
189 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 170 + sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
190 sp:subject 171 sp:subject
191 - [ sp:varName "facilityNameRef"^^xsd:string 172 + [ sp:varName "flowRef"^^xsd:string
173 + ]
174 + ] [ sp:object
175 + [ sp:varName "productRef"^^xsd:string
176 + ] ;
177 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
178 + sp:subject
179 + [ sp:varName "productFlowToDate"^^xsd:string
180 + ]
181 + ] [ sp:object
182 + [ sp:varName "periodRef"^^xsd:string
183 + ] ;
184 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
185 + sp:subject
186 + [ sp:varName "productRef"^^xsd:string
187 + ]
188 + ] [ sp:object
189 + [ sp:varName "periodKindRef"^^xsd:string
190 + ] ;
191 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
192 + sp:subject
193 + [ sp:varName "periodRef"^^xsd:string
192 ] 194 ]
193 ] [ rdf:type sp:Optional ; 195 ] [ rdf:type sp:Optional ;
194 sp:elements ([ sp:object 196 sp:elements ([ sp:object
195 - [ sp:varName "facilityNamingSystem"^^xsd:string 197 + [ sp:varName "dTimEnd"^^xsd:string
196 ] ; 198 ] ;
197 - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; 199 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
198 sp:subject 200 sp:subject
199 - [ sp:varName "facilityNameRef"^^xsd:string 201 + [ sp:varName "periodRef"^^xsd:string
200 ] 202 ]
201 ]) 203 ])
202 ] [ rdf:type sp:Optional ; 204 ] [ rdf:type sp:Optional ;
203 sp:elements ([ sp:object 205 sp:elements ([ sp:object
204 - [ sp:varName "facilityKind"^^xsd:string 206 + [ sp:varName "date"^^xsd:string
205 ] ; 207 ] ;
206 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 208 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
207 sp:subject 209 sp:subject
208 - [ sp:varName "facilityNameRef"^^xsd:string 210 + [ sp:varName "periodRef"^^xsd:string
209 ] 211 ]
210 ]) 212 ])
211 - ] [ rdf:type sp:Bind ; 213 + ] [ rdf:type sp:Optional ;
212 - sp:expression 214 + sp:elements ([ sp:object
213 - [ rdf:type ep-spin-lib:normalizeString ; 215 + [ sp:varName "dTimStart"^^xsd:string
214 - sp:arg1 [ sp:varName "facilityName"^^xsd:string 216 + ] ;
217 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
218 + sp:subject
219 + [ sp:varName "periodRef"^^xsd:string
215 ] 220 ]
221 + ] [ rdf:type sp:Optional ;
222 + sp:elements ([ sp:object
223 + [ sp:varName "dTimEnd"^^xsd:string
216 ] ; 224 ] ;
217 - sp:variable 225 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
218 - [ sp:varName "normalizedFacilityName"^^xsd:string 226 + sp:subject
227 + [ sp:varName "periodRef"^^xsd:string
219 ] 228 ]
220 - ] [ rdf:type sp:Bind ; 229 + ])
221 - sp:expression 230 + ])
222 - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 231 + ] [ rdf:type sp:Optional ;
223 - sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string 232 + sp:elements ([ sp:object
233 + [ sp:varName "dateStart"^^xsd:string
234 + ] ;
235 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
236 + sp:subject
237 + [ sp:varName "periodRef"^^xsd:string
224 ] 238 ]
239 + ] [ rdf:type sp:Optional ;
240 + sp:elements ([ sp:object
241 + [ sp:varName "dateEnd"^^xsd:string
225 ] ; 242 ] ;
226 - sp:variable 243 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
227 - [ sp:varName "productionFacility"^^xsd:string 244 + sp:subject
245 + [ sp:varName "periodRef"^^xsd:string
228 ] 246 ]
247 + ])
248 + ])
229 ] [ rdf:type sp:Bind ; 249 ] [ rdf:type sp:Bind ;
230 sp:expression 250 sp:expression
231 - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 251 + [ rdf:type ep-mpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
232 - sp:arg1 [ sp:varName "facilityKind"^^xsd:string 252 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
233 ] 253 ]
234 ] ; 254 ] ;
235 sp:variable 255 sp:variable
236 - [ sp:varName "productionFacilityType"^^xsd:string 256 + [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
237 ] 257 ]
238 ]) 258 ])
239 ] ; 259 ] ;
240 spin:rule 260 spin:rule
241 [ rdf:type sp:Construct ; 261 [ rdf:type sp:Construct ;
242 - rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ; 262 + rdfs:comment """STEP 20104 record the product flows - unlike for the DPR the flow name is not used to construct the ProductionFlow URI
263 +namingSystem not processed"""^^xsd:string ;
243 sp:templates ([ sp:object 264 sp:templates ([ sp:object
244 - [ sp:varName "relatedFacility"^^xsd:string 265 + [ sp:varName "productFlow"^^xsd:string
245 ] ; 266 ] ;
246 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; 267 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
247 sp:subject 268 sp:subject
248 [ sp:varName "productionFlow"^^xsd:string 269 [ sp:varName "productionFlow"^^xsd:string
249 ] 270 ]
250 - ] [ sp:object _:b26 ; 271 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
251 - sp:predicate 272 + sp:predicate rdf:type ;
252 - [ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string 273 + sp:subject
274 + [ sp:varName "productFlow"^^xsd:string
275 + ]
276 + ] [ sp:object
277 + [ sp:varName "productType"^^xsd:string
253 ] ; 278 ] ;
279 + sp:predicate rdf:type ;
254 sp:subject 280 sp:subject
255 - [ sp:varName "productionFlow"^^xsd:string 281 + [ sp:varName "productFlow"^^xsd:string
256 ] 282 ]
257 ] [ sp:object 283 ] [ sp:object
258 - [ sp:varName "relatedFacilityType"^^xsd:string 284 + [ sp:varName "productFlow"^^xsd:string
259 ] ; 285 ] ;
286 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
287 + sp:subject _:b18
288 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
260 sp:predicate rdf:type ; 289 sp:predicate rdf:type ;
261 - sp:subject _:b26 290 + sp:subject _:b18
291 + ] [ sp:object _:b18 ;
292 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
293 + sp:subject
294 + [ sp:varName "productionFlowToDate"^^xsd:string
295 + ]
296 + ] [ sp:object
297 + [ sp:varName "productRef"^^xsd:string
298 + ] ;
299 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
300 + sp:subject _:b18
262 ]) ; 301 ]) ;
263 sp:where ([ sp:object 302 sp:where ([ sp:object
264 [ sp:varName "productVolumeRef"^^xsd:string 303 [ sp:varName "productVolumeRef"^^xsd:string
...@@ -278,6 +317,13 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -278,6 +317,13 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
278 [ sp:varName "productVolumeRef"^^xsd:string 317 [ sp:varName "productVolumeRef"^^xsd:string
279 ] 318 ]
280 ] [ sp:object 319 ] [ sp:object
320 + [ sp:varName "productVolumeRef"^^xsd:string
321 + ] ;
322 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
323 + sp:subject
324 + [ sp:varName "productionFlowsToDate"^^xsd:string
325 + ]
326 + ] [ sp:object
281 [ sp:varName "flowRef"^^xsd:string 327 [ sp:varName "flowRef"^^xsd:string
282 ] ; 328 ] ;
283 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 329 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
...@@ -285,61 +331,96 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -285,61 +331,96 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
285 [ sp:varName "facilityRef"^^xsd:string 331 [ sp:varName "facilityRef"^^xsd:string
286 ] 332 ]
287 ] [ sp:object 333 ] [ sp:object
288 - [ sp:varName "flowDirection"^^xsd:string 334 + [ sp:varName "productRef"^^xsd:string
289 ] ; 335 ] ;
290 - sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ; 336 + sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
291 sp:subject 337 sp:subject
292 [ sp:varName "flowRef"^^xsd:string 338 [ sp:varName "flowRef"^^xsd:string
293 ] 339 ]
294 ] [ sp:object 340 ] [ sp:object
295 - [ sp:varName "relatedFacilityRef"^^xsd:string 341 + [ sp:varName "flowRef"^^xsd:string
296 ] ; 342 ] ;
297 - sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ; 343 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
298 sp:subject 344 sp:subject
299 - [ sp:varName "flowRef"^^xsd:string 345 + [ sp:varName "productionFlowToDate"^^xsd:string
300 ] 346 ]
301 ] [ sp:object 347 ] [ sp:object
302 - [ sp:varName "relatedFacilityKind"^^xsd:string 348 + [ sp:varName "productionFlow"^^xsd:string
349 + ] ;
350 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
351 + sp:subject
352 + [ sp:varName "productionFlowToDate"^^xsd:string
353 + ]
354 + ] [ sp:object
355 + [ sp:varName "productKind"^^xsd:string
303 ] ; 356 ] ;
304 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 357 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
305 sp:subject 358 sp:subject
306 - [ sp:varName "relatedFacilityRef"^^xsd:string 359 + [ sp:varName "productRef"^^xsd:string
360 + ]
361 + ] [ rdf:type sp:Optional ;
362 + sp:elements ([ sp:object
363 + [ sp:varName "productNameRef"^^xsd:string
364 + ] ;
365 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
366 + sp:subject
367 + [ sp:varName "productRef"^^xsd:string
368 + ]
369 + ] [ sp:object
370 + [ sp:varName "productFlowName"^^xsd:string
371 + ] ;
372 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
373 + sp:subject
374 + [ sp:varName "productNameRef"^^xsd:string
307 ] 375 ]
376 + ])
308 ] [ rdf:type sp:Bind ; 377 ] [ rdf:type sp:Bind ;
309 sp:expression 378 sp:expression
310 - [ rdf:type afn:localname ; 379 + [ rdf:type ep-mpr-spin-lib:selectProductType ;
311 - sp:arg1 [ sp:varName "flowRef"^^xsd:string 380 + sp:arg1 [ sp:varName "productKind"^^xsd:string
312 ] 381 ]
313 ] ; 382 ] ;
314 sp:variable 383 sp:variable
315 - [ sp:varName "localname"^^xsd:string 384 + [ sp:varName "productType"^^xsd:string
316 ] 385 ]
317 ] [ rdf:type sp:Bind ; 386 ] [ rdf:type sp:Bind ;
318 sp:expression 387 sp:expression
319 - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 388 + [ rdf:type spl:object ;
320 - sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string 389 + sp:arg1 [ sp:varName "productType"^^xsd:string
390 + ] ;
391 + sp:arg2 rdfs:label
392 + ] ;
393 + sp:variable
394 + [ sp:varName "productTypeName"^^xsd:string
395 + ]
396 + ] [ rdf:type sp:Bind ;
397 + sp:expression
398 + [ rdf:type ep-spin-lib:normalizeString ;
399 + sp:arg1 [ sp:varName "productTypeName"^^xsd:string
321 ] 400 ]
322 ] ; 401 ] ;
323 sp:variable 402 sp:variable
324 - [ sp:varName "productionFlow"^^xsd:string 403 + [ sp:varName "normalizedProductTypeName"^^xsd:string
325 ] 404 ]
326 ] [ rdf:type sp:Bind ; 405 ] [ rdf:type sp:Bind ;
327 sp:expression 406 sp:expression
328 - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 407 + [ rdf:type afn:localname ;
329 - sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string 408 + sp:arg1 [ sp:varName "flowRef"^^xsd:string
330 ] 409 ]
331 ] ; 410 ] ;
332 sp:variable 411 sp:variable
333 - [ sp:varName "relatedFacilityType"^^xsd:string 412 + [ sp:varName "localname"^^xsd:string
334 ] 413 ]
335 ] [ rdf:type sp:Bind ; 414 ] [ rdf:type sp:Bind ;
336 sp:expression 415 sp:expression
337 - [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; 416 + [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
338 - sp:arg1 [ sp:varName "flowDirection"^^xsd:string 417 + sp:arg1 [ sp:varName "localname"^^xsd:string
418 + ] ;
419 + sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
339 ] 420 ]
340 ] ; 421 ] ;
341 sp:variable 422 sp:variable
342 - [ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string 423 + [ sp:varName "productFlow"^^xsd:string
343 ] 424 ]
344 ]) 425 ])
345 ] ; 426 ] ;
...@@ -347,156 +428,113 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -347,156 +428,113 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
347 [ rdf:type sp:Construct ; 428 [ rdf:type sp:Construct ;
348 rdfs:comment """STEP 20103b record the related facility - a neutral link is provided in case there is no direction. 429 rdfs:comment """STEP 20103b record the related facility - a neutral link is provided in case there is no direction.
349 nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ; 430 nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
350 - sp:templates ([ sp:object 431 + sp:templates ([ sp:object _:b19 ;
351 - [ sp:varName "relatedFacility"^^xsd:string
352 - ] ;
353 sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; 432 sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
354 - sp:subject 433 + sp:subject _:b20
355 - [ sp:varName "productionFlow"^^xsd:string 434 + ] [ sp:object _:b19 ;
356 - ] 435 + sp:predicate _:b21 ;
357 - ] [ sp:object 436 + sp:subject _:b20
358 - [ sp:varName "relatedFacility"^^xsd:string 437 + ] [ sp:object _:b22 ;
359 - ] ;
360 - sp:predicate
361 - [ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
362 - ] ;
363 - sp:subject
364 - [ sp:varName "productionFlow"^^xsd:string
365 - ]
366 - ] [ sp:object
367 - [ sp:varName "relatedFacilityType"^^xsd:string
368 - ] ;
369 sp:predicate rdf:type ; 438 sp:predicate rdf:type ;
370 - sp:subject 439 + sp:subject _:b19
371 - [ sp:varName "relatedFacility"^^xsd:string
372 - ]
373 ]) ; 440 ]) ;
374 - sp:where ([ sp:object 441 + sp:where ([ sp:object _:b23 ;
375 - [ sp:varName "productVolumeRef"^^xsd:string
376 - ] ;
377 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 442 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
378 sp:subject spin:_this 443 sp:subject spin:_this
379 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 444 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
380 sp:predicate rdf:type ; 445 sp:predicate rdf:type ;
381 - sp:subject 446 + sp:subject _:b23
382 - [ sp:varName "productVolumeRef"^^xsd:string 447 + ] [ sp:object _:b24 ;
383 - ]
384 - ] [ sp:object
385 - [ sp:varName "facilityRef"^^xsd:string
386 - ] ;
387 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 448 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
388 - sp:subject 449 + sp:subject _:b23
389 - [ sp:varName "productVolumeRef"^^xsd:string 450 + ] [ sp:object _:b25 ;
390 - ] 451 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
391 - ] [ sp:object 452 + sp:subject _:b24
392 - [ sp:varName "flowRef"^^xsd:string 453 + ] [ sp:object _:b26 ;
393 - ] ; 454 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
455 + sp:subject _:b25
456 + ] [ sp:object _:b27 ;
394 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 457 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
395 - sp:subject 458 + sp:subject _:b24
396 - [ sp:varName "facilityRef"^^xsd:string 459 + ] [ sp:object _:b28 ;
397 - ] 460 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
461 + sp:subject _:b27
398 ] [ rdf:type sp:Optional ; 462 ] [ rdf:type sp:Optional ;
399 - sp:elements ([ sp:object 463 + sp:elements ([ sp:object _:b29 ;
400 - [ sp:varName "flowDirection"^^xsd:string
401 - ] ;
402 sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ; 464 sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
403 - sp:subject 465 + sp:subject _:b27
404 - [ sp:varName "flowRef"^^xsd:string
405 - ]
406 ]) 466 ])
407 - ] [ sp:object 467 + ] [ sp:object _:b30 ;
408 - [ sp:varName "relatedFacilityRef"^^xsd:string
409 - ] ;
410 sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ; 468 sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
411 - sp:subject 469 + sp:subject _:b27
412 - [ sp:varName "flowRef"^^xsd:string 470 + ] [ sp:object _:b31 ;
413 - ]
414 - ] [ sp:object
415 - [ sp:varName "relatedFacilityNameRef"^^xsd:string
416 - ] ;
417 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 471 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
418 - sp:subject 472 + sp:subject _:b30
419 - [ sp:varName "relatedFacilityRef"^^xsd:string 473 + ] [ sp:object _:b32 ;
420 - ]
421 - ] [ sp:object
422 - [ sp:varName "relatedFacilityName"^^xsd:string
423 - ] ;
424 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 474 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
425 - sp:subject 475 + sp:subject _:b31
426 - [ sp:varName "relatedFacilityNameRef"^^xsd:string
427 - ]
428 ] [ rdf:type sp:Optional ; 476 ] [ rdf:type sp:Optional ;
429 sp:elements ([ sp:object 477 sp:elements ([ sp:object
430 [ sp:varName "relatedFacilityNamingSystem"^^xsd:string 478 [ sp:varName "relatedFacilityNamingSystem"^^xsd:string
431 ] ; 479 ] ;
432 sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; 480 sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
433 - sp:subject 481 + sp:subject _:b31
434 - [ sp:varName "relatedFacilityNameRef"^^xsd:string
435 - ]
436 ]) 482 ])
437 ] [ rdf:type sp:Optional ; 483 ] [ rdf:type sp:Optional ;
438 - sp:elements ([ sp:object 484 + sp:elements ([ sp:object _:b33 ;
439 - [ sp:varName "relatedFacilityKind"^^xsd:string
440 - ] ;
441 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 485 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
442 - sp:subject 486 + sp:subject _:b31
443 - [ sp:varName "relatedFacilityNameRef"^^xsd:string
444 - ]
445 ]) 487 ])
446 ] [ rdf:type sp:Bind ; 488 ] [ rdf:type sp:Bind ;
447 sp:expression 489 sp:expression
448 - [ rdf:type afn:localname ; 490 + [ rdf:type ep-spin-lib:normalizeString ;
449 - sp:arg1 [ sp:varName "flowRef"^^xsd:string 491 + sp:arg1 _:b26
450 - ]
451 ] ; 492 ] ;
452 - sp:variable 493 + sp:variable _:b34
453 - [ sp:varName "localname"^^xsd:string 494 + ] [ rdf:type sp:Bind ;
454 - ] 495 + sp:expression
496 + [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
497 + sp:arg1 _:b28
498 + ] ;
499 + sp:variable _:b35
500 + ] [ rdf:type sp:Bind ;
501 + sp:expression
502 + [ rdf:type spl:object ;
503 + sp:arg1 _:b35 ;
504 + sp:arg2 rdfs:label
505 + ] ;
506 + sp:variable _:b36
455 ] [ rdf:type sp:Bind ; 507 ] [ rdf:type sp:Bind ;
456 sp:expression 508 sp:expression
457 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 509 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
458 - sp:arg1 [ sp:varName "localname"^^xsd:string 510 + sp:arg1 _:b34 ;
459 - ] 511 + sp:arg2 _:b36
460 ] ; 512 ] ;
461 - sp:variable 513 + sp:variable _:b20
462 - [ sp:varName "productionFlow"^^xsd:string
463 - ]
464 ] [ rdf:type sp:Bind ; 514 ] [ rdf:type sp:Bind ;
465 sp:expression 515 sp:expression
466 [ rdf:type ep-spin-lib:normalizeString ; 516 [ rdf:type ep-spin-lib:normalizeString ;
467 - sp:arg1 [ sp:varName "relatedFacilityName"^^xsd:string 517 + sp:arg1 _:b32
468 - ]
469 ] ; 518 ] ;
470 - sp:variable 519 + sp:variable _:b37
471 - [ sp:varName "normalizedRelatedFacilityName"^^xsd:string
472 - ]
473 ] [ rdf:type sp:Bind ; 520 ] [ rdf:type sp:Bind ;
474 sp:expression 521 sp:expression
475 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 522 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
476 - sp:arg1 [ sp:varName "normalizedRelatedFacilityName"^^xsd:string 523 + sp:arg1 _:b37
477 - ]
478 ] ; 524 ] ;
479 - sp:variable 525 + sp:variable _:b19
480 - [ sp:varName "relatedFacility"^^xsd:string
481 - ]
482 ] [ rdf:type sp:Bind ; 526 ] [ rdf:type sp:Bind ;
483 sp:expression 527 sp:expression
484 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 528 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
485 - sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string 529 + sp:arg1 _:b33
486 - ]
487 ] ; 530 ] ;
488 - sp:variable 531 + sp:variable _:b22
489 - [ sp:varName "relatedFacilityType"^^xsd:string
490 - ]
491 ] [ rdf:type sp:Bind ; 532 ] [ rdf:type sp:Bind ;
492 sp:expression 533 sp:expression
493 [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; 534 [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
494 - sp:arg1 [ sp:varName "flowDirection"^^xsd:string 535 + sp:arg1 _:b29
495 - ]
496 ] ; 536 ] ;
497 - sp:variable 537 + sp:variable _:b21
498 - [ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
499 - ]
500 ]) 538 ])
501 ] ; 539 ] ;
502 spin:rule 540 spin:rule
...@@ -504,256 +542,144 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil ...@@ -504,256 +542,144 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
504 rdfs:comment """STEP 20103a record the flows 542 rdfs:comment """STEP 20103a record the flows
505 The corresponding STEP for the DPR relies upon a flow name. For the MPR, the flow name is optional :(. 543 The corresponding STEP for the DPR relies upon a flow name. For the MPR, the flow name is optional :(.
506 The corresponding STEP for the DPR relies upon a direction, to link the flow to the productionFacility. Her a neutral link has been provided as well. Without a direction the relationship will be the same as for a relatedFacility."""^^xsd:string ; 544 The corresponding STEP for the DPR relies upon a direction, to link the flow to the productionFacility. Her a neutral link has been provided as well. Without a direction the relationship will be the same as for a relatedFacility."""^^xsd:string ;
507 - sp:templates ([ sp:object 545 + sp:templates ([ sp:object _:b38 ;
508 - [ sp:varName "productionFacility"^^xsd:string
509 - ] ;
510 sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; 546 sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
511 - sp:subject 547 + sp:subject _:b39
512 - [ sp:varName "productionFlow"^^xsd:string 548 + ] [ sp:object _:b38 ;
513 - ] 549 + sp:predicate _:b40 ;
514 - ] [ sp:object 550 + sp:subject _:b39
515 - [ sp:varName "productionFacility"^^xsd:string
516 - ] ;
517 - sp:predicate
518 - [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
519 - ] ;
520 - sp:subject
521 - [ sp:varName "productionFlow"^^xsd:string
522 - ]
523 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; 551 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
524 sp:predicate rdf:type ; 552 sp:predicate rdf:type ;
525 - sp:subject 553 + sp:subject _:b39
526 - [ sp:varName "productionFlow"^^xsd:string 554 + ] [ sp:object _:b41 ;
527 - ]
528 - ] [ sp:object
529 - [ sp:varName "productionFlowPurposeType"^^xsd:string
530 - ] ;
531 sp:predicate rdf:type ; 555 sp:predicate rdf:type ;
532 - sp:subject 556 + sp:subject _:b39
533 - [ sp:varName "productionFlow"^^xsd:string 557 + ] [ sp:object _:b42 ;
534 - ]
535 - ] [ sp:object
536 - [ sp:varName "productionFlowDefinitionType"^^xsd:string
537 - ] ;
538 sp:predicate rdf:type ; 558 sp:predicate rdf:type ;
539 - sp:subject 559 + sp:subject _:b39
540 - [ sp:varName "productionFlow"^^xsd:string 560 + ] [ sp:object _:b43 ;
541 - ]
542 - ] [ sp:object
543 - [ sp:varName "flowName"^^xsd:string
544 - ] ;
545 sp:predicate rdfs:label ; 561 sp:predicate rdfs:label ;
546 - sp:subject 562 + sp:subject _:b39
547 - [ sp:varName "productionFlow"^^xsd:string 563 + ] [ sp:object _:b39 ;
548 - ]
549 - ] [ sp:object
550 - [ sp:varName "productionFlow"^^xsd:string
551 - ] ;
552 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 564 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
553 - sp:subject _:b27 565 + sp:subject _:b44
554 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; 566 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
555 sp:predicate rdf:type ; 567 sp:predicate rdf:type ;
556 - sp:subject _:b27 568 + sp:subject _:b44
557 - ] [ sp:object _:b27 ; 569 + ] [ sp:object _:b44 ;
558 sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; 570 sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
559 - sp:subject 571 + sp:subject _:b45
560 - [ sp:varName "productionFlowsToDate"^^xsd:string 572 + ] [ sp:object _:b46 ;
561 - ]
562 - ] [ sp:object
563 - [ sp:varName "flowRef"^^xsd:string
564 - ] ;
565 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 573 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
566 - sp:subject _:b27 574 + sp:subject _:b44
567 ]) ; 575 ]) ;
568 - sp:where ([ sp:object 576 + sp:where ([ sp:object _:b47 ;
569 - [ sp:varName "productVolumeRef"^^xsd:string
570 - ] ;
571 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 577 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
572 sp:subject spin:_this 578 sp:subject spin:_this
573 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 579 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
574 sp:predicate rdf:type ; 580 sp:predicate rdf:type ;
575 - sp:subject 581 + sp:subject _:b47
576 - [ sp:varName "productVolumeRef"^^xsd:string 582 + ] [ sp:object _:b47 ;
577 - ]
578 - ] [ sp:object
579 - [ sp:varName "productVolumeRef"^^xsd:string
580 - ] ;
581 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 583 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
582 - sp:subject 584 + sp:subject _:b48
583 - [ sp:varName "reportingPeriodProductionFlows"^^xsd:string 585 + ] [ sp:object _:b45 ;
584 - ]
585 - ] [ sp:object
586 - [ sp:varName "productionFlowsToDate"^^xsd:string
587 - ] ;
588 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 586 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
589 - sp:subject 587 + sp:subject _:b48
590 - [ sp:varName "reportingPeriodProductionFlows"^^xsd:string
591 - ]
592 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; 588 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
593 sp:predicate rdf:type ; 589 sp:predicate rdf:type ;
594 - sp:subject 590 + sp:subject _:b45
595 - [ sp:varName "productionFlowsToDate"^^xsd:string 591 + ] [ sp:object _:b49 ;
596 - ]
597 - ] [ sp:object
598 - [ sp:varName "facilityRef"^^xsd:string
599 - ] ;
600 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 592 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
601 - sp:subject 593 + sp:subject _:b47
602 - [ sp:varName "productVolumeRef"^^xsd:string 594 + ] [ sp:object _:b50 ;
603 - ]
604 - ] [ sp:object
605 - [ sp:varName "facilityNameRef"^^xsd:string
606 - ] ;
607 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 595 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
608 - sp:subject 596 + sp:subject _:b49
609 - [ sp:varName "facilityRef"^^xsd:string 597 + ] [ sp:object _:b51 ;
610 - ]
611 - ] [ sp:object
612 - [ sp:varName "facilityName"^^xsd:string
613 - ] ;
614 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 598 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
615 - sp:subject 599 + sp:subject _:b50
616 - [ sp:varName "facilityNameRef"^^xsd:string 600 + ] [ sp:object _:b46 ;
617 - ]
618 - ] [ sp:object
619 - [ sp:varName "flowRef"^^xsd:string
620 - ] ;
621 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 601 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
622 - sp:subject 602 + sp:subject _:b49
623 - [ sp:varName "facilityRef"^^xsd:string
624 - ]
625 ] [ rdf:type sp:Optional ; 603 ] [ rdf:type sp:Optional ;
626 - sp:elements ([ sp:object 604 + sp:elements ([ sp:object _:b43 ;
627 - [ sp:varName "flowName"^^xsd:string
628 - ] ;
629 sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 605 sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
630 - sp:subject 606 + sp:subject _:b46
631 - [ sp:varName "flowRef"^^xsd:string
632 - ]
633 ]) 607 ])
634 - ] [ sp:object 608 + ] [ sp:object _:b52 ;
635 - [ sp:varName "flowKind"^^xsd:string
636 - ] ;
637 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 609 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
638 - sp:subject 610 + sp:subject _:b46
639 - [ sp:varName "flowRef"^^xsd:string
640 - ]
641 ] [ rdf:type sp:Optional ; 611 ] [ rdf:type sp:Optional ;
642 - sp:elements ([ sp:object 612 + sp:elements ([ sp:object _:b53 ;
643 - [ sp:varName "flowDirection"^^xsd:string
644 - ] ;
645 sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ; 613 sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
646 - sp:subject 614 + sp:subject _:b46
647 - [ sp:varName "flowRef"^^xsd:string
648 - ]
649 ]) 615 ])
650 ] [ rdf:type sp:Optional ; 616 ] [ rdf:type sp:Optional ;
651 - sp:elements ([ sp:object 617 + sp:elements ([ sp:object _:b54 ;
652 - [ sp:varName "flowQualifier"^^xsd:string
653 - ] ;
654 sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; 618 sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
655 - sp:subject 619 + sp:subject _:b46
656 - [ sp:varName "flowRef"^^xsd:string
657 - ]
658 ]) 620 ])
659 ] [ rdf:type sp:Bind ; 621 ] [ rdf:type sp:Bind ;
660 sp:expression 622 sp:expression
661 [ rdf:type ep-spin-lib:normalizeString ; 623 [ rdf:type ep-spin-lib:normalizeString ;
662 - sp:arg1 [ sp:varName "facilityName"^^xsd:string 624 + sp:arg1 _:b51
663 - ]
664 ] ; 625 ] ;
665 - sp:variable 626 + sp:variable _:b55
666 - [ sp:varName "normalizedFacilityName"^^xsd:string
667 - ]
668 ] [ rdf:type sp:Bind ; 627 ] [ rdf:type sp:Bind ;
669 sp:expression 628 sp:expression
670 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 629 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
671 - sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string 630 + sp:arg1 _:b55
672 - ]
673 ] ; 631 ] ;
674 - sp:variable 632 + sp:variable _:b38
675 - [ sp:varName "productionFacility"^^xsd:string
676 - ]
677 ] [ rdf:type sp:Bind ; 633 ] [ rdf:type sp:Bind ;
678 sp:expression 634 sp:expression
679 - [ rdf:type afn:localname ; 635 + [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
680 - sp:arg1 [ sp:varName "flowRef"^^xsd:string 636 + sp:arg1 _:b52
681 - ]
682 ] ; 637 ] ;
683 - sp:variable 638 + sp:variable _:b41
684 - [ sp:varName "localname"^^xsd:string
685 - ]
686 ] [ rdf:type sp:Bind ; 639 ] [ rdf:type sp:Bind ;
687 sp:expression 640 sp:expression
688 - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 641 + [ rdf:type spl:object ;
689 - sp:arg1 [ sp:varName "localname"^^xsd:string 642 + sp:arg1 _:b41 ;
690 - ] 643 + sp:arg2 rdfs:label
691 ] ; 644 ] ;
692 - sp:variable 645 + sp:variable _:b56
693 - [ sp:varName "productionFlow"^^xsd:string
694 - ]
695 ] [ rdf:type sp:Bind ; 646 ] [ rdf:type sp:Bind ;
696 sp:expression 647 sp:expression
697 - [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ; 648 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
698 - sp:arg1 [ sp:varName "flowKind"^^xsd:string 649 + sp:arg1 _:b55 ;
699 - ] 650 + sp:arg2 _:b56
700 ] ; 651 ] ;
701 - sp:variable 652 + sp:variable _:b39
702 - [ sp:varName "productionFlowPurposeType"^^xsd:string
703 - ]
704 ] [ rdf:type sp:Bind ; 653 ] [ rdf:type sp:Bind ;
705 sp:expression 654 sp:expression
706 [ rdf:type ep-mpr-spin-lib:selectProductionFlowDefinitionType ; 655 [ rdf:type ep-mpr-spin-lib:selectProductionFlowDefinitionType ;
707 - sp:arg1 [ sp:varName "flowQualifier"^^xsd:string 656 + sp:arg1 _:b54
708 - ]
709 ] ; 657 ] ;
710 - sp:variable 658 + sp:variable _:b42
711 - [ sp:varName "productionFlowDefinitionType"^^xsd:string
712 - ]
713 ] [ rdf:type sp:Bind ; 659 ] [ rdf:type sp:Bind ;
714 sp:expression 660 sp:expression
715 [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionRelationshipType ; 661 [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
716 - sp:arg1 [ sp:varName "flowDirection"^^xsd:string 662 + sp:arg1 _:b53
717 - ]
718 ] ; 663 ] ;
719 - sp:variable 664 + sp:variable _:b40
720 - [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
721 - ]
722 ]) 665 ])
723 ] ; 666 ] ;
724 spin:rule 667 spin:rule
725 [ rdf:type sp:Construct ; 668 [ rdf:type sp:Construct ;
726 - rdfs:comment """STEP 20105 record the temporal parts of product flows 669 + rdfs:comment """STEP 20102 Record the Facility that has the flows
727 -period/kind is optional, but is assumed mandatory here. This is because it is not clear how to obtain the default value which is the period of the report. 670 +Nothing is done with the namingSystem!"""^^xsd:string ;
728 -There are several different ways of specifying the time of the period. Temporarily, only dTimStart and dTimEnd are supported."""^^xsd:string ; 671 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
729 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
730 sp:predicate rdf:type ; 672 sp:predicate rdf:type ;
731 - sp:subject _:b28 673 + sp:subject
674 + [ sp:varName "productionFacility"^^xsd:string
675 + ]
732 ] [ sp:object 676 ] [ sp:object
733 - [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string 677 + [ sp:varName "productionFacilityType"^^xsd:string
734 ] ; 678 ] ;
735 sp:predicate rdf:type ; 679 sp:predicate rdf:type ;
736 - sp:subject _:b28 680 + sp:subject
737 - ] [ sp:object 681 + [ sp:varName "productionFacility"^^xsd:string
738 - [ sp:varName "productFlowToDate"^^xsd:string 682 + ]
739 - ] ;
740 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
741 - sp:subject _:b28
742 - ] [ sp:object
743 - [ sp:varName "dTimStart"^^xsd:string
744 - ] ;
745 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
746 - sp:subject _:b28
747 - ] [ sp:object
748 - [ sp:varName "dTimEnd"^^xsd:string
749 - ] ;
750 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
751 - sp:subject _:b28
752 - ] [ sp:object
753 - [ sp:varName "periodRef"^^xsd:string
754 - ] ;
755 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
756 - sp:subject _:b28
757 ]) ; 683 ]) ;
758 sp:where ([ sp:object 684 sp:where ([ sp:object
759 [ sp:varName "productVolumeRef"^^xsd:string 685 [ sp:varName "productVolumeRef"^^xsd:string
...@@ -773,331 +699,400 @@ There are several different ways of specifying the time of the period. Temporari ...@@ -773,331 +699,400 @@ There are several different ways of specifying the time of the period. Temporari
773 [ sp:varName "productVolumeRef"^^xsd:string 699 [ sp:varName "productVolumeRef"^^xsd:string
774 ] 700 ]
775 ] [ sp:object 701 ] [ sp:object
776 - [ sp:varName "flowRef"^^xsd:string 702 + [ sp:varName "facilityNameRef"^^xsd:string
777 ] ; 703 ] ;
778 - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 704 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
779 sp:subject 705 sp:subject
780 [ sp:varName "facilityRef"^^xsd:string 706 [ sp:varName "facilityRef"^^xsd:string
781 ] 707 ]
782 ] [ sp:object 708 ] [ sp:object
783 - [ sp:varName "productRef"^^xsd:string 709 + [ sp:varName "facilityName"^^xsd:string
784 - ] ;
785 - sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
786 - sp:subject
787 - [ sp:varName "flowRef"^^xsd:string
788 - ]
789 - ] [ sp:object
790 - [ sp:varName "productRef"^^xsd:string
791 - ] ;
792 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
793 - sp:subject
794 - [ sp:varName "productFlowToDate"^^xsd:string
795 - ]
796 - ] [ sp:object
797 - [ sp:varName "periodRef"^^xsd:string
798 - ] ;
799 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
800 - sp:subject
801 - [ sp:varName "productRef"^^xsd:string
802 - ]
803 - ] [ sp:object
804 - [ sp:varName "periodKindRef"^^xsd:string
805 ] ; 710 ] ;
806 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 711 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
807 sp:subject 712 sp:subject
808 - [ sp:varName "periodRef"^^xsd:string 713 + [ sp:varName "facilityNameRef"^^xsd:string
809 ] 714 ]
810 ] [ rdf:type sp:Optional ; 715 ] [ rdf:type sp:Optional ;
811 sp:elements ([ sp:object 716 sp:elements ([ sp:object
812 - [ sp:varName "dTimEnd"^^xsd:string 717 + [ sp:varName "facilityNamingSystem"^^xsd:string
813 ] ; 718 ] ;
814 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; 719 + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
815 sp:subject 720 sp:subject
816 - [ sp:varName "periodRef"^^xsd:string 721 + [ sp:varName "facilityNameRef"^^xsd:string
817 ] 722 ]
818 ]) 723 ])
819 ] [ rdf:type sp:Optional ; 724 ] [ rdf:type sp:Optional ;
820 sp:elements ([ sp:object 725 sp:elements ([ sp:object
821 - [ sp:varName "date"^^xsd:string 726 + [ sp:varName "facilityKind"^^xsd:string
822 ] ; 727 ] ;
823 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 728 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
824 sp:subject 729 sp:subject
825 - [ sp:varName "periodRef"^^xsd:string 730 + [ sp:varName "facilityNameRef"^^xsd:string
826 ] 731 ]
827 ]) 732 ])
828 - ] [ rdf:type sp:Optional ; 733 + ] [ rdf:type sp:Bind ;
829 - sp:elements ([ sp:object 734 + sp:expression
830 - [ sp:varName "dTimStart"^^xsd:string 735 + [ rdf:type ep-spin-lib:normalizeString ;
831 - ] ; 736 + sp:arg1 [ sp:varName "facilityName"^^xsd:string
832 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
833 - sp:subject
834 - [ sp:varName "periodRef"^^xsd:string
835 ] 737 ]
836 - ] [ rdf:type sp:Optional ;
837 - sp:elements ([ sp:object
838 - [ sp:varName "dTimEnd"^^xsd:string
839 ] ; 738 ] ;
840 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 739 + sp:variable
841 - sp:subject 740 + [ sp:varName "normalizedFacilityName"^^xsd:string
842 - [ sp:varName "periodRef"^^xsd:string
843 ] 741 ]
844 - ]) 742 + ] [ rdf:type sp:Bind ;
845 - ]) 743 + sp:expression
846 - ] [ rdf:type sp:Optional ; 744 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
847 - sp:elements ([ sp:object 745 + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
848 - [ sp:varName "dateStart"^^xsd:string
849 - ] ;
850 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
851 - sp:subject
852 - [ sp:varName "periodRef"^^xsd:string
853 ] 746 ]
854 - ] [ rdf:type sp:Optional ;
855 - sp:elements ([ sp:object
856 - [ sp:varName "dateEnd"^^xsd:string
857 ] ; 747 ] ;
858 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 748 + sp:variable
859 - sp:subject 749 + [ sp:varName "productionFacility"^^xsd:string
860 - [ sp:varName "periodRef"^^xsd:string
861 ] 750 ]
862 - ])
863 - ])
864 ] [ rdf:type sp:Bind ; 751 ] [ rdf:type sp:Bind ;
865 sp:expression 752 sp:expression
866 - [ rdf:type ep-mpr-spin-lib:selectTemporalPartOfAFlowDurationType ; 753 + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
867 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string 754 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
868 ] 755 ]
869 ] ; 756 ] ;
870 sp:variable 757 sp:variable
871 - [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string 758 + [ sp:varName "productionFacilityType"^^xsd:string
872 ] 759 ]
873 ]) 760 ])
874 ] ; 761 ] ;
875 spin:rule 762 spin:rule
876 [ rdf:type sp:Construct ; 763 [ rdf:type sp:Construct ;
877 - rdfs:comment """STEP 20104 record the product flows - unlike for the DPR the flow name is not used to construct the ProductionFlow URI 764 + rdfs:comment "STEP 20106 This step (not in the DPR) is there because there can be multiple volumeValue elements"^^xsd:string ;
878 -namingSystem not processed"""^^xsd:string ; 765 + sp:templates ([ sp:object _:b57 ;
879 - sp:templates ([ sp:object 766 + sp:predicate _:b58 ;
880 - [ sp:varName "productFlow"^^xsd:string 767 + sp:subject _:b59
881 - ] ; 768 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
882 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
883 - sp:subject
884 - [ sp:varName "productionFlow"^^xsd:string
885 - ]
886 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
887 sp:predicate rdf:type ; 769 sp:predicate rdf:type ;
888 - sp:subject 770 + sp:subject _:b57
889 - [ sp:varName "productFlow"^^xsd:string 771 + ] [ sp:object _:b60 ;
890 - ]
891 - ] [ sp:object
892 - [ sp:varName "productType"^^xsd:string
893 - ] ;
894 sp:predicate rdf:type ; 772 sp:predicate rdf:type ;
895 - sp:subject 773 + sp:subject _:b57
896 - [ sp:varName "productFlow"^^xsd:string 774 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
897 - ]
898 - ] [ sp:object
899 - [ sp:varName "productFlow"^^xsd:string
900 - ] ;
901 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
902 - sp:subject _:b29
903 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
904 sp:predicate rdf:type ; 775 sp:predicate rdf:type ;
905 - sp:subject _:b29 776 + sp:subject _:b60
906 - ] [ sp:object _:b29 ; 777 + ] [ sp:object _:b61 ;
907 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; 778 + sp:predicate _:b62 ;
908 - sp:subject 779 + sp:subject _:b60
909 - [ sp:varName "productionFlowToDate"^^xsd:string 780 + ] [ sp:object _:b63 ;
910 - ] 781 + sp:predicate rdf:type ;
911 - ] [ sp:object 782 + sp:subject _:b57
912 - [ sp:varName "productRef"^^xsd:string 783 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
913 - ] ; 784 + sp:predicate rdf:type ;
914 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 785 + sp:subject _:b63
915 - sp:subject _:b29 786 + ] [ sp:object _:b64 ;
787 + sp:predicate _:b65 ;
788 + sp:subject _:b63
789 + ] [ sp:object _:b66 ;
790 + sp:predicate rdf:type ;
791 + sp:subject _:b57
792 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
793 + sp:predicate rdf:type ;
794 + sp:subject _:b66
795 + ] [ sp:object _:b67 ;
796 + sp:predicate _:b68 ;
797 + sp:subject _:b66
916 ]) ; 798 ]) ;
917 - sp:where ([ sp:object 799 + sp:where ([ sp:object _:b69 ;
918 - [ sp:varName "productVolumeRef"^^xsd:string
919 - ] ;
920 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 800 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
921 sp:subject spin:_this 801 sp:subject spin:_this
922 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 802 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
923 sp:predicate rdf:type ; 803 sp:predicate rdf:type ;
924 - sp:subject 804 + sp:subject _:b69
925 - [ sp:varName "productVolumeRef"^^xsd:string 805 + ] [ sp:object _:b70 ;
926 - ]
927 - ] [ sp:object
928 - [ sp:varName "facilityRef"^^xsd:string
929 - ] ;
930 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 806 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
931 - sp:subject 807 + sp:subject _:b69
932 - [ sp:varName "productVolumeRef"^^xsd:string 808 + ] [ sp:object _:b71 ;
933 - ]
934 - ] [ sp:object
935 - [ sp:varName "productVolumeRef"^^xsd:string
936 - ] ;
937 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
938 - sp:subject
939 - [ sp:varName "productionFlowsToDate"^^xsd:string
940 - ]
941 - ] [ sp:object
942 - [ sp:varName "flowRef"^^xsd:string
943 - ] ;
944 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 809 sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
945 - sp:subject 810 + sp:subject _:b70
946 - [ sp:varName "facilityRef"^^xsd:string 811 + ] [ sp:object _:b72 ;
947 - ]
948 - ] [ sp:object
949 - [ sp:varName "productRef"^^xsd:string
950 - ] ;
951 sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ; 812 sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
952 - sp:subject 813 + sp:subject _:b71
953 - [ sp:varName "flowRef"^^xsd:string 814 + ] [ sp:object _:b73 ;
954 - ] 815 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
955 - ] [ sp:object 816 + sp:subject _:b72
956 - [ sp:varName "flowRef"^^xsd:string 817 + ] [ sp:object _:b74 ;
957 - ] ;
958 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
959 - sp:subject
960 - [ sp:varName "productionFlowToDate"^^xsd:string
961 - ]
962 - ] [ sp:object
963 - [ sp:varName "productionFlow"^^xsd:string
964 - ] ;
965 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
966 - sp:subject
967 - [ sp:varName "productionFlowToDate"^^xsd:string
968 - ]
969 - ] [ sp:object
970 - [ sp:varName "productKind"^^xsd:string
971 - ] ;
972 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 818 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
973 - sp:subject 819 + sp:subject _:b73
974 - [ sp:varName "productRef"^^xsd:string 820 + ] [ sp:object _:b73 ;
975 - ] 821 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
822 + sp:subject _:b59
823 + ] [ sp:object _:b75 ;
824 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
825 + sp:subject _:b73
826 + ] [ sp:object _:b76 ;
827 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
828 + sp:subject _:b75
829 + ] [ sp:object _:b61 ;
830 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
831 + sp:subject _:b76
832 + ] [ sp:object _:b77 ;
833 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
834 + sp:subject _:b76
976 ] [ rdf:type sp:Optional ; 835 ] [ rdf:type sp:Optional ;
977 - sp:elements ([ sp:object 836 + sp:elements ([ sp:object _:b78 ;
978 - [ sp:varName "productNameRef"^^xsd:string 837 + sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
979 - ] ; 838 + sp:subject _:b75
980 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 839 + ] [ sp:object _:b64 ;
981 - sp:subject
982 - [ sp:varName "productRef"^^xsd:string
983 - ]
984 - ] [ sp:object
985 - [ sp:varName "productFlowName"^^xsd:string
986 - ] ;
987 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 840 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
988 - sp:subject 841 + sp:subject _:b78
989 - [ sp:varName "productNameRef"^^xsd:string 842 + ] [ sp:object _:b79 ;
990 - ] 843 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
844 + sp:subject _:b78
845 + ])
846 + ] [ rdf:type sp:Optional ;
847 + sp:elements ([ sp:object _:b80 ;
848 + sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
849 + sp:subject _:b75
850 + ] [ sp:object _:b67 ;
851 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
852 + sp:subject _:b80
853 + ] [ sp:object _:b81 ;
854 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
855 + sp:subject _:b80
991 ]) 856 ])
992 ] [ rdf:type sp:Bind ; 857 ] [ rdf:type sp:Bind ;
993 sp:expression 858 sp:expression
994 - [ rdf:type ep-mpr-spin-lib:selectProductType ; 859 + [ rdf:type ep-mpr-spin-lib:selectRelationshipToMeasure ;
995 - sp:arg1 [ sp:varName "productKind"^^xsd:string 860 + sp:arg1 _:b74
996 - ]
997 - ] ;
998 - sp:variable
999 - [ sp:varName "productType"^^xsd:string
1000 - ]
1001 - ] [ rdf:type sp:Bind ;
1002 - sp:expression
1003 - [ rdf:type spl:object ;
1004 - sp:arg1 [ sp:varName "productType"^^xsd:string
1005 - ] ;
1006 - sp:arg2 rdfs:label
1007 ] ; 861 ] ;
1008 - sp:variable 862 + sp:variable _:b58
1009 - [ sp:varName "productTypeName"^^xsd:string
1010 - ]
1011 ] [ rdf:type sp:Bind ; 863 ] [ rdf:type sp:Bind ;
1012 sp:expression 864 sp:expression
1013 - [ rdf:type ep-spin-lib:normalizeString ; 865 + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
1014 - sp:arg1 [ sp:varName "productTypeName"^^xsd:string 866 + sp:arg1 _:b77
1015 - ]
1016 ] ; 867 ] ;
1017 - sp:variable 868 + sp:variable _:b62
1018 - [ sp:varName "normalizedProductTypeName"^^xsd:string
1019 - ]
1020 ] [ rdf:type sp:Bind ; 869 ] [ rdf:type sp:Bind ;
1021 sp:expression 870 sp:expression
1022 - [ rdf:type afn:localname ; 871 + [ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
1023 - sp:arg1 [ sp:varName "flowRef"^^xsd:string 872 + sp:arg1 _:b79
1024 - ]
1025 ] ; 873 ] ;
1026 - sp:variable 874 + sp:variable _:b65
1027 - [ sp:varName "localname"^^xsd:string
1028 - ]
1029 ] [ rdf:type sp:Bind ; 875 ] [ rdf:type sp:Bind ;
1030 sp:expression 876 sp:expression
1031 - [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; 877 + [ rdf:type ep-mpr-spin-lib:selectPressureScale ;
1032 - sp:arg1 [ sp:varName "localname"^^xsd:string 878 + sp:arg1 _:b81
1033 - ] ;
1034 - sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
1035 - ]
1036 ] ; 879 ] ;
1037 - sp:variable 880 + sp:variable _:b68
1038 - [ sp:varName "productFlow"^^xsd:string
1039 - ]
1040 ]) 881 ])
1041 ] . 882 ] .
1042 883
1043 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> 884 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0>
1044 rdf:type owl:Ontology ; 885 rdf:type owl:Ontology ;
1045 - owl:imports <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> ; 886 + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ;
1046 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 887 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1047 888
1048 -_:b13 889 +_:b58
890 + sp:varName "relationshipToMeasure"^^xsd:string .
891 +
892 +_:b59
893 + sp:varName "temporalPartOfAProductFlow"^^xsd:string .
894 +
895 +_:b61
896 + sp:varName "realVolume"^^xsd:string .
897 +
898 +_:b62
899 + sp:varName "volumeScale"^^xsd:string .
900 +
901 +_:b64
902 + sp:varName "realTemp"^^xsd:string .
903 +
904 +_:b65
905 + sp:varName "temperatureScale"^^xsd:string .
906 +
907 +_:b67
908 + sp:varName "realPres"^^xsd:string .
909 +
910 +_:b68
911 + sp:varName "pressureScale"^^xsd:string .
912 +
913 +_:b69
1049 sp:varName "productVolumeRef"^^xsd:string . 914 sp:varName "productVolumeRef"^^xsd:string .
1050 915
1051 -_:b14 916 +_:b70
1052 sp:varName "facilityRef"^^xsd:string . 917 sp:varName "facilityRef"^^xsd:string .
1053 918
1054 -_:b15 919 +_:b71
1055 sp:varName "flowRef"^^xsd:string . 920 sp:varName "flowRef"^^xsd:string .
1056 921
1057 -_:b16 922 +_:b72
1058 sp:varName "productRef"^^xsd:string . 923 sp:varName "productRef"^^xsd:string .
1059 924
1060 -_:b17 925 +_:b73
1061 sp:varName "periodRef"^^xsd:string . 926 sp:varName "periodRef"^^xsd:string .
1062 927
1063 -_:b18 928 +_:b74
1064 sp:varName "periodKindRef"^^xsd:string . 929 sp:varName "periodKindRef"^^xsd:string .
1065 930
1066 -_:b3 sp:varName "temporalPartOfAProductFlow"^^xsd:string . 931 +_:b75
1067 -
1068 -_:b19
1069 sp:varName "volumeValueRef"^^xsd:string . 932 sp:varName "volumeValueRef"^^xsd:string .
1070 933
1071 -_:b20 934 +_:b76
1072 sp:varName "volumeRef"^^xsd:string . 935 sp:varName "volumeRef"^^xsd:string .
1073 936
1074 -_:b5 sp:varName "realVolume"^^xsd:string . 937 +_:b77
1075 -
1076 -_:b21
1077 sp:varName "uomVolume"^^xsd:string . 938 sp:varName "uomVolume"^^xsd:string .
1078 939
1079 -_:b22 940 +_:b78
1080 sp:varName "tempRef"^^xsd:string . 941 sp:varName "tempRef"^^xsd:string .
1081 942
1082 -_:b8 sp:varName "realTemp"^^xsd:string . 943 +_:b79
1083 -
1084 -_:b23
1085 sp:varName "uomTemp"^^xsd:string . 944 sp:varName "uomTemp"^^xsd:string .
1086 945
1087 -_:b24 946 +_:b80
1088 sp:varName "presRef"^^xsd:string . 947 sp:varName "presRef"^^xsd:string .
1089 948
1090 -_:b11 949 +_:b81
1091 - sp:varName "realPres"^^xsd:string . 950 + sp:varName "uomPres"^^xsd:string .
951 +
952 +_:b47
953 + sp:varName "productVolumeRef"^^xsd:string .
954 +
955 +_:b48
956 + sp:varName "reportingPeriodProductionFlows"^^xsd:string .
957 +
958 +_:b45
959 + sp:varName "productionFlowsToDate"^^xsd:string .
960 +
961 +_:b49
962 + sp:varName "facilityRef"^^xsd:string .
963 +
964 +_:b50
965 + sp:varName "facilityNameRef"^^xsd:string .
966 +
967 +_:b51
968 + sp:varName "facilityName"^^xsd:string .
969 +
970 +_:b46
971 + sp:varName "flowRef"^^xsd:string .
972 +
973 +_:b43
974 + sp:varName "flowName"^^xsd:string .
975 +
976 +_:b52
977 + sp:varName "flowKind"^^xsd:string .
978 +
979 +_:b53
980 + sp:varName "flowDirection"^^xsd:string .
981 +
982 +_:b54
983 + sp:varName "flowQualifier"^^xsd:string .
984 +
985 +_:b55
986 + sp:varName "normalizedFacilityName"^^xsd:string .
987 +
988 +_:b38
989 + sp:varName "productionFacility"^^xsd:string .
990 +
991 +_:b41
992 + sp:varName "productionFlowPurposeType"^^xsd:string .
993 +
994 +_:b56
995 + sp:varName "productionFlowPurposeTypeName"^^xsd:string .
996 +
997 +_:b39
998 + sp:varName "productionFlow"^^xsd:string .
999 +
1000 +_:b42
1001 + sp:varName "productionFlowDefinitionType"^^xsd:string .
1002 +
1003 +_:b40
1004 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
1005 +
1006 +_:b23
1007 + sp:varName "productVolumeRef"^^xsd:string .
1008 +
1009 +_:b24
1010 + sp:varName "facilityRef"^^xsd:string .
1092 1011
1093 _:b25 1012 _:b25
1094 - sp:varName "uomPres"^^xsd:string . 1013 + sp:varName "facilityNameRef"^^xsd:string .
1014 +
1015 +_:b26
1016 + sp:varName "facilityName"^^xsd:string .
1017 +
1018 +_:b27
1019 + sp:varName "flowRef"^^xsd:string .
1020 +
1021 +_:b28
1022 + sp:varName "flowKind"^^xsd:string .
1023 +
1024 +_:b29
1025 + sp:varName "flowDirection"^^xsd:string .
1026 +
1027 +_:b30
1028 + sp:varName "relatedFacilityRef"^^xsd:string .
1029 +
1030 +_:b31
1031 + sp:varName "relatedFacilityNameRef"^^xsd:string .
1032 +
1033 +_:b32
1034 + sp:varName "relatedFacilityName"^^xsd:string .
1035 +
1036 +_:b33
1037 + sp:varName "relatedFacilityKind"^^xsd:string .
1038 +
1039 +_:b34
1040 + sp:varName "normalizedFacilityName"^^xsd:string .
1041 +
1042 +_:b35
1043 + sp:varName "productionFlowPurposeType"^^xsd:string .
1044 +
1045 +_:b36
1046 + sp:varName "productionFlowPurposeTypeName"^^xsd:string .
1095 1047
1096 -_:b2 sp:varName "relationshipToMeasure"^^xsd:string . 1048 +_:b20
1049 + sp:varName "productionFlow"^^xsd:string .
1050 +
1051 +_:b37
1052 + sp:varName "normalizedRelatedFacilityName"^^xsd:string .
1053 +
1054 +_:b19
1055 + sp:varName "relatedFacility"^^xsd:string .
1056 +
1057 +_:b22
1058 + sp:varName "relatedFacilityType"^^xsd:string .
1059 +
1060 +_:b21
1061 + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
1062 +
1063 +_:b5 sp:varName "productVolumeRef"^^xsd:string .
1064 +
1065 +_:b6 sp:varName "facilityRef"^^xsd:string .
1066 +
1067 +_:b7 sp:varName "facilityNameRef"^^xsd:string .
1068 +
1069 +_:b8 sp:varName "facilityName"^^xsd:string .
1070 +
1071 +_:b9 sp:varName "flowRef"^^xsd:string .
1097 1072
1098 -_:b6 sp:varName "volumeScale"^^xsd:string . 1073 +_:b10
1074 + sp:varName "flowKind"^^xsd:string .
1099 1075
1100 -_:b9 sp:varName "temperatureScale"^^xsd:string . 1076 +_:b11
1077 + sp:varName "flowDirection"^^xsd:string .
1101 1078
1102 _:b12 1079 _:b12
1103 - sp:varName "pressureScale"^^xsd:string . 1080 + sp:varName "relatedFacilityRef"^^xsd:string .
1081 +
1082 +_:b13
1083 + sp:varName "relatedFacilityKind"^^xsd:string .
1084 +
1085 +_:b14
1086 + sp:varName "normalizedFacilityName"^^xsd:string .
1087 +
1088 +_:b15
1089 + sp:varName "productionFlowPurposeType"^^xsd:string .
1090 +
1091 +_:b16
1092 + sp:varName "productionFlowPurposeTypeName"^^xsd:string .
1093 +
1094 +_:b1 sp:varName "productionFlow"^^xsd:string .
1095 +
1096 +_:b4 sp:varName "relatedFacilityType"^^xsd:string .
1097 +
1098 +_:b3 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
......
1 -# Saved by TopBraid on Thu Dec 15 19:02:38 GMT 2011 1 +# Saved by TopBraid on Fri Dec 16 17:53:47 GMT 2011
2 # baseURI: null 2 # baseURI: null
3 3
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......