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 ;
173 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
114 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 174 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
115 sp:subject spin:_this 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,84 +222,100 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -137,84 +222,100 @@ 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
141 Nothing is done with the namingSystem!"""^^xsd:string ; 226 Nothing is done with the namingSystem!"""^^xsd:string ;
142 - sp:templates ([ sp:object spin:_this ; 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 ;
143 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 241 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
144 - sp:subject 242 + sp:subject _:b1
145 - [ sp:varName "company"^^xsd:string
146 - ]
147 ] [ sp:object 243 ] [ sp:object
148 - [ sp:varName "companyName"^^xsd:string 244 + [ sp:varName "facilityName"^^xsd:string
149 ] ; 245 ] ;
150 sp:predicate rdfs:label ; 246 sp:predicate rdfs:label ;
151 sp:subject spin:_this 247 sp:subject spin:_this
152 ]) ; 248 ]) ;
153 - sp:where ([ rdf:type sp:Union ; 249 + sp:where ([ rdf:type sp:Optional ;
154 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; 250 + sp:elements ([ sp:object
155 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 251 + [ sp:varName "facilityKind"^^xsd:string
156 - sp:subject spin:_this 252 + ] ;
157 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ;
158 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 253 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
159 sp:subject spin:_this 254 sp:subject spin:_this
160 - ])) 255 + ])
161 ] [ sp:object 256 ] [ sp:object
162 - [ sp:varName "companyName"^^xsd:string 257 + [ sp:varName "facilityName"^^xsd:string
163 ] ; 258 ] ;
164 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 259 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
165 sp:subject spin:_this 260 sp:subject spin:_this
166 - ] [ rdf:type sp:NamedGraph ; 261 + ] [ rdf:type sp:NotExists ;
167 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 262 + sp:elements ([ sp:object spin:_this ;
168 - sp:predicate rdf:type ; 263 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
169 sp:subject 264 sp:subject
170 - [ sp:varName "company"^^xsd:string 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
171 ] 272 ]
172 - ] [ sp:object
173 - [ sp:varName "companyName"^^xsd:string
174 ] ; 273 ] ;
175 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 274 + sp:variable
176 - sp:subject 275 + [ sp:varName "productionFacilityType"^^xsd:string
177 - [ sp:varName "company"^^xsd:string
178 ] 276 ]
179 - ]) ;
180 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
181 ]) 277 ])
182 ] ; 278 ] ;
183 spin:rule 279 spin:rule
184 [ rdf:type sp:Construct ; 280 [ rdf:type sp:Construct ;
185 - rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\" 281 + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
186 Nothing is done with the namingSystem!"""^^xsd:string ; 282 Nothing is done with the namingSystem!"""^^xsd:string ;
187 sp:templates ([ sp:object spin:_this ; 283 sp:templates ([ sp:object spin:_this ;
188 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 284 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
189 sp:subject 285 sp:subject
190 - [ sp:varName "licence"^^xsd:string 286 + [ sp:varName "company"^^xsd:string
191 ] 287 ]
192 ] [ sp:object 288 ] [ sp:object
193 - [ sp:varName "licenceName"^^xsd:string 289 + [ sp:varName "companyName"^^xsd:string
194 ] ; 290 ] ;
195 sp:predicate rdfs:label ; 291 sp:predicate rdfs:label ;
196 sp:subject spin:_this 292 sp:subject spin:_this
197 ]) ; 293 ]) ;
198 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; 294 + sp:where ([ rdf:type sp:Union ;
295 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ;
199 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 296 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
200 sp:subject spin:_this 297 sp:subject spin:_this
298 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ;
299 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
300 + sp:subject spin:_this
301 + ]))
201 ] [ sp:object 302 ] [ sp:object
202 - [ sp:varName "licenceName"^^xsd:string 303 + [ sp:varName "companyName"^^xsd:string
203 ] ; 304 ] ;
204 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 305 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
205 sp:subject spin:_this 306 sp:subject spin:_this
206 ] [ rdf:type sp:NamedGraph ; 307 ] [ rdf:type sp:NamedGraph ;
207 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; 308 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
208 sp:predicate rdf:type ; 309 sp:predicate rdf:type ;
209 sp:subject 310 sp:subject
210 - [ sp:varName "licence"^^xsd:string 311 + [ sp:varName "company"^^xsd:string
211 ] 312 ]
212 ] [ sp:object 313 ] [ sp:object
213 - [ sp:varName "licenceName"^^xsd:string 314 + [ sp:varName "companyName"^^xsd:string
214 ] ; 315 ] ;
215 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 316 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
216 sp:subject 317 sp:subject
217 - [ sp:varName "licence"^^xsd:string 318 + [ sp:varName "company"^^xsd:string
218 ] 319 ]
219 ]) ; 320 ]) ;
220 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 321 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -222,7 +323,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -222,7 +323,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
222 ] ; 323 ] ;
223 spin:rule 324 spin:rule
224 [ rdf:type sp:Construct ; 325 [ rdf:type sp:Construct ;
225 - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility 326 + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility
226 Nothing is done with the namingSystem!"""^^xsd:string ; 327 Nothing is done with the namingSystem!"""^^xsd:string ;
227 sp:templates ([ sp:object spin:_this ; 328 sp:templates ([ sp:object spin:_this ;
228 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 329 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
...@@ -244,7 +345,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -244,7 +345,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
244 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 345 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
245 sp:subject spin:_this 346 sp:subject spin:_this
246 ] [ rdf:type sp:NamedGraph ; 347 ] [ rdf:type sp:NamedGraph ;
247 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; 348 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ;
248 sp:predicate rdf:type ; 349 sp:predicate rdf:type ;
249 sp:subject 350 sp:subject
250 [ sp:varName "platform"^^xsd:string 351 [ sp:varName "platform"^^xsd:string
...@@ -262,65 +363,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -262,65 +363,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
262 ] ; 363 ] ;
263 spin:rule 364 spin:rule
264 [ rdf:type sp:Construct ; 365 [ rdf:type sp:Construct ;
265 - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. 366 + rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\"
266 Nothing is done with the namingSystem!"""^^xsd:string ; 367 Nothing is done with the namingSystem!"""^^xsd:string ;
267 sp:templates ([ sp:object spin:_this ; 368 sp:templates ([ sp:object spin:_this ;
268 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 369 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
269 sp:subject 370 sp:subject
270 - [ sp:varName "tuf"^^xsd:string 371 + [ sp:varName "licence"^^xsd:string
271 ] 372 ]
272 ] [ sp:object 373 ] [ sp:object
273 - [ sp:varName "tufName"^^xsd:string 374 + [ sp:varName "licenceName"^^xsd:string
274 ] ; 375 ] ;
275 sp:predicate rdfs:label ; 376 sp:predicate rdfs:label ;
276 sp:subject spin:_this 377 sp:subject spin:_this
277 ]) ; 378 ]) ;
278 - sp:where ([ rdf:type sp:Union ; 379 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ;
279 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
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> ;
296 - sp:subject spin:_this
297 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ;
298 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
299 - sp:subject spin:_this
300 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ;
301 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
302 - sp:subject spin:_this
303 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ;
304 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 380 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
305 sp:subject spin:_this 381 sp:subject spin:_this
306 - ]))
307 ] [ sp:object 382 ] [ sp:object
308 - [ sp:varName "tufName"^^xsd:string 383 + [ sp:varName "licenceName"^^xsd:string
309 ] ; 384 ] ;
310 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 385 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
311 sp:subject spin:_this 386 sp:subject spin:_this
312 ] [ rdf:type sp:NamedGraph ; 387 ] [ rdf:type sp:NamedGraph ;
313 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; 388 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ;
314 sp:predicate rdf:type ; 389 sp:predicate rdf:type ;
315 sp:subject 390 sp:subject
316 - [ sp:varName "tuf"^^xsd:string 391 + [ sp:varName "licence"^^xsd:string
317 ] 392 ]
318 ] [ sp:object 393 ] [ sp:object
319 - [ sp:varName "tufName"^^xsd:string 394 + [ sp:varName "licenceName"^^xsd:string
320 ] ; 395 ] ;
321 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 396 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
322 sp:subject 397 sp:subject
323 - [ sp:varName "tuf"^^xsd:string 398 + [ sp:varName "licence"^^xsd:string
324 ] 399 ]
325 ]) ; 400 ]) ;
326 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 401 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -328,44 +403,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -328,44 +403,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
328 ] ; 403 ] ;
329 spin:rule 404 spin:rule
330 [ rdf:type sp:Construct ; 405 [ 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 406 + rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc.
332 Nothing is done with the namingSystem!"""^^xsd:string ; 407 Nothing is done with the namingSystem!"""^^xsd:string ;
333 sp:templates ([ sp:object spin:_this ; 408 sp:templates ([ sp:object spin:_this ;
334 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 409 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
335 sp:subject 410 sp:subject
336 - [ sp:varName "company"^^xsd:string 411 + [ sp:varName "field"^^xsd:string
337 ] 412 ]
338 ] [ sp:object 413 ] [ sp:object
339 - [ sp:varName "companyName"^^xsd:string 414 + [ sp:varName "fieldName"^^xsd:string
340 ] ; 415 ] ;
341 sp:predicate rdfs:label ; 416 sp:predicate rdfs:label ;
342 sp:subject spin:_this 417 sp:subject spin:_this
343 ]) ; 418 ]) ;
344 sp:where ([ rdf:type sp:Union ; 419 sp:where ([ rdf:type sp:Union ;
345 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; 420 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
346 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 421 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
347 sp:subject spin:_this 422 sp:subject spin:_this
348 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; 423 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ;
424 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
425 + sp:subject spin:_this
426 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ;
427 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
428 + sp:subject spin:_this
429 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ;
349 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 430 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
350 sp:subject spin:_this 431 sp:subject spin:_this
351 ])) 432 ]))
352 ] [ sp:object 433 ] [ sp:object
353 - [ sp:varName "companyName"^^xsd:string 434 + [ sp:varName "fieldName"^^xsd:string
354 ] ; 435 ] ;
355 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 436 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
356 sp:subject spin:_this 437 sp:subject spin:_this
357 ] [ rdf:type sp:NamedGraph ; 438 ] [ rdf:type sp:NamedGraph ;
358 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 439 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
359 sp:predicate rdf:type ; 440 sp:predicate rdf:type ;
360 sp:subject 441 sp:subject
361 - [ sp:varName "company"^^xsd:string 442 + [ sp:varName "field"^^xsd:string
362 ] 443 ]
363 ] [ sp:object 444 ] [ sp:object
364 - [ sp:varName "companyName"^^xsd:string 445 + [ sp:varName "fieldName"^^xsd:string
365 ] ; 446 ] ;
366 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 447 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
367 sp:subject 448 sp:subject
368 - [ sp:varName "company"^^xsd:string 449 + [ sp:varName "field"^^xsd:string
369 ] 450 ]
370 ]) ; 451 ]) ;
371 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 452 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -373,58 +454,42 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -373,58 +454,42 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
373 ] ; 454 ] ;
374 spin:rule 455 spin:rule
375 [ rdf:type sp:Construct ; 456 [ 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 457 + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility
377 Nothing is done with the namingSystem!"""^^xsd:string ; 458 Nothing is done with the namingSystem!"""^^xsd:string ;
378 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 459 + sp:templates ([ sp:object spin:_this ;
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> ; 460 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
393 - sp:subject _:b1 461 + sp:subject
462 + [ sp:varName "platform"^^xsd:string
463 + ]
394 ] [ sp:object 464 ] [ sp:object
395 - [ sp:varName "facilityName"^^xsd:string 465 + [ sp:varName "platformName"^^xsd:string
396 ] ; 466 ] ;
397 sp:predicate rdfs:label ; 467 sp:predicate rdfs:label ;
398 sp:subject spin:_this 468 sp:subject spin:_this
399 ]) ; 469 ]) ;
400 - sp:where ([ rdf:type sp:Optional ; 470 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ;
401 - sp:elements ([ sp:object
402 - [ sp:varName "facilityKind"^^xsd:string
403 - ] ;
404 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 471 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
405 sp:subject spin:_this 472 sp:subject spin:_this
406 - ])
407 ] [ sp:object 473 ] [ sp:object
408 - [ sp:varName "facilityName"^^xsd:string 474 + [ sp:varName "platformName"^^xsd:string
409 ] ; 475 ] ;
410 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 476 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
411 sp:subject spin:_this 477 sp:subject spin:_this
412 - ] [ rdf:type sp:NotExists ; 478 + ] [ rdf:type sp:NamedGraph ;
413 - sp:elements ([ sp:object spin:_this ; 479 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ;
414 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 480 + sp:predicate rdf:type ;
415 sp:subject 481 sp:subject
416 - [ sp:varName "something"^^xsd:string 482 + [ sp:varName "platform"^^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 ] 483 ]
484 + ] [ sp:object
485 + [ sp:varName "platformName"^^xsd:string
424 ] ; 486 ] ;
425 - sp:variable 487 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
426 - [ sp:varName "productionFacilityType"^^xsd:string 488 + sp:subject
489 + [ sp:varName "platform"^^xsd:string
427 ] 490 ]
491 + ]) ;
492 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
428 ]) 493 ])
429 ] ; 494 ] ;
430 spin:rule 495 spin:rule
...@@ -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 .
......