Showing
4 changed files
with
753 additions
and
394 deletions
| ... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | ||
| 20 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> | 20 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> |
| 21 | rdf:type owl:Ontology ; | 21 | rdf:type owl:Ontology ; |
| 22 | - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; | 22 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; |
| 23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 24 | 24 | ||
| 25 | ep-dpr-spin-lib:Function | 25 | ep-dpr-spin-lib:Function |
| ... | @@ -326,25 +326,17 @@ ep-dpr-spin-lib:buildInstallationReportingFacilityName | ... | @@ -326,25 +326,17 @@ ep-dpr-spin-lib:buildInstallationReportingFacilityName |
| 326 | sp:arg1 spin:_arg1 ; | 326 | sp:arg1 spin:_arg1 ; |
| 327 | sp:arg2 spin:_arg2 | 327 | sp:arg2 spin:_arg2 |
| 328 | ] ; | 328 | ] ; |
| 329 | - sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; | 329 | + sp:arg2 spin:_arg1 ; |
| 330 | - sp:arg1 spin:_arg1 | ||
| 331 | - ] ; | ||
| 332 | sp:arg3 [ rdf:type sp:if ; | 330 | sp:arg3 [ rdf:type sp:if ; |
| 333 | sp:arg1 [ rdf:type sp:eq ; | 331 | sp:arg1 [ rdf:type sp:eq ; |
| 334 | sp:arg1 spin:_arg2 ; | 332 | sp:arg1 spin:_arg2 ; |
| 335 | sp:arg2 "" | 333 | sp:arg2 "" |
| 336 | ] ; | 334 | ] ; |
| 337 | - sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; | 335 | + sp:arg2 spin:_arg1 ; |
| 338 | - sp:arg1 spin:_arg1 | ||
| 339 | - ] ; | ||
| 340 | sp:arg3 [ rdf:type fn:concat ; | 336 | sp:arg3 [ rdf:type fn:concat ; |
| 341 | - sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | 337 | + sp:arg1 spin:_arg1 ; |
| 342 | - sp:arg1 spin:_arg1 | ||
| 343 | - ] ; | ||
| 344 | sp:arg2 "$" ; | 338 | sp:arg2 "$" ; |
| 345 | - sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | 339 | + sp:arg3 spin:_arg2 |
| 346 | - sp:arg1 spin:_arg2 | ||
| 347 | - ] | ||
| 348 | ] | 340 | ] |
| 349 | ] | 341 | ] |
| 350 | ] ; | 342 | ] ; |
| ... | @@ -584,9 +576,7 @@ ep-dpr-spin-lib:buildProductInventoryURI | ... | @@ -584,9 +576,7 @@ ep-dpr-spin-lib:buildProductInventoryURI |
| 584 | sp:arg2 [ rdf:type fn:concat ; | 576 | sp:arg2 [ rdf:type fn:concat ; |
| 585 | sp:arg1 spin:_arg1 ; | 577 | sp:arg1 spin:_arg1 ; |
| 586 | sp:arg2 "$" ; | 578 | sp:arg2 "$" ; |
| 587 | - sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | 579 | + sp:arg3 spin:_arg2 |
| 588 | - sp:arg1 spin:_arg2 | ||
| 589 | - ] | ||
| 590 | ] | 580 | ] |
| 591 | ] ; | 581 | ] ; |
| 592 | sp:variable | 582 | sp:variable |
| ... | @@ -701,9 +691,7 @@ ep-dpr-spin-lib:buildProductionFlowURI | ... | @@ -701,9 +691,7 @@ ep-dpr-spin-lib:buildProductionFlowURI |
| 701 | sp:arg2 [ rdf:type fn:concat ; | 691 | sp:arg2 [ rdf:type fn:concat ; |
| 702 | sp:arg1 spin:_arg1 ; | 692 | sp:arg1 spin:_arg1 ; |
| 703 | sp:arg2 "$" ; | 693 | sp:arg2 "$" ; |
| 704 | - sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | 694 | + sp:arg3 spin:_arg2 |
| 705 | - sp:arg1 spin:_arg2 | ||
| 706 | - ] | ||
| 707 | ] | 695 | ] |
| 708 | ] ; | 696 | ] ; |
| 709 | sp:arg3 [ rdf:type ep-spin-lib:buildURI ; | 697 | sp:arg3 [ rdf:type ep-spin-lib:buildURI ; |
| ... | @@ -711,13 +699,9 @@ ep-dpr-spin-lib:buildProductionFlowURI | ... | @@ -711,13 +699,9 @@ ep-dpr-spin-lib:buildProductionFlowURI |
| 711 | sp:arg2 [ rdf:type fn:concat ; | 699 | sp:arg2 [ rdf:type fn:concat ; |
| 712 | sp:arg1 spin:_arg1 ; | 700 | sp:arg1 spin:_arg1 ; |
| 713 | sp:arg2 "$" ; | 701 | sp:arg2 "$" ; |
| 714 | - sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | 702 | + sp:arg3 spin:_arg2 ; |
| 715 | - sp:arg1 spin:_arg2 | ||
| 716 | - ] ; | ||
| 717 | sp:arg4 "$" ; | 703 | sp:arg4 "$" ; |
| 718 | - sp:arg5 [ rdf:type ep-spin-lib:normalizeString ; | 704 | + sp:arg5 spin:_arg3 |
| 719 | - sp:arg1 spin:_arg3 | ||
| 720 | - ] | ||
| 721 | ] | 705 | ] |
| 722 | ] | 706 | ] |
| 723 | ] ; | 707 | ] ; |
| ... | @@ -825,9 +809,7 @@ ep-dpr-spin-lib:buildProductionInventoryURI | ... | @@ -825,9 +809,7 @@ ep-dpr-spin-lib:buildProductionInventoryURI |
| 825 | sp:arg2 [ rdf:type fn:concat ; | 809 | sp:arg2 [ rdf:type fn:concat ; |
| 826 | sp:arg1 spin:_arg1 ; | 810 | sp:arg1 spin:_arg1 ; |
| 827 | sp:arg2 "$" ; | 811 | sp:arg2 "$" ; |
| 828 | - sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | 812 | + sp:arg3 spin:_arg2 |
| 829 | - sp:arg1 spin:_arg2 | ||
| 830 | - ] | ||
| 831 | ] | 813 | ] |
| 832 | ] | 814 | ] |
| 833 | ] ; | 815 | ] ; |
| ... | @@ -1010,9 +992,7 @@ ep-dpr-spin-lib:buildTerminalURI | ... | @@ -1010,9 +992,7 @@ ep-dpr-spin-lib:buildTerminalURI |
| 1010 | sp:expression | 992 | sp:expression |
| 1011 | [ rdf:type ep-spin-lib:buildURI ; | 993 | [ rdf:type ep-spin-lib:buildURI ; |
| 1012 | sp:arg1 "https://www.reportinghub.no/ep/data/terminal/" ; | 994 | sp:arg1 "https://www.reportinghub.no/ep/data/terminal/" ; |
| 1013 | - sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; | 995 | + sp:arg2 spin:_arg1 |
| 1014 | - sp:arg1 spin:_arg1 | ||
| 1015 | - ] | ||
| 1016 | ] ; | 996 | ] ; |
| 1017 | sp:variable | 997 | sp:variable |
| 1018 | [ sp:varName "uri"^^xsd:string | 998 | [ sp:varName "uri"^^xsd:string |
| ... | @@ -5944,6 +5924,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5944,6 +5924,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5944 | rdfs:subClassOf ep-dpr-spin-lib:Function ; | 5924 | rdfs:subClassOf ep-dpr-spin-lib:Function ; |
| 5945 | spin:body | 5925 | spin:body |
| 5946 | [ rdf:type sp:Select ; | 5926 | [ rdf:type sp:Select ; |
| 5927 | + sp:resultVariables (_:b21) ; | ||
| 5928 | + sp:where ([ rdf:type sp:Bind ; | ||
| 5929 | + sp:expression | ||
| 5930 | + [ rdf:type sp:if ; | ||
| 5931 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 5932 | + sp:arg1 spin:_arg1 ; | ||
| 5933 | + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 5934 | + ] ; | ||
| 5935 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 5936 | + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 5937 | + ] ; | ||
| 5938 | + sp:variable _:b21 | ||
| 5939 | + ]) | ||
| 5940 | + ] ; | ||
| 5941 | + spin:body | ||
| 5942 | + [ rdf:type sp:Select ; | ||
| 5947 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string | 5943 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string |
| 5948 | ]) ; | 5944 | ]) ; |
| 5949 | sp:where ([ rdf:type sp:Bind ; | 5945 | sp:where ([ rdf:type sp:Bind ; |
| ... | @@ -6023,22 +6019,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -6023,22 +6019,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 6023 | [ sp:varName "myVar"^^xsd:string | 6019 | [ sp:varName "myVar"^^xsd:string |
| 6024 | ] | 6020 | ] |
| 6025 | ]) | 6021 | ]) |
| 6026 | - ] ; | ||
| 6027 | - spin:body | ||
| 6028 | - [ rdf:type sp:Select ; | ||
| 6029 | - sp:resultVariables (_:b21) ; | ||
| 6030 | - sp:where ([ rdf:type sp:Bind ; | ||
| 6031 | - sp:expression | ||
| 6032 | - [ rdf:type sp:if ; | ||
| 6033 | - sp:arg1 [ rdf:type sp:eq ; | ||
| 6034 | - sp:arg1 spin:_arg1 ; | ||
| 6035 | - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 6036 | - ] ; | ||
| 6037 | - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 6038 | - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 6039 | - ] ; | ||
| 6040 | - sp:variable _:b21 | ||
| 6041 | - ]) | ||
| 6042 | ] . | 6022 | ] . |
| 6043 | 6023 | ||
| 6044 | ep-dpr-spin-lib:selectTemperatureScale | 6024 | ep-dpr-spin-lib:selectTemperatureScale |
| ... | @@ -7573,59 +7553,59 @@ ep-dpr-spin-lib:selectWorkScale | ... | @@ -7573,59 +7553,59 @@ ep-dpr-spin-lib:selectWorkScale |
| 7573 | ]) | 7553 | ]) |
| 7574 | ] . | 7554 | ] . |
| 7575 | 7555 | ||
| 7576 | -_:b22 | 7556 | +_:b10 |
| 7577 | - sp:varName "volumeFlowRateAtStdType"^^xsd:string . | 7557 | + sp:varName "uri"^^xsd:string . |
| 7578 | 7558 | ||
| 7579 | -_:b21 | 7559 | +_:b11 |
| 7580 | - sp:varName "specificVolumeScale"^^xsd:string . | 7560 | + sp:varName "uri"^^xsd:string . |
| 7581 | 7561 | ||
| 7582 | -_:b20 | 7562 | +_:b12 |
| 7583 | - sp:varName "safetyActivityType"^^xsd:string . | 7563 | + sp:varName "uri"^^xsd:string . |
| 7584 | 7564 | ||
| 7585 | -_:b19 | 7565 | +_:b13 |
| 7586 | - sp:varName "productionFlowPurposeType"^^xsd:string . | 7566 | + sp:varName "uri"^^xsd:string . |
| 7587 | 7567 | ||
| 7588 | -_:b18 | 7568 | +_:b14 |
| 7589 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | 7569 | + sp:varName "densityScale"^^xsd:string . |
| 7590 | 7570 | ||
| 7591 | -_:b17 | 7571 | +_:b15 |
| 7592 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | 7572 | + sp:varName "productionFacilityType"^^xsd:string . |
| 7593 | 7573 | ||
| 7594 | _:b16 | 7574 | _:b16 |
| 7595 | sp:varName "productionFlowDefinitionType"^^xsd:string . | 7575 | sp:varName "productionFlowDefinitionType"^^xsd:string . |
| 7596 | 7576 | ||
| 7597 | -_:b15 | 7577 | +_:b17 |
| 7598 | - sp:varName "productionFacilityType"^^xsd:string . | 7578 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . |
| 7599 | 7579 | ||
| 7600 | -_:b14 | 7580 | +_:b18 |
| 7601 | - sp:varName "densityScale"^^xsd:string . | 7581 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . |
| 7602 | 7582 | ||
| 7603 | -_:b13 | 7583 | +_:b19 |
| 7604 | - sp:varName "uri"^^xsd:string . | 7584 | + sp:varName "productionFlowPurposeType"^^xsd:string . |
| 7605 | 7585 | ||
| 7606 | -_:b12 | 7586 | +_:b20 |
| 7607 | - sp:varName "uri"^^xsd:string . | 7587 | + sp:varName "safetyActivityType"^^xsd:string . |
| 7608 | 7588 | ||
| 7609 | -_:b11 | 7589 | +_:b21 |
| 7610 | - sp:varName "uri"^^xsd:string . | 7590 | + sp:varName "specificVolumeScale"^^xsd:string . |
| 7611 | 7591 | ||
| 7612 | -_:b10 | 7592 | +_:b22 |
| 7613 | - sp:varName "uri"^^xsd:string . | 7593 | + sp:varName "volumeFlowRateAtStdType"^^xsd:string . |
| 7614 | 7594 | ||
| 7615 | -_:b9 sp:varName "uri"^^xsd:string . | 7595 | +_:b1 sp:varName "uri"^^xsd:string . |
| 7616 | 7596 | ||
| 7617 | -_:b8 sp:varName "uri"^^xsd:string . | 7597 | +_:b2 sp:varName "UUID"^^xsd:string . |
| 7618 | 7598 | ||
| 7619 | -_:b7 sp:varName "uri"^^xsd:string . | 7599 | +_:b3 sp:varName "uri"^^xsd:string . |
| 7620 | 7600 | ||
| 7621 | -_:b6 sp:varName "uri"^^xsd:string . | 7601 | +_:b4 sp:varName "uri"^^xsd:string . |
| 7622 | 7602 | ||
| 7623 | _:b5 sp:varName "uri"^^xsd:string . | 7603 | _:b5 sp:varName "uri"^^xsd:string . |
| 7624 | 7604 | ||
| 7625 | -_:b4 sp:varName "uri"^^xsd:string . | 7605 | +_:b6 sp:varName "uri"^^xsd:string . |
| 7626 | 7606 | ||
| 7627 | -_:b3 sp:varName "uri"^^xsd:string . | 7607 | +_:b7 sp:varName "uri"^^xsd:string . |
| 7628 | 7608 | ||
| 7629 | -_:b2 sp:varName "UUID"^^xsd:string . | 7609 | +_:b8 sp:varName "uri"^^xsd:string . |
| 7630 | 7610 | ||
| 7631 | -_:b1 sp:varName "uri"^^xsd:string . | 7611 | +_:b9 sp:varName "uri"^^xsd:string . | ... | ... |
| ... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
| 8 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . | 8 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . |
| 9 | @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | 9 | @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . |
| 10 | @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | 10 | @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . |
| 11 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
| 11 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 12 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
| 12 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 13 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| ... | @@ -20,348 +21,306 @@ | ... | @@ -20,348 +21,306 @@ |
| 20 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 21 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
| 21 | spin:rule | 22 | spin:rule |
| 22 | [ rdf:type sp:Construct ; | 23 | [ 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 | 24 | + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility |
| 24 | -Naming system supplied | ||
| 25 | -now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(?namingSystem, ?facilityName) AS ?facility) ."""^^xsd:string ; | ||
| 26 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 27 | - sp:predicate rdf:type ; | ||
| 28 | - sp:subject _:b1 | ||
| 29 | - ] [ sp:object | ||
| 30 | - [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 31 | - ] ; | ||
| 32 | - sp:predicate rdf:type ; | ||
| 33 | - sp:subject _:b1 | ||
| 34 | - ] [ sp:object | ||
| 35 | - [ sp:varName "facilityName"^^xsd:string | ||
| 36 | - ] ; | ||
| 37 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 38 | - sp:subject _:b1 | ||
| 39 | - ] [ sp:object spin:_this ; | ||
| 40 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 41 | - sp:subject _:b1 | ||
| 42 | - ] [ sp:object | ||
| 43 | - [ sp:varName "facilityName"^^xsd:string | ||
| 44 | - ] ; | ||
| 45 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 46 | - sp:subject spin:_this | ||
| 47 | - ]) ; | ||
| 48 | - sp:where ([ rdf:type sp:Optional ; | ||
| 49 | - sp:elements ([ sp:object | ||
| 50 | - [ sp:varName "facilityKind"^^xsd:string | ||
| 51 | - ] ; | ||
| 52 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 53 | - sp:subject spin:_this | ||
| 54 | - ]) | ||
| 55 | - ] [ sp:object | ||
| 56 | - [ sp:varName "facilityName"^^xsd:string | ||
| 57 | - ] ; | ||
| 58 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 59 | - sp:subject spin:_this | ||
| 60 | - ] [ sp:object | ||
| 61 | - [ sp:varName "namingSystem"^^xsd:string | ||
| 62 | - ] ; | ||
| 63 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 64 | - sp:subject spin:_this | ||
| 65 | - ] [ rdf:type sp:NotExists ; | ||
| 66 | - sp:elements ([ sp:object spin:_this ; | ||
| 67 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 68 | - sp:subject | ||
| 69 | - [ sp:varName "something"^^xsd:string | ||
| 70 | - ] | ||
| 71 | - ]) | ||
| 72 | - ] [ rdf:type sp:Bind ; | ||
| 73 | - sp:expression | ||
| 74 | - [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; | ||
| 75 | - sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 76 | - ] | ||
| 77 | - ] ; | ||
| 78 | - sp:variable | ||
| 79 | - [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 80 | - ] | ||
| 81 | - ]) | ||
| 82 | - ] ; | ||
| 83 | - spin:rule | ||
| 84 | - [ rdf:type sp:Construct ; | ||
| 85 | - rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. | ||
| 86 | Nothing is done with the namingSystem!"""^^xsd:string ; | 25 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 87 | sp:templates ([ sp:object spin:_this ; | 26 | sp:templates ([ sp:object spin:_this ; |
| 88 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 27 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 89 | sp:subject | 28 | sp:subject |
| 90 | - [ sp:varName "field"^^xsd:string | 29 | + [ sp:varName "platform"^^xsd:string |
| 91 | ] | 30 | ] |
| 92 | ] [ sp:object | 31 | ] [ sp:object |
| 93 | - [ sp:varName "fieldLabel"^^xsd:string | 32 | + [ sp:varName "platformLabel"^^xsd:string |
| 94 | ] ; | 33 | ] ; |
| 95 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 34 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 96 | sp:subject spin:_this | 35 | sp:subject spin:_this |
| 97 | ]) ; | 36 | ]) ; |
| 98 | - sp:where ([ rdf:type sp:Union ; | 37 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
| 99 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 38 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 100 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 39 | + sp:subject spin:_this |
| 101 | - sp:subject spin:_this | ||
| 102 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ; | ||
| 103 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 104 | - sp:subject spin:_this | ||
| 105 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ; | ||
| 106 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 107 | - sp:subject spin:_this | ||
| 108 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ; | ||
| 109 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 110 | - sp:subject spin:_this | ||
| 111 | - ])) | ||
| 112 | ] [ sp:object | 40 | ] [ sp:object |
| 113 | - [ sp:varName "fieldName"^^xsd:string | 41 | + [ sp:varName "platformName"^^xsd:string |
| 114 | ] ; | 42 | ] ; |
| 115 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 43 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 116 | sp:subject spin:_this | 44 | sp:subject spin:_this |
| 117 | ] [ rdf:type sp:NamedGraph ; | 45 | ] [ rdf:type sp:NamedGraph ; |
| 118 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | 46 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; |
| 119 | sp:predicate rdf:type ; | 47 | sp:predicate rdf:type ; |
| 120 | sp:subject | 48 | sp:subject |
| 121 | - [ sp:varName "field"^^xsd:string | 49 | + [ sp:varName "platform"^^xsd:string |
| 122 | ] | 50 | ] |
| 123 | ] [ sp:object | 51 | ] [ sp:object |
| 124 | - [ sp:varName "fieldName"^^xsd:string | 52 | + [ sp:varName "platformName"^^xsd:string |
| 125 | ] ; | 53 | ] ; |
| 126 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 54 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 127 | sp:subject | 55 | sp:subject |
| 128 | - [ sp:varName "field"^^xsd:string | 56 | + [ sp:varName "platform"^^xsd:string |
| 129 | ] | 57 | ] |
| 130 | ] [ sp:object | 58 | ] [ sp:object |
| 131 | - [ sp:varName "fieldId"^^xsd:string | 59 | + [ sp:varName "platformId"^^xsd:string |
| 132 | ] ; | 60 | ] ; |
| 133 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 61 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 134 | sp:subject | 62 | sp:subject |
| 135 | - [ sp:varName "field"^^xsd:string | 63 | + [ sp:varName "platform"^^xsd:string |
| 136 | ] | 64 | ] |
| 137 | ]) ; | 65 | ]) ; |
| 138 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 66 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 139 | ] [ rdf:type sp:Bind ; | 67 | ] [ rdf:type sp:Bind ; |
| 140 | sp:expression | 68 | sp:expression |
| 141 | [ rdf:type fn:concat ; | 69 | [ rdf:type fn:concat ; |
| 142 | - sp:arg1 "field-" ; | 70 | + sp:arg1 "platform-" ; |
| 143 | - sp:arg2 [ sp:varName "fieldId"^^xsd:string | 71 | + sp:arg2 [ sp:varName "platformId"^^xsd:string |
| 144 | ] | 72 | ] |
| 145 | ] ; | 73 | ] ; |
| 146 | sp:variable | 74 | sp:variable |
| 147 | - [ sp:varName "fieldLabel"^^xsd:string | 75 | + [ sp:varName "platformLabel"^^xsd:string |
| 148 | ] | 76 | ] |
| 149 | ]) | 77 | ]) |
| 150 | ] ; | 78 | ] ; |
| 151 | spin:rule | 79 | spin:rule |
| 152 | [ rdf:type sp:Construct ; | 80 | [ rdf:type sp:Construct ; |
| 153 | - rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | 81 | + rdfs:comment """STEP 00012a Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal |
| 154 | -Nothing is done with the namingSystem!"""^^xsd:string ; | 82 | +Naming system not supplied"""^^xsd:string ; |
| 155 | - sp:templates ([ sp:object spin:_this ; | 83 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 84 | + sp:predicate rdf:type ; | ||
| 85 | + sp:subject | ||
| 86 | + [ sp:varName "terminal"^^xsd:string | ||
| 87 | + ] | ||
| 88 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | ||
| 89 | + sp:predicate rdf:type ; | ||
| 90 | + sp:subject | ||
| 91 | + [ sp:varName "terminal"^^xsd:string | ||
| 92 | + ] | ||
| 93 | + ] [ sp:object | ||
| 94 | + [ sp:varName "facilityName"^^xsd:string | ||
| 95 | + ] ; | ||
| 96 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 97 | + sp:subject | ||
| 98 | + [ sp:varName "terminal"^^xsd:string | ||
| 99 | + ] | ||
| 100 | + ] [ sp:object spin:_this ; | ||
| 156 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 101 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 157 | sp:subject | 102 | sp:subject |
| 158 | - [ sp:varName "facility"^^xsd:string | 103 | + [ sp:varName "terminal"^^xsd:string |
| 159 | ] | 104 | ] |
| 105 | + ] [ sp:object | ||
| 106 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 107 | + ] ; | ||
| 108 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 109 | + sp:subject spin:_this | ||
| 160 | ]) ; | 110 | ]) ; |
| 161 | - sp:where ([ rdf:type sp:Optional ; | 111 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 162 | - sp:elements ([ sp:object | 112 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 163 | - [ sp:varName "facilityKind"^^xsd:string | 113 | + sp:subject spin:_this |
| 164 | - ] ; | ||
| 165 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 166 | - sp:subject spin:_this | ||
| 167 | - ]) | ||
| 168 | ] [ sp:object | 114 | ] [ sp:object |
| 169 | [ sp:varName "facilityName"^^xsd:string | 115 | [ sp:varName "facilityName"^^xsd:string |
| 170 | ] ; | 116 | ] ; |
| 171 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 117 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 172 | sp:subject spin:_this | 118 | sp:subject spin:_this |
| 173 | ] [ rdf:type sp:NotExists ; | 119 | ] [ rdf:type sp:NotExists ; |
| 120 | + sp:elements ([ sp:object | ||
| 121 | + [ sp:varName "namingSystem"^^xsd:string | ||
| 122 | + ] ; | ||
| 123 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 124 | + sp:subject spin:_this | ||
| 125 | + ]) | ||
| 126 | + ] [ rdf:type sp:NotExists ; | ||
| 174 | sp:elements ([ sp:object spin:_this ; | 127 | sp:elements ([ sp:object spin:_this ; |
| 175 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 128 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 176 | sp:subject | 129 | sp:subject |
| 177 | [ sp:varName "something"^^xsd:string | 130 | [ sp:varName "something"^^xsd:string |
| 178 | ] | 131 | ] |
| 179 | ]) | 132 | ]) |
| 180 | - ] [ sp:object | 133 | + ] [ rdf:type sp:Bind ; |
| 181 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | 134 | + sp:expression |
| 135 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 136 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 137 | + ] | ||
| 182 | ] ; | 138 | ] ; |
| 183 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 139 | + sp:variable |
| 184 | - sp:subject | 140 | + [ sp:varName "normalizedfacilityName"^^xsd:string |
| 185 | - [ sp:varName "facility"^^xsd:string | ||
| 186 | - ] | ||
| 187 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 188 | - sp:predicate rdf:type ; | ||
| 189 | - sp:subject | ||
| 190 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 191 | ] | 141 | ] |
| 192 | ] [ rdf:type sp:Bind ; | 142 | ] [ rdf:type sp:Bind ; |
| 193 | sp:expression | 143 | sp:expression |
| 194 | - [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; | 144 | + [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; |
| 195 | - sp:arg1 [ sp:varName "facilityKind"^^xsd:string | 145 | + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string |
| 196 | ] | 146 | ] |
| 197 | ] ; | 147 | ] ; |
| 198 | sp:variable | 148 | sp:variable |
| 199 | - [ sp:varName "reportingFacilityType"^^xsd:string | 149 | + [ sp:varName "terminal"^^xsd:string |
| 200 | ] | 150 | ] |
| 201 | - ] [ sp:object | 151 | + ] [ rdf:type sp:Bind ; |
| 202 | - [ sp:varName "reportingFacilityType"^^xsd:string | 152 | + sp:expression |
| 153 | + [ rdf:type fn:concat ; | ||
| 154 | + sp:arg1 "terminal-" ; | ||
| 155 | + sp:arg2 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 156 | + ] | ||
| 203 | ] ; | 157 | ] ; |
| 204 | - sp:predicate rdf:type ; | 158 | + sp:variable |
| 205 | - sp:subject | 159 | + [ sp:varName "facilityLabel"^^xsd:string |
| 206 | - [ sp:varName "facility"^^xsd:string | ||
| 207 | ] | 160 | ] |
| 208 | ]) | 161 | ]) |
| 209 | ] ; | 162 | ] ; |
| 210 | spin:rule | 163 | spin:rule |
| 211 | [ rdf:type sp:Construct ; | 164 | [ rdf:type sp:Construct ; |
| 212 | - rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" | 165 | + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility |
| 213 | Nothing is done with the namingSystem!"""^^xsd:string ; | 166 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 214 | sp:templates ([ sp:object spin:_this ; | 167 | sp:templates ([ sp:object spin:_this ; |
| 215 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 168 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 216 | sp:subject | 169 | sp:subject |
| 217 | - [ sp:varName "licence"^^xsd:string | 170 | + [ sp:varName "terminal"^^xsd:string |
| 218 | ] | 171 | ] |
| 219 | ] [ sp:object | 172 | ] [ sp:object |
| 220 | - [ sp:varName "licenceLabel"^^xsd:string | 173 | + [ sp:varName "terminalLabel"^^xsd:string |
| 221 | ] ; | 174 | ] ; |
| 222 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 175 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 223 | sp:subject spin:_this | 176 | sp:subject spin:_this |
| 224 | ]) ; | 177 | ]) ; |
| 225 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; | 178 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 226 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 179 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 227 | sp:subject spin:_this | 180 | sp:subject spin:_this |
| 228 | ] [ sp:object | 181 | ] [ sp:object |
| 229 | - [ sp:varName "licenceName"^^xsd:string | 182 | + [ sp:varName "terminalName"^^xsd:string |
| 230 | ] ; | 183 | ] ; |
| 231 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 184 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 232 | sp:subject spin:_this | 185 | sp:subject spin:_this |
| 233 | ] [ rdf:type sp:NamedGraph ; | 186 | ] [ rdf:type sp:NamedGraph ; |
| 234 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; | 187 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; |
| 235 | sp:predicate rdf:type ; | 188 | sp:predicate rdf:type ; |
| 236 | sp:subject | 189 | sp:subject |
| 237 | - [ sp:varName "licence"^^xsd:string | 190 | + [ sp:varName "terminal"^^xsd:string |
| 238 | ] | 191 | ] |
| 239 | ] [ sp:object | 192 | ] [ sp:object |
| 240 | - [ sp:varName "licenceName"^^xsd:string | 193 | + [ sp:varName "terminalName"^^xsd:string |
| 241 | ] ; | 194 | ] ; |
| 242 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 195 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 243 | sp:subject | 196 | sp:subject |
| 244 | - [ sp:varName "licence"^^xsd:string | 197 | + [ sp:varName "terminal"^^xsd:string |
| 245 | ] | 198 | ] |
| 246 | ] [ sp:object | 199 | ] [ sp:object |
| 247 | - [ sp:varName "licenceId"^^xsd:string | 200 | + [ sp:varName "terminalId"^^xsd:string |
| 248 | ] ; | 201 | ] ; |
| 249 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 202 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 250 | sp:subject | 203 | sp:subject |
| 251 | - [ sp:varName "livence"^^xsd:string | 204 | + [ sp:varName "terminal"^^xsd:string |
| 252 | ] | 205 | ] |
| 253 | ]) ; | 206 | ]) ; |
| 254 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 207 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 255 | ] [ rdf:type sp:Bind ; | 208 | ] [ rdf:type sp:Bind ; |
| 256 | sp:expression | 209 | sp:expression |
| 257 | [ rdf:type fn:concat ; | 210 | [ rdf:type fn:concat ; |
| 258 | - sp:arg1 "licence-" ; | 211 | + sp:arg1 "terminal-" ; |
| 259 | - sp:arg2 [ sp:varName "licenceId"^^xsd:string | 212 | + sp:arg2 [ sp:varName "terminalId"^^xsd:string |
| 260 | ] | 213 | ] |
| 261 | ] ; | 214 | ] ; |
| 262 | sp:variable | 215 | sp:variable |
| 263 | - [ sp:varName "licenceLabel"^^xsd:string | 216 | + [ sp:varName "terminalLabel"^^xsd:string |
| 264 | ] | 217 | ] |
| 265 | ]) | 218 | ]) |
| 266 | ] ; | 219 | ] ; |
| 267 | spin:rule | 220 | spin:rule |
| 268 | [ rdf:type sp:Construct ; | 221 | [ rdf:type sp:Construct ; |
| 269 | - rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" | 222 | + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" |
| 270 | Nothing is done with the namingSystem!"""^^xsd:string ; | 223 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 271 | sp:templates ([ sp:object spin:_this ; | 224 | sp:templates ([ sp:object spin:_this ; |
| 272 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 225 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 273 | sp:subject | 226 | sp:subject |
| 274 | - [ sp:varName "wellBore"^^xsd:string | 227 | + [ sp:varName "well"^^xsd:string |
| 275 | ] | 228 | ] |
| 276 | ] [ sp:object | 229 | ] [ sp:object |
| 277 | - [ sp:varName "wellBoreLabel"^^xsd:string | 230 | + [ sp:varName "wellLabel"^^xsd:string |
| 278 | ] ; | 231 | ] ; |
| 279 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 232 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 280 | sp:subject spin:_this | 233 | sp:subject spin:_this |
| 281 | ]) ; | 234 | ]) ; |
| 282 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 235 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; |
| 283 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 236 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 284 | sp:subject spin:_this | 237 | sp:subject spin:_this |
| 285 | ] [ sp:object | 238 | ] [ sp:object |
| 286 | - [ sp:varName "wellBoreName"^^xsd:string | 239 | + [ sp:varName "wellName"^^xsd:string |
| 287 | ] ; | 240 | ] ; |
| 288 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 241 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 289 | sp:subject spin:_this | 242 | sp:subject spin:_this |
| 290 | ] [ rdf:type sp:NamedGraph ; | 243 | ] [ rdf:type sp:NamedGraph ; |
| 291 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 244 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; |
| 292 | sp:predicate rdf:type ; | 245 | sp:predicate rdf:type ; |
| 293 | sp:subject | 246 | sp:subject |
| 294 | - [ sp:varName "wellBore"^^xsd:string | 247 | + [ sp:varName "well"^^xsd:string |
| 295 | ] | 248 | ] |
| 296 | ] [ sp:object | 249 | ] [ sp:object |
| 297 | - [ sp:varName "wellBoreName"^^xsd:string | 250 | + [ sp:varName "wellName"^^xsd:string |
| 298 | ] ; | 251 | ] ; |
| 299 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 252 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 300 | sp:subject | 253 | sp:subject |
| 301 | - [ sp:varName "wellBore"^^xsd:string | 254 | + [ sp:varName "well"^^xsd:string |
| 302 | ] | 255 | ] |
| 303 | ] [ sp:object | 256 | ] [ sp:object |
| 304 | - [ sp:varName "wellBoreId"^^xsd:string | 257 | + [ sp:varName "wellId"^^xsd:string |
| 305 | ] ; | 258 | ] ; |
| 306 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 259 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 307 | sp:subject | 260 | sp:subject |
| 308 | - [ sp:varName "wellBore"^^xsd:string | 261 | + [ sp:varName "well"^^xsd:string |
| 309 | ] | 262 | ] |
| 310 | ]) ; | 263 | ]) ; |
| 311 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 264 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 312 | ] [ rdf:type sp:Bind ; | 265 | ] [ rdf:type sp:Bind ; |
| 313 | sp:expression | 266 | sp:expression |
| 314 | [ rdf:type fn:concat ; | 267 | [ rdf:type fn:concat ; |
| 315 | - sp:arg1 "wellbore-" ; | 268 | + sp:arg1 "well-" ; |
| 316 | - sp:arg2 [ sp:varName "wellBoreId"^^xsd:string | 269 | + sp:arg2 [ sp:varName "wellId"^^xsd:string |
| 317 | ] | 270 | ] |
| 318 | ] ; | 271 | ] ; |
| 319 | sp:variable | 272 | sp:variable |
| 320 | - [ sp:varName "wellBoreLabel"^^xsd:string | 273 | + [ sp:varName "wellLabel"^^xsd:string |
| 321 | ] | 274 | ] |
| 322 | ]) | 275 | ]) |
| 323 | ] ; | 276 | ] ; |
| 324 | spin:rule | 277 | spin:rule |
| 325 | [ rdf:type sp:Construct ; | 278 | [ rdf:type sp:Construct ; |
| 326 | - rdfs:comment """STEP 00012 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal | 279 | + rdfs:comment """STEP 00014 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file |
| 327 | -Nothing is done with the namingSystem!"""^^xsd:string ; | 280 | +Naming system not supplied |
| 281 | +now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) AS ?facility) ."""^^xsd:string ; | ||
| 328 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 282 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 329 | sp:predicate rdf:type ; | 283 | sp:predicate rdf:type ; |
| 330 | - sp:subject | 284 | + sp:subject _:b1 |
| 331 | - [ sp:varName "terminal"^^xsd:string | 285 | + ] [ sp:object |
| 332 | - ] | 286 | + [ sp:varName "reportingFacilityType"^^xsd:string |
| 333 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | 287 | + ] ; |
| 334 | sp:predicate rdf:type ; | 288 | sp:predicate rdf:type ; |
| 335 | - sp:subject | 289 | + sp:subject _:b1 |
| 336 | - [ sp:varName "terminal"^^xsd:string | ||
| 337 | - ] | ||
| 338 | ] [ sp:object | 290 | ] [ sp:object |
| 339 | [ sp:varName "facilityName"^^xsd:string | 291 | [ sp:varName "facilityName"^^xsd:string |
| 340 | ] ; | 292 | ] ; |
| 341 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 293 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 342 | - sp:subject | 294 | + sp:subject _:b1 |
| 343 | - [ sp:varName "terminal"^^xsd:string | ||
| 344 | - ] | ||
| 345 | ] [ sp:object spin:_this ; | 295 | ] [ sp:object spin:_this ; |
| 346 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 296 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 347 | - sp:subject | 297 | + sp:subject _:b1 |
| 348 | - [ sp:varName "terminal"^^xsd:string | ||
| 349 | - ] | ||
| 350 | ] [ sp:object | 298 | ] [ sp:object |
| 351 | - [ sp:varName "facilityName"^^xsd:string | 299 | + [ sp:varName "facilityLabel"^^xsd:string |
| 352 | ] ; | 300 | ] ; |
| 353 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 301 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 354 | sp:subject spin:_this | 302 | sp:subject spin:_this |
| 355 | ]) ; | 303 | ]) ; |
| 356 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 304 | + sp:where ([ rdf:type sp:Optional ; |
| 357 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 305 | + sp:elements ([ sp:object |
| 358 | - sp:subject spin:_this | 306 | + [ sp:varName "facilityKind"^^xsd:string |
| 307 | + ] ; | ||
| 308 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 309 | + sp:subject spin:_this | ||
| 310 | + ]) | ||
| 359 | ] [ sp:object | 311 | ] [ sp:object |
| 360 | [ sp:varName "facilityName"^^xsd:string | 312 | [ sp:varName "facilityName"^^xsd:string |
| 361 | ] ; | 313 | ] ; |
| 362 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 314 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 363 | sp:subject spin:_this | 315 | sp:subject spin:_this |
| 364 | ] [ rdf:type sp:NotExists ; | 316 | ] [ rdf:type sp:NotExists ; |
| 317 | + sp:elements ([ sp:object | ||
| 318 | + [ sp:varName "namingSystem"^^xsd:string | ||
| 319 | + ] ; | ||
| 320 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 321 | + sp:subject spin:_this | ||
| 322 | + ]) | ||
| 323 | + ] [ rdf:type sp:NotExists ; | ||
| 365 | sp:elements ([ sp:object spin:_this ; | 324 | sp:elements ([ sp:object spin:_this ; |
| 366 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 325 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 367 | sp:subject | 326 | sp:subject |
| ... | @@ -370,39 +329,161 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -370,39 +329,161 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 370 | ]) | 329 | ]) |
| 371 | ] [ rdf:type sp:Bind ; | 330 | ] [ rdf:type sp:Bind ; |
| 372 | sp:expression | 331 | sp:expression |
| 373 | - [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; | 332 | + [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; |
| 333 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 334 | + ] | ||
| 335 | + ] ; | ||
| 336 | + sp:variable | ||
| 337 | + [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 338 | + ] | ||
| 339 | + ] [ rdf:type sp:Bind ; | ||
| 340 | + sp:expression | ||
| 341 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 374 | sp:arg1 [ sp:varName "facilityName"^^xsd:string | 342 | sp:arg1 [ sp:varName "facilityName"^^xsd:string |
| 375 | ] | 343 | ] |
| 376 | ] ; | 344 | ] ; |
| 377 | sp:variable | 345 | sp:variable |
| 378 | - [ sp:varName "terminal"^^xsd:string | 346 | + [ sp:varName "normalizedfacilityName"^^xsd:string |
| 347 | + ] | ||
| 348 | + ] [ rdf:type sp:Bind ; | ||
| 349 | + sp:expression | ||
| 350 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 351 | + sp:arg1 [ rdf:type spl:object ; | ||
| 352 | + sp:arg1 [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 353 | + ] ; | ||
| 354 | + sp:arg2 rdfs:label | ||
| 355 | + ] | ||
| 356 | + ] ; | ||
| 357 | + sp:variable | ||
| 358 | + [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 359 | + ] | ||
| 360 | + ] [ rdf:type sp:Bind ; | ||
| 361 | + sp:expression | ||
| 362 | + [ rdf:type fn:concat ; | ||
| 363 | + sp:arg1 [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 364 | + ] ; | ||
| 365 | + sp:arg2 "-" ; | ||
| 366 | + sp:arg3 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 367 | + ] | ||
| 368 | + ] ; | ||
| 369 | + sp:variable | ||
| 370 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 379 | ] | 371 | ] |
| 380 | ]) | 372 | ]) |
| 381 | ] ; | 373 | ] ; |
| 382 | spin:rule | 374 | spin:rule |
| 383 | [ rdf:type sp:Construct ; | 375 | [ rdf:type sp:Construct ; |
| 384 | - rdfs:comment """STEP 00014 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file | 376 | + rdfs:comment """STEP 00012 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal |
| 385 | -Naming system not supplied | 377 | +Naming system supplied"""^^xsd:string ; |
| 386 | -now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) AS ?facility) ."""^^xsd:string ; | ||
| 387 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 378 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 388 | sp:predicate rdf:type ; | 379 | sp:predicate rdf:type ; |
| 389 | - sp:subject _:b2 | 380 | + sp:subject |
| 390 | - ] [ sp:object | 381 | + [ sp:varName "terminal"^^xsd:string |
| 391 | - [ sp:varName "reportingFacilityType"^^xsd:string | 382 | + ] |
| 392 | - ] ; | 383 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Terminal> ; |
| 393 | sp:predicate rdf:type ; | 384 | sp:predicate rdf:type ; |
| 394 | - sp:subject _:b2 | 385 | + sp:subject |
| 386 | + [ sp:varName "terminal"^^xsd:string | ||
| 387 | + ] | ||
| 395 | ] [ sp:object | 388 | ] [ sp:object |
| 396 | [ sp:varName "facilityName"^^xsd:string | 389 | [ sp:varName "facilityName"^^xsd:string |
| 397 | ] ; | 390 | ] ; |
| 398 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 391 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 399 | - sp:subject _:b2 | 392 | + sp:subject |
| 393 | + [ sp:varName "terminal"^^xsd:string | ||
| 394 | + ] | ||
| 400 | ] [ sp:object spin:_this ; | 395 | ] [ sp:object spin:_this ; |
| 401 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 396 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 402 | - sp:subject _:b2 | 397 | + sp:subject |
| 398 | + [ sp:varName "terminal"^^xsd:string | ||
| 399 | + ] | ||
| 400 | + ] [ sp:object | ||
| 401 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 402 | + ] ; | ||
| 403 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 404 | + sp:subject spin:_this | ||
| 405 | + ]) ; | ||
| 406 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
| 407 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 408 | + sp:subject spin:_this | ||
| 403 | ] [ sp:object | 409 | ] [ sp:object |
| 404 | [ sp:varName "facilityName"^^xsd:string | 410 | [ sp:varName "facilityName"^^xsd:string |
| 405 | ] ; | 411 | ] ; |
| 412 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 413 | + sp:subject spin:_this | ||
| 414 | + ] [ sp:object | ||
| 415 | + [ sp:varName "namingSystem"^^xsd:string | ||
| 416 | + ] ; | ||
| 417 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 418 | + sp:subject spin:_this | ||
| 419 | + ] [ rdf:type sp:NotExists ; | ||
| 420 | + sp:elements ([ sp:object spin:_this ; | ||
| 421 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 422 | + sp:subject | ||
| 423 | + [ sp:varName "something"^^xsd:string | ||
| 424 | + ] | ||
| 425 | + ]) | ||
| 426 | + ] [ rdf:type sp:Bind ; | ||
| 427 | + sp:expression | ||
| 428 | + [ rdf:type fn:concat ; | ||
| 429 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 430 | + ] ; | ||
| 431 | + sp:arg2 "$" ; | ||
| 432 | + sp:arg3 [ sp:varName "facilityName"^^xsd:string | ||
| 433 | + ] | ||
| 434 | + ] ; | ||
| 435 | + sp:variable | ||
| 436 | + [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 437 | + ] | ||
| 438 | + ] [ rdf:type sp:Bind ; | ||
| 439 | + sp:expression | ||
| 440 | + [ rdf:type fn:concat ; | ||
| 441 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 442 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 443 | + ] | ||
| 444 | + ] ; | ||
| 445 | + sp:arg2 "-" ; | ||
| 446 | + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 447 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 448 | + ] | ||
| 449 | + ] | ||
| 450 | + ] ; | ||
| 451 | + sp:variable | ||
| 452 | + [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 453 | + ] | ||
| 454 | + ] [ rdf:type sp:Bind ; | ||
| 455 | + sp:expression | ||
| 456 | + [ rdf:type ep-dpr-spin-lib:buildTerminalURI ; | ||
| 457 | + sp:arg1 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 458 | + ] | ||
| 459 | + ] ; | ||
| 460 | + sp:variable | ||
| 461 | + [ sp:varName "terminal"^^xsd:string | ||
| 462 | + ] | ||
| 463 | + ] [ rdf:type sp:Bind ; | ||
| 464 | + sp:expression | ||
| 465 | + [ rdf:type fn:concat ; | ||
| 466 | + sp:arg1 "terminal-" ; | ||
| 467 | + sp:arg2 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 468 | + ] | ||
| 469 | + ] ; | ||
| 470 | + sp:variable | ||
| 471 | + [ sp:varName "facilityLabel"^^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 | +Naming system supplied"""^^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 | + ] [ sp:object | ||
| 485 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 486 | + ] ; | ||
| 406 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 487 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 407 | sp:subject spin:_this | 488 | sp:subject spin:_this |
| 408 | ]) ; | 489 | ]) ; |
| ... | @@ -418,13 +499,11 @@ now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) | ... | @@ -418,13 +499,11 @@ now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) |
| 418 | ] ; | 499 | ] ; |
| 419 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 500 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 420 | sp:subject spin:_this | 501 | sp:subject spin:_this |
| 421 | - ] [ rdf:type sp:NotExists ; | 502 | + ] [ sp:object |
| 422 | - sp:elements ([ sp:object | 503 | + [ sp:varName "namingSystem"^^xsd:string |
| 423 | - [ sp:varName "namingSystem"^^xsd:string | 504 | + ] ; |
| 424 | - ] ; | 505 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 425 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 506 | + sp:subject spin:_this |
| 426 | - sp:subject spin:_this | ||
| 427 | - ]) | ||
| 428 | ] [ rdf:type sp:NotExists ; | 507 | ] [ rdf:type sp:NotExists ; |
| 429 | sp:elements ([ sp:object spin:_this ; | 508 | sp:elements ([ sp:object spin:_this ; |
| 430 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 509 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -441,213 +520,445 @@ now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) | ... | @@ -441,213 +520,445 @@ now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) |
| 441 | sp:variable | 520 | sp:variable |
| 442 | [ sp:varName "reportingFacilityType"^^xsd:string | 521 | [ sp:varName "reportingFacilityType"^^xsd:string |
| 443 | ] | 522 | ] |
| 523 | + ] [ rdf:type sp:Bind ; | ||
| 524 | + sp:expression | ||
| 525 | + [ rdf:type fn:concat ; | ||
| 526 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 527 | + ] ; | ||
| 528 | + sp:arg2 "$" ; | ||
| 529 | + sp:arg3 [ sp:varName "facilityName"^^xsd:string | ||
| 530 | + ] | ||
| 531 | + ] ; | ||
| 532 | + sp:variable | ||
| 533 | + [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 534 | + ] | ||
| 535 | + ] [ rdf:type sp:Bind ; | ||
| 536 | + sp:expression | ||
| 537 | + [ rdf:type fn:concat ; | ||
| 538 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 539 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 540 | + ] | ||
| 541 | + ] ; | ||
| 542 | + sp:arg2 "-" ; | ||
| 543 | + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 544 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 545 | + ] | ||
| 546 | + ] | ||
| 547 | + ] ; | ||
| 548 | + sp:variable | ||
| 549 | + [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 550 | + ] | ||
| 551 | + ] [ rdf:type sp:Bind ; | ||
| 552 | + sp:expression | ||
| 553 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 554 | + sp:arg1 [ rdf:type spl:object ; | ||
| 555 | + sp:arg1 [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 556 | + ] ; | ||
| 557 | + sp:arg2 rdfs:label | ||
| 558 | + ] | ||
| 559 | + ] ; | ||
| 560 | + sp:variable | ||
| 561 | + [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 562 | + ] | ||
| 563 | + ] [ rdf:type sp:Bind ; | ||
| 564 | + sp:expression | ||
| 565 | + [ rdf:type fn:concat ; | ||
| 566 | + sp:arg1 [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 567 | + ] ; | ||
| 568 | + sp:arg2 "-" ; | ||
| 569 | + sp:arg3 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 570 | + ] | ||
| 571 | + ] ; | ||
| 572 | + sp:variable | ||
| 573 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 574 | + ] | ||
| 575 | + ] [ sp:object | ||
| 576 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 577 | + ] ; | ||
| 578 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 579 | + sp:subject | ||
| 580 | + [ sp:varName "facility"^^xsd:string | ||
| 581 | + ] | ||
| 582 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 583 | + sp:predicate rdf:type ; | ||
| 584 | + sp:subject | ||
| 585 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 586 | + ] | ||
| 587 | + ] [ sp:object | ||
| 588 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 589 | + ] ; | ||
| 590 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 591 | + sp:subject | ||
| 592 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 593 | + ] | ||
| 444 | ]) | 594 | ]) |
| 445 | ] ; | 595 | ] ; |
| 446 | spin:rule | 596 | spin:rule |
| 447 | [ rdf:type sp:Construct ; | 597 | [ rdf:type sp:Construct ; |
| 448 | - rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany | 598 | + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility |
| 449 | Nothing is done with the namingSystem!"""^^xsd:string ; | 599 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 450 | sp:templates ([ sp:object spin:_this ; | 600 | sp:templates ([ sp:object spin:_this ; |
| 451 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 601 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 452 | sp:subject | 602 | sp:subject |
| 453 | - [ sp:varName "company"^^xsd:string | 603 | + [ sp:varName "platform"^^xsd:string |
| 454 | ] | 604 | ] |
| 455 | ] [ sp:object | 605 | ] [ sp:object |
| 456 | - [ sp:varName "companyLabel"^^xsd:string | 606 | + [ sp:varName "platformLabel"^^xsd:string |
| 607 | + ] ; | ||
| 608 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 609 | + sp:subject spin:_this | ||
| 610 | + ]) ; | ||
| 611 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 612 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 613 | + sp:subject spin:_this | ||
| 614 | + ] [ sp:object | ||
| 615 | + [ sp:varName "platformName"^^xsd:string | ||
| 616 | + ] ; | ||
| 617 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 618 | + sp:subject spin:_this | ||
| 619 | + ] [ rdf:type sp:NamedGraph ; | ||
| 620 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | ||
| 621 | + sp:predicate rdf:type ; | ||
| 622 | + sp:subject | ||
| 623 | + [ sp:varName "platform"^^xsd:string | ||
| 624 | + ] | ||
| 625 | + ] [ sp:object | ||
| 626 | + [ sp:varName "platformName"^^xsd:string | ||
| 627 | + ] ; | ||
| 628 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 629 | + sp:subject | ||
| 630 | + [ sp:varName "platform"^^xsd:string | ||
| 631 | + ] | ||
| 632 | + ] [ sp:object | ||
| 633 | + [ sp:varName "platformId"^^xsd:string | ||
| 634 | + ] ; | ||
| 635 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 636 | + sp:subject | ||
| 637 | + [ sp:varName "platform"^^xsd:string | ||
| 638 | + ] | ||
| 639 | + ]) ; | ||
| 640 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
| 641 | + ] [ rdf:type sp:Bind ; | ||
| 642 | + sp:expression | ||
| 643 | + [ rdf:type fn:concat ; | ||
| 644 | + sp:arg1 "platform-" ; | ||
| 645 | + sp:arg2 [ sp:varName "platformId"^^xsd:string | ||
| 646 | + ] | ||
| 647 | + ] ; | ||
| 648 | + sp:variable | ||
| 649 | + [ sp:varName "platformLabel"^^xsd:string | ||
| 650 | + ] | ||
| 651 | + ]) | ||
| 652 | + ] ; | ||
| 653 | + spin:rule | ||
| 654 | + [ rdf:type sp:Construct ; | ||
| 655 | + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | ||
| 656 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 657 | + sp:templates ([ sp:object spin:_this ; | ||
| 658 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 659 | + sp:subject | ||
| 660 | + [ sp:varName "tuf"^^xsd:string | ||
| 661 | + ] | ||
| 662 | + ] [ sp:object | ||
| 663 | + [ sp:varName "tufLabel"^^xsd:string | ||
| 457 | ] ; | 664 | ] ; |
| 458 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 665 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 459 | sp:subject spin:_this | 666 | sp:subject spin:_this |
| 460 | ]) ; | 667 | ]) ; |
| 461 | sp:where ([ rdf:type sp:Union ; | 668 | sp:where ([ rdf:type sp:Union ; |
| 462 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | 669 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 463 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 670 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 464 | sp:subject spin:_this | 671 | sp:subject spin:_this |
| 465 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | 672 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; |
| 673 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 674 | + sp:subject spin:_this | ||
| 675 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
| 676 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 677 | + sp:subject spin:_this | ||
| 678 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
| 679 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 680 | + sp:subject spin:_this | ||
| 681 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
| 682 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 683 | + sp:subject spin:_this | ||
| 684 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
| 685 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 686 | + sp:subject spin:_this | ||
| 687 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
| 688 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 689 | + sp:subject spin:_this | ||
| 690 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
| 691 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 692 | + sp:subject spin:_this | ||
| 693 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
| 466 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 694 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 467 | sp:subject spin:_this | 695 | sp:subject spin:_this |
| 468 | ])) | 696 | ])) |
| 469 | ] [ sp:object | 697 | ] [ sp:object |
| 470 | - [ sp:varName "companyName"^^xsd:string | 698 | + [ sp:varName "tufName"^^xsd:string |
| 471 | ] ; | 699 | ] ; |
| 472 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 700 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 473 | sp:subject spin:_this | 701 | sp:subject spin:_this |
| 474 | ] [ rdf:type sp:NamedGraph ; | 702 | ] [ rdf:type sp:NamedGraph ; |
| 475 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; | 703 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; |
| 476 | sp:predicate rdf:type ; | 704 | sp:predicate rdf:type ; |
| 477 | sp:subject | 705 | sp:subject |
| 478 | - [ sp:varName "company"^^xsd:string | 706 | + [ sp:varName "tuf"^^xsd:string |
| 479 | ] | 707 | ] |
| 480 | ] [ sp:object | 708 | ] [ sp:object |
| 481 | - [ sp:varName "companyName"^^xsd:string | 709 | + [ sp:varName "tufName"^^xsd:string |
| 482 | ] ; | 710 | ] ; |
| 483 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 711 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 484 | sp:subject | 712 | sp:subject |
| 485 | - [ sp:varName "company"^^xsd:string | 713 | + [ sp:varName "tuf"^^xsd:string |
| 486 | ] | 714 | ] |
| 487 | ] [ sp:object | 715 | ] [ sp:object |
| 488 | - [ sp:varName "companyId"^^xsd:string | 716 | + [ sp:varName "tufId"^^xsd:string |
| 489 | ] ; | 717 | ] ; |
| 490 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 718 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 491 | sp:subject | 719 | sp:subject |
| 492 | - [ sp:varName "company"^^xsd:string | 720 | + [ sp:varName "tuf"^^xsd:string |
| 493 | ] | 721 | ] |
| 494 | ]) ; | 722 | ]) ; |
| 495 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 723 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 496 | ] [ rdf:type sp:Bind ; | 724 | ] [ rdf:type sp:Bind ; |
| 497 | sp:expression | 725 | sp:expression |
| 498 | [ rdf:type fn:concat ; | 726 | [ rdf:type fn:concat ; |
| 499 | - sp:arg1 "company-" ; | 727 | + sp:arg1 "tuf-" ; |
| 500 | - sp:arg2 [ sp:varName "companyId"^^xsd:string | 728 | + sp:arg2 [ sp:varName "tufId"^^xsd:string |
| 501 | ] | 729 | ] |
| 502 | ] ; | 730 | ] ; |
| 503 | sp:variable | 731 | sp:variable |
| 504 | - [ sp:varName "companyLabel"^^xsd:string | 732 | + [ sp:varName "tufLabel"^^xsd:string |
| 505 | ] | 733 | ] |
| 506 | ]) | 734 | ]) |
| 507 | ] ; | 735 | ] ; |
| 508 | spin:rule | 736 | spin:rule |
| 509 | [ rdf:type sp:Construct ; | 737 | [ rdf:type sp:Construct ; |
| 510 | - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" | 738 | + rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" |
| 511 | Nothing is done with the namingSystem!"""^^xsd:string ; | 739 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 512 | sp:templates ([ sp:object spin:_this ; | 740 | sp:templates ([ sp:object spin:_this ; |
| 513 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 741 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 514 | sp:subject | 742 | sp:subject |
| 515 | - [ sp:varName "well"^^xsd:string | 743 | + [ sp:varName "wellBore"^^xsd:string |
| 516 | ] | 744 | ] |
| 517 | ] [ sp:object | 745 | ] [ sp:object |
| 518 | - [ sp:varName "wellLabel"^^xsd:string | 746 | + [ sp:varName "wellBoreLabel"^^xsd:string |
| 519 | ] ; | 747 | ] ; |
| 520 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 748 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 521 | sp:subject spin:_this | 749 | sp:subject spin:_this |
| 522 | ]) ; | 750 | ]) ; |
| 523 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | 751 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
| 524 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 752 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 525 | sp:subject spin:_this | 753 | sp:subject spin:_this |
| 526 | ] [ sp:object | 754 | ] [ sp:object |
| 527 | - [ sp:varName "wellName"^^xsd:string | 755 | + [ sp:varName "wellBoreName"^^xsd:string |
| 528 | ] ; | 756 | ] ; |
| 529 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 757 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 530 | sp:subject spin:_this | 758 | sp:subject spin:_this |
| 531 | ] [ rdf:type sp:NamedGraph ; | 759 | ] [ rdf:type sp:NamedGraph ; |
| 532 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | 760 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
| 533 | sp:predicate rdf:type ; | 761 | sp:predicate rdf:type ; |
| 534 | sp:subject | 762 | sp:subject |
| 535 | - [ sp:varName "well"^^xsd:string | 763 | + [ sp:varName "wellBore"^^xsd:string |
| 536 | ] | 764 | ] |
| 537 | ] [ sp:object | 765 | ] [ sp:object |
| 538 | - [ sp:varName "wellName"^^xsd:string | 766 | + [ sp:varName "wellBoreName"^^xsd:string |
| 539 | ] ; | 767 | ] ; |
| 540 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 768 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 541 | sp:subject | 769 | sp:subject |
| 542 | - [ sp:varName "well"^^xsd:string | 770 | + [ sp:varName "wellBore"^^xsd:string |
| 543 | ] | 771 | ] |
| 544 | ] [ sp:object | 772 | ] [ sp:object |
| 545 | - [ sp:varName "wellId"^^xsd:string | 773 | + [ sp:varName "wellBoreId"^^xsd:string |
| 546 | ] ; | 774 | ] ; |
| 547 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 775 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 548 | sp:subject | 776 | sp:subject |
| 549 | - [ sp:varName "well"^^xsd:string | 777 | + [ sp:varName "wellBore"^^xsd:string |
| 550 | ] | 778 | ] |
| 551 | ]) ; | 779 | ]) ; |
| 552 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 780 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 553 | ] [ rdf:type sp:Bind ; | 781 | ] [ rdf:type sp:Bind ; |
| 554 | sp:expression | 782 | sp:expression |
| 555 | [ rdf:type fn:concat ; | 783 | [ rdf:type fn:concat ; |
| 556 | - sp:arg1 "well-" ; | 784 | + sp:arg1 "wellbore-" ; |
| 557 | - sp:arg2 [ sp:varName "wellId"^^xsd:string | 785 | + sp:arg2 [ sp:varName "wellBoreId"^^xsd:string |
| 786 | + ] | ||
| 787 | + ] ; | ||
| 788 | + sp:variable | ||
| 789 | + [ sp:varName "wellBoreLabel"^^xsd:string | ||
| 790 | + ] | ||
| 791 | + ]) | ||
| 792 | + ] ; | ||
| 793 | + spin:rule | ||
| 794 | + [ rdf:type sp:Construct ; | ||
| 795 | + rdfs:comment """STEP 00011a Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | ||
| 796 | +Naming system not supplied"""^^xsd:string ; | ||
| 797 | + sp:templates ([ sp:object spin:_this ; | ||
| 798 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 799 | + sp:subject | ||
| 800 | + [ sp:varName "facility"^^xsd:string | ||
| 801 | + ] | ||
| 802 | + ] [ sp:object | ||
| 803 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 804 | + ] ; | ||
| 805 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 806 | + sp:subject spin:_this | ||
| 807 | + ]) ; | ||
| 808 | + sp:where ([ rdf:type sp:Optional ; | ||
| 809 | + sp:elements ([ sp:object | ||
| 810 | + [ sp:varName "facilityKind"^^xsd:string | ||
| 811 | + ] ; | ||
| 812 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 813 | + sp:subject spin:_this | ||
| 814 | + ]) | ||
| 815 | + ] [ sp:object | ||
| 816 | + [ sp:varName "facilityName"^^xsd:string | ||
| 817 | + ] ; | ||
| 818 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 819 | + sp:subject spin:_this | ||
| 820 | + ] [ rdf:type sp:NotExists ; | ||
| 821 | + sp:elements ([ sp:object | ||
| 822 | + [ sp:varName "namingSystem"^^xsd:string | ||
| 823 | + ] ; | ||
| 824 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 825 | + sp:subject spin:_this | ||
| 826 | + ]) | ||
| 827 | + ] [ rdf:type sp:NotExists ; | ||
| 828 | + sp:elements ([ sp:object spin:_this ; | ||
| 829 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 830 | + sp:subject | ||
| 831 | + [ sp:varName "something"^^xsd:string | ||
| 832 | + ] | ||
| 833 | + ]) | ||
| 834 | + ] [ rdf:type sp:Bind ; | ||
| 835 | + sp:expression | ||
| 836 | + [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; | ||
| 837 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 838 | + ] | ||
| 839 | + ] ; | ||
| 840 | + sp:variable | ||
| 841 | + [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 842 | + ] | ||
| 843 | + ] [ rdf:type sp:Bind ; | ||
| 844 | + sp:expression | ||
| 845 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 846 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 847 | + ] | ||
| 848 | + ] ; | ||
| 849 | + sp:variable | ||
| 850 | + [ sp:varName "normalizedfacilityName"^^xsd:string | ||
| 851 | + ] | ||
| 852 | + ] [ rdf:type sp:Bind ; | ||
| 853 | + sp:expression | ||
| 854 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 855 | + sp:arg1 [ rdf:type spl:object ; | ||
| 856 | + sp:arg1 [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 857 | + ] ; | ||
| 858 | + sp:arg2 rdfs:label | ||
| 859 | + ] | ||
| 860 | + ] ; | ||
| 861 | + sp:variable | ||
| 862 | + [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 863 | + ] | ||
| 864 | + ] [ rdf:type sp:Bind ; | ||
| 865 | + sp:expression | ||
| 866 | + [ rdf:type fn:concat ; | ||
| 867 | + sp:arg1 [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 868 | + ] ; | ||
| 869 | + sp:arg2 "-" ; | ||
| 870 | + sp:arg3 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 558 | ] | 871 | ] |
| 559 | ] ; | 872 | ] ; |
| 560 | sp:variable | 873 | sp:variable |
| 561 | - [ sp:varName "wellLabel"^^xsd:string | 874 | + [ sp:varName "facilityLabel"^^xsd:string |
| 875 | + ] | ||
| 876 | + ] [ sp:object | ||
| 877 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 878 | + ] ; | ||
| 879 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 880 | + sp:subject | ||
| 881 | + [ sp:varName "facility"^^xsd:string | ||
| 882 | + ] | ||
| 883 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
| 884 | + sp:predicate rdf:type ; | ||
| 885 | + sp:subject | ||
| 886 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 887 | + ] | ||
| 888 | + ] [ sp:object | ||
| 889 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 890 | + ] ; | ||
| 891 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | ||
| 892 | + sp:subject | ||
| 893 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
| 562 | ] | 894 | ] |
| 563 | ]) | 895 | ]) |
| 564 | ] ; | 896 | ] ; |
| 565 | spin:rule | 897 | spin:rule |
| 566 | [ rdf:type sp:Construct ; | 898 | [ rdf:type sp:Construct ; |
| 567 | - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | 899 | + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany |
| 568 | Nothing is done with the namingSystem!"""^^xsd:string ; | 900 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 569 | sp:templates ([ sp:object spin:_this ; | 901 | sp:templates ([ sp:object spin:_this ; |
| 570 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 902 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 571 | sp:subject | 903 | sp:subject |
| 572 | - [ sp:varName "tuf"^^xsd:string | 904 | + [ sp:varName "company"^^xsd:string |
| 573 | ] | 905 | ] |
| 574 | ] [ sp:object | 906 | ] [ sp:object |
| 575 | - [ sp:varName "tufLabel"^^xsd:string | 907 | + [ sp:varName "companyLabel"^^xsd:string |
| 576 | ] ; | 908 | ] ; |
| 577 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 909 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 578 | sp:subject spin:_this | 910 | sp:subject spin:_this |
| 579 | ]) ; | 911 | ]) ; |
| 580 | sp:where ([ rdf:type sp:Union ; | 912 | sp:where ([ rdf:type sp:Union ; |
| 581 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 913 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; |
| 582 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 583 | - sp:subject spin:_this | ||
| 584 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
| 585 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 586 | - sp:subject spin:_this | ||
| 587 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
| 588 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 589 | - sp:subject spin:_this | ||
| 590 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
| 591 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 592 | - sp:subject spin:_this | ||
| 593 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
| 594 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 595 | - sp:subject spin:_this | ||
| 596 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
| 597 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 598 | - sp:subject spin:_this | ||
| 599 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
| 600 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 601 | - sp:subject spin:_this | ||
| 602 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
| 603 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 914 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 604 | sp:subject spin:_this | 915 | sp:subject spin:_this |
| 605 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | 916 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; |
| 606 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 917 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 607 | sp:subject spin:_this | 918 | sp:subject spin:_this |
| 608 | ])) | 919 | ])) |
| 609 | ] [ sp:object | 920 | ] [ sp:object |
| 610 | - [ sp:varName "tufName"^^xsd:string | 921 | + [ sp:varName "companyName"^^xsd:string |
| 611 | ] ; | 922 | ] ; |
| 612 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 923 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 613 | sp:subject spin:_this | 924 | sp:subject spin:_this |
| 614 | ] [ rdf:type sp:NamedGraph ; | 925 | ] [ rdf:type sp:NamedGraph ; |
| 615 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | 926 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
| 616 | sp:predicate rdf:type ; | 927 | sp:predicate rdf:type ; |
| 617 | sp:subject | 928 | sp:subject |
| 618 | - [ sp:varName "tuf"^^xsd:string | 929 | + [ sp:varName "company"^^xsd:string |
| 619 | ] | 930 | ] |
| 620 | ] [ sp:object | 931 | ] [ sp:object |
| 621 | - [ sp:varName "tufName"^^xsd:string | 932 | + [ sp:varName "companyName"^^xsd:string |
| 622 | ] ; | 933 | ] ; |
| 623 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 934 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 624 | sp:subject | 935 | sp:subject |
| 625 | - [ sp:varName "tuf"^^xsd:string | 936 | + [ sp:varName "company"^^xsd:string |
| 626 | ] | 937 | ] |
| 627 | ] [ sp:object | 938 | ] [ sp:object |
| 628 | - [ sp:varName "tufId"^^xsd:string | 939 | + [ sp:varName "companyId"^^xsd:string |
| 629 | ] ; | 940 | ] ; |
| 630 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 941 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 631 | sp:subject | 942 | sp:subject |
| 632 | - [ sp:varName "tuf"^^xsd:string | 943 | + [ sp:varName "company"^^xsd:string |
| 633 | ] | 944 | ] |
| 634 | ]) ; | 945 | ]) ; |
| 635 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 946 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 636 | ] [ rdf:type sp:Bind ; | 947 | ] [ rdf:type sp:Bind ; |
| 637 | sp:expression | 948 | sp:expression |
| 638 | [ rdf:type fn:concat ; | 949 | [ rdf:type fn:concat ; |
| 639 | - sp:arg1 "tuf-" ; | 950 | + sp:arg1 "company-" ; |
| 640 | - sp:arg2 [ sp:varName "tufId"^^xsd:string | 951 | + sp:arg2 [ sp:varName "companyId"^^xsd:string |
| 641 | ] | 952 | ] |
| 642 | ] ; | 953 | ] ; |
| 643 | sp:variable | 954 | sp:variable |
| 644 | - [ sp:varName "tufLabel"^^xsd:string | 955 | + [ sp:varName "companyLabel"^^xsd:string |
| 645 | ] | 956 | ] |
| 646 | ]) | 957 | ]) |
| 647 | ] ; | 958 | ] ; |
| 648 | spin:rule | 959 | spin:rule |
| 649 | [ rdf:type sp:Construct ; | 960 | [ rdf:type sp:Construct ; |
| 650 | - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany | 961 | + rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany |
| 651 | Nothing is done with the namingSystem!"""^^xsd:string ; | 962 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 652 | sp:templates ([ sp:object spin:_this ; | 963 | sp:templates ([ sp:object spin:_this ; |
| 653 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 964 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -674,7 +985,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -674,7 +985,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 674 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 985 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 675 | sp:subject spin:_this | 986 | sp:subject spin:_this |
| 676 | ] [ rdf:type sp:NamedGraph ; | 987 | ] [ rdf:type sp:NamedGraph ; |
| 677 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | 988 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
| 678 | sp:predicate rdf:type ; | 989 | sp:predicate rdf:type ; |
| 679 | sp:subject | 990 | sp:subject |
| 680 | [ sp:varName "company"^^xsd:string | 991 | [ sp:varName "company"^^xsd:string |
| ... | @@ -709,172 +1020,240 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -709,172 +1020,240 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
| 709 | ] ; | 1020 | ] ; |
| 710 | spin:rule | 1021 | spin:rule |
| 711 | [ rdf:type sp:Construct ; | 1022 | [ rdf:type sp:Construct ; |
| 712 | - rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility | 1023 | + rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" |
| 713 | Nothing is done with the namingSystem!"""^^xsd:string ; | 1024 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 714 | sp:templates ([ sp:object spin:_this ; | 1025 | sp:templates ([ sp:object spin:_this ; |
| 715 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1026 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 716 | sp:subject | 1027 | sp:subject |
| 717 | - [ sp:varName "terminal"^^xsd:string | 1028 | + [ sp:varName "licence"^^xsd:string |
| 718 | ] | 1029 | ] |
| 719 | ] [ sp:object | 1030 | ] [ sp:object |
| 720 | - [ sp:varName "terminalLabel"^^xsd:string | 1031 | + [ sp:varName "licenceLabel"^^xsd:string |
| 721 | ] ; | 1032 | ] ; |
| 722 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1033 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 723 | sp:subject spin:_this | 1034 | sp:subject spin:_this |
| 724 | ]) ; | 1035 | ]) ; |
| 725 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 1036 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; |
| 726 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 1037 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 727 | sp:subject spin:_this | 1038 | sp:subject spin:_this |
| 728 | ] [ sp:object | 1039 | ] [ sp:object |
| 729 | - [ sp:varName "terminalName"^^xsd:string | 1040 | + [ sp:varName "licenceName"^^xsd:string |
| 730 | ] ; | 1041 | ] ; |
| 731 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 1042 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 732 | sp:subject spin:_this | 1043 | sp:subject spin:_this |
| 733 | ] [ rdf:type sp:NamedGraph ; | 1044 | ] [ rdf:type sp:NamedGraph ; |
| 734 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | 1045 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; |
| 735 | sp:predicate rdf:type ; | 1046 | sp:predicate rdf:type ; |
| 736 | sp:subject | 1047 | sp:subject |
| 737 | - [ sp:varName "terminal"^^xsd:string | 1048 | + [ sp:varName "licence"^^xsd:string |
| 738 | ] | 1049 | ] |
| 739 | ] [ sp:object | 1050 | ] [ sp:object |
| 740 | - [ sp:varName "terminalName"^^xsd:string | 1051 | + [ sp:varName "licenceName"^^xsd:string |
| 741 | ] ; | 1052 | ] ; |
| 742 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 1053 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 743 | sp:subject | 1054 | sp:subject |
| 744 | - [ sp:varName "terminal"^^xsd:string | 1055 | + [ sp:varName "licence"^^xsd:string |
| 745 | ] | 1056 | ] |
| 746 | ] [ sp:object | 1057 | ] [ sp:object |
| 747 | - [ sp:varName "terminalId"^^xsd:string | 1058 | + [ sp:varName "licenceId"^^xsd:string |
| 748 | ] ; | 1059 | ] ; |
| 749 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 1060 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 750 | sp:subject | 1061 | sp:subject |
| 751 | - [ sp:varName "terminal"^^xsd:string | 1062 | + [ sp:varName "livence"^^xsd:string |
| 752 | ] | 1063 | ] |
| 753 | ]) ; | 1064 | ]) ; |
| 754 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 1065 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 755 | ] [ rdf:type sp:Bind ; | 1066 | ] [ rdf:type sp:Bind ; |
| 756 | sp:expression | 1067 | sp:expression |
| 757 | [ rdf:type fn:concat ; | 1068 | [ rdf:type fn:concat ; |
| 758 | - sp:arg1 "terminal-" ; | 1069 | + sp:arg1 "licence-" ; |
| 759 | - sp:arg2 [ sp:varName "terminalId"^^xsd:string | 1070 | + sp:arg2 [ sp:varName "licenceId"^^xsd:string |
| 760 | ] | 1071 | ] |
| 761 | ] ; | 1072 | ] ; |
| 762 | sp:variable | 1073 | sp:variable |
| 763 | - [ sp:varName "terminalLabel"^^xsd:string | 1074 | + [ sp:varName "licenceLabel"^^xsd:string |
| 764 | ] | 1075 | ] |
| 765 | ]) | 1076 | ]) |
| 766 | ] ; | 1077 | ] ; |
| 767 | spin:rule | 1078 | spin:rule |
| 768 | [ rdf:type sp:Construct ; | 1079 | [ rdf:type sp:Construct ; |
| 769 | - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | 1080 | + rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. |
| 770 | Nothing is done with the namingSystem!"""^^xsd:string ; | 1081 | Nothing is done with the namingSystem!"""^^xsd:string ; |
| 771 | sp:templates ([ sp:object spin:_this ; | 1082 | sp:templates ([ sp:object spin:_this ; |
| 772 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1083 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 773 | sp:subject | 1084 | sp:subject |
| 774 | - [ sp:varName "platform"^^xsd:string | 1085 | + [ sp:varName "field"^^xsd:string |
| 775 | ] | 1086 | ] |
| 776 | ] [ sp:object | 1087 | ] [ sp:object |
| 777 | - [ sp:varName "platformLabel"^^xsd:string | 1088 | + [ sp:varName "fieldLabel"^^xsd:string |
| 778 | ] ; | 1089 | ] ; |
| 779 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1090 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 780 | sp:subject spin:_this | 1091 | sp:subject spin:_this |
| 781 | ]) ; | 1092 | ]) ; |
| 782 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 1093 | + sp:where ([ rdf:type sp:Union ; |
| 783 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 1094 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 784 | - sp:subject spin:_this | 1095 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 1096 | + sp:subject spin:_this | ||
| 1097 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ; | ||
| 1098 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1099 | + sp:subject spin:_this | ||
| 1100 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ; | ||
| 1101 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1102 | + sp:subject spin:_this | ||
| 1103 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ; | ||
| 1104 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1105 | + sp:subject spin:_this | ||
| 1106 | + ])) | ||
| 785 | ] [ sp:object | 1107 | ] [ sp:object |
| 786 | - [ sp:varName "platformName"^^xsd:string | 1108 | + [ sp:varName "fieldName"^^xsd:string |
| 787 | ] ; | 1109 | ] ; |
| 788 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 1110 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 789 | sp:subject spin:_this | 1111 | sp:subject spin:_this |
| 790 | ] [ rdf:type sp:NamedGraph ; | 1112 | ] [ rdf:type sp:NamedGraph ; |
| 791 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | 1113 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; |
| 792 | sp:predicate rdf:type ; | 1114 | sp:predicate rdf:type ; |
| 793 | sp:subject | 1115 | sp:subject |
| 794 | - [ sp:varName "platform"^^xsd:string | 1116 | + [ sp:varName "field"^^xsd:string |
| 795 | ] | 1117 | ] |
| 796 | ] [ sp:object | 1118 | ] [ sp:object |
| 797 | - [ sp:varName "platformName"^^xsd:string | 1119 | + [ sp:varName "fieldName"^^xsd:string |
| 798 | ] ; | 1120 | ] ; |
| 799 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 1121 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 800 | sp:subject | 1122 | sp:subject |
| 801 | - [ sp:varName "platform"^^xsd:string | 1123 | + [ sp:varName "field"^^xsd:string |
| 802 | ] | 1124 | ] |
| 803 | ] [ sp:object | 1125 | ] [ sp:object |
| 804 | - [ sp:varName "platformId"^^xsd:string | 1126 | + [ sp:varName "fieldId"^^xsd:string |
| 805 | ] ; | 1127 | ] ; |
| 806 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 1128 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 807 | sp:subject | 1129 | sp:subject |
| 808 | - [ sp:varName "platform"^^xsd:string | 1130 | + [ sp:varName "field"^^xsd:string |
| 809 | ] | 1131 | ] |
| 810 | ]) ; | 1132 | ]) ; |
| 811 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 1133 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
| 812 | ] [ rdf:type sp:Bind ; | 1134 | ] [ rdf:type sp:Bind ; |
| 813 | sp:expression | 1135 | sp:expression |
| 814 | [ rdf:type fn:concat ; | 1136 | [ rdf:type fn:concat ; |
| 815 | - sp:arg1 "platform-" ; | 1137 | + sp:arg1 "field-" ; |
| 816 | - sp:arg2 [ sp:varName "platformId"^^xsd:string | 1138 | + sp:arg2 [ sp:varName "fieldId"^^xsd:string |
| 817 | ] | 1139 | ] |
| 818 | ] ; | 1140 | ] ; |
| 819 | sp:variable | 1141 | sp:variable |
| 820 | - [ sp:varName "platformLabel"^^xsd:string | 1142 | + [ sp:varName "fieldLabel"^^xsd:string |
| 821 | ] | 1143 | ] |
| 822 | ]) | 1144 | ]) |
| 823 | ] ; | 1145 | ] ; |
| 824 | spin:rule | 1146 | spin:rule |
| 825 | [ rdf:type sp:Construct ; | 1147 | [ rdf:type sp:Construct ; |
| 826 | - rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility | 1148 | + rdfs:comment """STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file |
| 827 | -Nothing is done with the namingSystem!"""^^xsd:string ; | 1149 | +Naming system supplied |
| 828 | - sp:templates ([ sp:object spin:_this ; | 1150 | +now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(?namingSystem, ?facilityName) AS ?facility) ."""^^xsd:string ; |
| 1151 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 1152 | + sp:predicate rdf:type ; | ||
| 1153 | + sp:subject _:b2 | ||
| 1154 | + ] [ sp:object | ||
| 1155 | + [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1156 | + ] ; | ||
| 1157 | + sp:predicate rdf:type ; | ||
| 1158 | + sp:subject _:b2 | ||
| 1159 | + ] [ sp:object | ||
| 1160 | + [ sp:varName "facilityNameWithContext"^^xsd:string | ||
| 1161 | + ] ; | ||
| 1162 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 1163 | + sp:subject _:b2 | ||
| 1164 | + ] [ sp:object spin:_this ; | ||
| 829 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1165 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 830 | - sp:subject | 1166 | + sp:subject _:b2 |
| 831 | - [ sp:varName "platform"^^xsd:string | ||
| 832 | - ] | ||
| 833 | ] [ sp:object | 1167 | ] [ sp:object |
| 834 | - [ sp:varName "platformLabel"^^xsd:string | 1168 | + [ sp:varName "facilityLabel"^^xsd:string |
| 835 | ] ; | 1169 | ] ; |
| 836 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; | 1170 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; |
| 837 | sp:subject spin:_this | 1171 | sp:subject spin:_this |
| 838 | ]) ; | 1172 | ]) ; |
| 839 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 1173 | + sp:where ([ rdf:type sp:Optional ; |
| 840 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 1174 | + sp:elements ([ sp:object |
| 841 | - sp:subject spin:_this | 1175 | + [ sp:varName "facilityKind"^^xsd:string |
| 1176 | + ] ; | ||
| 1177 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1178 | + sp:subject spin:_this | ||
| 1179 | + ]) | ||
| 842 | ] [ sp:object | 1180 | ] [ sp:object |
| 843 | - [ sp:varName "platformName"^^xsd:string | 1181 | + [ sp:varName "facilityName"^^xsd:string |
| 844 | ] ; | 1182 | ] ; |
| 845 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 1183 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 846 | sp:subject spin:_this | 1184 | sp:subject spin:_this |
| 847 | - ] [ rdf:type sp:NamedGraph ; | 1185 | + ] [ sp:object |
| 848 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | 1186 | + [ sp:varName "namingSystem"^^xsd:string |
| 849 | - sp:predicate rdf:type ; | 1187 | + ] ; |
| 850 | - sp:subject | 1188 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
| 851 | - [ sp:varName "platform"^^xsd:string | 1189 | + sp:subject spin:_this |
| 852 | - ] | 1190 | + ] [ rdf:type sp:NotExists ; |
| 853 | - ] [ sp:object | 1191 | + sp:elements ([ sp:object spin:_this ; |
| 854 | - [ sp:varName "platformName"^^xsd:string | 1192 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 855 | - ] ; | ||
| 856 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 857 | - sp:subject | ||
| 858 | - [ sp:varName "platform"^^xsd:string | ||
| 859 | - ] | ||
| 860 | - ] [ sp:object | ||
| 861 | - [ sp:varName "platformId"^^xsd:string | ||
| 862 | - ] ; | ||
| 863 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 864 | sp:subject | 1193 | sp:subject |
| 865 | - [ sp:varName "platform"^^xsd:string | 1194 | + [ sp:varName "something"^^xsd:string |
| 866 | ] | 1195 | ] |
| 867 | - ]) ; | 1196 | + ]) |
| 868 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 1197 | + ] [ rdf:type sp:Bind ; |
| 1198 | + sp:expression | ||
| 1199 | + [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ; | ||
| 1200 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 1201 | + ] | ||
| 1202 | + ] ; | ||
| 1203 | + sp:variable | ||
| 1204 | + [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1205 | + ] | ||
| 869 | ] [ rdf:type sp:Bind ; | 1206 | ] [ rdf:type sp:Bind ; |
| 870 | sp:expression | 1207 | sp:expression |
| 871 | [ rdf:type fn:concat ; | 1208 | [ rdf:type fn:concat ; |
| 872 | - sp:arg1 "platform-" ; | 1209 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string |
| 873 | - sp:arg2 [ sp:varName "platformId"^^xsd:string | 1210 | + ] ; |
| 1211 | + sp:arg2 "$" ; | ||
| 1212 | + sp:arg3 [ sp:varName "facilityName"^^xsd:string | ||
| 874 | ] | 1213 | ] |
| 875 | ] ; | 1214 | ] ; |
| 876 | sp:variable | 1215 | sp:variable |
| 877 | - [ sp:varName "platformLabel"^^xsd:string | 1216 | + [ sp:varName "facilityNameWithContext"^^xsd:string |
| 1217 | + ] | ||
| 1218 | + ] [ rdf:type sp:Bind ; | ||
| 1219 | + sp:expression | ||
| 1220 | + [ rdf:type fn:concat ; | ||
| 1221 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1222 | + sp:arg1 [ sp:varName "namingSystem"^^xsd:string | ||
| 1223 | + ] | ||
| 1224 | + ] ; | ||
| 1225 | + sp:arg2 "-" ; | ||
| 1226 | + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1227 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 1228 | + ] | ||
| 1229 | + ] | ||
| 1230 | + ] ; | ||
| 1231 | + sp:variable | ||
| 1232 | + [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 1233 | + ] | ||
| 1234 | + ] [ rdf:type sp:Bind ; | ||
| 1235 | + sp:expression | ||
| 1236 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1237 | + sp:arg1 [ rdf:type spl:object ; | ||
| 1238 | + sp:arg1 [ sp:varName "reportingFacilityType"^^xsd:string | ||
| 1239 | + ] ; | ||
| 1240 | + sp:arg2 rdfs:label | ||
| 1241 | + ] | ||
| 1242 | + ] ; | ||
| 1243 | + sp:variable | ||
| 1244 | + [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 1245 | + ] | ||
| 1246 | + ] [ rdf:type sp:Bind ; | ||
| 1247 | + sp:expression | ||
| 1248 | + [ rdf:type fn:concat ; | ||
| 1249 | + sp:arg1 [ sp:varName "normalizedReportingFacilityTypeLabel"^^xsd:string | ||
| 1250 | + ] ; | ||
| 1251 | + sp:arg2 "-" ; | ||
| 1252 | + sp:arg3 [ sp:varName "normalizedFacilityNameWithContext"^^xsd:string | ||
| 1253 | + ] | ||
| 1254 | + ] ; | ||
| 1255 | + sp:variable | ||
| 1256 | + [ sp:varName "facilityLabel"^^xsd:string | ||
| 878 | ] | 1257 | ] |
| 879 | ]) | 1258 | ]) |
| 880 | ] . | 1259 | ] . | ... | ... |
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