Showing
2 changed files
with
445 additions
and
299 deletions
| ... | @@ -881,6 +881,47 @@ ep-dpr-spin-lib:buildShipURI | ... | @@ -881,6 +881,47 @@ ep-dpr-spin-lib:buildShipURI |
| 881 | ]) | 881 | ]) |
| 882 | ] . | 882 | ] . |
| 883 | 883 | ||
| 884 | +ep-dpr-spin-lib:buildSmallFacilityURI | ||
| 885 | + rdf:type spin:Function ; | ||
| 886 | + rdfs:subClassOf ep-dpr-spin-lib:Function ; | ||
| 887 | + spin:body | ||
| 888 | + [ rdf:type sp:Select ; | ||
| 889 | + rdfs:comment """ar1 is the naming system | ||
| 890 | +arg2 is name of facility"""^^xsd:string ; | ||
| 891 | + sp:resultVariables ([ sp:varName "uri"^^xsd:string | ||
| 892 | + ]) ; | ||
| 893 | + sp:where ([ rdf:type sp:Bind ; | ||
| 894 | + sp:expression | ||
| 895 | + [ rdf:type sp:if ; | ||
| 896 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 897 | + sp:arg1 spin:_arg1 ; | ||
| 898 | + sp:arg2 "" | ||
| 899 | + ] ; | ||
| 900 | + sp:arg2 [ rdf:type ep-spin-lib:buildURI ; | ||
| 901 | + sp:arg1 "https://www.reportinghub.no/ep/data/smallFacility/" ; | ||
| 902 | + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 903 | + sp:arg1 spin:_arg1 | ||
| 904 | + ] | ||
| 905 | + ] ; | ||
| 906 | + sp:arg3 [ rdf:type ep-spin-lib:buildURI ; | ||
| 907 | + sp:arg1 "https://www.reportinghub.no/ep/data/smallFacility/" ; | ||
| 908 | + sp:arg2 [ rdf:type fn:concat ; | ||
| 909 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 910 | + sp:arg1 spin:_arg1 | ||
| 911 | + ] ; | ||
| 912 | + sp:arg2 "$" ; | ||
| 913 | + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 914 | + sp:arg1 spin:_arg2 | ||
| 915 | + ] | ||
| 916 | + ] | ||
| 917 | + ] | ||
| 918 | + ] ; | ||
| 919 | + sp:variable | ||
| 920 | + [ sp:varName "uri"^^xsd:string | ||
| 921 | + ] | ||
| 922 | + ]) | ||
| 923 | + ] . | ||
| 924 | + | ||
| 884 | ep-dpr-spin-lib:buildStateURI | 925 | ep-dpr-spin-lib:buildStateURI |
| 885 | rdf:type spin:Function ; | 926 | rdf:type spin:Function ; |
| 886 | rdfs:label "build State URI"^^xsd:string ; | 927 | rdfs:label "build State URI"^^xsd:string ; |
| ... | @@ -7532,15 +7573,6 @@ ep-dpr-spin-lib:selectWorkScale | ... | @@ -7532,15 +7573,6 @@ ep-dpr-spin-lib:selectWorkScale |
| 7532 | ]) | 7573 | ]) |
| 7533 | ] . | 7574 | ] . |
| 7534 | 7575 | ||
| 7535 | -_:b22 | ||
| 7536 | - sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ||
| 7537 | - | ||
| 7538 | -_:b21 | ||
| 7539 | - sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7540 | - | ||
| 7541 | -_:b20 | ||
| 7542 | - sp:varName "safetyActivityType"^^xsd:string . | ||
| 7543 | - | ||
| 7544 | _:b19 | 7576 | _:b19 |
| 7545 | sp:varName "productionFlowPurposeType"^^xsd:string . | 7577 | sp:varName "productionFlowPurposeType"^^xsd:string . |
| 7546 | 7578 | ||
| ... | @@ -7588,3 +7620,12 @@ _:b3 sp:varName "uri"^^xsd:string . | ... | @@ -7588,3 +7620,12 @@ _:b3 sp:varName "uri"^^xsd:string . |
| 7588 | _:b2 sp:varName "UUID"^^xsd:string . | 7620 | _:b2 sp:varName "UUID"^^xsd:string . |
| 7589 | 7621 | ||
| 7590 | _:b1 sp:varName "uri"^^xsd:string . | 7622 | _:b1 sp:varName "uri"^^xsd:string . |
| 7623 | + | ||
| 7624 | +_:b22 | ||
| 7625 | + sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ||
| 7626 | + | ||
| 7627 | +_:b21 | ||
| 7628 | + sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7629 | + | ||
| 7630 | +_:b20 | ||
| 7631 | + sp:varName "safetyActivityType"^^xsd:string . | ... | ... |
| ... | @@ -21,23 +21,31 @@ | ... | @@ -21,23 +21,31 @@ |
| 21 | spin:rule | 21 | spin:rule |
| 22 | [ rdf:type sp:Construct ; | 22 | [ rdf:type sp:Construct ; |
| 23 | rdfs:comment """STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file | 23 | rdfs:comment """STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file |
| 24 | -Nothing is done with the namingSystem!"""^^xsd:string ; | 24 | +Naming system supplied"""^^xsd:string ; |
| 25 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 25 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 26 | sp:predicate rdf:type ; | 26 | sp:predicate rdf:type ; |
| 27 | - sp:subject _:b1 | 27 | + sp:subject |
| 28 | + [ sp:varName "facility"^^xsd:string | ||
| 29 | + ] | ||
| 28 | ] [ sp:object | 30 | ] [ sp:object |
| 29 | [ sp:varName "productionFacilityType"^^xsd:string | 31 | [ sp:varName "productionFacilityType"^^xsd:string |
| 30 | ] ; | 32 | ] ; |
| 31 | sp:predicate rdf:type ; | 33 | sp:predicate rdf:type ; |
| 32 | - sp:subject _:b1 | 34 | + sp:subject |
| 35 | + [ sp:varName "facility"^^xsd:string | ||
| 36 | + ] | ||
| 33 | ] [ sp:object | 37 | ] [ sp:object |
| 34 | [ sp:varName "facilityName"^^xsd:string | 38 | [ sp:varName "facilityName"^^xsd:string |
| 35 | ] ; | 39 | ] ; |
| 36 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 40 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 37 | - sp:subject _:b1 | 41 | + sp:subject |
| 42 | + [ sp:varName "facility"^^xsd:string | ||
| 43 | + ] | ||
| 38 | ] [ sp:object spin:_this ; | 44 | ] [ sp:object spin:_this ; |
| 39 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 45 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 40 | - sp:subject _:b1 | 46 | + sp:subject |
| 47 | + [ sp:varName "facility"^^xsd:string | ||
| 48 | + ] | ||
| 41 | ] [ sp:object | 49 | ] [ sp:object |
| 42 | [ sp:varName "facilityName"^^xsd:string | 50 | [ sp:varName "facilityName"^^xsd:string |
| 43 | ] ; | 51 | ] ; |
| ... | @@ -56,6 +64,11 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -56,6 +64,11 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 56 | ] ; | 64 | ] ; |
| 57 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 65 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 58 | sp:subject spin:_this | 66 | sp:subject spin:_this |
| 67 | + ] [ sp:object | ||
| 68 | + [ sp:varName "namingSystem"^^xsd:string | ||
| 69 | + ] ; | ||
| 70 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 71 | + sp:subject spin:_this | ||
| 59 | ] [ rdf:type sp:NotExists ; | 72 | ] [ rdf:type sp:NotExists ; |
| 60 | sp:elements ([ sp:object spin:_this ; | 73 | sp:elements ([ sp:object spin:_this ; |
| 61 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 74 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -72,124 +85,16 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -72,124 +85,16 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 72 | sp:variable | 85 | sp:variable |
| 73 | [ sp:varName "productionFacilityType"^^xsd:string | 86 | [ sp:varName "productionFacilityType"^^xsd:string |
| 74 | ] | 87 | ] |
| 75 | - ]) | ||
| 76 | - ] ; | ||
| 77 | - spin:rule | ||
| 78 | - [ rdf:type sp:Construct ; | ||
| 79 | - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany | ||
| 80 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 81 | - sp:templates ([ sp:object spin:_this ; | ||
| 82 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 83 | - sp:subject | ||
| 84 | - [ sp:varName "company"^^xsd:string | ||
| 85 | - ] | ||
| 86 | - ] [ sp:object | ||
| 87 | - [ sp:varName "companyLabel"^^xsd:string | ||
| 88 | - ] ; | ||
| 89 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 90 | - sp:subject spin:_this | ||
| 91 | - ]) ; | ||
| 92 | - sp:where ([ rdf:type sp:Union ; | ||
| 93 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
| 94 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 95 | - sp:subject spin:_this | ||
| 96 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
| 97 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 98 | - sp:subject spin:_this | ||
| 99 | - ])) | ||
| 100 | - ] [ sp:object | ||
| 101 | - [ sp:varName "companyName"^^xsd:string | ||
| 102 | - ] ; | ||
| 103 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 104 | - sp:subject spin:_this | ||
| 105 | - ] [ rdf:type sp:NamedGraph ; | ||
| 106 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
| 107 | - sp:predicate rdf:type ; | ||
| 108 | - sp:subject | ||
| 109 | - [ sp:varName "company"^^xsd:string | ||
| 110 | - ] | ||
| 111 | - ] [ sp:object | ||
| 112 | - [ sp:varName "companyName"^^xsd:string | ||
| 113 | - ] ; | ||
| 114 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 115 | - sp:subject | ||
| 116 | - [ sp:varName "company"^^xsd:string | ||
| 117 | - ] | ||
| 118 | - ] [ sp:object | ||
| 119 | - [ sp:varName "companyId"^^xsd:string | ||
| 120 | - ] ; | ||
| 121 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 122 | - sp:subject | ||
| 123 | - [ sp:varName "company"^^xsd:string | ||
| 124 | - ] | ||
| 125 | - ]) ; | ||
| 126 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 127 | - ] [ rdf:type sp:Bind ; | ||
| 128 | - sp:expression | ||
| 129 | - [ rdf:type fn:concat ; | ||
| 130 | - sp:arg1 "company-" ; | ||
| 131 | - sp:arg2 [ sp:varName "companyId"^^xsd:string | ||
| 132 | - ] | ||
| 133 | - ] ; | ||
| 134 | - sp:variable | ||
| 135 | - [ sp:varName "companyLabel"^^xsd:string | ||
| 136 | - ] | ||
| 137 | - ]) | ||
| 138 | - ] ; | ||
| 139 | - spin:rule | ||
| 140 | - [ rdf:type sp:Construct ; | ||
| 141 | - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" | ||
| 142 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 143 | - sp:templates ([ sp:object spin:_this ; | ||
| 144 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 145 | - sp:subject | ||
| 146 | - [ sp:varName "well"^^xsd:string | ||
| 147 | - ] | ||
| 148 | - ] [ sp:object | ||
| 149 | - [ sp:varName "wellLabel"^^xsd:string | ||
| 150 | - ] ; | ||
| 151 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 152 | - sp:subject spin:_this | ||
| 153 | - ]) ; | ||
| 154 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | ||
| 155 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 156 | - sp:subject spin:_this | ||
| 157 | - ] [ sp:object | ||
| 158 | - [ sp:varName "wellName"^^xsd:string | ||
| 159 | - ] ; | ||
| 160 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 161 | - sp:subject spin:_this | ||
| 162 | - ] [ rdf:type sp:NamedGraph ; | ||
| 163 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
| 164 | - sp:predicate rdf:type ; | ||
| 165 | - sp:subject | ||
| 166 | - [ sp:varName "well"^^xsd:string | ||
| 167 | - ] | ||
| 168 | - ] [ sp:object | ||
| 169 | - [ sp:varName "wellName"^^xsd:string | ||
| 170 | - ] ; | ||
| 171 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 172 | - sp:subject | ||
| 173 | - [ sp:varName "well"^^xsd:string | ||
| 174 | - ] | ||
| 175 | - ] [ sp:object | ||
| 176 | - [ sp:varName "wellId"^^xsd:string | ||
| 177 | - ] ; | ||
| 178 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 179 | - sp:subject | ||
| 180 | - [ sp:varName "well"^^xsd:string | ||
| 181 | - ] | ||
| 182 | - ]) ; | ||
| 183 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 184 | ] [ rdf:type sp:Bind ; | 88 | ] [ rdf:type sp:Bind ; |
| 185 | sp:expression | 89 | sp:expression |
| 186 | - [ rdf:type fn:concat ; | 90 | + [ rdf:type ep-dpr-spin-lib:buildSmallFacilityURI ; |
| 187 | - sp:arg1 "well-" ; | 91 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string |
| 188 | - sp:arg2 [ sp:varName "wellId"^^xsd:string | 92 | + ] ; |
| 93 | + sp:arg2 [ sp:varName "facilityName"^^xsd:string | ||
| 189 | ] | 94 | ] |
| 190 | ] ; | 95 | ] ; |
| 191 | sp:variable | 96 | sp:variable |
| 192 | - [ sp:varName "wellLabel"^^xsd:string | 97 | + [ sp:varName "facility"^^xsd:string |
| 193 | ] | 98 | ] |
| 194 | ]) | 99 | ]) |
| 195 | ] ; | 100 | ] ; |
| ... | @@ -252,115 +157,58 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -252,115 +157,58 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 252 | ] ; | 157 | ] ; |
| 253 | spin:rule | 158 | spin:rule |
| 254 | [ rdf:type sp:Construct ; | 159 | [ rdf:type sp:Construct ; |
| 255 | - rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" | 160 | + rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" |
| 256 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 257 | - sp:templates ([ sp:object spin:_this ; | ||
| 258 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 259 | - sp:subject | ||
| 260 | - [ sp:varName "wellBore"^^xsd:string | ||
| 261 | - ] | ||
| 262 | - ] [ sp:object | ||
| 263 | - [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 264 | - ] ; | ||
| 265 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 266 | - sp:subject spin:_this | ||
| 267 | - ]) ; | ||
| 268 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 269 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 270 | - sp:subject spin:_this | ||
| 271 | - ] [ sp:object | ||
| 272 | - [ sp:varName "wellBoreName"^^xsd:string | ||
| 273 | - ] ; | ||
| 274 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 275 | - sp:subject spin:_this | ||
| 276 | - ] [ rdf:type sp:NamedGraph ; | ||
| 277 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 278 | - sp:predicate rdf:type ; | ||
| 279 | - sp:subject | ||
| 280 | - [ sp:varName "wellBore"^^xsd:string | ||
| 281 | - ] | ||
| 282 | - ] [ sp:object | ||
| 283 | - [ sp:varName "wellBoreName"^^xsd:string | ||
| 284 | - ] ; | ||
| 285 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 286 | - sp:subject | ||
| 287 | - [ sp:varName "wellBore"^^xsd:string | ||
| 288 | - ] | ||
| 289 | - ] [ sp:object | ||
| 290 | - [ sp:varName "wellBoreId"^^xsd:string | ||
| 291 | - ] ; | ||
| 292 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 293 | - sp:subject | ||
| 294 | - [ sp:varName "wellBore"^^xsd:string | ||
| 295 | - ] | ||
| 296 | - ]) ; | ||
| 297 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 298 | - ] [ rdf:type sp:Bind ; | ||
| 299 | - sp:expression | ||
| 300 | - [ rdf:type fn:concat ; | ||
| 301 | - sp:arg1 "wellbore-" ; | ||
| 302 | - sp:arg2 [ sp:varName "wellBoreId"^^xsd:string | ||
| 303 | - ] | ||
| 304 | - ] ; | ||
| 305 | - sp:variable | ||
| 306 | - [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 307 | - ] | ||
| 308 | - ]) | ||
| 309 | - ] ; | ||
| 310 | - spin:rule | ||
| 311 | - [ rdf:type sp:Construct ; | ||
| 312 | - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | ||
| 313 | Nothing is done with the namingSystem!"""^^xsd:string ; | 161 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 314 | sp:templates ([ sp:object spin:_this ; | 162 | sp:templates ([ sp:object spin:_this ; |
| 315 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 163 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 316 | sp:subject | 164 | sp:subject |
| 317 | - [ sp:varName "platform"^^xsd:string | 165 | + [ sp:varName "licence"^^xsd:string |
| 318 | ] | 166 | ] |
| 319 | ] [ sp:object | 167 | ] [ sp:object |
| 320 | - [ sp:varName "platformLabel"^^xsd:string | 168 | + [ sp:varName "licenceLabel"^^xsd:string |
| 321 | ] ; | 169 | ] ; |
| 322 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 170 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 323 | sp:subject spin:_this | 171 | sp:subject spin:_this |
| 324 | ]) ; | 172 | ]) ; |
| 325 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 173 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; |
| 326 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 174 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 327 | sp:subject spin:_this | 175 | sp:subject spin:_this |
| 328 | ] [ sp:object | 176 | ] [ sp:object |
| 329 | - [ sp:varName "platformName"^^xsd:string | 177 | + [ sp:varName "licenceName"^^xsd:string |
| 330 | ] ; | 178 | ] ; |
| 331 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 179 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 332 | sp:subject spin:_this | 180 | sp:subject spin:_this |
| 333 | ] [ rdf:type sp:NamedGraph ; | 181 | ] [ rdf:type sp:NamedGraph ; |
| 334 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | 182 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; |
| 335 | sp:predicate rdf:type ; | 183 | sp:predicate rdf:type ; |
| 336 | sp:subject | 184 | sp:subject |
| 337 | - [ sp:varName "platform"^^xsd:string | 185 | + [ sp:varName "licence"^^xsd:string |
| 338 | ] | 186 | ] |
| 339 | ] [ sp:object | 187 | ] [ sp:object |
| 340 | - [ sp:varName "platformName"^^xsd:string | 188 | + [ sp:varName "licenceName"^^xsd:string |
| 341 | ] ; | 189 | ] ; |
| 342 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 190 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 343 | sp:subject | 191 | sp:subject |
| 344 | - [ sp:varName "platform"^^xsd:string | 192 | + [ sp:varName "licence"^^xsd:string |
| 345 | ] | 193 | ] |
| 346 | ] [ sp:object | 194 | ] [ sp:object |
| 347 | - [ sp:varName "platformId"^^xsd:string | 195 | + [ sp:varName "licenceId"^^xsd:string |
| 348 | ] ; | 196 | ] ; |
| 349 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 197 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 350 | sp:subject | 198 | sp:subject |
| 351 | - [ sp:varName "platform"^^xsd:string | 199 | + [ sp:varName "livence"^^xsd:string |
| 352 | ] | 200 | ] |
| 353 | ]) ; | 201 | ]) ; |
| 354 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 202 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 355 | ] [ rdf:type sp:Bind ; | 203 | ] [ rdf:type sp:Bind ; |
| 356 | sp:expression | 204 | sp:expression |
| 357 | [ rdf:type fn:concat ; | 205 | [ rdf:type fn:concat ; |
| 358 | - sp:arg1 "platform-" ; | 206 | + sp:arg1 "licence-" ; |
| 359 | - sp:arg2 [ sp:varName "platformId"^^xsd:string | 207 | + sp:arg2 [ sp:varName "licenceId"^^xsd:string |
| 360 | ] | 208 | ] |
| 361 | ] ; | 209 | ] ; |
| 362 | sp:variable | 210 | sp:variable |
| 363 | - [ sp:varName "platformLabel"^^xsd:string | 211 | + [ sp:varName "licenceLabel"^^xsd:string |
| 364 | ] | 212 | ] |
| 365 | ]) | 213 | ]) |
| 366 | ] ; | 214 | ] ; |
| ... | @@ -486,115 +334,338 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -486,115 +334,338 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 486 | ] ; | 334 | ] ; |
| 487 | spin:rule | 335 | spin:rule |
| 488 | [ rdf:type sp:Construct ; | 336 | [ rdf:type sp:Construct ; |
| 489 | - rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" | 337 | + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility |
| 490 | Nothing is done with the namingSystem!"""^^xsd:string ; | 338 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 491 | sp:templates ([ sp:object spin:_this ; | 339 | sp:templates ([ sp:object spin:_this ; |
| 492 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 340 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 493 | sp:subject | 341 | sp:subject |
| 494 | - [ sp:varName "licence"^^xsd:string | 342 | + [ sp:varName "terminal"^^xsd:string |
| 495 | ] | 343 | ] |
| 496 | ] [ sp:object | 344 | ] [ sp:object |
| 497 | - [ sp:varName "licenceLabel"^^xsd:string | 345 | + [ sp:varName "terminalLabel"^^xsd:string |
| 498 | ] ; | 346 | ] ; |
| 499 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 347 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 500 | sp:subject spin:_this | 348 | sp:subject spin:_this |
| 501 | ]) ; | 349 | ]) ; |
| 502 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; | 350 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 503 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 351 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 504 | sp:subject spin:_this | 352 | sp:subject spin:_this |
| 505 | ] [ sp:object | 353 | ] [ sp:object |
| 506 | - [ sp:varName "licenceName"^^xsd:string | 354 | + [ sp:varName "terminalName"^^xsd:string |
| 507 | ] ; | 355 | ] ; |
| 508 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 356 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 509 | sp:subject spin:_this | 357 | sp:subject spin:_this |
| 510 | ] [ rdf:type sp:NamedGraph ; | 358 | ] [ rdf:type sp:NamedGraph ; |
| 511 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; | 359 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; |
| 512 | sp:predicate rdf:type ; | 360 | sp:predicate rdf:type ; |
| 513 | sp:subject | 361 | sp:subject |
| 514 | - [ sp:varName "licence"^^xsd:string | 362 | + [ sp:varName "terminal"^^xsd:string |
| 515 | ] | 363 | ] |
| 516 | ] [ sp:object | 364 | ] [ sp:object |
| 517 | - [ sp:varName "licenceName"^^xsd:string | 365 | + [ sp:varName "terminalName"^^xsd:string |
| 518 | ] ; | 366 | ] ; |
| 519 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 367 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 520 | sp:subject | 368 | sp:subject |
| 521 | - [ sp:varName "licence"^^xsd:string | 369 | + [ sp:varName "terminal"^^xsd:string |
| 522 | ] | 370 | ] |
| 523 | ] [ sp:object | 371 | ] [ sp:object |
| 524 | - [ sp:varName "licenceId"^^xsd:string | 372 | + [ sp:varName "terminalId"^^xsd:string |
| 525 | ] ; | 373 | ] ; |
| 526 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 374 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 527 | sp:subject | 375 | sp:subject |
| 528 | - [ sp:varName "livence"^^xsd:string | 376 | + [ sp:varName "terminal"^^xsd:string |
| 529 | ] | 377 | ] |
| 530 | ]) ; | 378 | ]) ; |
| 531 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 379 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 532 | ] [ rdf:type sp:Bind ; | 380 | ] [ rdf:type sp:Bind ; |
| 533 | sp:expression | 381 | sp:expression |
| 534 | [ rdf:type fn:concat ; | 382 | [ rdf:type fn:concat ; |
| 535 | - sp:arg1 "licence-" ; | 383 | + sp:arg1 "terminal-" ; |
| 536 | - sp:arg2 [ sp:varName "licenceId"^^xsd:string | 384 | + sp:arg2 [ sp:varName "terminalId"^^xsd:string |
| 537 | ] | 385 | ] |
| 538 | ] ; | 386 | ] ; |
| 539 | sp:variable | 387 | sp:variable |
| 540 | - [ sp:varName "licenceLabel"^^xsd:string | 388 | + [ sp:varName "terminalLabel"^^xsd:string |
| 541 | ] | 389 | ] |
| 542 | ]) | 390 | ]) |
| 543 | ] ; | 391 | ] ; |
| 544 | spin:rule | 392 | spin:rule |
| 545 | [ rdf:type sp:Construct ; | 393 | [ rdf:type sp:Construct ; |
| 546 | - rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility | 394 | + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. |
| 547 | Nothing is done with the namingSystem!"""^^xsd:string ; | 395 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 548 | sp:templates ([ sp:object spin:_this ; | 396 | sp:templates ([ sp:object spin:_this ; |
| 549 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 397 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 550 | sp:subject | 398 | sp:subject |
| 551 | - [ sp:varName "terminal"^^xsd:string | 399 | + [ sp:varName "tuf"^^xsd:string |
| 552 | ] | 400 | ] |
| 553 | ] [ sp:object | 401 | ] [ sp:object |
| 554 | - [ sp:varName "terminalLabel"^^xsd:string | 402 | + [ sp:varName "tufLabel"^^xsd:string |
| 555 | ] ; | 403 | ] ; |
| 556 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 404 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 557 | sp:subject spin:_this | 405 | sp:subject spin:_this |
| 558 | ]) ; | 406 | ]) ; |
| 559 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 407 | + sp:where ([ rdf:type sp:Union ; |
| 560 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 408 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 561 | - sp:subject spin:_this | 409 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 562 | - ] [ sp:object | 410 | + sp:subject spin:_this |
| 563 | - [ sp:varName "terminalName"^^xsd:string | 411 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; |
| 564 | - ] ; | 412 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 565 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 413 | + sp:subject spin:_this |
| 414 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
| 415 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 416 | + sp:subject spin:_this | ||
| 417 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
| 418 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 419 | + sp:subject spin:_this | ||
| 420 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
| 421 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 422 | + sp:subject spin:_this | ||
| 423 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
| 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_trunkline> ; | ||
| 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_storage> ; | ||
| 430 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 431 | + sp:subject spin:_this | ||
| 432 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
| 433 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 434 | + sp:subject spin:_this | ||
| 435 | + ])) | ||
| 436 | + ] [ sp:object | ||
| 437 | + [ sp:varName "tufName"^^xsd:string | ||
| 438 | + ] ; | ||
| 439 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 566 | sp:subject spin:_this | 440 | sp:subject spin:_this |
| 567 | ] [ rdf:type sp:NamedGraph ; | 441 | ] [ rdf:type sp:NamedGraph ; |
| 568 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | 442 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; |
| 569 | sp:predicate rdf:type ; | 443 | sp:predicate rdf:type ; |
| 570 | sp:subject | 444 | sp:subject |
| 571 | - [ sp:varName "terminal"^^xsd:string | 445 | + [ sp:varName "tuf"^^xsd:string |
| 572 | ] | 446 | ] |
| 573 | ] [ sp:object | 447 | ] [ sp:object |
| 574 | - [ sp:varName "terminalName"^^xsd:string | 448 | + [ sp:varName "tufName"^^xsd:string |
| 575 | ] ; | 449 | ] ; |
| 576 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 450 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 577 | sp:subject | 451 | sp:subject |
| 578 | - [ sp:varName "terminal"^^xsd:string | 452 | + [ sp:varName "tuf"^^xsd:string |
| 579 | ] | 453 | ] |
| 580 | ] [ sp:object | 454 | ] [ sp:object |
| 581 | - [ sp:varName "terminalId"^^xsd:string | 455 | + [ sp:varName "tufId"^^xsd:string |
| 582 | ] ; | 456 | ] ; |
| 583 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 457 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 584 | sp:subject | 458 | sp:subject |
| 585 | - [ sp:varName "terminal"^^xsd:string | 459 | + [ sp:varName "tuf"^^xsd:string |
| 586 | ] | 460 | ] |
| 587 | ]) ; | 461 | ]) ; |
| 588 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 462 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 589 | ] [ rdf:type sp:Bind ; | 463 | ] [ rdf:type sp:Bind ; |
| 590 | sp:expression | 464 | sp:expression |
| 591 | [ rdf:type fn:concat ; | 465 | [ rdf:type fn:concat ; |
| 592 | - sp:arg1 "terminal-" ; | 466 | + sp:arg1 "tuf-" ; |
| 593 | - sp:arg2 [ sp:varName "terminalId"^^xsd:string | 467 | + sp:arg2 [ sp:varName "tufId"^^xsd:string |
| 594 | ] | 468 | ] |
| 595 | ] ; | 469 | ] ; |
| 596 | sp:variable | 470 | sp:variable |
| 597 | - [ sp:varName "terminalLabel"^^xsd:string | 471 | + [ sp:varName "tufLabel"^^xsd:string |
| 472 | + ] | ||
| 473 | + ]) | ||
| 474 | + ] ; | ||
| 475 | + spin:rule | ||
| 476 | + [ rdf:type sp:Construct ; | ||
| 477 | + rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | ||
| 478 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 479 | + sp:templates ([ sp:object spin:_this ; | ||
| 480 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 481 | + sp:subject | ||
| 482 | + [ sp:varName "facility"^^xsd:string | ||
| 483 | + ] | ||
| 484 | + ]) ; | ||
| 485 | + sp:where ([ rdf:type sp:Optional ; | ||
| 486 | + sp:elements ([ sp:object | ||
| 487 | + [ sp:varName "facilityKind"^^xsd:string | ||
| 488 | + ] ; | ||
| 489 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 490 | + sp:subject spin:_this | ||
| 491 | + ]) | ||
| 492 | + ] [ sp:object | ||
| 493 | + [ sp:varName "facilityName"^^xsd:string | ||
| 494 | + ] ; | ||
| 495 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 496 | + sp:subject spin:_this | ||
| 497 | + ] [ rdf:type sp:NotExists ; | ||
| 498 | + sp:elements ([ sp:object spin:_this ; | ||
| 499 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 500 | + sp:subject | ||
| 501 | + [ sp:varName "something"^^xsd:string | ||
| 502 | + ] | ||
| 503 | + ]) | ||
| 504 | + ] [ sp:object | ||
| 505 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 506 | + ] ; | ||
| 507 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 508 | + sp:subject | ||
| 509 | + [ sp:varName "facility"^^xsd:string | ||
| 510 | + ] | ||
| 511 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 512 | + sp:predicate rdf:type ; | ||
| 513 | + sp:subject | ||
| 514 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 515 | + ] | ||
| 516 | + ] [ sp:object | ||
| 517 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 518 | + ] ; | ||
| 519 | + sp:predicate rdf:type ; | ||
| 520 | + sp:subject | ||
| 521 | + [ sp:varName "facility"^^xsd:string | ||
| 522 | + ] | ||
| 523 | + ] [ rdf:type sp:Bind ; | ||
| 524 | + sp:expression | ||
| 525 | + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
| 526 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 527 | + ] | ||
| 528 | + ] ; | ||
| 529 | + sp:variable | ||
| 530 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 531 | + ] | ||
| 532 | + ]) | ||
| 533 | + ] ; | ||
| 534 | + spin:rule | ||
| 535 | + [ rdf:type sp:Construct ; | ||
| 536 | + rdfs:comment """STEP 00014 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file | ||
| 537 | +Naming system not supplied"""^^xsd:string ; | ||
| 538 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 539 | + sp:predicate rdf:type ; | ||
| 540 | + sp:subject | ||
| 541 | + [ sp:varName "facility"^^xsd:string | ||
| 542 | + ] | ||
| 543 | + ] [ sp:object | ||
| 544 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 545 | + ] ; | ||
| 546 | + sp:predicate rdf:type ; | ||
| 547 | + sp:subject | ||
| 548 | + [ sp:varName "facility"^^xsd:string | ||
| 549 | + ] | ||
| 550 | + ] [ sp:object | ||
| 551 | + [ sp:varName "facilityName"^^xsd:string | ||
| 552 | + ] ; | ||
| 553 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 554 | + sp:subject | ||
| 555 | + [ sp:varName "facility"^^xsd:string | ||
| 556 | + ] | ||
| 557 | + ] [ sp:object spin:_this ; | ||
| 558 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 559 | + sp:subject | ||
| 560 | + [ sp:varName "facility"^^xsd:string | ||
| 561 | + ] | ||
| 562 | + ] [ sp:object | ||
| 563 | + [ sp:varName "facilityName"^^xsd:string | ||
| 564 | + ] ; | ||
| 565 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 566 | + sp:subject spin:_this | ||
| 567 | + ]) ; | ||
| 568 | + sp:where ([ rdf:type sp:Optional ; | ||
| 569 | + sp:elements ([ sp:object | ||
| 570 | + [ sp:varName "facilityKind"^^xsd:string | ||
| 571 | + ] ; | ||
| 572 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 573 | + sp:subject spin:_this | ||
| 574 | + ]) | ||
| 575 | + ] [ sp:object | ||
| 576 | + [ sp:varName "facilityName"^^xsd:string | ||
| 577 | + ] ; | ||
| 578 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 579 | + sp:subject spin:_this | ||
| 580 | + ] [ rdf:type sp:NotExists ; | ||
| 581 | + sp:elements ([ sp:object | ||
| 582 | + [ sp:varName "namingSystem"^^xsd:string | ||
| 583 | + ] ; | ||
| 584 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 585 | + sp:subject spin:_this | ||
| 586 | + ]) | ||
| 587 | + ] [ rdf:type sp:NotExists ; | ||
| 588 | + sp:elements ([ sp:object spin:_this ; | ||
| 589 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 590 | + sp:subject | ||
| 591 | + [ sp:varName "something"^^xsd:string | ||
| 592 | + ] | ||
| 593 | + ]) | ||
| 594 | + ] [ rdf:type sp:Bind ; | ||
| 595 | + sp:expression | ||
| 596 | + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
| 597 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 598 | + ] | ||
| 599 | + ] ; | ||
| 600 | + sp:variable | ||
| 601 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 602 | + ] | ||
| 603 | + ] [ rdf:type sp:Bind ; | ||
| 604 | + sp:expression | ||
| 605 | + [ rdf:type ep-dpr-spin-lib:buildSmallFacilityURI ; | ||
| 606 | + sp:arg1 "" ; | ||
| 607 | + sp:arg2 [ sp:varName "facilityName"^^xsd:string | ||
| 608 | + ] | ||
| 609 | + ] ; | ||
| 610 | + sp:variable | ||
| 611 | + [ sp:varName "facility"^^xsd:string | ||
| 612 | + ] | ||
| 613 | + ]) | ||
| 614 | + ] ; | ||
| 615 | + spin:rule | ||
| 616 | + [ rdf:type sp:Construct ; | ||
| 617 | + rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" | ||
| 618 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 619 | + sp:templates ([ sp:object spin:_this ; | ||
| 620 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 621 | + sp:subject | ||
| 622 | + [ sp:varName "wellBore"^^xsd:string | ||
| 623 | + ] | ||
| 624 | + ] [ sp:object | ||
| 625 | + [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 626 | + ] ; | ||
| 627 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 628 | + sp:subject spin:_this | ||
| 629 | + ]) ; | ||
| 630 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
| 631 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 632 | + sp:subject spin:_this | ||
| 633 | + ] [ sp:object | ||
| 634 | + [ sp:varName "wellBoreName"^^xsd:string | ||
| 635 | + ] ; | ||
| 636 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 637 | + sp:subject spin:_this | ||
| 638 | + ] [ rdf:type sp:NamedGraph ; | ||
| 639 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 640 | + sp:predicate rdf:type ; | ||
| 641 | + sp:subject | ||
| 642 | + [ sp:varName "wellBore"^^xsd:string | ||
| 643 | + ] | ||
| 644 | + ] [ sp:object | ||
| 645 | + [ sp:varName "wellBoreName"^^xsd:string | ||
| 646 | + ] ; | ||
| 647 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 648 | + sp:subject | ||
| 649 | + [ sp:varName "wellBore"^^xsd:string | ||
| 650 | + ] | ||
| 651 | + ] [ sp:object | ||
| 652 | + [ sp:varName "wellBoreId"^^xsd:string | ||
| 653 | + ] ; | ||
| 654 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 655 | + sp:subject | ||
| 656 | + [ sp:varName "wellBore"^^xsd:string | ||
| 657 | + ] | ||
| 658 | + ]) ; | ||
| 659 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 660 | + ] [ rdf:type sp:Bind ; | ||
| 661 | + sp:expression | ||
| 662 | + [ rdf:type fn:concat ; | ||
| 663 | + sp:arg1 "wellbore-" ; | ||
| 664 | + sp:arg2 [ sp:varName "wellBoreId"^^xsd:string | ||
| 665 | + ] | ||
| 666 | + ] ; | ||
| 667 | + sp:variable | ||
| 668 | + [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 598 | ] | 669 | ] |
| 599 | ]) | 670 | ]) |
| 600 | ] ; | 671 | ] ; |
| ... | @@ -668,148 +739,182 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -668,148 +739,182 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 668 | ] ; | 739 | ] ; |
| 669 | spin:rule | 740 | spin:rule |
| 670 | [ rdf:type sp:Construct ; | 741 | [ rdf:type sp:Construct ; |
| 671 | - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | 742 | + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany |
| 672 | Nothing is done with the namingSystem!"""^^xsd:string ; | 743 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 673 | sp:templates ([ sp:object spin:_this ; | 744 | sp:templates ([ sp:object spin:_this ; |
| 674 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 745 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 675 | sp:subject | 746 | sp:subject |
| 676 | - [ sp:varName "tuf"^^xsd:string | 747 | + [ sp:varName "company"^^xsd:string |
| 677 | ] | 748 | ] |
| 678 | ] [ sp:object | 749 | ] [ sp:object |
| 679 | - [ sp:varName "tufLabel"^^xsd:string | 750 | + [ sp:varName "companyLabel"^^xsd:string |
| 680 | ] ; | 751 | ] ; |
| 681 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 752 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 682 | sp:subject spin:_this | 753 | sp:subject spin:_this |
| 683 | ]) ; | 754 | ]) ; |
| 684 | sp:where ([ rdf:type sp:Union ; | 755 | sp:where ([ rdf:type sp:Union ; |
| 685 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 756 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; |
| 686 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 687 | - sp:subject spin:_this | ||
| 688 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
| 689 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 690 | - sp:subject spin:_this | ||
| 691 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
| 692 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 693 | - sp:subject spin:_this | ||
| 694 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
| 695 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 696 | - sp:subject spin:_this | ||
| 697 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
| 698 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 699 | - sp:subject spin:_this | ||
| 700 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
| 701 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 702 | - sp:subject spin:_this | ||
| 703 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
| 704 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 705 | - sp:subject spin:_this | ||
| 706 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
| 707 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 757 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 708 | sp:subject spin:_this | 758 | sp:subject spin:_this |
| 709 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | 759 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; |
| 710 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 760 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 711 | sp:subject spin:_this | 761 | sp:subject spin:_this |
| 712 | ])) | 762 | ])) |
| 713 | ] [ sp:object | 763 | ] [ sp:object |
| 714 | - [ sp:varName "tufName"^^xsd:string | 764 | + [ sp:varName "companyName"^^xsd:string |
| 715 | ] ; | 765 | ] ; |
| 716 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 766 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 717 | sp:subject spin:_this | 767 | sp:subject spin:_this |
| 718 | ] [ rdf:type sp:NamedGraph ; | 768 | ] [ rdf:type sp:NamedGraph ; |
| 719 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | 769 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
| 720 | sp:predicate rdf:type ; | 770 | sp:predicate rdf:type ; |
| 721 | sp:subject | 771 | sp:subject |
| 722 | - [ sp:varName "tuf"^^xsd:string | 772 | + [ sp:varName "company"^^xsd:string |
| 723 | ] | 773 | ] |
| 724 | ] [ sp:object | 774 | ] [ sp:object |
| 725 | - [ sp:varName "tufName"^^xsd:string | 775 | + [ sp:varName "companyName"^^xsd:string |
| 726 | ] ; | 776 | ] ; |
| 727 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 777 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 728 | sp:subject | 778 | sp:subject |
| 729 | - [ sp:varName "tuf"^^xsd:string | 779 | + [ sp:varName "company"^^xsd:string |
| 730 | ] | 780 | ] |
| 731 | ] [ sp:object | 781 | ] [ sp:object |
| 732 | - [ sp:varName "tufId"^^xsd:string | 782 | + [ sp:varName "companyId"^^xsd:string |
| 733 | ] ; | 783 | ] ; |
| 734 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 784 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 735 | sp:subject | 785 | sp:subject |
| 736 | - [ sp:varName "tuf"^^xsd:string | 786 | + [ sp:varName "company"^^xsd:string |
| 737 | ] | 787 | ] |
| 738 | ]) ; | 788 | ]) ; |
| 739 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 789 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 740 | ] [ rdf:type sp:Bind ; | 790 | ] [ rdf:type sp:Bind ; |
| 741 | sp:expression | 791 | sp:expression |
| 742 | [ rdf:type fn:concat ; | 792 | [ rdf:type fn:concat ; |
| 743 | - sp:arg1 "tuf-" ; | 793 | + sp:arg1 "company-" ; |
| 744 | - sp:arg2 [ sp:varName "tufId"^^xsd:string | 794 | + sp:arg2 [ sp:varName "companyId"^^xsd:string |
| 745 | ] | 795 | ] |
| 746 | ] ; | 796 | ] ; |
| 747 | sp:variable | 797 | sp:variable |
| 748 | - [ sp:varName "tufLabel"^^xsd:string | 798 | + [ sp:varName "companyLabel"^^xsd:string |
| 749 | ] | 799 | ] |
| 750 | ]) | 800 | ]) |
| 751 | ] ; | 801 | ] ; |
| 752 | spin:rule | 802 | spin:rule |
| 753 | [ rdf:type sp:Construct ; | 803 | [ rdf:type sp:Construct ; |
| 754 | - rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | 804 | + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" |
| 755 | Nothing is done with the namingSystem!"""^^xsd:string ; | 805 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 756 | sp:templates ([ sp:object spin:_this ; | 806 | sp:templates ([ sp:object spin:_this ; |
| 757 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 807 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 758 | sp:subject | 808 | sp:subject |
| 759 | - [ sp:varName "facility"^^xsd:string | 809 | + [ sp:varName "well"^^xsd:string |
| 760 | ] | 810 | ] |
| 811 | + ] [ sp:object | ||
| 812 | + [ sp:varName "wellLabel"^^xsd:string | ||
| 813 | + ] ; | ||
| 814 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 815 | + sp:subject spin:_this | ||
| 761 | ]) ; | 816 | ]) ; |
| 762 | - sp:where ([ rdf:type sp:Optional ; | 817 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; |
| 763 | - sp:elements ([ sp:object | 818 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 764 | - [ sp:varName "facilityKind"^^xsd:string | 819 | + sp:subject spin:_this |
| 765 | - ] ; | ||
| 766 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 767 | - sp:subject spin:_this | ||
| 768 | - ]) | ||
| 769 | ] [ sp:object | 820 | ] [ sp:object |
| 770 | - [ sp:varName "facilityName"^^xsd:string | 821 | + [ sp:varName "wellName"^^xsd:string |
| 771 | ] ; | 822 | ] ; |
| 772 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 823 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 773 | sp:subject spin:_this | 824 | sp:subject spin:_this |
| 774 | - ] [ rdf:type sp:NotExists ; | 825 | + ] [ rdf:type sp:NamedGraph ; |
| 775 | - sp:elements ([ sp:object spin:_this ; | 826 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; |
| 776 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 827 | + sp:predicate rdf:type ; |
| 777 | sp:subject | 828 | sp:subject |
| 778 | - [ sp:varName "something"^^xsd:string | 829 | + [ sp:varName "well"^^xsd:string |
| 779 | ] | 830 | ] |
| 780 | - ]) | 831 | + ] [ sp:object |
| 781 | - ] [ sp:object | 832 | + [ sp:varName "wellName"^^xsd:string |
| 782 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | 833 | + ] ; |
| 834 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 835 | + sp:subject | ||
| 836 | + [ sp:varName "well"^^xsd:string | ||
| 837 | + ] | ||
| 838 | + ] [ sp:object | ||
| 839 | + [ sp:varName "wellId"^^xsd:string | ||
| 840 | + ] ; | ||
| 841 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 842 | + sp:subject | ||
| 843 | + [ sp:varName "well"^^xsd:string | ||
| 844 | + ] | ||
| 845 | + ]) ; | ||
| 846 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 847 | + ] [ rdf:type sp:Bind ; | ||
| 848 | + sp:expression | ||
| 849 | + [ rdf:type fn:concat ; | ||
| 850 | + sp:arg1 "well-" ; | ||
| 851 | + sp:arg2 [ sp:varName "wellId"^^xsd:string | ||
| 852 | + ] | ||
| 783 | ] ; | 853 | ] ; |
| 784 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 854 | + sp:variable |
| 785 | - sp:subject | 855 | + [ sp:varName "wellLabel"^^xsd:string |
| 786 | - [ sp:varName "facility"^^xsd:string | ||
| 787 | ] | 856 | ] |
| 788 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | 857 | + ]) |
| 789 | - sp:predicate rdf:type ; | 858 | + ] ; |
| 859 | + spin:rule | ||
| 860 | + [ rdf:type sp:Construct ; | ||
| 861 | + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | ||
| 862 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 863 | + sp:templates ([ sp:object spin:_this ; | ||
| 864 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 790 | sp:subject | 865 | sp:subject |
| 791 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | 866 | + [ sp:varName "platform"^^xsd:string |
| 792 | ] | 867 | ] |
| 793 | ] [ sp:object | 868 | ] [ sp:object |
| 794 | - [ sp:varName "productionFacilityType"^^xsd:string | 869 | + [ sp:varName "platformLabel"^^xsd:string |
| 795 | ] ; | 870 | ] ; |
| 796 | - sp:predicate rdf:type ; | 871 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 797 | - sp:subject | 872 | + sp:subject spin:_this |
| 798 | - [ sp:varName "facility"^^xsd:string | 873 | + ]) ; |
| 799 | - ] | 874 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 875 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 876 | + sp:subject spin:_this | ||
| 877 | + ] [ sp:object | ||
| 878 | + [ sp:varName "platformName"^^xsd:string | ||
| 879 | + ] ; | ||
| 880 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 881 | + sp:subject spin:_this | ||
| 882 | + ] [ rdf:type sp:NamedGraph ; | ||
| 883 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | ||
| 884 | + sp:predicate rdf:type ; | ||
| 885 | + sp:subject | ||
| 886 | + [ sp:varName "platform"^^xsd:string | ||
| 887 | + ] | ||
| 888 | + ] [ sp:object | ||
| 889 | + [ sp:varName "platformName"^^xsd:string | ||
| 890 | + ] ; | ||
| 891 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 892 | + sp:subject | ||
| 893 | + [ sp:varName "platform"^^xsd:string | ||
| 894 | + ] | ||
| 895 | + ] [ sp:object | ||
| 896 | + [ sp:varName "platformId"^^xsd:string | ||
| 897 | + ] ; | ||
| 898 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 899 | + sp:subject | ||
| 900 | + [ sp:varName "platform"^^xsd:string | ||
| 901 | + ] | ||
| 902 | + ]) ; | ||
| 903 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 800 | ] [ rdf:type sp:Bind ; | 904 | ] [ rdf:type sp:Bind ; |
| 801 | sp:expression | 905 | sp:expression |
| 802 | - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | 906 | + [ rdf:type fn:concat ; |
| 803 | - sp:arg1 [ sp:varName "facilityKind"^^xsd:string | 907 | + sp:arg1 "platform-" ; |
| 908 | + sp:arg2 [ sp:varName "platformId"^^xsd:string | ||
| 804 | ] | 909 | ] |
| 805 | ] ; | 910 | ] ; |
| 806 | sp:variable | 911 | sp:variable |
| 807 | - [ sp:varName "productionFacilityType"^^xsd:string | 912 | + [ sp:varName "platformLabel"^^xsd:string |
| 808 | ] | 913 | ] |
| 809 | ]) | 914 | ]) |
| 810 | ] . | 915 | ] . |
| 811 | 916 | ||
| 812 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> | 917 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> |
| 813 | rdf:type owl:Ontology ; | 918 | rdf:type owl:Ontology ; |
| 814 | - 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> ; | 919 | + 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> ; |
| 815 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 920 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment