Showing
4 changed files
with
455 additions
and
465 deletions
This diff could not be displayed because it is too large.
| ... | @@ -23,13 +23,26 @@ | ... | @@ -23,13 +23,26 @@ |
| 23 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 23 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
| 24 | spin:rule | 24 | spin:rule |
| 25 | [ rdf:type sp:Construct ; | 25 | [ rdf:type sp:Construct ; |
| 26 | - rdfs:comment """STEP 00012a Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | 26 | + rdfs:comment """STEP 00012c Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file |
| 27 | -Naming system supplied"""^^xsd:string ; | 27 | +Naming system supplied |
| 28 | - sp:templates ([ sp:object spin:_this ; | 28 | +now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(?namingSystem, ?facilityName) AS ?facility) . |
| 29 | +now context not in name"""^^xsd:string ; | ||
| 30 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 31 | + sp:predicate rdf:type ; | ||
| 32 | + sp:subject _:b1 | ||
| 33 | + ] [ sp:object | ||
| 34 | + [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 35 | + ] ; | ||
| 36 | + sp:predicate rdf:type ; | ||
| 37 | + sp:subject _:b1 | ||
| 38 | + ] [ sp:object | ||
| 39 | + [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 40 | + ] ; | ||
| 41 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 42 | + sp:subject _:b1 | ||
| 43 | + ] [ sp:object spin:_this ; | ||
| 29 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 44 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 30 | - sp:subject | 45 | + sp:subject _:b1 |
| 31 | - [ sp:varName "facility"^^xsd:string | ||
| 32 | - ] | ||
| 33 | ] [ sp:object | 46 | ] [ sp:object |
| 34 | [ sp:varName "facilityLabel"^^xsd:string | 47 | [ sp:varName "facilityLabel"^^xsd:string |
| 35 | ] ; | 48 | ] ; |
| ... | @@ -121,87 +134,6 @@ Naming system supplied"""^^xsd:string ; | ... | @@ -121,87 +134,6 @@ Naming system supplied"""^^xsd:string ; |
| 121 | sp:variable | 134 | sp:variable |
| 122 | [ sp:varName "facilityLabel"^^xsd:string | 135 | [ sp:varName "facilityLabel"^^xsd:string |
| 123 | ] | 136 | ] |
| 124 | - ] [ sp:object | ||
| 125 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 126 | - ] ; | ||
| 127 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 128 | - sp:subject | ||
| 129 | - [ sp:varName "facility"^^xsd:string | ||
| 130 | - ] | ||
| 131 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 132 | - sp:predicate rdf:type ; | ||
| 133 | - sp:subject | ||
| 134 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 135 | - ] | ||
| 136 | - ] [ sp:object | ||
| 137 | - [ sp:varName "facilityLabel"^^xsd:string | ||
| 138 | - ] ; | ||
| 139 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 140 | - sp:subject | ||
| 141 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 142 | - ] | ||
| 143 | - ]) | ||
| 144 | - ] ; | ||
| 145 | - spin:rule | ||
| 146 | - [ rdf:type sp:Construct ; | ||
| 147 | - rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany | ||
| 148 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 149 | - sp:templates ([ sp:object spin:_this ; | ||
| 150 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 151 | - sp:subject | ||
| 152 | - [ sp:varName "company"^^xsd:string | ||
| 153 | - ] | ||
| 154 | - ] [ sp:object | ||
| 155 | - [ sp:varName "companyLabel"^^xsd:string | ||
| 156 | - ] ; | ||
| 157 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 158 | - sp:subject spin:_this | ||
| 159 | - ]) ; | ||
| 160 | - sp:where ([ rdf:type sp:Union ; | ||
| 161 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
| 162 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 163 | - sp:subject spin:_this | ||
| 164 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
| 165 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 166 | - sp:subject spin:_this | ||
| 167 | - ])) | ||
| 168 | - ] [ sp:object | ||
| 169 | - [ sp:varName "companyName"^^xsd:string | ||
| 170 | - ] ; | ||
| 171 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 172 | - sp:subject spin:_this | ||
| 173 | - ] [ rdf:type sp:NamedGraph ; | ||
| 174 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; | ||
| 175 | - sp:predicate rdf:type ; | ||
| 176 | - sp:subject | ||
| 177 | - [ sp:varName "company"^^xsd:string | ||
| 178 | - ] | ||
| 179 | - ] [ sp:object | ||
| 180 | - [ sp:varName "companyName"^^xsd:string | ||
| 181 | - ] ; | ||
| 182 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 183 | - sp:subject | ||
| 184 | - [ sp:varName "company"^^xsd:string | ||
| 185 | - ] | ||
| 186 | - ] [ sp:object | ||
| 187 | - [ sp:varName "companyId"^^xsd:string | ||
| 188 | - ] ; | ||
| 189 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 190 | - sp:subject | ||
| 191 | - [ sp:varName "company"^^xsd:string | ||
| 192 | - ] | ||
| 193 | - ]) ; | ||
| 194 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 195 | - ] [ rdf:type sp:Bind ; | ||
| 196 | - sp:expression | ||
| 197 | - [ rdf:type fn:concat ; | ||
| 198 | - sp:arg1 "company-" ; | ||
| 199 | - sp:arg2 [ sp:varName "companyId"^^xsd:string | ||
| 200 | - ] | ||
| 201 | - ] ; | ||
| 202 | - sp:variable | ||
| 203 | - [ sp:varName "companyLabel"^^xsd:string | ||
| 204 | - ] | ||
| 205 | ]) | 137 | ]) |
| 206 | ] ; | 138 | ] ; |
| 207 | spin:rule | 139 | spin:rule |
| ... | @@ -211,20 +143,20 @@ Naming system not supplied | ... | @@ -211,20 +143,20 @@ Naming system not supplied |
| 211 | now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) AS ?facility) ."""^^xsd:string ; | 143 | now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) AS ?facility) ."""^^xsd:string ; |
| 212 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 144 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 213 | sp:predicate rdf:type ; | 145 | sp:predicate rdf:type ; |
| 214 | - sp:subject _:b1 | 146 | + sp:subject _:b2 |
| 215 | ] [ sp:object | 147 | ] [ sp:object |
| 216 | [ sp:varName "reportingFacilityType"^^xsd:string | 148 | [ sp:varName "reportingFacilityType"^^xsd:string |
| 217 | ] ; | 149 | ] ; |
| 218 | sp:predicate rdf:type ; | 150 | sp:predicate rdf:type ; |
| 219 | - sp:subject _:b1 | 151 | + sp:subject _:b2 |
| 220 | ] [ sp:object | 152 | ] [ sp:object |
| 221 | [ sp:varName "facilityName"^^xsd:string | 153 | [ sp:varName "facilityName"^^xsd:string |
| 222 | ] ; | 154 | ] ; |
| 223 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 155 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 224 | - sp:subject _:b1 | 156 | + sp:subject _:b2 |
| 225 | ] [ sp:object spin:_this ; | 157 | ] [ sp:object spin:_this ; |
| 226 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 158 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 227 | - sp:subject _:b1 | 159 | + sp:subject _:b2 |
| 228 | ] [ sp:object | 160 | ] [ sp:object |
| 229 | [ sp:varName "facilityLabel"^^xsd:string | 161 | [ sp:varName "facilityLabel"^^xsd:string |
| 230 | ] ; | 162 | ] ; |
| ... | @@ -303,15 +235,32 @@ now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) | ... | @@ -303,15 +235,32 @@ now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) |
| 303 | ] ; | 235 | ] ; |
| 304 | spin:rule | 236 | spin:rule |
| 305 | [ rdf:type sp:Construct ; | 237 | [ rdf:type sp:Construct ; |
| 306 | - rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility | 238 | + rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal |
| 307 | -Nothing is done with the namingSystem!"""^^xsd:string ; | 239 | +Naming system supplied"""^^xsd:string ; |
| 308 | - sp:templates ([ sp:object spin:_this ; | 240 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 241 | + sp:predicate rdf:type ; | ||
| 242 | + sp:subject | ||
| 243 | + [ sp:varName "terminal"^^xsd:string | ||
| 244 | + ] | ||
| 245 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | ||
| 246 | + sp:predicate rdf:type ; | ||
| 247 | + sp:subject | ||
| 248 | + [ sp:varName "terminal"^^xsd:string | ||
| 249 | + ] | ||
| 250 | + ] [ sp:object | ||
| 251 | + [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 252 | + ] ; | ||
| 253 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 254 | + sp:subject | ||
| 255 | + [ sp:varName "terminal"^^xsd:string | ||
| 256 | + ] | ||
| 257 | + ] [ sp:object spin:_this ; | ||
| 309 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 258 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 310 | sp:subject | 259 | sp:subject |
| 311 | [ sp:varName "terminal"^^xsd:string | 260 | [ sp:varName "terminal"^^xsd:string |
| 312 | ] | 261 | ] |
| 313 | ] [ sp:object | 262 | ] [ sp:object |
| 314 | - [ sp:varName "terminalLabel"^^xsd:string | 263 | + [ sp:varName "facilityLabel"^^xsd:string |
| 315 | ] ; | 264 | ] ; |
| 316 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 265 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 317 | sp:subject spin:_this | 266 | sp:subject spin:_this |
| ... | @@ -320,123 +269,251 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -320,123 +269,251 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 320 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 269 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 321 | sp:subject spin:_this | 270 | sp:subject spin:_this |
| 322 | ] [ sp:object | 271 | ] [ sp:object |
| 323 | - [ sp:varName "terminalName"^^xsd:string | 272 | + [ sp:varName "facilityName"^^xsd:string |
| 324 | ] ; | 273 | ] ; |
| 325 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 274 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 326 | sp:subject spin:_this | 275 | sp:subject spin:_this |
| 327 | - ] [ rdf:type sp:NamedGraph ; | ||
| 328 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | ||
| 329 | - sp:predicate rdf:type ; | ||
| 330 | - sp:subject | ||
| 331 | - [ sp:varName "terminal"^^xsd:string | ||
| 332 | - ] | ||
| 333 | ] [ sp:object | 276 | ] [ sp:object |
| 334 | - [ sp:varName "terminalName"^^xsd:string | 277 | + [ sp:varName "namingSystem"^^xsd:string |
| 335 | ] ; | 278 | ] ; |
| 336 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 279 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 280 | + sp:subject spin:_this | ||
| 281 | + ] [ rdf:type sp:NotExists ; | ||
| 282 | + sp:elements ([ sp:object spin:_this ; | ||
| 283 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 337 | sp:subject | 284 | sp:subject |
| 338 | - [ sp:varName "terminal"^^xsd:string | 285 | + [ sp:varName "something"^^xsd:string |
| 339 | ] | 286 | ] |
| 340 | - ] [ sp:object | 287 | + ]) |
| 341 | - [ sp:varName "terminalId"^^xsd:string | 288 | + ] [ rdf:type sp:Bind ; |
| 289 | + sp:expression | ||
| 290 | + [ rdf:type fn:concat ; | ||
| 291 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 342 | ] ; | 292 | ] ; |
| 343 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 293 | + sp:arg2 "$" ; |
| 344 | - sp:subject | 294 | + sp:arg3 [ sp:varName "facilityName"^^xsd:string |
| 295 | + ] | ||
| 296 | + ] ; | ||
| 297 | + sp:variable | ||
| 298 | + [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 299 | + ] | ||
| 300 | + ] [ rdf:type sp:Bind ; | ||
| 301 | + sp:expression | ||
| 302 | + [ rdf:type fn:concat ; | ||
| 303 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 304 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 305 | + ] | ||
| 306 | + ] ; | ||
| 307 | + sp:arg2 "-" ; | ||
| 308 | + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 309 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 310 | + ] | ||
| 311 | + ] | ||
| 312 | + ] ; | ||
| 313 | + sp:variable | ||
| 314 | + [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 315 | + ] | ||
| 316 | + ] [ rdf:type sp:Bind ; | ||
| 317 | + sp:expression | ||
| 318 | + [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; | ||
| 319 | + sp:arg1 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 320 | + ] | ||
| 321 | + ] ; | ||
| 322 | + sp:variable | ||
| 345 | [ sp:varName "terminal"^^xsd:string | 323 | [ sp:varName "terminal"^^xsd:string |
| 346 | ] | 324 | ] |
| 347 | - ]) ; | ||
| 348 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 349 | ] [ rdf:type sp:Bind ; | 325 | ] [ rdf:type sp:Bind ; |
| 350 | sp:expression | 326 | sp:expression |
| 351 | [ rdf:type fn:concat ; | 327 | [ rdf:type fn:concat ; |
| 352 | sp:arg1 "terminal-" ; | 328 | sp:arg1 "terminal-" ; |
| 353 | - sp:arg2 [ sp:varName "terminalId"^^xsd:string | 329 | + sp:arg2 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string |
| 354 | ] | 330 | ] |
| 355 | ] ; | 331 | ] ; |
| 356 | sp:variable | 332 | sp:variable |
| 357 | - [ sp:varName "terminalLabel"^^xsd:string | 333 | + [ sp:varName "facilityLabel"^^xsd:string |
| 358 | ] | 334 | ] |
| 359 | ]) | 335 | ]) |
| 360 | ] ; | 336 | ] ; |
| 361 | spin:rule | 337 | spin:rule |
| 362 | [ rdf:type sp:Construct ; | 338 | [ rdf:type sp:Construct ; |
| 363 | - rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" | 339 | + rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" |
| 364 | Nothing is done with the namingSystem!"""^^xsd:string ; | 340 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 365 | sp:templates ([ sp:object spin:_this ; | 341 | sp:templates ([ sp:object spin:_this ; |
| 366 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 342 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 367 | sp:subject | 343 | sp:subject |
| 368 | - [ sp:varName "wellBore"^^xsd:string | 344 | + [ sp:varName "licence"^^xsd:string |
| 369 | ] | 345 | ] |
| 370 | ] [ sp:object | 346 | ] [ sp:object |
| 371 | - [ sp:varName "wellBoreLabel"^^xsd:string | 347 | + [ sp:varName "licenceLabel"^^xsd:string |
| 372 | ] ; | 348 | ] ; |
| 373 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 349 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 374 | sp:subject spin:_this | 350 | sp:subject spin:_this |
| 375 | ]) ; | 351 | ]) ; |
| 376 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 352 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; |
| 377 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 353 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 378 | sp:subject spin:_this | 354 | sp:subject spin:_this |
| 379 | ] [ sp:object | 355 | ] [ sp:object |
| 380 | - [ sp:varName "wellBoreName"^^xsd:string | 356 | + [ sp:varName "licenceName"^^xsd:string |
| 381 | ] ; | 357 | ] ; |
| 382 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 358 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 383 | sp:subject spin:_this | 359 | sp:subject spin:_this |
| 384 | ] [ rdf:type sp:NamedGraph ; | 360 | ] [ rdf:type sp:NamedGraph ; |
| 385 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 361 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; |
| 386 | sp:predicate rdf:type ; | 362 | sp:predicate rdf:type ; |
| 387 | sp:subject | 363 | sp:subject |
| 388 | - [ sp:varName "wellBore"^^xsd:string | 364 | + [ sp:varName "licence"^^xsd:string |
| 389 | ] | 365 | ] |
| 390 | ] [ sp:object | 366 | ] [ sp:object |
| 391 | - [ sp:varName "wellBoreName"^^xsd:string | 367 | + [ sp:varName "licenceName"^^xsd:string |
| 392 | ] ; | 368 | ] ; |
| 393 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 369 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 394 | sp:subject | 370 | sp:subject |
| 395 | - [ sp:varName "wellBore"^^xsd:string | 371 | + [ sp:varName "licence"^^xsd:string |
| 396 | ] | 372 | ] |
| 397 | ] [ sp:object | 373 | ] [ sp:object |
| 398 | - [ sp:varName "wellBoreId"^^xsd:string | 374 | + [ sp:varName "licenceId"^^xsd:string |
| 399 | ] ; | 375 | ] ; |
| 400 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 376 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 401 | sp:subject | 377 | sp:subject |
| 402 | - [ sp:varName "wellBore"^^xsd:string | 378 | + [ sp:varName "livence"^^xsd:string |
| 403 | ] | 379 | ] |
| 404 | ]) ; | 380 | ]) ; |
| 405 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 381 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 406 | ] [ rdf:type sp:Bind ; | 382 | ] [ rdf:type sp:Bind ; |
| 407 | sp:expression | 383 | sp:expression |
| 408 | [ rdf:type fn:concat ; | 384 | [ rdf:type fn:concat ; |
| 409 | - sp:arg1 "wellbore-" ; | 385 | + sp:arg1 "licence-" ; |
| 410 | - sp:arg2 [ sp:varName "wellBoreId"^^xsd:string | 386 | + sp:arg2 [ sp:varName "licenceId"^^xsd:string |
| 411 | ] | 387 | ] |
| 412 | ] ; | 388 | ] ; |
| 413 | sp:variable | 389 | sp:variable |
| 414 | - [ sp:varName "wellBoreLabel"^^xsd:string | 390 | + [ sp:varName "licenceLabel"^^xsd:string |
| 415 | ] | 391 | ] |
| 416 | ]) | 392 | ]) |
| 417 | ] ; | 393 | ] ; |
| 418 | spin:rule | 394 | spin:rule |
| 419 | [ rdf:type sp:Construct ; | 395 | [ rdf:type sp:Construct ; |
| 420 | - rdfs:comment """STEP 00012c Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file | 396 | + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" |
| 421 | -Naming system supplied | 397 | +Nothing is done with the namingSystem!"""^^xsd:string ; |
| 422 | -now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(?namingSystem, ?facilityName) AS ?facility) . | 398 | + sp:templates ([ sp:object spin:_this ; |
| 423 | -now context not in name"""^^xsd:string ; | 399 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 424 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 400 | + sp:subject |
| 425 | - sp:predicate rdf:type ; | 401 | + [ sp:varName "well"^^xsd:string |
| 426 | - sp:subject _:b2 | 402 | + ] |
| 427 | ] [ sp:object | 403 | ] [ sp:object |
| 428 | - [ sp:varName "reportingFacilityType"^^xsd:string | 404 | + [ sp:varName "wellLabel"^^xsd:string |
| 429 | ] ; | 405 | ] ; |
| 430 | - sp:predicate rdf:type ; | 406 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 431 | - sp:subject _:b2 | 407 | + sp:subject spin:_this |
| 408 | + ]) ; | ||
| 409 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | ||
| 410 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 411 | + sp:subject spin:_this | ||
| 432 | ] [ sp:object | 412 | ] [ sp:object |
| 433 | - [ sp:varName "facilityNameWithContext"^^xsd:string | 413 | + [ sp:varName "wellName"^^xsd:string |
| 434 | ] ; | 414 | ] ; |
| 435 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 415 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 436 | - sp:subject _:b2 | 416 | + sp:subject spin:_this |
| 437 | - ] [ sp:object spin:_this ; | 417 | + ] [ rdf:type sp:NamedGraph ; |
| 418 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
| 419 | + sp:predicate rdf:type ; | ||
| 420 | + sp:subject | ||
| 421 | + [ sp:varName "well"^^xsd:string | ||
| 422 | + ] | ||
| 423 | + ] [ sp:object | ||
| 424 | + [ sp:varName "wellName"^^xsd:string | ||
| 425 | + ] ; | ||
| 426 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 427 | + sp:subject | ||
| 428 | + [ sp:varName "well"^^xsd:string | ||
| 429 | + ] | ||
| 430 | + ] [ sp:object | ||
| 431 | + [ sp:varName "wellId"^^xsd:string | ||
| 432 | + ] ; | ||
| 433 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 434 | + sp:subject | ||
| 435 | + [ sp:varName "well"^^xsd:string | ||
| 436 | + ] | ||
| 437 | + ]) ; | ||
| 438 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 439 | + ] [ rdf:type sp:Bind ; | ||
| 440 | + sp:expression | ||
| 441 | + [ rdf:type fn:concat ; | ||
| 442 | + sp:arg1 "well-" ; | ||
| 443 | + sp:arg2 [ sp:varName "wellId"^^xsd:string | ||
| 444 | + ] | ||
| 445 | + ] ; | ||
| 446 | + sp:variable | ||
| 447 | + [ sp:varName "wellLabel"^^xsd:string | ||
| 448 | + ] | ||
| 449 | + ]) | ||
| 450 | + ] ; | ||
| 451 | + spin:rule | ||
| 452 | + [ rdf:type sp:Construct ; | ||
| 453 | + rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" | ||
| 454 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 455 | + sp:templates ([ sp:object spin:_this ; | ||
| 438 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 456 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 439 | - sp:subject _:b2 | 457 | + sp:subject |
| 458 | + [ sp:varName "wellBore"^^xsd:string | ||
| 459 | + ] | ||
| 460 | + ] [ sp:object | ||
| 461 | + [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 462 | + ] ; | ||
| 463 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 464 | + sp:subject spin:_this | ||
| 465 | + ]) ; | ||
| 466 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 467 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 468 | + sp:subject spin:_this | ||
| 469 | + ] [ sp:object | ||
| 470 | + [ sp:varName "wellBoreName"^^xsd:string | ||
| 471 | + ] ; | ||
| 472 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 473 | + sp:subject spin:_this | ||
| 474 | + ] [ rdf:type sp:NamedGraph ; | ||
| 475 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 476 | + sp:predicate rdf:type ; | ||
| 477 | + sp:subject | ||
| 478 | + [ sp:varName "wellBore"^^xsd:string | ||
| 479 | + ] | ||
| 480 | + ] [ sp:object | ||
| 481 | + [ sp:varName "wellBoreName"^^xsd:string | ||
| 482 | + ] ; | ||
| 483 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 484 | + sp:subject | ||
| 485 | + [ sp:varName "wellBore"^^xsd:string | ||
| 486 | + ] | ||
| 487 | + ] [ sp:object | ||
| 488 | + [ sp:varName "wellBoreId"^^xsd:string | ||
| 489 | + ] ; | ||
| 490 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 491 | + sp:subject | ||
| 492 | + [ sp:varName "wellBore"^^xsd:string | ||
| 493 | + ] | ||
| 494 | + ]) ; | ||
| 495 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 496 | + ] [ rdf:type sp:Bind ; | ||
| 497 | + sp:expression | ||
| 498 | + [ rdf:type fn:concat ; | ||
| 499 | + sp:arg1 "wellbore-" ; | ||
| 500 | + sp:arg2 [ sp:varName "wellBoreId"^^xsd:string | ||
| 501 | + ] | ||
| 502 | + ] ; | ||
| 503 | + sp:variable | ||
| 504 | + [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 505 | + ] | ||
| 506 | + ]) | ||
| 507 | + ] ; | ||
| 508 | + spin:rule | ||
| 509 | + [ rdf:type sp:Construct ; | ||
| 510 | + rdfs:comment """STEP 00012a Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | ||
| 511 | +Naming system supplied"""^^xsd:string ; | ||
| 512 | + sp:templates ([ sp:object spin:_this ; | ||
| 513 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 514 | + sp:subject | ||
| 515 | + [ sp:varName "facility"^^xsd:string | ||
| 516 | + ] | ||
| 440 | ] [ sp:object | 517 | ] [ sp:object |
| 441 | [ sp:varName "facilityLabel"^^xsd:string | 518 | [ sp:varName "facilityLabel"^^xsd:string |
| 442 | ] ; | 519 | ] ; |
| ... | @@ -528,422 +605,424 @@ now context not in name"""^^xsd:string ; | ... | @@ -528,422 +605,424 @@ now context not in name"""^^xsd:string ; |
| 528 | sp:variable | 605 | sp:variable |
| 529 | [ sp:varName "facilityLabel"^^xsd:string | 606 | [ sp:varName "facilityLabel"^^xsd:string |
| 530 | ] | 607 | ] |
| 608 | + ] [ sp:object | ||
| 609 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 610 | + ] ; | ||
| 611 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 612 | + sp:subject | ||
| 613 | + [ sp:varName "facility"^^xsd:string | ||
| 614 | + ] | ||
| 615 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 616 | + sp:predicate rdf:type ; | ||
| 617 | + sp:subject | ||
| 618 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 619 | + ] | ||
| 620 | + ] [ sp:object | ||
| 621 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 622 | + ] ; | ||
| 623 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 624 | + sp:subject | ||
| 625 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 626 | + ] | ||
| 531 | ]) | 627 | ]) |
| 532 | ] ; | 628 | ] ; |
| 533 | spin:rule | 629 | spin:rule |
| 534 | [ rdf:type sp:Construct ; | 630 | [ rdf:type sp:Construct ; |
| 535 | - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | 631 | + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility |
| 536 | Nothing is done with the namingSystem!"""^^xsd:string ; | 632 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 537 | sp:templates ([ sp:object spin:_this ; | 633 | sp:templates ([ sp:object spin:_this ; |
| 538 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 634 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 539 | sp:subject | 635 | sp:subject |
| 540 | - [ sp:varName "tuf"^^xsd:string | 636 | + [ sp:varName "platform"^^xsd:string |
| 541 | ] | 637 | ] |
| 542 | ] [ sp:object | 638 | ] [ sp:object |
| 543 | - [ sp:varName "tufLabel"^^xsd:string | 639 | + [ sp:varName "platformLabel"^^xsd:string |
| 544 | ] ; | 640 | ] ; |
| 545 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 641 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 546 | sp:subject spin:_this | 642 | sp:subject spin:_this |
| 547 | ]) ; | 643 | ]) ; |
| 548 | - sp:where ([ rdf:type sp:Union ; | 644 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 549 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 550 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 551 | - sp:subject spin:_this | ||
| 552 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
| 553 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 554 | - sp:subject spin:_this | ||
| 555 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
| 556 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 557 | - sp:subject spin:_this | ||
| 558 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
| 559 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 560 | - sp:subject spin:_this | ||
| 561 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
| 562 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 563 | - sp:subject spin:_this | ||
| 564 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
| 565 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 566 | - sp:subject spin:_this | ||
| 567 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
| 568 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 569 | - sp:subject spin:_this | ||
| 570 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
| 571 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 572 | - sp:subject spin:_this | ||
| 573 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
| 574 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 645 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 575 | sp:subject spin:_this | 646 | sp:subject spin:_this |
| 576 | - ])) | ||
| 577 | ] [ sp:object | 647 | ] [ sp:object |
| 578 | - [ sp:varName "tufName"^^xsd:string | 648 | + [ sp:varName "platformName"^^xsd:string |
| 579 | ] ; | 649 | ] ; |
| 580 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 650 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 581 | sp:subject spin:_this | 651 | sp:subject spin:_this |
| 582 | ] [ rdf:type sp:NamedGraph ; | 652 | ] [ rdf:type sp:NamedGraph ; |
| 583 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | 653 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; |
| 584 | sp:predicate rdf:type ; | 654 | sp:predicate rdf:type ; |
| 585 | sp:subject | 655 | sp:subject |
| 586 | - [ sp:varName "tuf"^^xsd:string | 656 | + [ sp:varName "platform"^^xsd:string |
| 587 | ] | 657 | ] |
| 588 | ] [ sp:object | 658 | ] [ sp:object |
| 589 | - [ sp:varName "tufName"^^xsd:string | 659 | + [ sp:varName "platformName"^^xsd:string |
| 590 | ] ; | 660 | ] ; |
| 591 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 661 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 592 | sp:subject | 662 | sp:subject |
| 593 | - [ sp:varName "tuf"^^xsd:string | 663 | + [ sp:varName "platform"^^xsd:string |
| 594 | ] | 664 | ] |
| 595 | ] [ sp:object | 665 | ] [ sp:object |
| 596 | - [ sp:varName "tufId"^^xsd:string | 666 | + [ sp:varName "platformId"^^xsd:string |
| 597 | ] ; | 667 | ] ; |
| 598 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 668 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 599 | sp:subject | 669 | sp:subject |
| 600 | - [ sp:varName "tuf"^^xsd:string | 670 | + [ sp:varName "platform"^^xsd:string |
| 601 | ] | 671 | ] |
| 602 | ]) ; | 672 | ]) ; |
| 603 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 673 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 604 | ] [ rdf:type sp:Bind ; | 674 | ] [ rdf:type sp:Bind ; |
| 605 | sp:expression | 675 | sp:expression |
| 606 | [ rdf:type fn:concat ; | 676 | [ rdf:type fn:concat ; |
| 607 | - sp:arg1 "tuf-" ; | 677 | + sp:arg1 "platform-" ; |
| 608 | - sp:arg2 [ sp:varName "tufId"^^xsd:string | 678 | + sp:arg2 [ sp:varName "platformId"^^xsd:string |
| 609 | ] | 679 | ] |
| 610 | ] ; | 680 | ] ; |
| 611 | sp:variable | 681 | sp:variable |
| 612 | - [ sp:varName "tufLabel"^^xsd:string | 682 | + [ sp:varName "platformLabel"^^xsd:string |
| 613 | ] | 683 | ] |
| 614 | ]) | 684 | ]) |
| 615 | ] ; | 685 | ] ; |
| 616 | spin:rule | 686 | spin:rule |
| 617 | [ rdf:type sp:Construct ; | 687 | [ rdf:type sp:Construct ; |
| 618 | - rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. | 688 | + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany |
| 619 | Nothing is done with the namingSystem!"""^^xsd:string ; | 689 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 620 | sp:templates ([ sp:object spin:_this ; | 690 | sp:templates ([ sp:object spin:_this ; |
| 621 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 691 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 622 | sp:subject | 692 | sp:subject |
| 623 | - [ sp:varName "field"^^xsd:string | 693 | + [ sp:varName "company"^^xsd:string |
| 624 | ] | 694 | ] |
| 625 | ] [ sp:object | 695 | ] [ sp:object |
| 626 | - [ sp:varName "fieldLabel"^^xsd:string | 696 | + [ sp:varName "companyLabel"^^xsd:string |
| 627 | ] ; | 697 | ] ; |
| 628 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 698 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 629 | sp:subject spin:_this | 699 | sp:subject spin:_this |
| 630 | ]) ; | 700 | ]) ; |
| 631 | sp:where ([ rdf:type sp:Union ; | 701 | sp:where ([ rdf:type sp:Union ; |
| 632 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 702 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; |
| 633 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 634 | - sp:subject spin:_this | ||
| 635 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ; | ||
| 636 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 637 | - sp:subject spin:_this | ||
| 638 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ; | ||
| 639 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 703 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 640 | sp:subject spin:_this | 704 | sp:subject spin:_this |
| 641 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ; | 705 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; |
| 642 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 706 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 643 | sp:subject spin:_this | 707 | sp:subject spin:_this |
| 644 | ])) | 708 | ])) |
| 645 | ] [ sp:object | 709 | ] [ sp:object |
| 646 | - [ sp:varName "fieldNamex"^^xsd:string | 710 | + [ sp:varName "companyName"^^xsd:string |
| 647 | ] ; | 711 | ] ; |
| 648 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 712 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 649 | sp:subject spin:_this | 713 | sp:subject spin:_this |
| 650 | ] [ rdf:type sp:NamedGraph ; | 714 | ] [ rdf:type sp:NamedGraph ; |
| 651 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | 715 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
| 652 | sp:predicate rdf:type ; | 716 | sp:predicate rdf:type ; |
| 653 | sp:subject | 717 | sp:subject |
| 654 | - [ sp:varName "field"^^xsd:string | 718 | + [ sp:varName "company"^^xsd:string |
| 655 | ] | 719 | ] |
| 656 | ] [ sp:object | 720 | ] [ sp:object |
| 657 | - [ sp:varName "fieldName"^^xsd:string | 721 | + [ sp:varName "companyName"^^xsd:string |
| 658 | ] ; | 722 | ] ; |
| 659 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 723 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 660 | sp:subject | 724 | sp:subject |
| 661 | - [ sp:varName "field"^^xsd:string | 725 | + [ sp:varName "company"^^xsd:string |
| 662 | ] | 726 | ] |
| 663 | ] [ sp:object | 727 | ] [ sp:object |
| 664 | - [ sp:varName "fieldId"^^xsd:string | 728 | + [ sp:varName "companyId"^^xsd:string |
| 665 | ] ; | 729 | ] ; |
| 666 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 730 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 667 | sp:subject | 731 | sp:subject |
| 668 | - [ sp:varName "field"^^xsd:string | 732 | + [ sp:varName "company"^^xsd:string |
| 669 | ] | 733 | ] |
| 670 | ]) ; | 734 | ]) ; |
| 671 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 735 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 672 | ] [ rdf:type sp:Bind ; | 736 | ] [ rdf:type sp:Bind ; |
| 673 | sp:expression | 737 | sp:expression |
| 674 | [ rdf:type fn:concat ; | 738 | [ rdf:type fn:concat ; |
| 675 | - sp:arg1 "field-" ; | 739 | + sp:arg1 "company-" ; |
| 676 | - sp:arg2 [ sp:varName "fieldId"^^xsd:string | 740 | + sp:arg2 [ sp:varName "companyId"^^xsd:string |
| 677 | - ] | ||
| 678 | - ] ; | ||
| 679 | - sp:variable | ||
| 680 | - [ sp:varName "fieldLabel"^^xsd:string | ||
| 681 | - ] | ||
| 682 | - ] [ rdf:type sp:Bind ; | ||
| 683 | - sp:expression | ||
| 684 | - [ rdf:type smf:cast ; | ||
| 685 | - arg:datatype xsd:string ; | ||
| 686 | - sp:arg1 [ sp:varName "fieldNamex"^^xsd:string | ||
| 687 | ] | 741 | ] |
| 688 | ] ; | 742 | ] ; |
| 689 | sp:variable | 743 | sp:variable |
| 690 | - [ sp:varName "fieldName"^^xsd:string | 744 | + [ sp:varName "companyLabel"^^xsd:string |
| 691 | ] | 745 | ] |
| 692 | ]) | 746 | ]) |
| 693 | ] ; | 747 | ] ; |
| 694 | spin:rule | 748 | spin:rule |
| 695 | [ rdf:type sp:Construct ; | 749 | [ rdf:type sp:Construct ; |
| 696 | - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" | 750 | + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility |
| 697 | Nothing is done with the namingSystem!"""^^xsd:string ; | 751 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 698 | sp:templates ([ sp:object spin:_this ; | 752 | sp:templates ([ sp:object spin:_this ; |
| 699 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 753 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 700 | sp:subject | 754 | sp:subject |
| 701 | - [ sp:varName "well"^^xsd:string | 755 | + [ sp:varName "platform"^^xsd:string |
| 702 | ] | 756 | ] |
| 703 | ] [ sp:object | 757 | ] [ sp:object |
| 704 | - [ sp:varName "wellLabel"^^xsd:string | 758 | + [ sp:varName "platformLabel"^^xsd:string |
| 705 | ] ; | 759 | ] ; |
| 706 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 760 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 707 | sp:subject spin:_this | 761 | sp:subject spin:_this |
| 708 | ]) ; | 762 | ]) ; |
| 709 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | 763 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 710 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 764 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 711 | sp:subject spin:_this | 765 | sp:subject spin:_this |
| 712 | ] [ sp:object | 766 | ] [ sp:object |
| 713 | - [ sp:varName "wellName"^^xsd:string | 767 | + [ sp:varName "platformName"^^xsd:string |
| 714 | ] ; | 768 | ] ; |
| 715 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 769 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 716 | sp:subject spin:_this | 770 | sp:subject spin:_this |
| 717 | ] [ rdf:type sp:NamedGraph ; | 771 | ] [ rdf:type sp:NamedGraph ; |
| 718 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | 772 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; |
| 719 | sp:predicate rdf:type ; | 773 | sp:predicate rdf:type ; |
| 720 | sp:subject | 774 | sp:subject |
| 721 | - [ sp:varName "well"^^xsd:string | 775 | + [ sp:varName "platform"^^xsd:string |
| 722 | ] | 776 | ] |
| 723 | ] [ sp:object | 777 | ] [ sp:object |
| 724 | - [ sp:varName "wellName"^^xsd:string | 778 | + [ sp:varName "platformName"^^xsd:string |
| 725 | ] ; | 779 | ] ; |
| 726 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 780 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 727 | sp:subject | 781 | sp:subject |
| 728 | - [ sp:varName "well"^^xsd:string | 782 | + [ sp:varName "platform"^^xsd:string |
| 729 | ] | 783 | ] |
| 730 | ] [ sp:object | 784 | ] [ sp:object |
| 731 | - [ sp:varName "wellId"^^xsd:string | 785 | + [ sp:varName "platformId"^^xsd:string |
| 732 | ] ; | 786 | ] ; |
| 733 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 787 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 734 | sp:subject | 788 | sp:subject |
| 735 | - [ sp:varName "well"^^xsd:string | 789 | + [ sp:varName "platform"^^xsd:string |
| 736 | ] | 790 | ] |
| 737 | ]) ; | 791 | ]) ; |
| 738 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 792 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 739 | ] [ rdf:type sp:Bind ; | 793 | ] [ rdf:type sp:Bind ; |
| 740 | sp:expression | 794 | sp:expression |
| 741 | [ rdf:type fn:concat ; | 795 | [ rdf:type fn:concat ; |
| 742 | - sp:arg1 "well-" ; | 796 | + sp:arg1 "platform-" ; |
| 743 | - sp:arg2 [ sp:varName "wellId"^^xsd:string | 797 | + sp:arg2 [ sp:varName "platformId"^^xsd:string |
| 744 | ] | 798 | ] |
| 745 | ] ; | 799 | ] ; |
| 746 | sp:variable | 800 | sp:variable |
| 747 | - [ sp:varName "wellLabel"^^xsd:string | 801 | + [ sp:varName "platformLabel"^^xsd:string |
| 748 | ] | 802 | ] |
| 749 | ]) | 803 | ]) |
| 750 | ] ; | 804 | ] ; |
| 751 | spin:rule | 805 | spin:rule |
| 752 | [ rdf:type sp:Construct ; | 806 | [ rdf:type sp:Construct ; |
| 753 | - rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility | 807 | + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. |
| 754 | Nothing is done with the namingSystem!"""^^xsd:string ; | 808 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 755 | sp:templates ([ sp:object spin:_this ; | 809 | sp:templates ([ sp:object spin:_this ; |
| 756 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 810 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 757 | sp:subject | 811 | sp:subject |
| 758 | - [ sp:varName "platform"^^xsd:string | 812 | + [ sp:varName "tuf"^^xsd:string |
| 759 | ] | 813 | ] |
| 760 | ] [ sp:object | 814 | ] [ sp:object |
| 761 | - [ sp:varName "platformLabel"^^xsd:string | 815 | + [ sp:varName "tufLabel"^^xsd:string |
| 762 | ] ; | 816 | ] ; |
| 763 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 817 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 764 | sp:subject spin:_this | 818 | sp:subject spin:_this |
| 765 | ]) ; | 819 | ]) ; |
| 766 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 820 | + sp:where ([ rdf:type sp:Union ; |
| 767 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 821 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 822 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 823 | + sp:subject spin:_this | ||
| 824 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
| 825 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 826 | + sp:subject spin:_this | ||
| 827 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
| 828 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 829 | + sp:subject spin:_this | ||
| 830 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
| 831 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 832 | + sp:subject spin:_this | ||
| 833 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
| 834 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 768 | sp:subject spin:_this | 835 | sp:subject spin:_this |
| 836 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
| 837 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 838 | + sp:subject spin:_this | ||
| 839 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
| 840 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 841 | + sp:subject spin:_this | ||
| 842 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
| 843 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 844 | + sp:subject spin:_this | ||
| 845 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
| 846 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 847 | + sp:subject spin:_this | ||
| 848 | + ])) | ||
| 769 | ] [ sp:object | 849 | ] [ sp:object |
| 770 | - [ sp:varName "platformName"^^xsd:string | 850 | + [ sp:varName "tufName"^^xsd:string |
| 771 | ] ; | 851 | ] ; |
| 772 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 852 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 773 | sp:subject spin:_this | 853 | sp:subject spin:_this |
| 774 | ] [ rdf:type sp:NamedGraph ; | 854 | ] [ rdf:type sp:NamedGraph ; |
| 775 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | 855 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; |
| 776 | sp:predicate rdf:type ; | 856 | sp:predicate rdf:type ; |
| 777 | sp:subject | 857 | sp:subject |
| 778 | - [ sp:varName "platform"^^xsd:string | 858 | + [ sp:varName "tuf"^^xsd:string |
| 779 | ] | 859 | ] |
| 780 | ] [ sp:object | 860 | ] [ sp:object |
| 781 | - [ sp:varName "platformName"^^xsd:string | 861 | + [ sp:varName "tufName"^^xsd:string |
| 782 | ] ; | 862 | ] ; |
| 783 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 863 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 784 | sp:subject | 864 | sp:subject |
| 785 | - [ sp:varName "platform"^^xsd:string | 865 | + [ sp:varName "tuf"^^xsd:string |
| 786 | ] | 866 | ] |
| 787 | ] [ sp:object | 867 | ] [ sp:object |
| 788 | - [ sp:varName "platformId"^^xsd:string | 868 | + [ sp:varName "tufId"^^xsd:string |
| 789 | ] ; | 869 | ] ; |
| 790 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 870 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 791 | sp:subject | 871 | sp:subject |
| 792 | - [ sp:varName "platform"^^xsd:string | 872 | + [ sp:varName "tuf"^^xsd:string |
| 793 | ] | 873 | ] |
| 794 | ]) ; | 874 | ]) ; |
| 795 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 875 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 796 | ] [ rdf:type sp:Bind ; | 876 | ] [ rdf:type sp:Bind ; |
| 797 | sp:expression | 877 | sp:expression |
| 798 | [ rdf:type fn:concat ; | 878 | [ rdf:type fn:concat ; |
| 799 | - sp:arg1 "platform-" ; | 879 | + sp:arg1 "tuf-" ; |
| 800 | - sp:arg2 [ sp:varName "platformId"^^xsd:string | 880 | + sp:arg2 [ sp:varName "tufId"^^xsd:string |
| 801 | ] | 881 | ] |
| 802 | ] ; | 882 | ] ; |
| 803 | sp:variable | 883 | sp:variable |
| 804 | - [ sp:varName "platformLabel"^^xsd:string | 884 | + [ sp:varName "tufLabel"^^xsd:string |
| 805 | ] | 885 | ] |
| 806 | ]) | 886 | ]) |
| 807 | ] ; | 887 | ] ; |
| 808 | spin:rule | 888 | spin:rule |
| 809 | [ rdf:type sp:Construct ; | 889 | [ rdf:type sp:Construct ; |
| 810 | - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | 890 | + rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany |
| 811 | Nothing is done with the namingSystem!"""^^xsd:string ; | 891 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 812 | sp:templates ([ sp:object spin:_this ; | 892 | sp:templates ([ sp:object spin:_this ; |
| 813 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 893 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 814 | sp:subject | 894 | sp:subject |
| 815 | - [ sp:varName "platform"^^xsd:string | 895 | + [ sp:varName "company"^^xsd:string |
| 816 | ] | 896 | ] |
| 817 | ] [ sp:object | 897 | ] [ sp:object |
| 818 | - [ sp:varName "platformLabel"^^xsd:string | 898 | + [ sp:varName "companyLabel"^^xsd:string |
| 819 | ] ; | 899 | ] ; |
| 820 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 900 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 821 | sp:subject spin:_this | 901 | sp:subject spin:_this |
| 822 | ]) ; | 902 | ]) ; |
| 823 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 903 | + sp:where ([ rdf:type sp:Union ; |
| 904 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
| 824 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 905 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 825 | sp:subject spin:_this | 906 | sp:subject spin:_this |
| 907 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
| 908 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 909 | + sp:subject spin:_this | ||
| 910 | + ])) | ||
| 826 | ] [ sp:object | 911 | ] [ sp:object |
| 827 | - [ sp:varName "platformName"^^xsd:string | 912 | + [ sp:varName "companyName"^^xsd:string |
| 828 | ] ; | 913 | ] ; |
| 829 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 914 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 830 | sp:subject spin:_this | 915 | sp:subject spin:_this |
| 831 | ] [ rdf:type sp:NamedGraph ; | 916 | ] [ rdf:type sp:NamedGraph ; |
| 832 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | 917 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
| 833 | sp:predicate rdf:type ; | 918 | sp:predicate rdf:type ; |
| 834 | sp:subject | 919 | sp:subject |
| 835 | - [ sp:varName "platform"^^xsd:string | 920 | + [ sp:varName "company"^^xsd:string |
| 836 | ] | 921 | ] |
| 837 | ] [ sp:object | 922 | ] [ sp:object |
| 838 | - [ sp:varName "platformName"^^xsd:string | 923 | + [ sp:varName "companyName"^^xsd:string |
| 839 | ] ; | 924 | ] ; |
| 840 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 925 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 841 | sp:subject | 926 | sp:subject |
| 842 | - [ sp:varName "platform"^^xsd:string | 927 | + [ sp:varName "company"^^xsd:string |
| 843 | ] | 928 | ] |
| 844 | ] [ sp:object | 929 | ] [ sp:object |
| 845 | - [ sp:varName "platformId"^^xsd:string | 930 | + [ sp:varName "companyId"^^xsd:string |
| 846 | ] ; | 931 | ] ; |
| 847 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 932 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 848 | sp:subject | 933 | sp:subject |
| 849 | - [ sp:varName "platform"^^xsd:string | 934 | + [ sp:varName "company"^^xsd:string |
| 850 | ] | 935 | ] |
| 851 | ]) ; | 936 | ]) ; |
| 852 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 937 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 853 | ] [ rdf:type sp:Bind ; | 938 | ] [ rdf:type sp:Bind ; |
| 854 | sp:expression | 939 | sp:expression |
| 855 | [ rdf:type fn:concat ; | 940 | [ rdf:type fn:concat ; |
| 856 | - sp:arg1 "platform-" ; | 941 | + sp:arg1 "company-" ; |
| 857 | - sp:arg2 [ sp:varName "platformId"^^xsd:string | 942 | + sp:arg2 [ sp:varName "companyId"^^xsd:string |
| 858 | ] | 943 | ] |
| 859 | ] ; | 944 | ] ; |
| 860 | sp:variable | 945 | sp:variable |
| 861 | - [ sp:varName "platformLabel"^^xsd:string | 946 | + [ sp:varName "companyLabel"^^xsd:string |
| 862 | ] | 947 | ] |
| 863 | ]) | 948 | ]) |
| 864 | ] ; | 949 | ] ; |
| 865 | spin:rule | 950 | spin:rule |
| 866 | [ rdf:type sp:Construct ; | 951 | [ rdf:type sp:Construct ; |
| 867 | - rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" | 952 | + rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. |
| 868 | Nothing is done with the namingSystem!"""^^xsd:string ; | 953 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 869 | sp:templates ([ sp:object spin:_this ; | 954 | sp:templates ([ sp:object spin:_this ; |
| 870 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 955 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 871 | sp:subject | 956 | sp:subject |
| 872 | - [ sp:varName "licence"^^xsd:string | 957 | + [ sp:varName "field"^^xsd:string |
| 873 | ] | 958 | ] |
| 874 | ] [ sp:object | 959 | ] [ sp:object |
| 875 | - [ sp:varName "licenceLabel"^^xsd:string | 960 | + [ sp:varName "fieldLabel"^^xsd:string |
| 876 | ] ; | 961 | ] ; |
| 877 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 962 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 878 | sp:subject spin:_this | 963 | sp:subject spin:_this |
| 879 | ]) ; | 964 | ]) ; |
| 880 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; | 965 | + sp:where ([ rdf:type sp:Union ; |
| 966 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
| 967 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 968 | + sp:subject spin:_this | ||
| 969 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ; | ||
| 970 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 971 | + sp:subject spin:_this | ||
| 972 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ; | ||
| 973 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 974 | + sp:subject spin:_this | ||
| 975 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ; | ||
| 881 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 976 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 882 | sp:subject spin:_this | 977 | sp:subject spin:_this |
| 978 | + ])) | ||
| 883 | ] [ sp:object | 979 | ] [ sp:object |
| 884 | - [ sp:varName "licenceName"^^xsd:string | 980 | + [ sp:varName "fieldName"^^xsd:string |
| 885 | ] ; | 981 | ] ; |
| 886 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 982 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 887 | sp:subject spin:_this | 983 | sp:subject spin:_this |
| 888 | ] [ rdf:type sp:NamedGraph ; | 984 | ] [ rdf:type sp:NamedGraph ; |
| 889 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; | 985 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 890 | sp:predicate rdf:type ; | 986 | sp:predicate rdf:type ; |
| 891 | sp:subject | 987 | sp:subject |
| 892 | - [ sp:varName "licence"^^xsd:string | 988 | + [ sp:varName "field"^^xsd:string |
| 893 | ] | 989 | ] |
| 894 | ] [ sp:object | 990 | ] [ sp:object |
| 895 | - [ sp:varName "licenceName"^^xsd:string | 991 | + [ sp:varName "fieldName"^^xsd:string |
| 896 | ] ; | 992 | ] ; |
| 897 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 993 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 898 | sp:subject | 994 | sp:subject |
| 899 | - [ sp:varName "licence"^^xsd:string | 995 | + [ sp:varName "field"^^xsd:string |
| 900 | ] | 996 | ] |
| 901 | ] [ sp:object | 997 | ] [ sp:object |
| 902 | - [ sp:varName "licenceId"^^xsd:string | 998 | + [ sp:varName "fieldId"^^xsd:string |
| 903 | ] ; | 999 | ] ; |
| 904 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 1000 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 905 | sp:subject | 1001 | sp:subject |
| 906 | - [ sp:varName "livence"^^xsd:string | 1002 | + [ sp:varName "field"^^xsd:string |
| 907 | ] | 1003 | ] |
| 908 | ]) ; | 1004 | ]) ; |
| 909 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 1005 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 910 | ] [ rdf:type sp:Bind ; | 1006 | ] [ rdf:type sp:Bind ; |
| 911 | sp:expression | 1007 | sp:expression |
| 912 | [ rdf:type fn:concat ; | 1008 | [ rdf:type fn:concat ; |
| 913 | - sp:arg1 "licence-" ; | 1009 | + sp:arg1 "field-" ; |
| 914 | - sp:arg2 [ sp:varName "licenceId"^^xsd:string | 1010 | + sp:arg2 [ sp:varName "fieldId"^^xsd:string |
| 915 | ] | 1011 | ] |
| 916 | ] ; | 1012 | ] ; |
| 917 | sp:variable | 1013 | sp:variable |
| 918 | - [ sp:varName "licenceLabel"^^xsd:string | 1014 | + [ sp:varName "fieldLabel"^^xsd:string |
| 919 | ] | 1015 | ] |
| 920 | ]) | 1016 | ]) |
| 921 | ] ; | 1017 | ] ; |
| 922 | spin:rule | 1018 | spin:rule |
| 923 | [ rdf:type sp:Construct ; | 1019 | [ rdf:type sp:Construct ; |
| 924 | - rdfs:comment """STEP 00011a Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal | 1020 | + rdfs:comment """STEP 00012b Record the Facility that has the flows - not in the NPD Fact Pages - already in the file |
| 925 | Naming system not supplied"""^^xsd:string ; | 1021 | Naming system not supplied"""^^xsd:string ; |
| 926 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 1022 | + sp:templates ([ sp:object spin:_this ; |
| 927 | - sp:predicate rdf:type ; | ||
| 928 | - sp:subject | ||
| 929 | - [ sp:varName "terminal"^^xsd:string | ||
| 930 | - ] | ||
| 931 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | ||
| 932 | - sp:predicate rdf:type ; | ||
| 933 | - sp:subject | ||
| 934 | - [ sp:varName "terminal"^^xsd:string | ||
| 935 | - ] | ||
| 936 | - ] [ sp:object | ||
| 937 | - [ sp:varName "facilityName"^^xsd:string | ||
| 938 | - ] ; | ||
| 939 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 940 | - sp:subject | ||
| 941 | - [ sp:varName "terminal"^^xsd:string | ||
| 942 | - ] | ||
| 943 | - ] [ sp:object spin:_this ; | ||
| 944 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1023 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 945 | sp:subject | 1024 | sp:subject |
| 946 | - [ sp:varName "terminal"^^xsd:string | 1025 | + [ sp:varName "facility"^^xsd:string |
| 947 | ] | 1026 | ] |
| 948 | ] [ sp:object | 1027 | ] [ sp:object |
| 949 | [ sp:varName "facilityLabel"^^xsd:string | 1028 | [ sp:varName "facilityLabel"^^xsd:string |
| ... | @@ -951,9 +1030,13 @@ Naming system not supplied"""^^xsd:string ; | ... | @@ -951,9 +1030,13 @@ Naming system not supplied"""^^xsd:string ; |
| 951 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1030 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 952 | sp:subject spin:_this | 1031 | sp:subject spin:_this |
| 953 | ]) ; | 1032 | ]) ; |
| 954 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 1033 | + sp:where ([ rdf:type sp:Optional ; |
| 1034 | + sp:elements ([ sp:object | ||
| 1035 | + [ sp:varName "facilityKind"^^xsd:string | ||
| 1036 | + ] ; | ||
| 955 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 1037 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 956 | sp:subject spin:_this | 1038 | sp:subject spin:_this |
| 1039 | + ]) | ||
| 957 | ] [ sp:object | 1040 | ] [ sp:object |
| 958 | [ sp:varName "facilityName"^^xsd:string | 1041 | [ sp:varName "facilityName"^^xsd:string |
| 959 | ] ; | 1042 | ] ; |
| ... | @@ -975,6 +1058,15 @@ Naming system not supplied"""^^xsd:string ; | ... | @@ -975,6 +1058,15 @@ Naming system not supplied"""^^xsd:string ; |
| 975 | ]) | 1058 | ]) |
| 976 | ] [ rdf:type sp:Bind ; | 1059 | ] [ rdf:type sp:Bind ; |
| 977 | sp:expression | 1060 | sp:expression |
| 1061 | + [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; | ||
| 1062 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 1063 | + ] | ||
| 1064 | + ] ; | ||
| 1065 | + sp:variable | ||
| 1066 | + [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1067 | + ] | ||
| 1068 | + ] [ rdf:type sp:Bind ; | ||
| 1069 | + sp:expression | ||
| 978 | [ rdf:type ep-spin-lib:normalizeString ; | 1070 | [ rdf:type ep-spin-lib:normalizeString ; |
| 979 | sp:arg1 [ sp:varName "facilityName"^^xsd:string | 1071 | sp:arg1 [ sp:varName "facilityName"^^xsd:string |
| 980 | ] | 1072 | ] |
| ... | @@ -984,53 +1076,60 @@ Naming system not supplied"""^^xsd:string ; | ... | @@ -984,53 +1076,60 @@ Naming system not supplied"""^^xsd:string ; |
| 984 | ] | 1076 | ] |
| 985 | ] [ rdf:type sp:Bind ; | 1077 | ] [ rdf:type sp:Bind ; |
| 986 | sp:expression | 1078 | sp:expression |
| 987 | - [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; | 1079 | + [ rdf:type ep-spin-lib:normalizeString ; |
| 988 | - sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string | 1080 | + sp:arg1 [ rdf:type spl:object ; |
| 1081 | + sp:arg1 [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1082 | + ] ; | ||
| 1083 | + sp:arg2 rdfs:label | ||
| 989 | ] | 1084 | ] |
| 990 | ] ; | 1085 | ] ; |
| 991 | sp:variable | 1086 | sp:variable |
| 992 | - [ sp:varName "terminal"^^xsd:string | 1087 | + [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string |
| 993 | ] | 1088 | ] |
| 994 | ] [ rdf:type sp:Bind ; | 1089 | ] [ rdf:type sp:Bind ; |
| 995 | sp:expression | 1090 | sp:expression |
| 996 | [ rdf:type fn:concat ; | 1091 | [ rdf:type fn:concat ; |
| 997 | - sp:arg1 "terminal-" ; | 1092 | + sp:arg1 [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string |
| 998 | - sp:arg2 [ sp:varName "normalizedFacilityName"^^xsd:string | 1093 | + ] ; |
| 1094 | + sp:arg2 "-" ; | ||
| 1095 | + sp:arg3 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 999 | ] | 1096 | ] |
| 1000 | ] ; | 1097 | ] ; |
| 1001 | sp:variable | 1098 | sp:variable |
| 1002 | [ sp:varName "facilityLabel"^^xsd:string | 1099 | [ sp:varName "facilityLabel"^^xsd:string |
| 1003 | ] | 1100 | ] |
| 1004 | - ]) | 1101 | + ] [ sp:object |
| 1102 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 1005 | ] ; | 1103 | ] ; |
| 1006 | - spin:rule | 1104 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1007 | - [ rdf:type sp:Construct ; | ||
| 1008 | - rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal | ||
| 1009 | -Naming system supplied"""^^xsd:string ; | ||
| 1010 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 1011 | - sp:predicate rdf:type ; | ||
| 1012 | sp:subject | 1105 | sp:subject |
| 1013 | - [ sp:varName "terminal"^^xsd:string | 1106 | + [ sp:varName "facility"^^xsd:string |
| 1014 | ] | 1107 | ] |
| 1015 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | 1108 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; |
| 1016 | sp:predicate rdf:type ; | 1109 | sp:predicate rdf:type ; |
| 1017 | sp:subject | 1110 | sp:subject |
| 1018 | - [ sp:varName "terminal"^^xsd:string | 1111 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string |
| 1019 | ] | 1112 | ] |
| 1020 | ] [ sp:object | 1113 | ] [ sp:object |
| 1021 | - [ sp:varName "facilityNameWithContext"^^xsd:string | 1114 | + [ sp:varName "facilityLabel"^^xsd:string |
| 1022 | ] ; | 1115 | ] ; |
| 1023 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 1116 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 1024 | sp:subject | 1117 | sp:subject |
| 1025 | - [ sp:varName "terminal"^^xsd:string | 1118 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string |
| 1026 | ] | 1119 | ] |
| 1027 | - ] [ sp:object spin:_this ; | 1120 | + ]) |
| 1121 | + ] ; | ||
| 1122 | + spin:rule | ||
| 1123 | + [ rdf:type sp:Construct ; | ||
| 1124 | + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility | ||
| 1125 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 1126 | + sp:templates ([ sp:object spin:_this ; | ||
| 1028 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1127 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1029 | sp:subject | 1128 | sp:subject |
| 1030 | [ sp:varName "terminal"^^xsd:string | 1129 | [ sp:varName "terminal"^^xsd:string |
| 1031 | ] | 1130 | ] |
| 1032 | ] [ sp:object | 1131 | ] [ sp:object |
| 1033 | - [ sp:varName "facilityLabel"^^xsd:string | 1132 | + [ sp:varName "terminalLabel"^^xsd:string |
| 1034 | ] ; | 1133 | ] ; |
| 1035 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1134 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 1036 | sp:subject spin:_this | 1135 | sp:subject spin:_this |
| ... | @@ -1039,79 +1138,69 @@ Naming system supplied"""^^xsd:string ; | ... | @@ -1039,79 +1138,69 @@ Naming system supplied"""^^xsd:string ; |
| 1039 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 1138 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 1040 | sp:subject spin:_this | 1139 | sp:subject spin:_this |
| 1041 | ] [ sp:object | 1140 | ] [ sp:object |
| 1042 | - [ sp:varName "facilityName"^^xsd:string | 1141 | + [ sp:varName "terminalName"^^xsd:string |
| 1043 | ] ; | 1142 | ] ; |
| 1044 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 1143 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 1045 | sp:subject spin:_this | 1144 | sp:subject spin:_this |
| 1046 | - ] [ sp:object | 1145 | + ] [ rdf:type sp:NamedGraph ; |
| 1047 | - [ sp:varName "namingSystem"^^xsd:string | 1146 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; |
| 1048 | - ] ; | 1147 | + sp:predicate rdf:type ; |
| 1049 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 1050 | - sp:subject spin:_this | ||
| 1051 | - ] [ rdf:type sp:NotExists ; | ||
| 1052 | - sp:elements ([ sp:object spin:_this ; | ||
| 1053 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1054 | sp:subject | 1148 | sp:subject |
| 1055 | - [ sp:varName "something"^^xsd:string | 1149 | + [ sp:varName "terminal"^^xsd:string |
| 1056 | - ] | ||
| 1057 | - ]) | ||
| 1058 | - ] [ rdf:type sp:Bind ; | ||
| 1059 | - sp:expression | ||
| 1060 | - [ rdf:type fn:concat ; | ||
| 1061 | - sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 1062 | - ] ; | ||
| 1063 | - sp:arg2 "$" ; | ||
| 1064 | - sp:arg3 [ sp:varName "facilityName"^^xsd:string | ||
| 1065 | - ] | ||
| 1066 | - ] ; | ||
| 1067 | - sp:variable | ||
| 1068 | - [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 1069 | - ] | ||
| 1070 | - ] [ rdf:type sp:Bind ; | ||
| 1071 | - sp:expression | ||
| 1072 | - [ rdf:type fn:concat ; | ||
| 1073 | - sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1074 | - sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 1075 | - ] | ||
| 1076 | - ] ; | ||
| 1077 | - sp:arg2 "-" ; | ||
| 1078 | - sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1079 | - sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 1080 | - ] | ||
| 1081 | ] | 1150 | ] |
| 1151 | + ] [ sp:object | ||
| 1152 | + [ sp:varName "terminalName"^^xsd:string | ||
| 1082 | ] ; | 1153 | ] ; |
| 1083 | - sp:variable | 1154 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 1084 | - [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | 1155 | + sp:subject |
| 1085 | - ] | 1156 | + [ sp:varName "terminal"^^xsd:string |
| 1086 | - ] [ rdf:type sp:Bind ; | ||
| 1087 | - sp:expression | ||
| 1088 | - [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; | ||
| 1089 | - sp:arg1 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 1090 | ] | 1157 | ] |
| 1158 | + ] [ sp:object | ||
| 1159 | + [ sp:varName "terminalId"^^xsd:string | ||
| 1091 | ] ; | 1160 | ] ; |
| 1092 | - sp:variable | 1161 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 1162 | + sp:subject | ||
| 1093 | [ sp:varName "terminal"^^xsd:string | 1163 | [ sp:varName "terminal"^^xsd:string |
| 1094 | ] | 1164 | ] |
| 1165 | + ]) ; | ||
| 1166 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 1095 | ] [ rdf:type sp:Bind ; | 1167 | ] [ rdf:type sp:Bind ; |
| 1096 | sp:expression | 1168 | sp:expression |
| 1097 | [ rdf:type fn:concat ; | 1169 | [ rdf:type fn:concat ; |
| 1098 | sp:arg1 "terminal-" ; | 1170 | sp:arg1 "terminal-" ; |
| 1099 | - sp:arg2 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | 1171 | + sp:arg2 [ sp:varName "terminalId"^^xsd:string |
| 1100 | ] | 1172 | ] |
| 1101 | ] ; | 1173 | ] ; |
| 1102 | sp:variable | 1174 | sp:variable |
| 1103 | - [ sp:varName "facilityLabel"^^xsd:string | 1175 | + [ sp:varName "terminalLabel"^^xsd:string |
| 1104 | ] | 1176 | ] |
| 1105 | ]) | 1177 | ]) |
| 1106 | ] ; | 1178 | ] ; |
| 1107 | spin:rule | 1179 | spin:rule |
| 1108 | [ rdf:type sp:Construct ; | 1180 | [ rdf:type sp:Construct ; |
| 1109 | - rdfs:comment """STEP 00012b Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | 1181 | + rdfs:comment """STEP 00011a Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal |
| 1110 | Naming system not supplied"""^^xsd:string ; | 1182 | Naming system not supplied"""^^xsd:string ; |
| 1111 | - sp:templates ([ sp:object spin:_this ; | 1183 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 1184 | + sp:predicate rdf:type ; | ||
| 1185 | + sp:subject | ||
| 1186 | + [ sp:varName "terminal"^^xsd:string | ||
| 1187 | + ] | ||
| 1188 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | ||
| 1189 | + sp:predicate rdf:type ; | ||
| 1190 | + sp:subject | ||
| 1191 | + [ sp:varName "terminal"^^xsd:string | ||
| 1192 | + ] | ||
| 1193 | + ] [ sp:object | ||
| 1194 | + [ sp:varName "facilityName"^^xsd:string | ||
| 1195 | + ] ; | ||
| 1196 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 1197 | + sp:subject | ||
| 1198 | + [ sp:varName "terminal"^^xsd:string | ||
| 1199 | + ] | ||
| 1200 | + ] [ sp:object spin:_this ; | ||
| 1112 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1201 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1113 | sp:subject | 1202 | sp:subject |
| 1114 | - [ sp:varName "facility"^^xsd:string | 1203 | + [ sp:varName "terminal"^^xsd:string |
| 1115 | ] | 1204 | ] |
| 1116 | ] [ sp:object | 1205 | ] [ sp:object |
| 1117 | [ sp:varName "facilityLabel"^^xsd:string | 1206 | [ sp:varName "facilityLabel"^^xsd:string |
| ... | @@ -1119,13 +1208,9 @@ Naming system not supplied"""^^xsd:string ; | ... | @@ -1119,13 +1208,9 @@ Naming system not supplied"""^^xsd:string ; |
| 1119 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1208 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 1120 | sp:subject spin:_this | 1209 | sp:subject spin:_this |
| 1121 | ]) ; | 1210 | ]) ; |
| 1122 | - sp:where ([ rdf:type sp:Optional ; | 1211 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 1123 | - sp:elements ([ sp:object | ||
| 1124 | - [ sp:varName "facilityKind"^^xsd:string | ||
| 1125 | - ] ; | ||
| 1126 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 1212 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 1127 | sp:subject spin:_this | 1213 | sp:subject spin:_this |
| 1128 | - ]) | ||
| 1129 | ] [ sp:object | 1214 | ] [ sp:object |
| 1130 | [ sp:varName "facilityName"^^xsd:string | 1215 | [ sp:varName "facilityName"^^xsd:string |
| 1131 | ] ; | 1216 | ] ; |
| ... | @@ -1147,15 +1232,6 @@ Naming system not supplied"""^^xsd:string ; | ... | @@ -1147,15 +1232,6 @@ Naming system not supplied"""^^xsd:string ; |
| 1147 | ]) | 1232 | ]) |
| 1148 | ] [ rdf:type sp:Bind ; | 1233 | ] [ rdf:type sp:Bind ; |
| 1149 | sp:expression | 1234 | sp:expression |
| 1150 | - [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; | ||
| 1151 | - sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 1152 | - ] | ||
| 1153 | - ] ; | ||
| 1154 | - sp:variable | ||
| 1155 | - [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1156 | - ] | ||
| 1157 | - ] [ rdf:type sp:Bind ; | ||
| 1158 | - sp:expression | ||
| 1159 | [ rdf:type ep-spin-lib:normalizeString ; | 1235 | [ rdf:type ep-spin-lib:normalizeString ; |
| 1160 | sp:arg1 [ sp:varName "facilityName"^^xsd:string | 1236 | sp:arg1 [ sp:varName "facilityName"^^xsd:string |
| 1161 | ] | 1237 | ] |
| ... | @@ -1165,113 +1241,27 @@ Naming system not supplied"""^^xsd:string ; | ... | @@ -1165,113 +1241,27 @@ Naming system not supplied"""^^xsd:string ; |
| 1165 | ] | 1241 | ] |
| 1166 | ] [ rdf:type sp:Bind ; | 1242 | ] [ rdf:type sp:Bind ; |
| 1167 | sp:expression | 1243 | sp:expression |
| 1168 | - [ rdf:type ep-spin-lib:normalizeString ; | 1244 | + [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; |
| 1169 | - sp:arg1 [ rdf:type spl:object ; | 1245 | + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string |
| 1170 | - sp:arg1 [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1171 | - ] ; | ||
| 1172 | - sp:arg2 rdfs:label | ||
| 1173 | ] | 1246 | ] |
| 1174 | ] ; | 1247 | ] ; |
| 1175 | sp:variable | 1248 | sp:variable |
| 1176 | - [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | 1249 | + [ sp:varName "terminal"^^xsd:string |
| 1177 | ] | 1250 | ] |
| 1178 | ] [ rdf:type sp:Bind ; | 1251 | ] [ rdf:type sp:Bind ; |
| 1179 | sp:expression | 1252 | sp:expression |
| 1180 | [ rdf:type fn:concat ; | 1253 | [ rdf:type fn:concat ; |
| 1181 | - sp:arg1 [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | 1254 | + sp:arg1 "terminal-" ; |
| 1182 | - ] ; | 1255 | + sp:arg2 [ sp:varName "normalizedFacilityName"^^xsd:string |
| 1183 | - sp:arg2 "-" ; | ||
| 1184 | - sp:arg3 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 1185 | ] | 1256 | ] |
| 1186 | ] ; | 1257 | ] ; |
| 1187 | sp:variable | 1258 | sp:variable |
| 1188 | [ sp:varName "facilityLabel"^^xsd:string | 1259 | [ sp:varName "facilityLabel"^^xsd:string |
| 1189 | ] | 1260 | ] |
| 1190 | - ] [ sp:object | ||
| 1191 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 1192 | - ] ; | ||
| 1193 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1194 | - sp:subject | ||
| 1195 | - [ sp:varName "facility"^^xsd:string | ||
| 1196 | - ] | ||
| 1197 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 1198 | - sp:predicate rdf:type ; | ||
| 1199 | - sp:subject | ||
| 1200 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 1201 | - ] | ||
| 1202 | - ] [ sp:object | ||
| 1203 | - [ sp:varName "facilityLabel"^^xsd:string | ||
| 1204 | - ] ; | ||
| 1205 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 1206 | - sp:subject | ||
| 1207 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 1208 | - ] | ||
| 1209 | - ]) | ||
| 1210 | - ] ; | ||
| 1211 | - spin:rule | ||
| 1212 | - [ rdf:type sp:Construct ; | ||
| 1213 | - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany | ||
| 1214 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 1215 | - sp:templates ([ sp:object spin:_this ; | ||
| 1216 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1217 | - sp:subject | ||
| 1218 | - [ sp:varName "company"^^xsd:string | ||
| 1219 | - ] | ||
| 1220 | - ] [ sp:object | ||
| 1221 | - [ sp:varName "companyLabel"^^xsd:string | ||
| 1222 | - ] ; | ||
| 1223 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 1224 | - sp:subject spin:_this | ||
| 1225 | - ]) ; | ||
| 1226 | - sp:where ([ rdf:type sp:Union ; | ||
| 1227 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
| 1228 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1229 | - sp:subject spin:_this | ||
| 1230 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
| 1231 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1232 | - sp:subject spin:_this | ||
| 1233 | - ])) | ||
| 1234 | - ] [ sp:object | ||
| 1235 | - [ sp:varName "companyName"^^xsd:string | ||
| 1236 | - ] ; | ||
| 1237 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1238 | - sp:subject spin:_this | ||
| 1239 | - ] [ rdf:type sp:NamedGraph ; | ||
| 1240 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
| 1241 | - sp:predicate rdf:type ; | ||
| 1242 | - sp:subject | ||
| 1243 | - [ sp:varName "company"^^xsd:string | ||
| 1244 | - ] | ||
| 1245 | - ] [ sp:object | ||
| 1246 | - [ sp:varName "companyName"^^xsd:string | ||
| 1247 | - ] ; | ||
| 1248 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 1249 | - sp:subject | ||
| 1250 | - [ sp:varName "company"^^xsd:string | ||
| 1251 | - ] | ||
| 1252 | - ] [ sp:object | ||
| 1253 | - [ sp:varName "companyId"^^xsd:string | ||
| 1254 | - ] ; | ||
| 1255 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 1256 | - sp:subject | ||
| 1257 | - [ sp:varName "company"^^xsd:string | ||
| 1258 | - ] | ||
| 1259 | - ]) ; | ||
| 1260 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 1261 | - ] [ rdf:type sp:Bind ; | ||
| 1262 | - sp:expression | ||
| 1263 | - [ rdf:type fn:concat ; | ||
| 1264 | - sp:arg1 "company-" ; | ||
| 1265 | - sp:arg2 [ sp:varName "companyId"^^xsd:string | ||
| 1266 | - ] | ||
| 1267 | - ] ; | ||
| 1268 | - sp:variable | ||
| 1269 | - [ sp:varName "companyLabel"^^xsd:string | ||
| 1270 | - ] | ||
| 1271 | ]) | 1261 | ]) |
| 1272 | ] . | 1262 | ] . |
| 1273 | 1263 | ||
| 1274 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> | 1264 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> |
| 1275 | rdf:type owl:Ontology ; | 1265 | rdf:type owl:Ontology ; |
| 1276 | - 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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; | 1266 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ; |
| 1277 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1267 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment