David Leal

Minor change to MPR transforms

...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
5 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib 5 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
6 6
7 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . 7 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> .
8 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
8 @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . 9 @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
9 @prefix owl: <http://www.w3.org/2002/07/owl#> . 10 @prefix owl: <http://www.w3.org/2002/07/owl#> .
10 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 11 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
...@@ -57,6 +58,64 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -57,6 +58,64 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
57 ] ; 58 ] ;
58 spin:rule 59 spin:rule
59 [ rdf:type sp:Construct ; 60 [ rdf:type sp:Construct ;
61 + rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal
62 +Nothing is done with the namingSystem!"""^^xsd:string ;
63 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
64 + sp:predicate rdf:type ;
65 + sp:subject
66 + [ sp:varName "terminal"^^xsd:string
67 + ]
68 + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ;
69 + sp:predicate rdf:type ;
70 + sp:subject
71 + [ sp:varName "terminal"^^xsd:string
72 + ]
73 + ] [ sp:object
74 + [ sp:varName "facilityName"^^xsd:string
75 + ] ;
76 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
77 + sp:subject
78 + [ sp:varName "terminal"^^xsd:string
79 + ]
80 + ] [ sp:object spin:_this ;
81 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
82 + sp:subject
83 + [ sp:varName "terminal"^^xsd:string
84 + ]
85 + ] [ sp:object
86 + [ sp:varName "facilityName"^^xsd:string
87 + ] ;
88 + sp:predicate rdfs:label ;
89 + sp:subject spin:_this
90 + ]) ;
91 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
92 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
93 + sp:subject spin:_this
94 + ] [ sp:object
95 + [ sp:varName "facilityName"^^xsd:string
96 + ] ;
97 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
98 + sp:subject spin:_this
99 + ] [ rdf:type sp:NotExists ;
100 + sp:elements ([ sp:object spin:_this ;
101 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
102 + sp:subject
103 + [ sp:varName "something"^^xsd:string
104 + ]
105 + ])
106 + ] [ rdf:type sp:Bind ;
107 + sp:expression
108 + [ rdf:type ep-dpr-spin-lib:buildTerminalURI ;
109 + sp:arg1 [ sp:varName "facilityName"^^xsd:string
110 + ]
111 + ] ;
112 + sp:variable
113 + [ sp:varName "terminal"^^xsd:string
114 + ]
115 + ])
116 + ] ;
117 + spin:rule
118 + [ rdf:type sp:Construct ;
60 rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" 119 rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
61 Nothing is done with the namingSystem!"""^^xsd:string ; 120 Nothing is done with the namingSystem!"""^^xsd:string ;
62 sp:templates ([ sp:object spin:_this ; 121 sp:templates ([ sp:object spin:_this ;
...@@ -97,39 +156,65 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -97,39 +156,65 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
97 ] ; 156 ] ;
98 spin:rule 157 spin:rule
99 [ rdf:type sp:Construct ; 158 [ rdf:type sp:Construct ;
100 - rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility 159 + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
101 Nothing is done with the namingSystem!"""^^xsd:string ; 160 Nothing is done with the namingSystem!"""^^xsd:string ;
102 sp:templates ([ sp:object spin:_this ; 161 sp:templates ([ sp:object spin:_this ;
103 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 162 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
104 sp:subject 163 sp:subject
105 - [ sp:varName "platform"^^xsd:string 164 + [ sp:varName "tuf"^^xsd:string
106 ] 165 ]
107 ] [ sp:object 166 ] [ sp:object
108 - [ sp:varName "platformName"^^xsd:string 167 + [ sp:varName "tufName"^^xsd:string
109 ] ; 168 ] ;
110 sp:predicate rdfs:label ; 169 sp:predicate rdfs:label ;
111 sp:subject spin:_this 170 sp:subject spin:_this
112 ]) ; 171 ]) ;
113 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; 172 + sp:where ([ rdf:type sp:Union ;
114 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 173 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
115 - sp:subject spin:_this 174 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
175 + sp:subject spin:_this
176 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ;
177 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
178 + sp:subject spin:_this
179 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ;
180 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
181 + sp:subject spin:_this
182 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ;
183 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
184 + sp:subject spin:_this
185 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ;
186 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
187 + sp:subject spin:_this
188 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ;
189 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
190 + sp:subject spin:_this
191 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ;
192 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
193 + sp:subject spin:_this
194 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ;
195 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
196 + sp:subject spin:_this
197 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ;
198 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
199 + sp:subject spin:_this
200 + ]))
116 ] [ sp:object 201 ] [ sp:object
117 - [ sp:varName "platformName"^^xsd:string 202 + [ sp:varName "tufName"^^xsd:string
118 ] ; 203 ] ;
119 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 204 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
120 sp:subject spin:_this 205 sp:subject spin:_this
121 ] [ rdf:type sp:NamedGraph ; 206 ] [ rdf:type sp:NamedGraph ;
122 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; 207 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ;
123 sp:predicate rdf:type ; 208 sp:predicate rdf:type ;
124 sp:subject 209 sp:subject
125 - [ sp:varName "platform"^^xsd:string 210 + [ sp:varName "tuf"^^xsd:string
126 ] 211 ]
127 ] [ sp:object 212 ] [ sp:object
128 - [ sp:varName "platformName"^^xsd:string 213 + [ sp:varName "tufName"^^xsd:string
129 ] ; 214 ] ;
130 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 215 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
131 sp:subject 216 sp:subject
132 - [ sp:varName "platform"^^xsd:string 217 + [ sp:varName "tuf"^^xsd:string
133 ] 218 ]
134 ]) ; 219 ]) ;
135 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 220 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -137,7 +222,63 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -137,7 +222,63 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
137 ] ; 222 ] ;
138 spin:rule 223 spin:rule
139 [ rdf:type sp:Construct ; 224 [ rdf:type sp:Construct ;
140 - rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany 225 + rdfs:comment """STEP 00012 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
226 +Nothing is done with the namingSystem!"""^^xsd:string ;
227 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
228 + sp:predicate rdf:type ;
229 + sp:subject _:b1
230 + ] [ sp:object
231 + [ sp:varName "productionFacilityType"^^xsd:string
232 + ] ;
233 + sp:predicate rdf:type ;
234 + sp:subject _:b1
235 + ] [ sp:object
236 + [ sp:varName "facilityName"^^xsd:string
237 + ] ;
238 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
239 + sp:subject _:b1
240 + ] [ sp:object spin:_this ;
241 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
242 + sp:subject _:b1
243 + ] [ sp:object
244 + [ sp:varName "facilityName"^^xsd:string
245 + ] ;
246 + sp:predicate rdfs:label ;
247 + sp:subject spin:_this
248 + ]) ;
249 + sp:where ([ rdf:type sp:Optional ;
250 + sp:elements ([ sp:object
251 + [ sp:varName "facilityKind"^^xsd:string
252 + ] ;
253 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
254 + sp:subject spin:_this
255 + ])
256 + ] [ sp:object
257 + [ sp:varName "facilityName"^^xsd:string
258 + ] ;
259 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
260 + sp:subject spin:_this
261 + ] [ rdf:type sp:NotExists ;
262 + sp:elements ([ sp:object spin:_this ;
263 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
264 + sp:subject
265 + [ sp:varName "something"^^xsd:string
266 + ]
267 + ])
268 + ] [ rdf:type sp:Bind ;
269 + sp:expression
270 + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
271 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
272 + ]
273 + ] ;
274 + sp:variable
275 + [ sp:varName "productionFacilityType"^^xsd:string
276 + ]
277 + ])
278 + ] ;
279 + spin:rule
280 + [ rdf:type sp:Construct ;
281 + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
141 Nothing is done with the namingSystem!"""^^xsd:string ; 282 Nothing is done with the namingSystem!"""^^xsd:string ;
142 sp:templates ([ sp:object spin:_this ; 283 sp:templates ([ sp:object spin:_this ;
143 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 284 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
...@@ -164,7 +305,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -164,7 +305,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
164 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 305 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
165 sp:subject spin:_this 306 sp:subject spin:_this
166 ] [ rdf:type sp:NamedGraph ; 307 ] [ rdf:type sp:NamedGraph ;
167 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 308 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
168 sp:predicate rdf:type ; 309 sp:predicate rdf:type ;
169 sp:subject 310 sp:subject
170 [ sp:varName "company"^^xsd:string 311 [ sp:varName "company"^^xsd:string
...@@ -182,39 +323,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -182,39 +323,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
182 ] ; 323 ] ;
183 spin:rule 324 spin:rule
184 [ rdf:type sp:Construct ; 325 [ rdf:type sp:Construct ;
185 - rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\" 326 + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility
186 Nothing is done with the namingSystem!"""^^xsd:string ; 327 Nothing is done with the namingSystem!"""^^xsd:string ;
187 sp:templates ([ sp:object spin:_this ; 328 sp:templates ([ sp:object spin:_this ;
188 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 329 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
189 sp:subject 330 sp:subject
190 - [ sp:varName "licence"^^xsd:string 331 + [ sp:varName "platform"^^xsd:string
191 ] 332 ]
192 ] [ sp:object 333 ] [ sp:object
193 - [ sp:varName "licenceName"^^xsd:string 334 + [ sp:varName "platformName"^^xsd:string
194 ] ; 335 ] ;
195 sp:predicate rdfs:label ; 336 sp:predicate rdfs:label ;
196 sp:subject spin:_this 337 sp:subject spin:_this
197 ]) ; 338 ]) ;
198 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; 339 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ;
199 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 340 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
200 sp:subject spin:_this 341 sp:subject spin:_this
201 ] [ sp:object 342 ] [ sp:object
202 - [ sp:varName "licenceName"^^xsd:string 343 + [ sp:varName "platformName"^^xsd:string
203 ] ; 344 ] ;
204 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 345 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
205 sp:subject spin:_this 346 sp:subject spin:_this
206 ] [ rdf:type sp:NamedGraph ; 347 ] [ rdf:type sp:NamedGraph ;
207 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; 348 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ;
208 sp:predicate rdf:type ; 349 sp:predicate rdf:type ;
209 sp:subject 350 sp:subject
210 - [ sp:varName "licence"^^xsd:string 351 + [ sp:varName "platform"^^xsd:string
211 ] 352 ]
212 ] [ sp:object 353 ] [ sp:object
213 - [ sp:varName "licenceName"^^xsd:string 354 + [ sp:varName "platformName"^^xsd:string
214 ] ; 355 ] ;
215 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 356 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
216 sp:subject 357 sp:subject
217 - [ sp:varName "licence"^^xsd:string 358 + [ sp:varName "platform"^^xsd:string
218 ] 359 ]
219 ]) ; 360 ]) ;
220 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 361 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -222,39 +363,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -222,39 +363,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
222 ] ; 363 ] ;
223 spin:rule 364 spin:rule
224 [ rdf:type sp:Construct ; 365 [ rdf:type sp:Construct ;
225 - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility 366 + rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\"
226 Nothing is done with the namingSystem!"""^^xsd:string ; 367 Nothing is done with the namingSystem!"""^^xsd:string ;
227 sp:templates ([ sp:object spin:_this ; 368 sp:templates ([ sp:object spin:_this ;
228 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 369 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
229 sp:subject 370 sp:subject
230 - [ sp:varName "platform"^^xsd:string 371 + [ sp:varName "licence"^^xsd:string
231 ] 372 ]
232 ] [ sp:object 373 ] [ sp:object
233 - [ sp:varName "platformName"^^xsd:string 374 + [ sp:varName "licenceName"^^xsd:string
234 ] ; 375 ] ;
235 sp:predicate rdfs:label ; 376 sp:predicate rdfs:label ;
236 sp:subject spin:_this 377 sp:subject spin:_this
237 ]) ; 378 ]) ;
238 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; 379 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ;
239 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 380 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
240 sp:subject spin:_this 381 sp:subject spin:_this
241 ] [ sp:object 382 ] [ sp:object
242 - [ sp:varName "platformName"^^xsd:string 383 + [ sp:varName "licenceName"^^xsd:string
243 ] ; 384 ] ;
244 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 385 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
245 sp:subject spin:_this 386 sp:subject spin:_this
246 ] [ rdf:type sp:NamedGraph ; 387 ] [ rdf:type sp:NamedGraph ;
247 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; 388 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ;
248 sp:predicate rdf:type ; 389 sp:predicate rdf:type ;
249 sp:subject 390 sp:subject
250 - [ sp:varName "platform"^^xsd:string 391 + [ sp:varName "licence"^^xsd:string
251 ] 392 ]
252 ] [ sp:object 393 ] [ sp:object
253 - [ sp:varName "platformName"^^xsd:string 394 + [ sp:varName "licenceName"^^xsd:string
254 ] ; 395 ] ;
255 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 396 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
256 sp:subject 397 sp:subject
257 - [ sp:varName "platform"^^xsd:string 398 + [ sp:varName "licence"^^xsd:string
258 ] 399 ]
259 ]) ; 400 ]) ;
260 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 401 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -262,65 +403,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -262,65 +403,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
262 ] ; 403 ] ;
263 spin:rule 404 spin:rule
264 [ rdf:type sp:Construct ; 405 [ rdf:type sp:Construct ;
265 - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. 406 + rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc.
266 Nothing is done with the namingSystem!"""^^xsd:string ; 407 Nothing is done with the namingSystem!"""^^xsd:string ;
267 sp:templates ([ sp:object spin:_this ; 408 sp:templates ([ sp:object spin:_this ;
268 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 409 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
269 sp:subject 410 sp:subject
270 - [ sp:varName "tuf"^^xsd:string 411 + [ sp:varName "field"^^xsd:string
271 ] 412 ]
272 ] [ sp:object 413 ] [ sp:object
273 - [ sp:varName "tufName"^^xsd:string 414 + [ sp:varName "fieldName"^^xsd:string
274 ] ; 415 ] ;
275 sp:predicate rdfs:label ; 416 sp:predicate rdfs:label ;
276 sp:subject spin:_this 417 sp:subject spin:_this
277 ]) ; 418 ]) ;
278 sp:where ([ rdf:type sp:Union ; 419 sp:where ([ rdf:type sp:Union ;
279 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; 420 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
280 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
281 - sp:subject spin:_this
282 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ;
283 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
284 - sp:subject spin:_this
285 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ;
286 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
287 - sp:subject spin:_this
288 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ;
289 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
290 - sp:subject spin:_this
291 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ;
292 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
293 - sp:subject spin:_this
294 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ;
295 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 421 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
296 sp:subject spin:_this 422 sp:subject spin:_this
297 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; 423 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ;
298 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 424 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
299 sp:subject spin:_this 425 sp:subject spin:_this
300 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; 426 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ;
301 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 427 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
302 sp:subject spin:_this 428 sp:subject spin:_this
303 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; 429 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ;
304 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 430 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
305 sp:subject spin:_this 431 sp:subject spin:_this
306 ])) 432 ]))
307 ] [ sp:object 433 ] [ sp:object
308 - [ sp:varName "tufName"^^xsd:string 434 + [ sp:varName "fieldName"^^xsd:string
309 ] ; 435 ] ;
310 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 436 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
311 sp:subject spin:_this 437 sp:subject spin:_this
312 ] [ rdf:type sp:NamedGraph ; 438 ] [ rdf:type sp:NamedGraph ;
313 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; 439 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
314 sp:predicate rdf:type ; 440 sp:predicate rdf:type ;
315 sp:subject 441 sp:subject
316 - [ sp:varName "tuf"^^xsd:string 442 + [ sp:varName "field"^^xsd:string
317 ] 443 ]
318 ] [ sp:object 444 ] [ sp:object
319 - [ sp:varName "tufName"^^xsd:string 445 + [ sp:varName "fieldName"^^xsd:string
320 ] ; 446 ] ;
321 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 447 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
322 sp:subject 448 sp:subject
323 - [ sp:varName "tuf"^^xsd:string 449 + [ sp:varName "field"^^xsd:string
324 ] 450 ]
325 ]) ; 451 ]) ;
326 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 452 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -328,44 +454,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -328,44 +454,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
328 ] ; 454 ] ;
329 spin:rule 455 spin:rule
330 [ rdf:type sp:Construct ; 456 [ rdf:type sp:Construct ;
331 - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany 457 + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility
332 Nothing is done with the namingSystem!"""^^xsd:string ; 458 Nothing is done with the namingSystem!"""^^xsd:string ;
333 sp:templates ([ sp:object spin:_this ; 459 sp:templates ([ sp:object spin:_this ;
334 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 460 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
335 sp:subject 461 sp:subject
336 - [ sp:varName "company"^^xsd:string 462 + [ sp:varName "platform"^^xsd:string
337 ] 463 ]
338 ] [ sp:object 464 ] [ sp:object
339 - [ sp:varName "companyName"^^xsd:string 465 + [ sp:varName "platformName"^^xsd:string
340 ] ; 466 ] ;
341 sp:predicate rdfs:label ; 467 sp:predicate rdfs:label ;
342 sp:subject spin:_this 468 sp:subject spin:_this
343 ]) ; 469 ]) ;
344 - sp:where ([ rdf:type sp:Union ; 470 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ;
345 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; 471 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
346 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 472 + sp:subject spin:_this
347 - sp:subject spin:_this
348 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ;
349 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
350 - sp:subject spin:_this
351 - ]))
352 ] [ sp:object 473 ] [ sp:object
353 - [ sp:varName "companyName"^^xsd:string 474 + [ sp:varName "platformName"^^xsd:string
354 ] ; 475 ] ;
355 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 476 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
356 sp:subject spin:_this 477 sp:subject spin:_this
357 ] [ rdf:type sp:NamedGraph ; 478 ] [ rdf:type sp:NamedGraph ;
358 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 479 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ;
359 sp:predicate rdf:type ; 480 sp:predicate rdf:type ;
360 sp:subject 481 sp:subject
361 - [ sp:varName "company"^^xsd:string 482 + [ sp:varName "platform"^^xsd:string
362 ] 483 ]
363 ] [ sp:object 484 ] [ sp:object
364 - [ sp:varName "companyName"^^xsd:string 485 + [ sp:varName "platformName"^^xsd:string
365 ] ; 486 ] ;
366 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 487 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
367 sp:subject 488 sp:subject
368 - [ sp:varName "company"^^xsd:string 489 + [ sp:varName "platform"^^xsd:string
369 ] 490 ]
370 ]) ; 491 ]) ;
371 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 492 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -373,62 +494,6 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -373,62 +494,6 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
373 ] ; 494 ] ;
374 spin:rule 495 spin:rule
375 [ rdf:type sp:Construct ; 496 [ rdf:type sp:Construct ;
376 - rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
377 -Nothing is done with the namingSystem!"""^^xsd:string ;
378 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
379 - sp:predicate rdf:type ;
380 - sp:subject _:b1
381 - ] [ sp:object
382 - [ sp:varName "productionFacilityType"^^xsd:string
383 - ] ;
384 - sp:predicate rdf:type ;
385 - sp:subject _:b1
386 - ] [ sp:object
387 - [ sp:varName "facilityName"^^xsd:string
388 - ] ;
389 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
390 - sp:subject _:b1
391 - ] [ sp:object spin:_this ;
392 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
393 - sp:subject _:b1
394 - ] [ sp:object
395 - [ sp:varName "facilityName"^^xsd:string
396 - ] ;
397 - sp:predicate rdfs:label ;
398 - sp:subject spin:_this
399 - ]) ;
400 - sp:where ([ rdf:type sp:Optional ;
401 - sp:elements ([ sp:object
402 - [ sp:varName "facilityKind"^^xsd:string
403 - ] ;
404 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
405 - sp:subject spin:_this
406 - ])
407 - ] [ sp:object
408 - [ sp:varName "facilityName"^^xsd:string
409 - ] ;
410 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
411 - sp:subject spin:_this
412 - ] [ rdf:type sp:NotExists ;
413 - sp:elements ([ sp:object spin:_this ;
414 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
415 - sp:subject
416 - [ sp:varName "something"^^xsd:string
417 - ]
418 - ])
419 - ] [ rdf:type sp:Bind ;
420 - sp:expression
421 - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
422 - sp:arg1 [ sp:varName "facilityKind"^^xsd:string
423 - ]
424 - ] ;
425 - sp:variable
426 - [ sp:varName "productionFacilityType"^^xsd:string
427 - ]
428 - ])
429 - ] ;
430 - spin:rule
431 - [ rdf:type sp:Construct ;
432 rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file 497 rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
433 Nothing is done with the namingSystem!"""^^xsd:string ; 498 Nothing is done with the namingSystem!"""^^xsd:string ;
434 sp:templates ([ sp:object spin:_this ; 499 sp:templates ([ sp:object spin:_this ;
...@@ -488,50 +553,44 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -488,50 +553,44 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
488 ] ; 553 ] ;
489 spin:rule 554 spin:rule
490 [ rdf:type sp:Construct ; 555 [ rdf:type sp:Construct ;
491 - rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. 556 + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany
492 Nothing is done with the namingSystem!"""^^xsd:string ; 557 Nothing is done with the namingSystem!"""^^xsd:string ;
493 sp:templates ([ sp:object spin:_this ; 558 sp:templates ([ sp:object spin:_this ;
494 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 559 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
495 sp:subject 560 sp:subject
496 - [ sp:varName "field"^^xsd:string 561 + [ sp:varName "company"^^xsd:string
497 ] 562 ]
498 ] [ sp:object 563 ] [ sp:object
499 - [ sp:varName "fieldName"^^xsd:string 564 + [ sp:varName "companyName"^^xsd:string
500 ] ; 565 ] ;
501 sp:predicate rdfs:label ; 566 sp:predicate rdfs:label ;
502 sp:subject spin:_this 567 sp:subject spin:_this
503 ]) ; 568 ]) ;
504 sp:where ([ rdf:type sp:Union ; 569 sp:where ([ rdf:type sp:Union ;
505 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; 570 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ;
506 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
507 - sp:subject spin:_this
508 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ;
509 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
510 - sp:subject spin:_this
511 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ;
512 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 571 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
513 sp:subject spin:_this 572 sp:subject spin:_this
514 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ; 573 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ;
515 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 574 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
516 sp:subject spin:_this 575 sp:subject spin:_this
517 ])) 576 ]))
518 ] [ sp:object 577 ] [ sp:object
519 - [ sp:varName "fieldName"^^xsd:string 578 + [ sp:varName "companyName"^^xsd:string
520 ] ; 579 ] ;
521 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 580 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
522 sp:subject spin:_this 581 sp:subject spin:_this
523 ] [ rdf:type sp:NamedGraph ; 582 ] [ rdf:type sp:NamedGraph ;
524 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; 583 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
525 sp:predicate rdf:type ; 584 sp:predicate rdf:type ;
526 sp:subject 585 sp:subject
527 - [ sp:varName "field"^^xsd:string 586 + [ sp:varName "company"^^xsd:string
528 ] 587 ]
529 ] [ sp:object 588 ] [ sp:object
530 - [ sp:varName "fieldName"^^xsd:string 589 + [ sp:varName "companyName"^^xsd:string
531 ] ; 590 ] ;
532 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 591 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
533 sp:subject 592 sp:subject
534 - [ sp:varName "field"^^xsd:string 593 + [ sp:varName "company"^^xsd:string
535 ] 594 ]
536 ]) ; 595 ]) ;
537 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 596 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -540,5 +599,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -540,5 +599,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
540 599
541 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> 600 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
542 rdf:type owl:Ontology ; 601 rdf:type owl:Ontology ;
543 - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; 602 + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
544 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 603 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......