David Leal

Added flow destination and related stuff

1 -# Saved by TopBraid on Mon Oct 10 17:05:37 BST 2011 1 +# Saved by TopBraid on Tue Oct 11 16:41:16 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume 2 # baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 4 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
...@@ -9,11 +9,13 @@ ...@@ -9,11 +9,13 @@
9 9
10 @prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> . 10 @prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
11 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 11 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
12 +@prefix arg: <http://spinrdf.org/arg#> .
12 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . 13 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
13 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 14 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
14 @prefix owl: <http://www.w3.org/2002/07/owl#> . 15 @prefix owl: <http://www.w3.org/2002/07/owl#> .
15 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 16 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
16 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 17 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
18 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
17 @prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . 19 @prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
18 @prefix sp: <http://spinrdf.org/sp#> . 20 @prefix sp: <http://spinrdf.org/sp#> .
19 @prefix spin: <http://spinrdf.org/spin#> . 21 @prefix spin: <http://spinrdf.org/spin#> .
...@@ -28,118 +30,205 @@ ...@@ -28,118 +30,205 @@
28 <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume> 30 <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
29 spin:rule 31 spin:rule
30 [ rdf:type sp:Construct ; 32 [ rdf:type sp:Construct ;
31 - rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ; 33 + rdfs:comment """STEP 20101a Record the Temporal part of the flows for the day
32 - sp:templates ([ sp:object _:b1 ; 34 +"""^^xsd:string ;
33 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 35 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
34 - sp:subject _:b2
35 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
36 sp:predicate rdf:type ; 36 sp:predicate rdf:type ;
37 sp:subject _:b1 37 sp:subject _:b1
38 - ] [ sp:object _:b3 ; 38 + ] [ sp:object spin:_this ;
39 - sp:predicate rdf:type ; 39 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
40 sp:subject _:b1 40 sp:subject _:b1
41 + ]) ;
42 + sp:where ([ sp:object _:b2 ;
43 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
44 + sp:subject spin:_this
45 + ] [ sp:object _:b3 ;
46 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
47 + sp:subject spin:_this
41 ] [ sp:object _:b4 ; 48 ] [ sp:object _:b4 ;
42 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 49 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
43 - sp:subject _:b1 50 + sp:subject spin:_this
44 - ] [ sp:object _:b5 ; 51 + ] [ rdf:type sp:Bind ;
45 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 52 + sp:expression
46 - sp:subject _:b1 53 + [ rdf:type ep-spin-lib:normalizeString ;
47 - ] [ sp:object _:b6 ; 54 + sp:arg1 _:b2
48 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 55 + ] ;
49 - sp:subject _:b1 56 + sp:variable _:b5
57 + ] [ rdf:type sp:Bind ;
58 + sp:expression
59 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ;
60 + sp:arg1 _:b5 ;
61 + sp:arg2 _:b3 ;
62 + sp:arg3 _:b4
63 + ] ;
64 + sp:variable _:b1
65 + ])
66 + ] ;
67 + spin:rule
68 + [ rdf:type sp:Construct ;
69 + rdfs:comment """STEP 20101l Set the facility operator- installation or context facility do not exist
70 +role is ignored"""^^xsd:string ;
71 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
72 + sp:predicate rdf:type ;
73 + sp:subject _:b6
50 ] [ sp:object _:b7 ; 74 ] [ sp:object _:b7 ;
51 - sp:predicate _:b8 ; 75 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
52 - sp:subject _:b1 76 + sp:subject _:b6
53 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 77 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
54 sp:predicate rdf:type ; 78 sp:predicate rdf:type ;
55 sp:subject _:b7 79 sp:subject _:b7
80 + ] [ sp:object _:b8 ;
81 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
82 + sp:subject _:b6
56 ] [ sp:object _:b9 ; 83 ] [ sp:object _:b9 ;
57 - sp:predicate _:b10 ; 84 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
58 sp:subject _:b7 85 sp:subject _:b7
86 + ]) ;
87 + sp:where ([ sp:object _:b10 ;
88 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ;
89 + sp:subject spin:_this
59 ] [ sp:object _:b11 ; 90 ] [ sp:object _:b11 ;
60 - sp:predicate _:b8 ; 91 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
61 - sp:subject _:b1 92 + sp:subject _:b10
62 - ] [ sp:object _:b12 ; 93 + ] [ sp:object spin:_this ;
94 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
95 + sp:subject _:b8
96 + ] [ rdf:type sp:NotExists ;
97 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
98 + sp:predicate rdf:type ;
99 + sp:subject _:b12
100 + ] [ sp:object _:b8 ;
101 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
102 + sp:subject _:b12
103 + ])
104 + ] [ rdf:type sp:Bind ;
105 + sp:expression
106 + [ rdf:type ep-spin-lib:normalizeString ;
107 + sp:arg1 _:b11
108 + ] ;
109 + sp:variable _:b13
110 + ] [ rdf:type sp:Bind ;
111 + sp:expression
112 + [ rdf:type rhspin:companyById ;
113 + arg:id _:b13
114 + ] ;
115 + sp:variable _:b9
116 + ])
117 + ] ;
118 + spin:rule
119 + [ rdf:type sp:Construct ;
120 + rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ;
121 + sp:templates ([ sp:object _:b14 ;
122 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
123 + sp:subject _:b15
124 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
63 sp:predicate rdf:type ; 125 sp:predicate rdf:type ;
64 - sp:subject _:b11 126 + sp:subject _:b14
65 - ] [ sp:object _:b13 ; 127 + ] [ sp:object _:b16 ;
66 - sp:predicate _:b14 ; 128 + sp:predicate rdf:type ;
67 - sp:subject _:b11 129 + sp:subject _:b14
130 + ] [ sp:object _:b17 ;
131 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
132 + sp:subject _:b14
133 + ] [ sp:object _:b18 ;
134 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
135 + sp:subject _:b14
136 + ] [ sp:object _:b19 ;
137 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
138 + sp:subject _:b14
139 + ] [ sp:object _:b20 ;
140 + sp:predicate _:b21 ;
141 + sp:subject _:b14
142 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
143 + sp:predicate rdf:type ;
144 + sp:subject _:b20
145 + ] [ sp:object _:b22 ;
146 + sp:predicate _:b23 ;
147 + sp:subject _:b20
148 + ] [ sp:object _:b24 ;
149 + sp:predicate _:b21 ;
150 + sp:subject _:b14
151 + ] [ sp:object _:b25 ;
152 + sp:predicate rdf:type ;
153 + sp:subject _:b24
154 + ] [ sp:object _:b26 ;
155 + sp:predicate _:b27 ;
156 + sp:subject _:b24
68 ]) ; 157 ]) ;
69 sp:where ([ sp:object spin:_this ; 158 sp:where ([ sp:object spin:_this ;
70 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 159 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
71 - sp:subject _:b2 160 + sp:subject _:b15
72 - ] [ sp:object _:b15 ; 161 + ] [ sp:object _:b28 ;
73 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ; 162 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
74 sp:subject spin:_this 163 sp:subject spin:_this
75 - ] [ sp:object _:b16 ; 164 + ] [ sp:object _:b29 ;
76 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 165 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
77 sp:subject spin:_this 166 sp:subject spin:_this
78 - ] [ sp:object _:b17 ; 167 + ] [ sp:object _:b30 ;
79 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; 168 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
80 - sp:subject _:b16 169 + sp:subject _:b29
81 - ] [ sp:object _:b18 ; 170 + ] [ sp:object _:b31 ;
82 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 171 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
83 - sp:subject _:b17 172 + sp:subject _:b30
84 - ] [ sp:object _:b19 ; 173 + ] [ sp:object _:b32 ;
85 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; 174 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
86 - sp:subject _:b16 175 + sp:subject _:b29
87 - ] [ sp:object _:b20 ; 176 + ] [ sp:object _:b33 ;
88 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 177 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
89 - sp:subject _:b19 178 + sp:subject _:b32
90 - ] [ sp:object _:b21 ; 179 + ] [ sp:object _:b34 ;
91 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; 180 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
92 - sp:subject _:b19 181 + sp:subject _:b32
93 - ] [ sp:object _:b22 ; 182 + ] [ sp:object _:b35 ;
94 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 183 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
95 - sp:subject _:b21 184 + sp:subject _:b34
96 - ] [ sp:object _:b23 ; 185 + ] [ sp:object _:b36 ;
97 sp:predicate rdfs:label ; 186 sp:predicate rdfs:label ;
98 - sp:subject _:b24 187 + sp:subject _:b37
99 - ] [ sp:object _:b25 ; 188 + ] [ sp:object _:b38 ;
100 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ; 189 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
101 - sp:subject _:b21 190 + sp:subject _:b34
102 - ] [ sp:object _:b26 ; 191 + ] [ sp:object _:b39 ;
103 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 192 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
104 - sp:subject _:b25 193 + sp:subject _:b38
105 - ] [ sp:object _:b5 ; 194 + ] [ sp:object _:b18 ;
106 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; 195 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
107 - sp:subject _:b25 196 + sp:subject _:b38
108 - ] [ sp:object _:b6 ; 197 + ] [ sp:object _:b19 ;
109 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; 198 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
110 - sp:subject _:b25 199 + sp:subject _:b38
111 ] [ rdf:type sp:Optional ; 200 ] [ rdf:type sp:Optional ;
112 - sp:elements ([ sp:object _:b27 ; 201 + sp:elements ([ sp:object _:b40 ;
113 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ; 202 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
114 - sp:subject _:b25 203 + sp:subject _:b38
115 - ] [ sp:object _:b9 ; 204 + ] [ sp:object _:b22 ;
116 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 205 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
117 - sp:subject _:b27 206 + sp:subject _:b40
118 - ] [ sp:object _:b28 ; 207 + ] [ sp:object _:b41 ;
119 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ; 208 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
120 - sp:subject _:b27 209 + sp:subject _:b40
121 ]) 210 ])
122 ] [ rdf:type sp:Optional ; 211 ] [ rdf:type sp:Optional ;
123 - sp:elements ([ sp:object _:b29 ; 212 + sp:elements ([ sp:object _:b42 ;
124 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ; 213 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
125 - sp:subject _:b25 214 + sp:subject _:b38
126 - ] [ sp:object _:b13 ; 215 + ] [ sp:object _:b26 ;
127 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 216 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
128 - sp:subject _:b29 217 + sp:subject _:b42
129 - ] [ sp:object _:b30 ; 218 + ] [ sp:object _:b43 ;
130 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ; 219 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
131 - sp:subject _:b29 220 + sp:subject _:b42
132 ]) 221 ])
133 ] [ rdf:type sp:Bind ; 222 ] [ rdf:type sp:Bind ;
134 sp:expression 223 sp:expression
135 [ rdf:type ep-spin-lib:normalizeString ; 224 [ rdf:type ep-spin-lib:normalizeString ;
136 - sp:arg1 _:b18 225 + sp:arg1 _:b31
137 ] ; 226 ] ;
138 - sp:variable _:b31 227 + sp:variable _:b44
139 ] [ rdf:type sp:Bind ; 228 ] [ rdf:type sp:Bind ;
140 sp:expression 229 sp:expression
141 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 230 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
142 - sp:arg1 _:b31 231 + sp:arg1 _:b44
143 ] ; 232 ] ;
144 sp:variable 233 sp:variable
145 [ sp:varName "productionFacility"^^xsd:string 234 [ sp:varName "productionFacility"^^xsd:string
...@@ -147,13 +236,13 @@ ...@@ -147,13 +236,13 @@
147 ] [ rdf:type sp:Bind ; 236 ] [ rdf:type sp:Bind ;
148 sp:expression 237 sp:expression
149 [ rdf:type ep-spin-lib:normalizeString ; 238 [ rdf:type ep-spin-lib:normalizeString ;
150 - sp:arg1 _:b20 239 + sp:arg1 _:b33
151 ] ; 240 ] ;
152 - sp:variable _:b32 241 + sp:variable _:b45
153 ] [ rdf:type sp:Bind ; 242 ] [ rdf:type sp:Bind ;
154 sp:expression 243 sp:expression
155 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 244 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
156 - sp:arg1 _:b32 245 + sp:arg1 _:b45
157 ] ; 246 ] ;
158 sp:variable 247 sp:variable
159 [ sp:varName "productionFlow"^^xsd:string 248 [ sp:varName "productionFlow"^^xsd:string
...@@ -161,113 +250,168 @@ ...@@ -161,113 +250,168 @@
161 ] [ rdf:type sp:Bind ; 250 ] [ rdf:type sp:Bind ;
162 sp:expression 251 sp:expression
163 [ rdf:type ep-dpr-spin-lib:selectProductType ; 252 [ rdf:type ep-dpr-spin-lib:selectProductType ;
164 - sp:arg1 _:b22 253 + sp:arg1 _:b35
165 ] ; 254 ] ;
166 - sp:variable _:b24 255 + sp:variable _:b37
167 ] [ rdf:type sp:Bind ; 256 ] [ rdf:type sp:Bind ;
168 sp:expression 257 sp:expression
169 [ rdf:type ep-spin-lib:normalizeString ; 258 [ rdf:type ep-spin-lib:normalizeString ;
170 - sp:arg1 _:b23 259 + sp:arg1 _:b36
171 ] ; 260 ] ;
172 - sp:variable _:b33 261 + sp:variable _:b46
173 ] [ rdf:type sp:Bind ; 262 ] [ rdf:type sp:Bind ;
174 sp:expression 263 sp:expression
175 [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; 264 [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
176 - sp:arg1 _:b32 ; 265 + sp:arg1 _:b45 ;
177 - sp:arg2 _:b33 266 + sp:arg2 _:b46
178 ] ; 267 ] ;
179 - sp:variable _:b4 268 + sp:variable _:b17
180 ] [ rdf:type sp:Bind ; 269 ] [ rdf:type sp:Bind ;
181 sp:expression 270 sp:expression
182 [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ; 271 [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
183 - sp:arg1 _:b26 272 + sp:arg1 _:b39
184 ] ; 273 ] ;
185 - sp:variable _:b8 274 + sp:variable _:b21
186 ] [ rdf:type sp:Bind ; 275 ] [ rdf:type sp:Bind ;
187 sp:expression 276 sp:expression
188 [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ; 277 [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
189 - sp:arg1 _:b26 278 + sp:arg1 _:b39
190 ] ; 279 ] ;
191 - sp:variable _:b3 280 + sp:variable _:b16
192 ] [ rdf:type sp:Bind ; 281 ] [ rdf:type sp:Bind ;
193 sp:expression 282 sp:expression
194 [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ; 283 [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
195 - sp:arg1 _:b15 284 + sp:arg1 _:b28
196 ] ; 285 ] ;
197 - sp:variable _:b12 286 + sp:variable _:b25
198 ] [ rdf:type sp:Bind ; 287 ] [ rdf:type sp:Bind ;
199 sp:expression 288 sp:expression
200 [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; 289 [ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
201 - sp:arg1 _:b28 290 + sp:arg1 _:b41
202 ] ; 291 ] ;
203 - sp:variable _:b10 292 + sp:variable _:b23
204 ] [ rdf:type sp:Bind ; 293 ] [ rdf:type sp:Bind ;
205 sp:expression 294 sp:expression
206 [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; 295 [ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
207 - sp:arg1 _:b30 296 + sp:arg1 _:b43
297 + ] ;
298 + sp:variable _:b27
299 + ])
300 + ] ;
301 + spin:rule
302 + [ rdf:type sp:Construct ;
303 + rdfs:comment """STEP 20102 Record the Facility that has the flows
304 +Nothing is done with the namingSystem!"""^^xsd:string ;
305 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
306 + sp:predicate rdf:type ;
307 + sp:subject _:b47
308 + ] [ sp:object _:b48 ;
309 + sp:predicate rdf:type ;
310 + sp:subject _:b47
311 + ] [ sp:object _:b49 ;
312 + sp:predicate rdfs:label ;
313 + sp:subject _:b47
314 + ]) ;
315 + sp:where ([ sp:object _:b50 ;
316 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
317 + sp:subject spin:_this
318 + ] [ sp:object _:b51 ;
319 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
320 + sp:subject _:b50
321 + ] [ sp:object _:b49 ;
322 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
323 + sp:subject _:b51
324 + ] [ rdf:type sp:Optional ;
325 + sp:elements ([ sp:object
326 + [ sp:varName "facilityNamingSystem"^^xsd:string
327 + ] ;
328 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
329 + sp:subject _:b51
330 + ])
331 + ] [ rdf:type sp:Optional ;
332 + sp:elements ([ sp:object _:b52 ;
333 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
334 + sp:subject _:b51
335 + ])
336 + ] [ rdf:type sp:Bind ;
337 + sp:expression
338 + [ rdf:type ep-spin-lib:normalizeString ;
339 + sp:arg1 _:b49
340 + ] ;
341 + sp:variable _:b53
342 + ] [ rdf:type sp:Bind ;
343 + sp:expression
344 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
345 + sp:arg1 _:b53
346 + ] ;
347 + sp:variable _:b47
348 + ] [ rdf:type sp:Bind ;
349 + sp:expression
350 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
351 + sp:arg1 _:b52
208 ] ; 352 ] ;
209 - sp:variable _:b14 353 + sp:variable _:b48
210 ]) 354 ])
211 ] ; 355 ] ;
212 spin:rule 356 spin:rule
213 [ rdf:type sp:Construct ; 357 [ rdf:type sp:Construct ;
214 rdfs:comment """STEP 20104 record the product flows 358 rdfs:comment """STEP 20104 record the product flows
215 namingSystem not processed"""^^xsd:string ; 359 namingSystem not processed"""^^xsd:string ;
216 - sp:templates ([ sp:object _:b34 ; 360 + sp:templates ([ sp:object _:b54 ;
217 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 361 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
218 - sp:subject _:b35 362 + sp:subject _:b55
219 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#FlowOfMaterial> ; 363 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#FlowOfMaterial> ;
220 sp:predicate rdf:type ; 364 sp:predicate rdf:type ;
221 - sp:subject _:b34 365 + sp:subject _:b54
222 - ] [ sp:object _:b36 ; 366 + ] [ sp:object _:b56 ;
223 sp:predicate rdf:type ; 367 sp:predicate rdf:type ;
224 - sp:subject _:b34 368 + sp:subject _:b54
225 - ] [ sp:object _:b37 ; 369 + ] [ sp:object _:b57 ;
226 sp:predicate rdfs:label ; 370 sp:predicate rdfs:label ;
227 - sp:subject _:b34 371 + sp:subject _:b54
228 ]) ; 372 ]) ;
229 - sp:where ([ sp:object _:b38 ; 373 + sp:where ([ sp:object _:b58 ;
230 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 374 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
231 sp:subject spin:_this 375 sp:subject spin:_this
232 - ] [ sp:object _:b39 ; 376 + ] [ sp:object _:b59 ;
233 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; 377 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
234 - sp:subject _:b38 378 + sp:subject _:b58
235 - ] [ sp:object _:b40 ; 379 + ] [ sp:object _:b60 ;
236 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 380 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
237 - sp:subject _:b39 381 + sp:subject _:b59
238 - ] [ sp:object _:b41 ; 382 + ] [ sp:object _:b61 ;
239 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; 383 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
240 - sp:subject _:b38 384 + sp:subject _:b58
241 - ] [ sp:object _:b42 ; 385 + ] [ sp:object _:b62 ;
242 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 386 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
243 - sp:subject _:b41 387 + sp:subject _:b61
244 - ] [ sp:object _:b43 ; 388 + ] [ sp:object _:b63 ;
245 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; 389 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
246 - sp:subject _:b41 390 + sp:subject _:b61
247 - ] [ sp:object _:b44 ; 391 + ] [ sp:object _:b64 ;
248 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; 392 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
249 - sp:subject _:b43 393 + sp:subject _:b63
250 - ] [ sp:object _:b45 ; 394 + ] [ sp:object _:b65 ;
251 sp:predicate rdfs:label ; 395 sp:predicate rdfs:label ;
252 - sp:subject _:b36 396 + sp:subject _:b56
253 ] [ rdf:type sp:Optional ; 397 ] [ rdf:type sp:Optional ;
254 - sp:elements ([ sp:object _:b46 ; 398 + sp:elements ([ sp:object _:b66 ;
255 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; 399 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
256 - sp:subject _:b43 400 + sp:subject _:b63
257 - ] [ sp:object _:b37 ; 401 + ] [ sp:object _:b57 ;
258 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 402 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
259 - sp:subject _:b46 403 + sp:subject _:b66
260 ]) 404 ])
261 ] [ rdf:type sp:Bind ; 405 ] [ rdf:type sp:Bind ;
262 sp:expression 406 sp:expression
263 [ rdf:type ep-spin-lib:normalizeString ; 407 [ rdf:type ep-spin-lib:normalizeString ;
264 - sp:arg1 _:b40 408 + sp:arg1 _:b60
265 ] ; 409 ] ;
266 - sp:variable _:b47 410 + sp:variable _:b67
267 ] [ rdf:type sp:Bind ; 411 ] [ rdf:type sp:Bind ;
268 sp:expression 412 sp:expression
269 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 413 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
270 - sp:arg1 _:b47 414 + sp:arg1 _:b67
271 ] ; 415 ] ;
272 sp:variable 416 sp:variable
273 [ sp:varName "productionFacility"^^xsd:string 417 [ sp:varName "productionFacility"^^xsd:string
...@@ -275,215 +419,505 @@ namingSystem not processed"""^^xsd:string ; ...@@ -275,215 +419,505 @@ namingSystem not processed"""^^xsd:string ;
275 ] [ rdf:type sp:Bind ; 419 ] [ rdf:type sp:Bind ;
276 sp:expression 420 sp:expression
277 [ rdf:type ep-spin-lib:normalizeString ; 421 [ rdf:type ep-spin-lib:normalizeString ;
278 - sp:arg1 _:b42 422 + sp:arg1 _:b62
279 ] ; 423 ] ;
280 - sp:variable _:b48 424 + sp:variable _:b68
281 ] [ rdf:type sp:Bind ; 425 ] [ rdf:type sp:Bind ;
282 sp:expression 426 sp:expression
283 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; 427 [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
284 - sp:arg1 _:b48 428 + sp:arg1 _:b68
285 ] ; 429 ] ;
286 - sp:variable _:b35 430 + sp:variable _:b55
287 ] [ rdf:type sp:Bind ; 431 ] [ rdf:type sp:Bind ;
288 sp:expression 432 sp:expression
289 [ rdf:type ep-dpr-spin-lib:selectProductType ; 433 [ rdf:type ep-dpr-spin-lib:selectProductType ;
290 - sp:arg1 _:b44 434 + sp:arg1 _:b64
291 ] ; 435 ] ;
292 - sp:variable _:b36 436 + sp:variable _:b56
293 ] [ rdf:type sp:Bind ; 437 ] [ rdf:type sp:Bind ;
294 sp:expression 438 sp:expression
295 [ rdf:type ep-spin-lib:normalizeString ; 439 [ rdf:type ep-spin-lib:normalizeString ;
296 - sp:arg1 _:b45 440 + sp:arg1 _:b65
297 ] ; 441 ] ;
298 - sp:variable _:b49 442 + sp:variable _:b69
299 ] [ rdf:type sp:Bind ; 443 ] [ rdf:type sp:Bind ;
300 sp:expression 444 sp:expression
301 [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; 445 [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
302 - sp:arg1 _:b48 ; 446 + sp:arg1 _:b68 ;
303 - sp:arg2 _:b49 447 + sp:arg2 _:b69
304 ] ; 448 ] ;
305 - sp:variable _:b34 449 + sp:variable _:b54
306 ]) 450 ])
307 ] ; 451 ] ;
308 spin:rule 452 spin:rule
309 [ rdf:type sp:Construct ; 453 [ rdf:type sp:Construct ;
310 - rdfs:comment """STEP 20103 record the flows 454 + rdfs:comment "STEP 20101e Set the context facility - installation exists"^^xsd:string ;
311 -nothing is done with flowDirection"""^^xsd:string ; 455 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
312 - sp:templates ([ sp:object _:b50 ;
313 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
314 - sp:subject _:b51
315 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
316 - sp:predicate rdf:type ;
317 - sp:subject _:b50
318 - ] [ sp:object _:b52 ;
319 sp:predicate rdf:type ; 456 sp:predicate rdf:type ;
320 - sp:subject _:b50 457 + sp:subject _:b70
321 - ] [ sp:object _:b53 ; 458 + ] [ sp:object _:b71 ;
322 sp:predicate rdf:type ; 459 sp:predicate rdf:type ;
323 - sp:subject _:b50 460 + sp:subject _:b70
324 - ] [ sp:object _:b54 ; 461 + ] [ sp:object
325 - sp:predicate rdfs:label ; 462 + [ sp:varName "productionInstallation"^^xsd:string
326 - sp:subject _:b50 463 + ] ;
464 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
465 + sp:subject _:b70
327 ]) ; 466 ]) ;
328 - sp:where ([ sp:object _:b55 ; 467 + sp:where ([ sp:object _:b72 ;
329 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 468 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#contextFacilityRef> ;
330 sp:subject spin:_this 469 sp:subject spin:_this
331 - ] [ sp:object _:b56 ; 470 + ] [ sp:object _:b73 ;
332 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
333 - sp:subject _:b55
334 - ] [ sp:object _:b57 ;
335 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 471 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
336 - sp:subject _:b56 472 + sp:subject _:b72
337 - ] [ sp:object _:b58 ;
338 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
339 - sp:subject _:b55
340 - ] [ sp:object _:b54 ;
341 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
342 - sp:subject _:b58
343 - ] [ sp:object _:b59 ;
344 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
345 - sp:subject _:b58
346 ] [ rdf:type sp:Optional ; 473 ] [ rdf:type sp:Optional ;
347 - sp:elements ([ sp:object 474 + sp:elements ([ sp:object _:b74 ;
348 - [ sp:varName "flowDirection"^^xsd:string 475 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
349 - ] ; 476 + sp:subject _:b72
350 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
351 - sp:subject _:b58
352 ]) 477 ])
353 - ] [ rdf:type sp:Optional ; 478 + ] [ sp:object spin:_this ;
354 - sp:elements ([ sp:object 479 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
355 - [ sp:varName "flowQualifier"^^xsd:string 480 + sp:subject _:b75
481 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
482 + sp:predicate rdf:type ;
483 + sp:subject _:b76
484 + ] [ sp:object _:b75 ;
485 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
486 + sp:subject _:b76
487 + ] [ sp:object
488 + [ sp:varName "productionInstallaton"^^xsd:string
356 ] ; 489 ] ;
357 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ; 490 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
358 - sp:subject _:b58 491 + sp:subject _:b76
359 - ])
360 ] [ rdf:type sp:Bind ; 492 ] [ rdf:type sp:Bind ;
361 sp:expression 493 sp:expression
362 [ rdf:type ep-spin-lib:normalizeString ; 494 [ rdf:type ep-spin-lib:normalizeString ;
363 - sp:arg1 _:b57 495 + sp:arg1 _:b73
364 ] ; 496 ] ;
365 - sp:variable _:b60 497 + sp:variable _:b77
366 ] [ rdf:type sp:Bind ; 498 ] [ rdf:type sp:Bind ;
367 sp:expression 499 sp:expression
368 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 500 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
369 - sp:arg1 _:b60 501 + sp:arg1 _:b77
370 - ] ;
371 - sp:variable _:b51
372 - ] [ rdf:type sp:Bind ;
373 - sp:expression
374 - [ rdf:type ep-spin-lib:normalizeString ;
375 - sp:arg1 _:b54
376 - ] ;
377 - sp:variable _:b61
378 - ] [ rdf:type sp:Bind ;
379 - sp:expression
380 - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
381 - sp:arg1 _:b61
382 - ] ;
383 - sp:variable _:b50
384 - ] [ rdf:type sp:Bind ;
385 - sp:expression
386 - [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
387 - sp:arg1 _:b59
388 ] ; 502 ] ;
389 - sp:variable _:b52 503 + sp:variable _:b70
390 ] [ rdf:type sp:Bind ; 504 ] [ rdf:type sp:Bind ;
391 sp:expression 505 sp:expression
392 - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ; 506 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
393 - sp:arg1 _:b59 507 + sp:arg1 _:b74
394 ] ; 508 ] ;
395 - sp:variable _:b53 509 + sp:variable _:b71
396 ]) 510 ])
397 ] ; 511 ] ;
398 spin:rule 512 spin:rule
399 [ rdf:type sp:Construct ; 513 [ rdf:type sp:Construct ;
400 - rdfs:comment """STEP 20101a Record the Temporal part of the flows for the day 514 + rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
401 -"""^^xsd:string ; 515 + sp:templates ([ sp:object _:b78 ;
402 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ; 516 + sp:predicate _:b79 ;
517 + sp:subject _:b80
518 + ] [ sp:object _:b81 ;
403 sp:predicate rdf:type ; 519 sp:predicate rdf:type ;
404 - sp:subject _:b62 520 + sp:subject _:b80
521 + ]) ;
522 + sp:where ([ sp:object _:b82 ;
523 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
524 + sp:subject spin:_this
525 + ] [ sp:object _:b83 ;
526 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
527 + sp:subject _:b82
528 + ] [ sp:object _:b84 ;
529 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
530 + sp:subject _:b83
531 + ] [ sp:object _:b85 ;
532 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
533 + sp:subject _:b82
534 + ] [ sp:object _:b86 ;
535 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
536 + sp:subject _:b85
537 + ] [ sp:object _:b87 ;
538 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
539 + sp:subject _:b85
540 + ] [ sp:object _:b88 ;
541 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
542 + sp:subject _:b85
543 + ] [ sp:object _:b89 ;
544 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
545 + sp:subject _:b88
546 + ] [ rdf:type sp:Bind ;
547 + sp:expression
548 + [ rdf:type ep-spin-lib:normalizeString ;
549 + sp:arg1 _:b84
550 + ] ;
551 + sp:variable _:b90
552 + ] [ rdf:type sp:Bind ;
553 + sp:expression
554 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
555 + sp:arg1 _:b90
556 + ] ;
557 + sp:variable
558 + [ sp:varName "productionFacility"^^xsd:string
559 + ]
560 + ] [ rdf:type sp:Bind ;
561 + sp:expression
562 + [ rdf:type ep-spin-lib:normalizeString ;
563 + sp:arg1 _:b86
564 + ] ;
565 + sp:variable _:b91
566 + ] [ rdf:type sp:Bind ;
567 + sp:expression
568 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
569 + sp:arg1 _:b91
570 + ] ;
571 + sp:variable _:b78
572 + ] [ rdf:type sp:Bind ;
573 + sp:expression
574 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
575 + sp:arg1 _:b89
576 + ] ;
577 + sp:variable _:b81
578 + ] [ rdf:type sp:Bind ;
579 + sp:expression
580 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
581 + sp:arg1 _:b87
582 + ] ;
583 + sp:variable _:b79
584 + ])
585 + ] ;
586 + spin:rule
587 + [ rdf:type sp:Construct ;
588 + rdfs:comment "STEP 20101h Set the geographic context - installation or context facility do not exist"^^xsd:string ;
589 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
590 + sp:predicate rdf:type ;
591 + sp:subject _:b92
592 + ] [ sp:object _:b93 ;
593 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
594 + sp:subject _:b92
595 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
596 + sp:predicate rdf:type ;
597 + sp:subject _:b93
598 + ] [ sp:object _:b94 ;
599 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
600 + sp:subject _:b92
601 + ] [ sp:object _:b95 ;
602 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
603 + sp:subject _:b93
604 + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ;
605 + sp:predicate rdf:type ;
606 + sp:subject _:b95
607 + ] [ sp:object _:b96 ;
608 + sp:predicate rdfs:label ;
609 + sp:subject _:b95
610 + ] [ sp:object _:b97 ;
611 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
612 + sp:subject _:b93
613 + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ;
614 + sp:predicate rdf:type ;
615 + sp:subject _:b97
616 + ] [ sp:object _:b98 ;
617 + sp:predicate rdfs:label ;
618 + sp:subject
619 + []
620 + ] [ sp:object _:b99 ;
621 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
622 + sp:subject _:b93
623 + ]) ;
624 + sp:where ([ sp:object _:b100 ;
625 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
626 + sp:subject spin:_this
627 + ] [ rdf:type sp:Optional ;
628 + sp:elements ([ sp:object _:b96 ;
629 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#country> ;
630 + sp:subject _:b100
631 + ])
632 + ] [ rdf:type sp:Optional ;
633 + sp:elements ([ sp:object _:b98 ;
634 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#state> ;
635 + sp:subject _:b100
636 + ])
637 + ] [ rdf:type sp:Optional ;
638 + sp:elements ([ sp:object _:b101 ;
639 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fieldRef> ;
640 + sp:subject _:b100
641 + ] [ sp:object _:b102 ;
642 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
643 + sp:subject _:b101
644 + ])
405 ] [ sp:object spin:_this ; 645 ] [ sp:object spin:_this ;
406 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 646 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
407 - sp:subject _:b62 647 + sp:subject _:b94
648 + ] [ rdf:type sp:NotExists ;
649 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
650 + sp:predicate rdf:type ;
651 + sp:subject _:b103
652 + ] [ sp:object _:b94 ;
653 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
654 + sp:subject _:b103
655 + ])
656 + ] [ rdf:type sp:Bind ;
657 + sp:expression
658 + [ rdf:type ep-spin-lib:normalizeString ;
659 + sp:arg1 _:b102
660 + ] ;
661 + sp:variable _:b104
662 + ] [ rdf:type sp:Bind ;
663 + sp:expression
664 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
665 + sp:arg1 _:b104
666 + ] ;
667 + sp:variable _:b99
668 + ])
669 + ] ;
670 + spin:rule
671 + [ rdf:type sp:Construct ;
672 + rdfs:comment "STEP 20101d Set the installation"^^xsd:string ;
673 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
674 + sp:predicate rdf:type ;
675 + sp:subject _:b105
676 + ] [ sp:object
677 + [ sp:varName "productionInstallaton"^^xsd:string
678 + ] ;
679 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
680 + sp:subject _:b105
681 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
682 + sp:predicate rdf:type ;
683 + sp:subject _:b106
684 + ] [ sp:object _:b107 ;
685 + sp:predicate rdf:type ;
686 + sp:subject _:b106
687 + ] [ sp:object _:b108 ;
688 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
689 + sp:subject _:b105
408 ]) ; 690 ]) ;
409 - sp:where ([ sp:object _:b63 ; 691 + sp:where ([ sp:object _:b109 ;
410 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 692 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ;
411 sp:subject spin:_this 693 sp:subject spin:_this
412 - ] [ sp:object _:b64 ; 694 + ] [ sp:object _:b110 ;
413 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; 695 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
696 + sp:subject _:b109
697 + ] [ rdf:type sp:Optional ;
698 + sp:elements ([ sp:object _:b111 ;
699 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
700 + sp:subject _:b109
701 + ])
702 + ] [ sp:object spin:_this ;
703 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
704 + sp:subject _:b108
705 + ] [ rdf:type sp:Bind ;
706 + sp:expression
707 + [ rdf:type ep-spin-lib:normalizeString ;
708 + sp:arg1 _:b110
709 + ] ;
710 + sp:variable _:b112
711 + ] [ rdf:type sp:Bind ;
712 + sp:expression
713 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
714 + sp:arg1 _:b112
715 + ] ;
716 + sp:variable _:b106
717 + ] [ rdf:type sp:Bind ;
718 + sp:expression
719 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
720 + sp:arg1 _:b111
721 + ] ;
722 + sp:variable _:b107
723 + ])
724 + ] ;
725 + spin:rule
726 + [ rdf:type sp:Construct ;
727 + rdfs:comment "STEP 20101f Set the context facility - installation does not exist"^^xsd:string ;
728 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
729 + sp:predicate rdf:type ;
730 + sp:subject _:b113
731 + ] [ sp:object _:b114 ;
732 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
733 + sp:subject _:b113
734 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
735 + sp:predicate rdf:type ;
736 + sp:subject _:b114
737 + ] [ sp:object _:b115 ;
738 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
739 + sp:subject _:b113
740 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
741 + sp:predicate rdf:type ;
742 + sp:subject _:b116
743 + ] [ sp:object _:b117 ;
744 + sp:predicate rdf:type ;
745 + sp:subject _:b116
746 + ] [ sp:object _:b114 ;
747 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
748 + sp:subject _:b116
749 + ]) ;
750 + sp:where ([ sp:object _:b118 ;
751 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#contextFacilityRef> ;
414 sp:subject spin:_this 752 sp:subject spin:_this
415 - ] [ sp:object _:b65 ; 753 + ] [ sp:object _:b119 ;
416 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; 754 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
755 + sp:subject _:b118
756 + ] [ rdf:type sp:Optional ;
757 + sp:elements ([ sp:object _:b120 ;
758 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
759 + sp:subject _:b118
760 + ])
761 + ] [ sp:object spin:_this ;
762 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
763 + sp:subject _:b115
764 + ] [ rdf:type sp:NotExists ;
765 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
766 + sp:predicate rdf:type ;
767 + sp:subject _:b121
768 + ] [ sp:object _:b115 ;
769 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
770 + sp:subject _:b121
771 + ])
772 + ] [ rdf:type sp:Bind ;
773 + sp:expression
774 + [ rdf:type ep-spin-lib:normalizeString ;
775 + sp:arg1 _:b119
776 + ] ;
777 + sp:variable _:b122
778 + ] [ rdf:type sp:Bind ;
779 + sp:expression
780 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
781 + sp:arg1 _:b122
782 + ] ;
783 + sp:variable _:b116
784 + ] [ rdf:type sp:Bind ;
785 + sp:expression
786 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
787 + sp:arg1 _:b120
788 + ] ;
789 + sp:variable _:b117
790 + ])
791 + ] ;
792 + spin:rule
793 + [ rdf:type sp:Construct ;
794 + rdfs:comment """STEP 20101k Set the facility operator- installation or context facility exist
795 +role is ignored"""^^xsd:string ;
796 + sp:templates ([ sp:object _:b123 ;
797 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
798 + sp:subject _:b124
799 + ]) ;
800 + sp:where ([ sp:object _:b125 ;
801 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ;
417 sp:subject spin:_this 802 sp:subject spin:_this
803 + ] [ sp:object _:b126 ;
804 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
805 + sp:subject _:b125
806 + ] [ sp:object spin:_this ;
807 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
808 + sp:subject _:b127
809 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
810 + sp:predicate rdf:type ;
811 + sp:subject _:b128
812 + ] [ sp:object _:b127 ;
813 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
814 + sp:subject _:b128
815 + ] [ sp:object _:b124 ;
816 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
817 + sp:subject _:b128
418 ] [ rdf:type sp:Bind ; 818 ] [ rdf:type sp:Bind ;
419 sp:expression 819 sp:expression
420 [ rdf:type ep-spin-lib:normalizeString ; 820 [ rdf:type ep-spin-lib:normalizeString ;
421 - sp:arg1 _:b63 821 + sp:arg1 _:b126
422 ] ; 822 ] ;
423 - sp:variable _:b66 823 + sp:variable _:b129
424 ] [ rdf:type sp:Bind ; 824 ] [ rdf:type sp:Bind ;
425 sp:expression 825 sp:expression
426 - [ rdf:type ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ; 826 + [ rdf:type rhspin:companyById ;
427 - sp:arg1 _:b66 ; 827 + arg:id _:b129
428 - sp:arg2 _:b64 ;
429 - sp:arg3 _:b65
430 ] ; 828 ] ;
431 - sp:variable _:b62 829 + sp:variable _:b123
432 ]) 830 ])
433 ] ; 831 ] ;
434 spin:rule 832 spin:rule
435 [ rdf:type sp:Construct ; 833 [ rdf:type sp:Construct ;
436 - rdfs:comment """STEP 20102 Record the Facility that has the flows 834 + rdfs:comment "STEP 20103a record the flows"^^xsd:string ;
437 -Nothing is done with the namingSystem!"""^^xsd:string ; 835 + sp:templates ([ sp:object _:b130 ;
438 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; 836 + sp:predicate _:b131 ;
837 + sp:subject _:b132
838 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
839 + sp:predicate rdf:type ;
840 + sp:subject _:b130
841 + ] [ sp:object _:b133 ;
439 sp:predicate rdf:type ; 842 sp:predicate rdf:type ;
440 - sp:subject _:b67 843 + sp:subject _:b130
441 - ] [ sp:object _:b68 ; 844 + ] [ sp:object _:b134 ;
442 sp:predicate rdf:type ; 845 sp:predicate rdf:type ;
443 - sp:subject _:b67 846 + sp:subject _:b130
444 - ] [ sp:object _:b69 ; 847 + ] [ sp:object _:b135 ;
445 sp:predicate rdfs:label ; 848 sp:predicate rdfs:label ;
446 - sp:subject _:b67 849 + sp:subject _:b130
447 ]) ; 850 ]) ;
448 - sp:where ([ sp:object _:b70 ; 851 + sp:where ([ sp:object _:b136 ;
449 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; 852 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
450 sp:subject spin:_this 853 sp:subject spin:_this
451 - ] [ sp:object _:b71 ; 854 + ] [ sp:object _:b137 ;
452 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; 855 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
453 - sp:subject _:b70 856 + sp:subject _:b136
454 - ] [ sp:object _:b69 ; 857 + ] [ sp:object _:b138 ;
455 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 858 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
456 - sp:subject _:b71 859 + sp:subject _:b137
860 + ] [ sp:object _:b139 ;
861 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
862 + sp:subject _:b136
863 + ] [ sp:object _:b135 ;
864 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
865 + sp:subject _:b139
866 + ] [ sp:object _:b140 ;
867 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
868 + sp:subject _:b139
869 + ] [ sp:object _:b141 ;
870 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
871 + sp:subject _:b139
457 ] [ rdf:type sp:Optional ; 872 ] [ rdf:type sp:Optional ;
458 sp:elements ([ sp:object 873 sp:elements ([ sp:object
459 - [ sp:varName "facilityNamingSystem"^^xsd:string 874 + [ sp:varName "flowQualifier"^^xsd:string
460 ] ; 875 ] ;
461 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ; 876 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
462 - sp:subject _:b71 877 + sp:subject _:b139
463 - ])
464 - ] [ rdf:type sp:Optional ;
465 - sp:elements ([ sp:object _:b72 ;
466 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
467 - sp:subject _:b71
468 ]) 878 ])
469 ] [ rdf:type sp:Bind ; 879 ] [ rdf:type sp:Bind ;
470 sp:expression 880 sp:expression
471 [ rdf:type ep-spin-lib:normalizeString ; 881 [ rdf:type ep-spin-lib:normalizeString ;
472 - sp:arg1 _:b69 882 + sp:arg1 _:b138
473 ] ; 883 ] ;
474 - sp:variable _:b73 884 + sp:variable _:b142
475 ] [ rdf:type sp:Bind ; 885 ] [ rdf:type sp:Bind ;
476 sp:expression 886 sp:expression
477 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 887 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
478 - sp:arg1 _:b73 888 + sp:arg1 _:b142
479 ] ; 889 ] ;
480 - sp:variable _:b67 890 + sp:variable _:b132
481 ] [ rdf:type sp:Bind ; 891 ] [ rdf:type sp:Bind ;
482 sp:expression 892 sp:expression
483 - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; 893 + [ rdf:type ep-spin-lib:normalizeString ;
484 - sp:arg1 _:b72 894 + sp:arg1 _:b135
485 ] ; 895 ] ;
486 - sp:variable _:b68 896 + sp:variable _:b143
897 + ] [ rdf:type sp:Bind ;
898 + sp:expression
899 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
900 + sp:arg1 _:b143
901 + ] ;
902 + sp:variable _:b130
903 + ] [ rdf:type sp:Bind ;
904 + sp:expression
905 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
906 + sp:arg1 _:b140
907 + ] ;
908 + sp:variable _:b133
909 + ] [ rdf:type sp:Bind ;
910 + sp:expression
911 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
912 + sp:arg1 _:b140
913 + ] ;
914 + sp:variable _:b134
915 + ] [ rdf:type sp:Bind ;
916 + sp:expression
917 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
918 + sp:arg1 _:b141
919 + ] ;
920 + sp:variable _:b131
487 ]) 921 ])
488 ] ; 922 ] ;
489 spin:rule 923 spin:rule
...@@ -491,282 +925,753 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -491,282 +925,753 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
491 rdfs:comment "STEP 20101b Record the Temporal part of the flows for the day"^^xsd:string ; 925 rdfs:comment "STEP 20101b Record the Temporal part of the flows for the day"^^xsd:string ;
492 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ; 926 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
493 sp:predicate rdf:type ; 927 sp:predicate rdf:type ;
494 - sp:subject _:b74 928 + sp:subject _:b144
495 ] [ sp:object spin:_this ; 929 ] [ sp:object spin:_this ;
496 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 930 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
497 - sp:subject _:b74 931 + sp:subject _:b144
498 ]) ; 932 ]) ;
499 - sp:where ([ sp:object _:b75 ; 933 + sp:where ([ sp:object _:b145 ;
500 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; 934 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
501 sp:subject spin:_this 935 sp:subject spin:_this
502 - ] [ sp:object _:b76 ; 936 + ] [ sp:object _:b146 ;
503 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ; 937 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
504 sp:subject spin:_this 938 sp:subject spin:_this
505 - ] [ sp:object _:b77 ; 939 + ] [ sp:object _:b147 ;
506 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ; 940 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
507 sp:subject spin:_this 941 sp:subject spin:_this
508 ] [ rdf:type sp:Bind ; 942 ] [ rdf:type sp:Bind ;
509 sp:expression 943 sp:expression
510 [ rdf:type ep-spin-lib:normalizeString ; 944 [ rdf:type ep-spin-lib:normalizeString ;
511 - sp:arg1 _:b75 945 + sp:arg1 _:b145
512 ] ; 946 ] ;
513 - sp:variable _:b78 947 + sp:variable _:b148
514 ] [ rdf:type sp:Bind ; 948 ] [ rdf:type sp:Bind ;
515 sp:expression 949 sp:expression
516 [ rdf:type ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ; 950 [ rdf:type ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ;
517 - sp:arg1 _:b78 ; 951 + sp:arg1 _:b148 ;
518 - sp:arg2 _:b76 ; 952 + sp:arg2 _:b146 ;
519 - sp:arg3 _:b77 953 + sp:arg3 _:b147
520 ] ; 954 ] ;
521 - sp:variable _:b74 955 + sp:variable _:b144
522 ]) 956 ])
523 ] ; 957 ] ;
524 spin:rule 958 spin:rule
525 [ rdf:type sp:Construct ; 959 [ rdf:type sp:Construct ;
526 rdfs:comment """STEP 20101c Set the type of temporal part 960 rdfs:comment """STEP 20101c Set the type of temporal part
527 -kind and periodKind are not yet processed"""^^xsd:string ; 961 +kind is not yet processed"""^^xsd:string ;
528 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ; 962 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
529 sp:predicate rdf:type ; 963 sp:predicate rdf:type ;
530 - sp:subject _:b79 964 + sp:subject _:b149
965 + ] [ sp:object _:b150 ;
966 + sp:predicate rdf:type ;
967 + sp:subject _:b149
531 ]) ; 968 ]) ;
532 - sp:where ([ sp:object 969 + sp:where ([ rdf:type sp:Optional ;
970 + sp:elements ([ sp:object
533 [ sp:varName "kind"^^xsd:string 971 [ sp:varName "kind"^^xsd:string
534 ] ; 972 ] ;
535 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kind> ; 973 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kind> ;
536 sp:subject spin:_this 974 sp:subject spin:_this
537 - ] [ sp:object 975 + ])
538 - [ sp:varName "periodKindRef"^^xsd:string 976 + ] [ rdf:type sp:Optional ;
539 - ] ; 977 + sp:elements ([ sp:object _:b151 ;
540 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodKindRef> ; 978 sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodKindRef> ;
541 sp:subject spin:_this 979 sp:subject spin:_this
980 + ])
981 + ] [ sp:object spin:_this ;
982 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
983 + sp:subject _:b149
984 + ] [ rdf:type sp:Bind ;
985 + sp:expression
986 + [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
987 + sp:arg1 _:b151
988 + ] ;
989 + sp:variable _:b150
990 + ])
991 + ] ;
992 + spin:rule
993 + [ rdf:type sp:Construct ;
994 + rdfs:comment "STEP 20101i Set the geographic context - offshore location - not done yet"^^xsd:string ;
995 + sp:templates () ;
996 + sp:where ([ sp:object _:b152 ;
997 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
998 + sp:subject spin:_this
542 ] [ sp:object 999 ] [ sp:object
543 - [ sp:varName "dateEnd"^^xsd:string 1000 + [ sp:varName "offshoreLocationRef"^^xsd:string
544 ] ; 1001 ] ;
545 - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ; 1002 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#offshoreLocationRef> ;
1003 + sp:subject _:b152
1004 + ] [ sp:object spin:_this ;
1005 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
1006 + sp:subject _:b153
1007 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
1008 + sp:predicate rdf:type ;
1009 + sp:subject _:b154
1010 + ] [ sp:object _:b153 ;
1011 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
1012 + sp:subject _:b154
1013 + ] [ sp:object
1014 + [ sp:varName "productionInstallaton"^^xsd:string
1015 + ] ;
1016 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1017 + sp:subject _:b154
1018 + ])
1019 + ] ;
1020 + spin:rule
1021 + [ rdf:type sp:Construct ;
1022 + rdfs:comment "STEP 20101g Set the geographic context - installation or context facility exist"^^xsd:string ;
1023 + sp:templates ([ sp:object _:b155 ;
1024 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
1025 + sp:subject _:b156
1026 + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ;
1027 + sp:predicate rdf:type ;
1028 + sp:subject _:b155
1029 + ] [ sp:object _:b157 ;
1030 + sp:predicate rdfs:label ;
1031 + sp:subject _:b155
1032 + ] [ sp:object _:b158 ;
1033 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
1034 + sp:subject _:b156
1035 + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ;
1036 + sp:predicate rdf:type ;
1037 + sp:subject _:b158
1038 + ] [ sp:object _:b159 ;
1039 + sp:predicate rdfs:label ;
1040 + sp:subject _:b158
1041 + ] [ sp:object _:b160 ;
1042 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
1043 + sp:subject _:b156
1044 + ]) ;
1045 + sp:where ([ sp:object _:b161 ;
1046 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
546 sp:subject spin:_this 1047 sp:subject spin:_this
1048 + ] [ rdf:type sp:Optional ;
1049 + sp:elements ([ sp:object _:b157 ;
1050 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#country> ;
1051 + sp:subject _:b161
1052 + ])
1053 + ] [ rdf:type sp:Optional ;
1054 + sp:elements ([ sp:object _:b159 ;
1055 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#state> ;
1056 + sp:subject _:b161
1057 + ])
1058 + ] [ rdf:type sp:Optional ;
1059 + sp:elements ([ sp:object _:b162 ;
1060 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fieldRef> ;
1061 + sp:subject _:b161
1062 + ] [ sp:object _:b163 ;
1063 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
1064 + sp:subject _:b162
1065 + ])
547 ] [ sp:object spin:_this ; 1066 ] [ sp:object spin:_this ;
548 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 1067 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
549 - sp:subject _:b79 1068 + sp:subject _:b164
1069 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
1070 + sp:predicate rdf:type ;
1071 + sp:subject _:b165
1072 + ] [ sp:object _:b164 ;
1073 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
1074 + sp:subject _:b165
1075 + ] [ sp:object _:b156 ;
1076 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1077 + sp:subject _:b165
1078 + ] [ rdf:type sp:Bind ;
1079 + sp:expression
1080 + [ rdf:type ep-spin-lib:normalizeString ;
1081 + sp:arg1 _:b163
1082 + ] ;
1083 + sp:variable _:b166
1084 + ] [ rdf:type sp:Bind ;
1085 + sp:expression
1086 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
1087 + sp:arg1 _:b166
1088 + ] ;
1089 + sp:variable _:b160
1090 + ])
1091 + ] ;
1092 + spin:rule
1093 + [ rdf:type sp:Construct ;
1094 + rdfs:comment """STEP 20103b record the related facility
1095 +nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
1096 + sp:templates ([ sp:object _:b167 ;
1097 + sp:predicate _:b168 ;
1098 + sp:subject _:b169
1099 + ] [ sp:object _:b170 ;
1100 + sp:predicate rdf:type ;
1101 + sp:subject _:b169
1102 + ]) ;
1103 + sp:where ([ sp:object _:b171 ;
1104 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
1105 + sp:subject spin:_this
1106 + ] [ sp:object _:b172 ;
1107 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
1108 + sp:subject _:b171
1109 + ] [ sp:object _:b173 ;
1110 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
1111 + sp:subject _:b172
1112 + ] [ sp:object _:b174 ;
1113 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
1114 + sp:subject _:b171
1115 + ] [ sp:object _:b175 ;
1116 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
1117 + sp:subject _:b174
1118 + ] [ sp:object _:b176 ;
1119 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
1120 + sp:subject _:b174
1121 + ] [ sp:object _:b177 ;
1122 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
1123 + sp:subject _:b174
1124 + ] [ sp:object _:b178 ;
1125 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
1126 + sp:subject _:b177
1127 + ] [ rdf:type sp:Optional ;
1128 + sp:elements ([ sp:object _:b179 ;
1129 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
1130 + sp:subject _:b177
1131 + ])
1132 + ] [ rdf:type sp:Bind ;
1133 + sp:expression
1134 + [ rdf:type ep-spin-lib:normalizeString ;
1135 + sp:arg1 _:b173
1136 + ] ;
1137 + sp:variable _:b180
1138 + ] [ rdf:type sp:Bind ;
1139 + sp:expression
1140 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
1141 + sp:arg1 _:b180
1142 + ] ;
1143 + sp:variable
1144 + [ sp:varName "productionFacility"^^xsd:string
1145 + ]
1146 + ] [ rdf:type sp:Bind ;
1147 + sp:expression
1148 + [ rdf:type ep-spin-lib:normalizeString ;
1149 + sp:arg1 _:b175
1150 + ] ;
1151 + sp:variable _:b181
1152 + ] [ rdf:type sp:Bind ;
1153 + sp:expression
1154 + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
1155 + sp:arg1 _:b181
1156 + ] ;
1157 + sp:variable _:b167
1158 + ] [ rdf:type sp:Bind ;
1159 + sp:expression
1160 + [ rdf:type ep-spin-lib:normalizeString ;
1161 + sp:arg1 _:b178
1162 + ] ;
1163 + sp:variable _:b182
1164 + ] [ rdf:type sp:Bind ;
1165 + sp:expression
1166 + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
1167 + sp:arg1 _:b182
1168 + ] ;
1169 + sp:variable _:b169
1170 + ] [ rdf:type sp:Bind ;
1171 + sp:expression
1172 + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
1173 + sp:arg1 _:b179
1174 + ] ;
1175 + sp:variable _:b170
1176 + ] [ rdf:type sp:Bind ;
1177 + sp:expression
1178 + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
1179 + sp:arg1 _:b176
1180 + ] ;
1181 + sp:variable _:b168
550 ]) 1182 ])
551 ] . 1183 ] .
552 1184
553 -_:b53 1185 +_:b148
554 - sp:varName "productionFlowDefinitionType"^^xsd:string . 1186 + sp:varName "normalizedProductionFlowsName"^^xsd:string .
1187 +
1188 +_:b115
1189 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1190 +
1191 +_:b116
1192 + sp:varName "productionContextFacility"^^xsd:string .
1193 +
1194 +_:b117
1195 + sp:varName "productionContextFacilityType"^^xsd:string .
1196 +
1197 +_:b118
1198 + sp:varName "contextFacilityRef"^^xsd:string .
1199 +
1200 +_:b119
1201 + sp:varName "contextFacilityName"^^xsd:string .
1202 +
1203 +_:b120
1204 + sp:varName "contextFacilityKind"^^xsd:string .
1205 +
1206 +_:b121
1207 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
1208 +
1209 +_:b122
1210 + sp:varName "normalizedContextFacilityName"^^xsd:string .
1211 +
1212 +_:b149
1213 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1214 +
1215 +_:b150
1216 + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
1217 +
1218 +_:b151
1219 + sp:varName "periodKindRef"^^xsd:string .
1220 +
1221 +_:b54
1222 + sp:varName "productFlow"^^xsd:string .
1223 +
1224 +_:b55
1225 + sp:varName "productionFlow"^^xsd:string .
1226 +
1227 +_:b56
1228 + sp:varName "productType"^^xsd:string .
1229 +
1230 +_:b57
1231 + sp:varName "productFlowName"^^xsd:string .
1232 +
1233 +_:b58
1234 + sp:varName "facilityRef"^^xsd:string .
1235 +
1236 +_:b59
1237 + sp:varName "facilityNameRef"^^xsd:string .
1238 +
1239 +_:b60
1240 + sp:varName "facilityName"^^xsd:string .
1241 +
1242 +_:b61
1243 + sp:varName "flowRef"^^xsd:string .
1244 +
1245 +_:b62
1246 + sp:varName "flowName"^^xsd:string .
1247 +
1248 +_:b100
1249 + sp:varName "geographicContextRef"^^xsd:string .
1250 +
1251 +_:b96
1252 + sp:varName "countryName"^^xsd:string .
1253 +
1254 +_:b98
1255 + sp:varName "stateName"^^xsd:string .
1256 +
1257 +_:b101
1258 + sp:varName "fieldRef"^^xsd:string .
1259 +
1260 +_:b102
1261 + sp:varName "fieldName"^^xsd:string .
1262 +
1263 +_:b63
1264 + sp:varName "productRef"^^xsd:string .
1265 +
1266 +_:b94
1267 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1268 +
1269 +_:b103
1270 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
1271 +
1272 +_:b104
1273 + sp:varName "normalizedFieldName"^^xsd:string .
1274 +
1275 +_:b99
1276 + sp:varName "field"^^xsd:string .
1277 +
1278 +_:b64
1279 + sp:varName "productKind"^^xsd:string .
1280 +
1281 +_:b65
1282 + sp:varName "productTypeName"^^xsd:string .
1283 +
1284 +_:b66
1285 + sp:varName "productNameRef"^^xsd:string .
1286 +
1287 +_:b152
1288 + sp:varName "geographicContextRef"^^xsd:string .
1289 +
1290 +_:b153
1291 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1292 +
1293 +_:b154
1294 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
1295 +
1296 +_:b67
1297 + sp:varName "normalizedFacilityName"^^xsd:string .
1298 +
1299 +_:b68
1300 + sp:varName "normalizedFlowName"^^xsd:string .
1301 +
1302 +_:b69
1303 + sp:varName "normalizedProductTypeName"^^xsd:string .
1304 +
1305 +_:b15
1306 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1307 +
1308 +_:b16
1309 + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
1310 +
1311 +_:b17
1312 + sp:varName "productFlow"^^xsd:string .
1313 +
1314 +_:b18
1315 + sp:varName "startTime"^^xsd:string .
1316 +
1317 +_:b19
1318 + sp:varName "endTime"^^xsd:string .
1319 +
1320 +_:b21
1321 + sp:varName "relationshipToMeasure"^^xsd:string .
555 1322
556 -_:b52 1323 +_:b22
557 - sp:varName "productionFlowPurposeType"^^xsd:string . 1324 + sp:varName "realVolume"^^xsd:string .
558 1325
559 -_:b50 1326 +_:b23
560 - sp:varName "productionFlow"^^xsd:string . 1327 + sp:varName "volumeScale"^^xsd:string .
561 1328
562 -_:b61 1329 +_:b25
563 - sp:varName "normalizedFlowName"^^xsd:string . 1330 + sp:varName "volumeStdType"^^xsd:string .
564 1331
565 -_:b51 1332 +_:b26
566 - sp:varName "productionFacility"^^xsd:string . 1333 + sp:varName "realVolumeStd"^^xsd:string .
567 1334
568 -_:b60 1335 +_:b27
569 - sp:varName "normalizedFacilityName"^^xsd:string . 1336 + sp:varName "volumeStdScale"^^xsd:string .
570 1337
571 -_:b59 1338 +_:b28
572 - sp:varName "flowKind"^^xsd:string . 1339 + sp:varName "standardTempPres"^^xsd:string .
573 1340
574 -_:b54 1341 +_:b29
575 - sp:varName "flowName"^^xsd:string . 1342 + sp:varName "facilityRef"^^xsd:string .
576 1343
577 -_:b58 1344 +_:b30
578 - sp:varName "flowRef"^^xsd:string . 1345 + sp:varName "facilityNameRef"^^xsd:string .
579 1346
580 -_:b57 1347 +_:b31
581 sp:varName "facilityName"^^xsd:string . 1348 sp:varName "facilityName"^^xsd:string .
582 1349
583 -_:b56 1350 +_:b32
584 - sp:varName "facilityNameRef"^^xsd:string . 1351 + sp:varName "flowRef"^^xsd:string .
585 1352
586 -_:b55 1353 +_:b33
587 - sp:varName "facilityRef"^^xsd:string . 1354 + sp:varName "flowName"^^xsd:string .
588 1355
589 -_:b62 1356 +_:b34
590 - sp:varName "productionFlowsForAPeriod"^^xsd:string . 1357 + sp:varName "productRef"^^xsd:string .
591 1358
592 -_:b66 1359 +_:b35
593 - sp:varName "normalizedProductionFlowsName"^^xsd:string . 1360 + sp:varName "productKind"^^xsd:string .
594 1361
595 -_:b65 1362 +_:b36
596 - sp:varName "dTimEnd"^^xsd:string . 1363 + sp:varName "productTypeName"^^xsd:string .
597 1364
598 -_:b64 1365 +_:b37
599 - sp:varName "dTimStart"^^xsd:string . 1366 + sp:varName "productType"^^xsd:string .
600 1367
601 -_:b63 1368 +_:b38
602 - sp:varName "productionFlowsName"^^xsd:string . 1369 + sp:varName "periodRef"^^xsd:string .
603 1370
604 -_:b79 1371 +_:b39
1372 + sp:varName "periodKindRef"^^xsd:string .
1373 +
1374 +_:b40
1375 + sp:varName "volumeRef"^^xsd:string .
1376 +
1377 +_:b41
1378 + sp:varName "uomVolume"^^xsd:string .
1379 +
1380 +_:b42
1381 + sp:varName "volumeStdRef"^^xsd:string .
1382 +
1383 +_:b43
1384 + sp:varName "uomVolumeStd"^^xsd:string .
1385 +
1386 +_:b44
1387 + sp:varName "normalizedFacilityName"^^xsd:string .
1388 +
1389 +_:b45
1390 + sp:varName "normalizedFlowName"^^xsd:string .
1391 +
1392 +_:b46
1393 + sp:varName "normalizedProductTypeName"^^xsd:string .
1394 +
1395 +_:b125
1396 + sp:varName "operatorRef"^^xsd:string .
1397 +
1398 +_:b126
1399 + sp:varName "operatorName"^^xsd:string .
1400 +
1401 +_:b127
605 sp:varName "productionFlowsForAPeriod"^^xsd:string . 1402 sp:varName "productionFlowsForAPeriod"^^xsd:string .
606 1403
607 -_:b78 1404 +_:b128
608 - sp:varName "normalizedProductionFlowsName"^^xsd:string . 1405 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
609 1406
610 -_:b77 1407 +_:b124
611 - sp:varName "dateEnd"^^xsd:string . 1408 + sp:varName "productionInstallation"^^xsd:string .
612 1409
613 -_:b76 1410 +_:b129
614 - sp:varName "dateStart"^^xsd:string . 1411 + sp:varName "normalizedOperatorName"^^xsd:string .
615 1412
616 -_:b75 1413 +_:b123
617 - sp:varName "productionFlowsName"^^xsd:string . 1414 + sp:varName "operator"^^xsd:string .
618 1415
619 -_:b74 1416 +_:b161
1417 + sp:varName "geographicContextRef"^^xsd:string .
1418 +
1419 +_:b157
1420 + sp:varName "countryName"^^xsd:string .
1421 +
1422 +_:b159
1423 + sp:varName "stateName"^^xsd:string .
1424 +
1425 +_:b162
1426 + sp:varName "fieldRef"^^xsd:string .
1427 +
1428 +_:b163
1429 + sp:varName "fieldName"^^xsd:string .
1430 +
1431 +_:b164
620 sp:varName "productionFlowsForAPeriod"^^xsd:string . 1432 sp:varName "productionFlowsForAPeriod"^^xsd:string .
621 1433
622 -_:b73 1434 +_:b165
623 - sp:varName "normalizedFacilityName"^^xsd:string . 1435 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
624 1436
625 -_:b72 1437 +_:b156
626 - sp:varName "facilityKind"^^xsd:string . 1438 + sp:varName "productionInstallation"^^xsd:string .
627 1439
628 -_:b71 1440 +_:b166
629 - sp:varName "facilityNameRef"^^xsd:string . 1441 + sp:varName "normalizedFieldName"^^xsd:string .
630 1442
631 -_:b70 1443 +_:b160
632 - sp:varName "facilityRef"^^xsd:string . 1444 + sp:varName "field"^^xsd:string .
633 1445
634 -_:b69 1446 +_:b10
635 - sp:varName "facilityName"^^xsd:string . 1447 + sp:varName "operatorRef"^^xsd:string .
636 1448
637 -_:b68 1449 +_:b11
638 - sp:varName "productionFacilityType"^^xsd:string . 1450 + sp:varName "operatorName"^^xsd:string .
639 1451
640 -_:b67 1452 +_:b8 sp:varName "productionFlowsForAPeriod"^^xsd:string .
641 - sp:varName "productionFacility"^^xsd:string .
642 1453
643 -_:b2 sp:varName "productionFlowsForAPeriod"^^xsd:string . 1454 +_:b12
1455 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
644 1456
645 -_:b15 1457 +_:b13
646 - sp:varName "standardTempPres"^^xsd:string . 1458 + sp:varName "normalizedOperatorName"^^xsd:string .
647 1459
648 -_:b16 1460 +_:b9 sp:varName "operator"^^xsd:string .
1461 +
1462 +_:b106
1463 + sp:varName "productionInstallation"^^xsd:string .
1464 +
1465 +_:b107
1466 + sp:varName "productionInstallationType"^^xsd:string .
1467 +
1468 +_:b108
1469 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1470 +
1471 +_:b109
1472 + sp:varName "installationRef"^^xsd:string .
1473 +
1474 +_:b110
1475 + sp:varName "installationName"^^xsd:string .
1476 +
1477 +_:b111
1478 + sp:varName "installationKind"^^xsd:string .
1479 +
1480 +_:b112
1481 + sp:varName "normalizedInstallationName"^^xsd:string .
1482 +
1483 +_:b136
649 sp:varName "facilityRef"^^xsd:string . 1484 sp:varName "facilityRef"^^xsd:string .
650 1485
651 -_:b17 1486 +_:b137
652 sp:varName "facilityNameRef"^^xsd:string . 1487 sp:varName "facilityNameRef"^^xsd:string .
653 1488
654 -_:b18 1489 +_:b138
655 sp:varName "facilityName"^^xsd:string . 1490 sp:varName "facilityName"^^xsd:string .
656 1491
657 -_:b19 1492 +_:b139
658 sp:varName "flowRef"^^xsd:string . 1493 sp:varName "flowRef"^^xsd:string .
659 1494
660 -_:b20 1495 +_:b135
661 sp:varName "flowName"^^xsd:string . 1496 sp:varName "flowName"^^xsd:string .
662 1497
663 -_:b21 1498 +_:b140
664 - sp:varName "productRef"^^xsd:string . 1499 + sp:varName "flowKind"^^xsd:string .
665 1500
666 -_:b22 1501 +_:b141
667 - sp:varName "productKind"^^xsd:string . 1502 + sp:varName "flowDirection"^^xsd:string .
668 1503
669 -_:b24 1504 +_:b142
670 - sp:varName "productType"^^xsd:string . 1505 + sp:varName "normalizedFacilityName"^^xsd:string .
671 1506
672 -_:b23 1507 +_:b132
673 - sp:varName "productTypeName"^^xsd:string . 1508 + sp:varName "productionFacility"^^xsd:string .
674 1509
675 -_:b25 1510 +_:b143
676 - sp:varName "periodRef"^^xsd:string . 1511 + sp:varName "normalizedFlowName"^^xsd:string .
677 1512
678 -_:b26 1513 +_:b130
679 - sp:varName "periodKind"^^xsd:string . 1514 + sp:varName "productionFlow"^^xsd:string .
680 1515
681 -_:b5 sp:varName "startTime"^^xsd:string . 1516 +_:b133
1517 + sp:varName "productionFlowPurposeType"^^xsd:string .
682 1518
683 -_:b6 sp:varName "endTime"^^xsd:string . 1519 +_:b134
1520 + sp:varName "productionFlowDefinitionType"^^xsd:string .
684 1521
685 -_:b27 1522 +_:b131
686 - sp:varName "volumeRef"^^xsd:string . 1523 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
687 1524
688 -_:b9 sp:varName "realVolume"^^xsd:string . 1525 +_:b1 sp:varName "productionFlowsForAPeriod"^^xsd:string .
689 1526
690 -_:b28 1527 +_:b2 sp:varName "productionFlowsName"^^xsd:string .
691 - sp:varName "uomVolume"^^xsd:string .
692 1528
693 -_:b29 1529 +_:b3 sp:varName "dTimStart"^^xsd:string .
694 - sp:varName "volumeStdRef"^^xsd:string .
695 1530
696 -_:b13 1531 +_:b4 sp:varName "dTimEnd"^^xsd:string .
697 - sp:varName "realVolumeStd"^^xsd:string .
698 1532
699 -_:b30 1533 +_:b171
700 - sp:varName "uomVolumeStd"^^xsd:string . 1534 + sp:varName "facilityRef"^^xsd:string .
701 1535
702 -_:b31 1536 +_:b172
1537 + sp:varName "facilityNameRef"^^xsd:string .
1538 +
1539 +_:b173
1540 + sp:varName "facilityName"^^xsd:string .
1541 +
1542 +_:b174
1543 + sp:varName "flowRef"^^xsd:string .
1544 +
1545 +_:b175
1546 + sp:varName "flowName"^^xsd:string .
1547 +
1548 +_:b176
1549 + sp:varName "flowDirection"^^xsd:string .
1550 +
1551 +_:b177
1552 + sp:varName "relatedFacilityRef"^^xsd:string .
1553 +
1554 +_:b178
1555 + sp:varName "relatedFacilityName"^^xsd:string .
1556 +
1557 +_:b179
1558 + sp:varName "relatedFacilityKind"^^xsd:string .
1559 +
1560 +_:b180
703 sp:varName "normalizedFacilityName"^^xsd:string . 1561 sp:varName "normalizedFacilityName"^^xsd:string .
704 1562
705 -_:b32 1563 +_:b181
706 sp:varName "normalizedFlowName"^^xsd:string . 1564 sp:varName "normalizedFlowName"^^xsd:string .
707 1565
708 -_:b33 1566 +_:b167
709 - sp:varName "normalizedProductTypeName"^^xsd:string . 1567 + sp:varName "productionFlow"^^xsd:string .
710 -
711 -_:b4 sp:varName "productFlow"^^xsd:string .
712 1568
713 -_:b8 sp:varName "relationshipToMeasure"^^xsd:string . 1569 +_:b182
1570 + sp:varName "normalizedRelatedFacilityName"^^xsd:string .
714 1571
715 -_:b3 sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . 1572 +_:b169
1573 + sp:varName "relatedFacility"^^xsd:string .
716 1574
717 -_:b12 1575 +_:b170
718 - sp:varName "volumeStdType"^^xsd:string . 1576 + sp:varName "relatedFacilityType"^^xsd:string .
719 1577
720 -_:b10 1578 +_:b168
721 - sp:varName "volumeScale"^^xsd:string . 1579 + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
722 1580
723 -_:b14 1581 +_:b5 sp:varName "normalizedProductionFlowsName"^^xsd:string .
724 - sp:varName "volumeStdScale"^^xsd:string .
725 1582
726 -_:b38 1583 +_:b82
727 sp:varName "facilityRef"^^xsd:string . 1584 sp:varName "facilityRef"^^xsd:string .
728 1585
729 -_:b39 1586 +_:b83
730 sp:varName "facilityNameRef"^^xsd:string . 1587 sp:varName "facilityNameRef"^^xsd:string .
731 1588
732 -_:b40 1589 +_:b84
733 sp:varName "facilityName"^^xsd:string . 1590 sp:varName "facilityName"^^xsd:string .
734 1591
735 -_:b41 1592 +_:b85
736 sp:varName "flowRef"^^xsd:string . 1593 sp:varName "flowRef"^^xsd:string .
737 1594
738 -_:b42 1595 +_:b86
739 sp:varName "flowName"^^xsd:string . 1596 sp:varName "flowName"^^xsd:string .
740 1597
741 -_:b43 1598 +_:b87
742 - sp:varName "productRef"^^xsd:string . 1599 + sp:varName "flowDirection"^^xsd:string .
743 1600
744 -_:b44 1601 +_:b88
745 - sp:varName "productKind"^^xsd:string . 1602 + sp:varName "relatedFacilityRef"^^xsd:string .
746 1603
747 -_:b36 1604 +_:b89
748 - sp:varName "productType"^^xsd:string . 1605 + sp:varName "relatedFacilityKind"^^xsd:string .
749 1606
750 -_:b45 1607 +_:b90
751 - sp:varName "productTypeName"^^xsd:string . 1608 + sp:varName "normalizedFacilityName"^^xsd:string .
752 1609
753 -_:b46 1610 +_:b91
754 - sp:varName "productNameRef"^^xsd:string . 1611 + sp:varName "normalizedFlowName"^^xsd:string .
755 1612
756 -_:b37 1613 +_:b78
757 - sp:varName "productFlowName"^^xsd:string . 1614 + sp:varName "productionFlow"^^xsd:string .
1615 +
1616 +_:b81
1617 + sp:varName "relatedFacilityType"^^xsd:string .
1618 +
1619 +_:b79
1620 + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
758 1621
759 _:b47 1622 _:b47
760 - sp:varName "normalizedFacilityName"^^xsd:string . 1623 + sp:varName "productionFacility"^^xsd:string .
761 1624
762 _:b48 1625 _:b48
763 - sp:varName "normalizedFlowName"^^xsd:string . 1626 + sp:varName "productionFacilityType"^^xsd:string .
764 -
765 -_:b35
766 - sp:varName "productionFlow"^^xsd:string .
767 1627
768 _:b49 1628 _:b49
769 - sp:varName "normalizedProductTypeName"^^xsd:string . 1629 + sp:varName "facilityName"^^xsd:string .
770 1630
771 -_:b34 1631 +_:b50
772 - sp:varName "productFlow"^^xsd:string . 1632 + sp:varName "facilityRef"^^xsd:string .
1633 +
1634 +_:b51
1635 + sp:varName "facilityNameRef"^^xsd:string .
1636 +
1637 +_:b52
1638 + sp:varName "facilityKind"^^xsd:string .
1639 +
1640 +_:b53
1641 + sp:varName "normalizedFacilityName"^^xsd:string .
1642 +
1643 +_:b70
1644 + sp:varName "productionContextFacility"^^xsd:string .
1645 +
1646 +_:b71
1647 + sp:varName "productionContextFacilityType"^^xsd:string .
1648 +
1649 +_:b72
1650 + sp:varName "contextFacilityRef"^^xsd:string .
1651 +
1652 +_:b73
1653 + sp:varName "contextFacilityName"^^xsd:string .
1654 +
1655 +_:b74
1656 + sp:varName "contextFacilityKind"^^xsd:string .
1657 +
1658 +_:b75
1659 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1660 +
1661 +_:b76
1662 + sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
1663 +
1664 +_:b77
1665 + sp:varName "normalizedContextFacilityName"^^xsd:string .
1666 +
1667 +_:b144
1668 + sp:varName "productionFlowsForAPeriod"^^xsd:string .
1669 +
1670 +_:b145
1671 + sp:varName "productionFlowsName"^^xsd:string .
1672 +
1673 +_:b146
1674 + sp:varName "dateStart"^^xsd:string .
1675 +
1676 +_:b147
1677 + sp:varName "dateEnd"^^xsd:string .
......