Showing
14 changed files
with
2909 additions
and
631 deletions
| ... | @@ -10,11 +10,11 @@ | ... | @@ -10,11 +10,11 @@ |
| 10 | 10 | ||
| 11 | <http://www.reportinghub.no/ep/schema/1.0/production-report> | 11 | <http://www.reportinghub.no/ep/schema/1.0/production-report> |
| 12 | rdf:type owl:Ontology ; | 12 | rdf:type owl:Ontology ; |
| 13 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/np/schema/1.0/npd> ; | 13 | + owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/report> ; |
| 14 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 14 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 15 | 15 | ||
| 16 | ep-prodreport:DailyProductVolumeReport | 16 | ep-prodreport:DailyProductVolumeReport |
| 17 | - rdf:type owl:Class , ep-prodreport:ProductVolumeReportPeriodType ; | 17 | + rdf:type ep-prodreport:ProductVolumeReportPeriodType , owl:Class ; |
| 18 | rdfs:label "daily product volume report"^^xsd:string ; | 18 | rdfs:label "daily product volume report"^^xsd:string ; |
| 19 | rdfs:subClassOf ep-prodreport:DailyProductionReport . | 19 | rdfs:subClassOf ep-prodreport:DailyProductionReport . |
| 20 | 20 | ||
| ... | @@ -43,13 +43,18 @@ ep-prodreport:ProductionReport | ... | @@ -43,13 +43,18 @@ ep-prodreport:ProductionReport |
| 43 | rdfs:label "Production Report"^^xsd:string ; | 43 | rdfs:label "Production Report"^^xsd:string ; |
| 44 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> . | 44 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> . |
| 45 | 45 | ||
| 46 | +ep-prodreport:ProductionReportKind | ||
| 47 | + rdf:type rdfs:Class ; | ||
| 48 | + rdfs:label "production report kind"^^xsd:string ; | ||
| 49 | + rdfs:subClassOf owl:Class . | ||
| 50 | + | ||
| 46 | ep-prodreport:ReportAliasIdentifier | 51 | ep-prodreport:ReportAliasIdentifier |
| 47 | rdf:type owl:Class ; | 52 | rdf:type owl:Class ; |
| 48 | rdfs:subClassOf owl:Thing ; | 53 | rdfs:subClassOf owl:Thing ; |
| 49 | rdfs:subClassOf | 54 | rdfs:subClassOf |
| 50 | [ rdf:type owl:Restriction ; | 55 | [ rdf:type owl:Restriction ; |
| 51 | - owl:cardinality "1"^^xsd:nonNegativeInteger ; | 56 | + owl:minCardinality "1"^^xsd:nonNegativeInteger ; |
| 52 | - owl:onProperty ep-prodreport:isAliasFor | 57 | + owl:onProperty ep-prodreport:aliasName |
| 53 | ] ; | 58 | ] ; |
| 54 | rdfs:subClassOf | 59 | rdfs:subClassOf |
| 55 | [ rdf:type owl:Restriction ; | 60 | [ rdf:type owl:Restriction ; |
| ... | @@ -58,15 +63,10 @@ ep-prodreport:ReportAliasIdentifier | ... | @@ -58,15 +63,10 @@ ep-prodreport:ReportAliasIdentifier |
| 58 | ] ; | 63 | ] ; |
| 59 | rdfs:subClassOf | 64 | rdfs:subClassOf |
| 60 | [ rdf:type owl:Restriction ; | 65 | [ rdf:type owl:Restriction ; |
| 61 | - owl:minCardinality "1"^^xsd:nonNegativeInteger ; | 66 | + owl:cardinality "1"^^xsd:nonNegativeInteger ; |
| 62 | - owl:onProperty ep-prodreport:aliasName | 67 | + owl:onProperty ep-prodreport:isAliasFor |
| 63 | ] . | 68 | ] . |
| 64 | 69 | ||
| 65 | -ep-prodreport:ReportType | ||
| 66 | - rdf:type rdfs:Class ; | ||
| 67 | - rdfs:label "report type"^^xsd:string ; | ||
| 68 | - rdfs:subClassOf owl:Class . | ||
| 69 | - | ||
| 70 | ep-prodreport:aliasName | 70 | ep-prodreport:aliasName |
| 71 | rdf:type owl:DatatypeProperty ; | 71 | rdf:type owl:DatatypeProperty ; |
| 72 | rdfs:range xsd:string . | 72 | rdfs:range xsd:string . | ... | ... |
| ... | @@ -48,7 +48,7 @@ sp:if | ... | @@ -48,7 +48,7 @@ sp:if |
| 48 | 48 | ||
| 49 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> | 49 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> |
| 50 | rdf:type owl:Ontology ; | 50 | rdf:type owl:Ontology ; |
| 51 | - 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/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | 51 | + owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; |
| 52 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 52 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 53 | 53 | ||
| 54 | ep-dpr-spin-lib:BuildDailyProductionReportURI | 54 | ep-dpr-spin-lib:BuildDailyProductionReportURI |
| ... | @@ -412,6 +412,28 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI | ... | @@ -412,6 +412,28 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI |
| 412 | ]) | 412 | ]) |
| 413 | ] . | 413 | ] . |
| 414 | 414 | ||
| 415 | +ep-dpr-spin-lib:buildProductionReportKindURI | ||
| 416 | + rdf:type spin:Function ; | ||
| 417 | + rdfs:label "build ProductionReportKind URI"^^xsd:string ; | ||
| 418 | + rdfs:subClassOf ep-dpr-spin-lib:Function ; | ||
| 419 | + spin:body | ||
| 420 | + [ rdf:type sp:Select ; | ||
| 421 | + sp:resultVariables ([ sp:varName "uri"^^xsd:string | ||
| 422 | + ]) ; | ||
| 423 | + sp:where ([ rdf:type sp:Bind ; | ||
| 424 | + sp:expression | ||
| 425 | + [ rdf:type ep-spin-lib:buildURI ; | ||
| 426 | + sp:arg1 "https://www.reportinghub.no/ep/data/productionReportKind/" ; | ||
| 427 | + sp:arg2 [ rdf:type fn:concat ; | ||
| 428 | + sp:arg1 spin:_arg1 | ||
| 429 | + ] | ||
| 430 | + ] ; | ||
| 431 | + sp:variable | ||
| 432 | + [ sp:varName "uri"^^xsd:string | ||
| 433 | + ] | ||
| 434 | + ]) | ||
| 435 | + ] . | ||
| 436 | + | ||
| 415 | ep-dpr-spin-lib:buildShipURI | 437 | ep-dpr-spin-lib:buildShipURI |
| 416 | rdf:type spin:Function ; | 438 | rdf:type spin:Function ; |
| 417 | rdfs:subClassOf ep-dpr-spin-lib:Function ; | 439 | rdfs:subClassOf ep-dpr-spin-lib:Function ; |
| ... | @@ -5490,22 +5512,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5490,22 +5512,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5490 | rdfs:subClassOf ep-dpr-spin-lib:Function ; | 5512 | rdfs:subClassOf ep-dpr-spin-lib:Function ; |
| 5491 | spin:body | 5513 | spin:body |
| 5492 | [ rdf:type sp:Select ; | 5514 | [ rdf:type sp:Select ; |
| 5493 | - sp:resultVariables (_:b29) ; | ||
| 5494 | - sp:where ([ rdf:type sp:Bind ; | ||
| 5495 | - sp:expression | ||
| 5496 | - [ rdf:type sp:if ; | ||
| 5497 | - sp:arg1 [ rdf:type sp:eq ; | ||
| 5498 | - sp:arg1 spin:_arg1 ; | ||
| 5499 | - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 5500 | - ] ; | ||
| 5501 | - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 5502 | - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 5503 | - ] ; | ||
| 5504 | - sp:variable _:b29 | ||
| 5505 | - ]) | ||
| 5506 | - ] ; | ||
| 5507 | - spin:body | ||
| 5508 | - [ rdf:type sp:Select ; | ||
| 5509 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string | 5515 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string |
| 5510 | ]) ; | 5516 | ]) ; |
| 5511 | sp:where ([ rdf:type sp:Bind ; | 5517 | sp:where ([ rdf:type sp:Bind ; |
| ... | @@ -5585,6 +5591,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5585,6 +5591,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5585 | [ sp:varName "myVar"^^xsd:string | 5591 | [ sp:varName "myVar"^^xsd:string |
| 5586 | ] | 5592 | ] |
| 5587 | ]) | 5593 | ]) |
| 5594 | + ] ; | ||
| 5595 | + spin:body | ||
| 5596 | + [ rdf:type sp:Select ; | ||
| 5597 | + sp:resultVariables (_:b29) ; | ||
| 5598 | + sp:where ([ rdf:type sp:Bind ; | ||
| 5599 | + sp:expression | ||
| 5600 | + [ rdf:type sp:if ; | ||
| 5601 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 5602 | + sp:arg1 spin:_arg1 ; | ||
| 5603 | + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 5604 | + ] ; | ||
| 5605 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 5606 | + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 5607 | + ] ; | ||
| 5608 | + sp:variable _:b29 | ||
| 5609 | + ]) | ||
| 5588 | ] . | 5610 | ] . |
| 5589 | 5611 | ||
| 5590 | ep-dpr-spin-lib:selectTemperatureScale | 5612 | ep-dpr-spin-lib:selectTemperatureScale |
| ... | @@ -7113,89 +7135,89 @@ ep-dpr-spin-lib:selectWorkScale | ... | @@ -7113,89 +7135,89 @@ ep-dpr-spin-lib:selectWorkScale |
| 7113 | ]) | 7135 | ]) |
| 7114 | ] . | 7136 | ] . |
| 7115 | 7137 | ||
| 7116 | -_:b1 sp:varName "uri"^^xsd:string . | 7138 | +_:b32 |
| 7139 | + sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ||
| 7117 | 7140 | ||
| 7118 | -_:b2 sp:varName "uri"^^xsd:string . | 7141 | +_:b31 |
| 7142 | + sp:varName "volumeAtStdType"^^xsd:string . | ||
| 7119 | 7143 | ||
| 7120 | -_:b3 sp:varName "UUID"^^xsd:string . | 7144 | +_:b30 |
| 7145 | + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | ||
| 7121 | 7146 | ||
| 7122 | -_:b4 sp:varName "uri"^^xsd:string . | 7147 | +_:b29 |
| 7148 | + sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7123 | 7149 | ||
| 7124 | -_:b5 sp:varName "uri"^^xsd:string . | 7150 | +_:b28 |
| 7151 | + sp:varName "safetyActivityType"^^xsd:string . | ||
| 7125 | 7152 | ||
| 7126 | -_:b6 sp:varName "uri"^^xsd:string . | 7153 | +_:b27 |
| 7154 | + sp:varName "relationshipToMeasure"^^xsd:string . | ||
| 7127 | 7155 | ||
| 7128 | -_:b7 sp:varName "uri"^^xsd:string . | 7156 | +_:b26 |
| 7157 | + sp:varName "productionFlowPurposeType"^^xsd:string . | ||
| 7129 | 7158 | ||
| 7130 | -_:b8 sp:varName "uri"^^xsd:string . | 7159 | +_:b25 |
| 7160 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7131 | 7161 | ||
| 7132 | -_:b9 sp:varName "uri"^^xsd:string . | 7162 | +_:b24 |
| 7163 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7133 | 7164 | ||
| 7134 | -_:b10 | 7165 | +_:b23 |
| 7135 | - sp:varName "uri"^^xsd:string . | 7166 | + sp:varName "productionFlowDefinitionType"^^xsd:string . |
| 7136 | 7167 | ||
| 7137 | -_:b11 | 7168 | +_:b22 |
| 7138 | - sp:varName "uri"^^xsd:string . | 7169 | + sp:varName "productionFacilityType"^^xsd:string . |
| 7139 | 7170 | ||
| 7140 | -_:b12 | 7171 | +_:b21 |
| 7141 | - sp:varName "uri"^^xsd:string . | 7172 | + sp:varName "productType"^^xsd:string . |
| 7142 | 7173 | ||
| 7143 | -_:b13 | 7174 | +_:b20 |
| 7175 | + sp:varName "densityScale"^^xsd:string . | ||
| 7176 | + | ||
| 7177 | +_:b19 | ||
| 7144 | sp:varName "uri"^^xsd:string . | 7178 | sp:varName "uri"^^xsd:string . |
| 7145 | 7179 | ||
| 7146 | -_:b14 | 7180 | +_:b18 |
| 7147 | sp:varName "uri"^^xsd:string . | 7181 | sp:varName "uri"^^xsd:string . |
| 7148 | 7182 | ||
| 7149 | -_:b15 | 7183 | +_:b17 |
| 7150 | sp:varName "uri"^^xsd:string . | 7184 | sp:varName "uri"^^xsd:string . |
| 7151 | 7185 | ||
| 7152 | _:b16 | 7186 | _:b16 |
| 7153 | sp:varName "uri"^^xsd:string . | 7187 | sp:varName "uri"^^xsd:string . |
| 7154 | 7188 | ||
| 7155 | -_:b17 | 7189 | +_:b15 |
| 7156 | sp:varName "uri"^^xsd:string . | 7190 | sp:varName "uri"^^xsd:string . |
| 7157 | 7191 | ||
| 7158 | -_:b18 | 7192 | +_:b14 |
| 7159 | sp:varName "uri"^^xsd:string . | 7193 | sp:varName "uri"^^xsd:string . |
| 7160 | 7194 | ||
| 7161 | -_:b19 | 7195 | +_:b13 |
| 7162 | sp:varName "uri"^^xsd:string . | 7196 | sp:varName "uri"^^xsd:string . |
| 7163 | 7197 | ||
| 7164 | -_:b20 | 7198 | +_:b12 |
| 7165 | - sp:varName "densityScale"^^xsd:string . | 7199 | + sp:varName "uri"^^xsd:string . |
| 7166 | - | ||
| 7167 | -_:b21 | ||
| 7168 | - sp:varName "productType"^^xsd:string . | ||
| 7169 | 7200 | ||
| 7170 | -_:b22 | 7201 | +_:b11 |
| 7171 | - sp:varName "productionFacilityType"^^xsd:string . | 7202 | + sp:varName "uri"^^xsd:string . |
| 7172 | 7203 | ||
| 7173 | -_:b23 | 7204 | +_:b10 |
| 7174 | - sp:varName "productionFlowDefinitionType"^^xsd:string . | 7205 | + sp:varName "uri"^^xsd:string . |
| 7175 | 7206 | ||
| 7176 | -_:b24 | 7207 | +_:b9 sp:varName "uri"^^xsd:string . |
| 7177 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7178 | 7208 | ||
| 7179 | -_:b25 | 7209 | +_:b8 sp:varName "uri"^^xsd:string . |
| 7180 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7181 | 7210 | ||
| 7182 | -_:b26 | 7211 | +_:b7 sp:varName "uri"^^xsd:string . |
| 7183 | - sp:varName "productionFlowPurposeType"^^xsd:string . | ||
| 7184 | 7212 | ||
| 7185 | -_:b27 | 7213 | +_:b6 sp:varName "uri"^^xsd:string . |
| 7186 | - sp:varName "relationshipToMeasure"^^xsd:string . | ||
| 7187 | 7214 | ||
| 7188 | -_:b28 | 7215 | +_:b5 sp:varName "uri"^^xsd:string . |
| 7189 | - sp:varName "safetyActivityType"^^xsd:string . | ||
| 7190 | 7216 | ||
| 7191 | -_:b29 | 7217 | +_:b4 sp:varName "uri"^^xsd:string . |
| 7192 | - sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7193 | 7218 | ||
| 7194 | -_:b30 | 7219 | +_:b3 sp:varName "UUID"^^xsd:string . |
| 7195 | - sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | ||
| 7196 | 7220 | ||
| 7197 | -_:b31 | 7221 | +_:b2 sp:varName "uri"^^xsd:string . |
| 7198 | - sp:varName "volumeAtStdType"^^xsd:string . | ||
| 7199 | 7222 | ||
| 7200 | -_:b32 | 7223 | +_:b1 sp:varName "uri"^^xsd:string . |
| 7201 | - sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ... | ... |
| ... | @@ -3690,3 +3690,195 @@ ep-mpr-spin-lib:SelectWorkScale | ... | @@ -3690,3 +3690,195 @@ ep-mpr-spin-lib:SelectWorkScale |
| 3690 | 3690 | ||
| 3691 | ep-mpr-spin-lib:selectMap | 3691 | ep-mpr-spin-lib:selectMap |
| 3692 | rdf:type owl:ObjectProperty . | 3692 | rdf:type owl:ObjectProperty . |
| 3693 | + | ||
| 3694 | +ep-mpr-spin-lib:selectProductionFacilityType | ||
| 3695 | + rdf:type spin:Function ; | ||
| 3696 | + rdfs:label "select ProductionFacilityType"^^xsd:string ; | ||
| 3697 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
| 3698 | + spin:body | ||
| 3699 | + [ rdf:type sp:Select ; | ||
| 3700 | + sp:resultVariables ([ sp:varName "productionFacilityType"^^xsd:string | ||
| 3701 | + ]) ; | ||
| 3702 | + sp:where ([ rdf:type sp:Bind ; | ||
| 3703 | + sp:expression | ||
| 3704 | + [ rdf:type sp:if ; | ||
| 3705 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3706 | + sp:arg1 spin:_arg1 ; | ||
| 3707 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field> | ||
| 3708 | + ] ; | ||
| 3709 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
| 3710 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3711 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3712 | + sp:arg1 spin:_arg1 ; | ||
| 3713 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_country> | ||
| 3714 | + ] ; | ||
| 3715 | + sp:arg2 <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
| 3716 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3717 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3718 | + sp:arg1 spin:_arg1 ; | ||
| 3719 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_controller--lift> | ||
| 3720 | + ] ; | ||
| 3721 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Controller-lift> ; | ||
| 3722 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3723 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3724 | + sp:arg1 spin:_arg1 ; | ||
| 3725 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_unknown> | ||
| 3726 | + ] ; | ||
| 3727 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 3728 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3729 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3730 | + sp:arg1 spin:_arg1 ; | ||
| 3731 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_completion> | ||
| 3732 | + ] ; | ||
| 3733 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Completion> ; | ||
| 3734 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3735 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3736 | + sp:arg1 spin:_arg1 ; | ||
| 3737 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_manifold--production> | ||
| 3738 | + ] ; | ||
| 3739 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold-production> ; | ||
| 3740 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3741 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3742 | + sp:arg1 spin:_arg1 ; | ||
| 3743 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_wellbore> | ||
| 3744 | + ] ; | ||
| 3745 | + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
| 3746 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3747 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3748 | + sp:arg1 spin:_arg1 ; | ||
| 3749 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_template> | ||
| 3750 | + ] ; | ||
| 3751 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Template> ; | ||
| 3752 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3753 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3754 | + sp:arg1 spin:_arg1 ; | ||
| 3755 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_platform> | ||
| 3756 | + ] ; | ||
| 3757 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Platform> ; | ||
| 3758 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3759 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3760 | + sp:arg1 spin:_arg1 ; | ||
| 3761 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_zone> | ||
| 3762 | + ] ; | ||
| 3763 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Zone> ; | ||
| 3764 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3765 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3766 | + sp:arg1 spin:_arg1 ; | ||
| 3767 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_wellhead> | ||
| 3768 | + ] ; | ||
| 3769 | + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellHead> ; | ||
| 3770 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3771 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3772 | + sp:arg1 spin:_arg1 ; | ||
| 3773 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_state> | ||
| 3774 | + ] ; | ||
| 3775 | + sp:arg2 <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
| 3776 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3777 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3778 | + sp:arg1 spin:_arg1 ; | ||
| 3779 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_wellgroup> | ||
| 3780 | + ] ; | ||
| 3781 | + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellGroup> ; | ||
| 3782 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3783 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3784 | + sp:arg1 spin:_arg1 ; | ||
| 3785 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_flowline--production> | ||
| 3786 | + ] ; | ||
| 3787 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Flowline-production> ; | ||
| 3788 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3789 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3790 | + sp:arg1 spin:_arg1 ; | ||
| 3791 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_cluster> | ||
| 3792 | + ] ; | ||
| 3793 | + sp:arg2 <http://www.reportinghub.no/ep/schema/well#Cluster> ; | ||
| 3794 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3795 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3796 | + sp:arg1 spin:_arg1 ; | ||
| 3797 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_bottomhole> | ||
| 3798 | + ] ; | ||
| 3799 | + sp:arg2 <http://www.reportinghub.no/ep/schema/well#WellBoreBottom> ; | ||
| 3800 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3801 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3802 | + sp:arg1 spin:_arg1 ; | ||
| 3803 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_manifold--injection> | ||
| 3804 | + ] ; | ||
| 3805 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold-injection> ; | ||
| 3806 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3807 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3808 | + sp:arg1 spin:_arg1 ; | ||
| 3809 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_tank> | ||
| 3810 | + ] ; | ||
| 3811 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Tank> ; | ||
| 3812 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3813 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3814 | + sp:arg1 spin:_arg1 ; | ||
| 3815 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_county> | ||
| 3816 | + ] ; | ||
| 3817 | + sp:arg2 <http://www.reportinghub.no/ep/schema/geography#County> ; | ||
| 3818 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3819 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3820 | + sp:arg1 spin:_arg1 ; | ||
| 3821 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_separator> | ||
| 3822 | + ] ; | ||
| 3823 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Separator> ; | ||
| 3824 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3825 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3826 | + sp:arg1 spin:_arg1 ; | ||
| 3827 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_lease> | ||
| 3828 | + ] ; | ||
| 3829 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Lease> ; | ||
| 3830 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3831 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3832 | + sp:arg1 spin:_arg1 ; | ||
| 3833 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_flowline> | ||
| 3834 | + ] ; | ||
| 3835 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Flowline> ; | ||
| 3836 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3837 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3838 | + sp:arg1 spin:_arg1 ; | ||
| 3839 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_reservoir> | ||
| 3840 | + ] ; | ||
| 3841 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Reservoir> ; | ||
| 3842 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3843 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3844 | + sp:arg1 spin:_arg1 ; | ||
| 3845 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_well> | ||
| 3846 | + ] ; | ||
| 3847 | + sp:arg2 <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
| 3848 | + sp:arg3 [ rdf:type sp:if ; | ||
| 3849 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 3850 | + sp:arg1 spin:_arg1 ; | ||
| 3851 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_compressor> | ||
| 3852 | + ] ; | ||
| 3853 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Compressor> ; | ||
| 3854 | + sp:arg3 <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> | ||
| 3855 | + ] | ||
| 3856 | + ] | ||
| 3857 | + ] | ||
| 3858 | + ] | ||
| 3859 | + ] | ||
| 3860 | + ] | ||
| 3861 | + ] | ||
| 3862 | + ] | ||
| 3863 | + ] | ||
| 3864 | + ] | ||
| 3865 | + ] | ||
| 3866 | + ] | ||
| 3867 | + ] | ||
| 3868 | + ] | ||
| 3869 | + ] | ||
| 3870 | + ] | ||
| 3871 | + ] | ||
| 3872 | + ] | ||
| 3873 | + ] | ||
| 3874 | + ] | ||
| 3875 | + ] | ||
| 3876 | + ] | ||
| 3877 | + ] | ||
| 3878 | + ] | ||
| 3879 | + ] ; | ||
| 3880 | + sp:variable | ||
| 3881 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 3882 | + ] | ||
| 3883 | + ]) | ||
| 3884 | + ] . | ... | ... |
| ... | @@ -12,6 +12,7 @@ | ... | @@ -12,6 +12,7 @@ |
| 12 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 12 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
| 13 | @prefix arg: <http://spinrdf.org/arg#> . | 13 | @prefix arg: <http://spinrdf.org/arg#> . |
| 14 | @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | 14 | @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . |
| 15 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | ||
| 15 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 16 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
| 16 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 17 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 17 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 18 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| ... | @@ -31,37 +32,25 @@ | ... | @@ -31,37 +32,25 @@ |
| 31 | <http://www.witsml.org/schemas/131/addendum/combo#A_Global-WITSMLComposite> | 32 | <http://www.witsml.org/schemas/131/addendum/combo#A_Global-WITSMLComposite> |
| 32 | spin:rule | 33 | spin:rule |
| 33 | [ rdf:type sp:Construct ; | 34 | [ rdf:type sp:Construct ; |
| 34 | - rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ; | 35 | + rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; |
| 35 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 36 | + sp:templates ([ sp:object |
| 36 | - sp:predicate rdf:type ; | 37 | + [ sp:varName "state"^^xsd:string |
| 37 | - sp:subject _:b1 | ||
| 38 | - ] [ sp:object _:b2 ; | ||
| 39 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 40 | - sp:subject _:b1 | ||
| 41 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 42 | - sp:predicate rdf:type ; | ||
| 43 | - sp:subject _:b2 | ||
| 44 | - ] [ sp:object | ||
| 45 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 46 | ] ; | 38 | ] ; |
| 47 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 39 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 48 | - sp:subject _:b1 | ||
| 49 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 50 | - sp:predicate rdf:type ; | ||
| 51 | sp:subject | 40 | sp:subject |
| 52 | - [ sp:varName "productionContextFacility"^^xsd:string | 41 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 53 | ] | 42 | ] |
| 54 | - ] [ sp:object | 43 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; |
| 55 | - [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 56 | - ] ; | ||
| 57 | sp:predicate rdf:type ; | 44 | sp:predicate rdf:type ; |
| 58 | sp:subject | 45 | sp:subject |
| 59 | - [ sp:varName "productionContextFacility"^^xsd:string | 46 | + [ sp:varName "state"^^xsd:string |
| 60 | ] | 47 | ] |
| 61 | - ] [ sp:object _:b2 ; | 48 | + ] [ sp:object |
| 62 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 49 | + [ sp:varName "stateName"^^xsd:string |
| 50 | + ] ; | ||
| 51 | + sp:predicate rdfs:label ; | ||
| 63 | sp:subject | 52 | sp:subject |
| 64 | - [ sp:varName "productionContextFacility"^^xsd:string | 53 | + [ sp:varName "state"^^xsd:string |
| 65 | ] | 54 | ] |
| 66 | ]) ; | 55 | ]) ; |
| 67 | sp:where ([ sp:object | 56 | sp:where ([ sp:object |
| ... | @@ -77,28 +66,84 @@ | ... | @@ -77,28 +66,84 @@ |
| 77 | [ sp:varName "productVolumeSet"^^xsd:string | 66 | [ sp:varName "productVolumeSet"^^xsd:string |
| 78 | ] | 67 | ] |
| 79 | ] [ sp:object | 68 | ] [ sp:object |
| 80 | - [ sp:varName "contextFacilityRef"^^xsd:string | 69 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 81 | ] ; | 70 | ] ; |
| 82 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#contextFacilityRef> ; | 71 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; |
| 83 | sp:subject | 72 | sp:subject |
| 84 | [ sp:varName "productVolumeRef"^^xsd:string | 73 | [ sp:varName "productVolumeRef"^^xsd:string |
| 85 | ] | 74 | ] |
| 86 | ] [ sp:object | 75 | ] [ sp:object |
| 87 | - [ sp:varName "contextFacilityName"^^xsd:string | 76 | + [ sp:varName "stateName"^^xsd:string |
| 88 | ] ; | 77 | ] ; |
| 89 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 78 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#state> ; |
| 90 | sp:subject | 79 | sp:subject |
| 91 | - [ sp:varName "contextFacilityRef"^^xsd:string | 80 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 92 | ] | 81 | ] |
| 93 | - ] [ rdf:type sp:Optional ; | 82 | + ] [ sp:object |
| 94 | - sp:elements ([ sp:object | 83 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 95 | - [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 96 | ] ; | 84 | ] ; |
| 97 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 85 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 98 | sp:subject | 86 | sp:subject |
| 99 | - [ sp:varName "contextFacilityRef"^^xsd:string | 87 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 88 | + ] | ||
| 89 | + ] [ rdf:type sp:Bind ; | ||
| 90 | + sp:expression | ||
| 91 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 92 | + sp:arg1 [ sp:varName "stateName"^^xsd:string | ||
| 93 | + ] | ||
| 94 | + ] ; | ||
| 95 | + sp:variable | ||
| 96 | + [ sp:varName "normalizedStateName"^^xsd:string | ||
| 97 | + ] | ||
| 98 | + ] [ rdf:type sp:Bind ; | ||
| 99 | + sp:expression | ||
| 100 | + [ rdf:type ep-dpr-spin-lib:buildStateURI ; | ||
| 101 | + sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | ||
| 102 | + ] | ||
| 103 | + ] ; | ||
| 104 | + sp:variable | ||
| 105 | + [ sp:varName "state"^^xsd:string | ||
| 100 | ] | 106 | ] |
| 101 | ]) | 107 | ]) |
| 108 | + ] ; | ||
| 109 | + spin:rule | ||
| 110 | + [ rdf:type sp:Construct ; | ||
| 111 | + rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist | ||
| 112 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 113 | + sp:templates ([ sp:object | ||
| 114 | + [ sp:varName "operator"^^xsd:string | ||
| 115 | + ] ; | ||
| 116 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 117 | + sp:subject | ||
| 118 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 119 | + ] | ||
| 120 | + ]) ; | ||
| 121 | + sp:where ([ sp:object | ||
| 122 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 123 | + ] ; | ||
| 124 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 125 | + sp:subject spin:_this | ||
| 126 | + ] [ sp:object | ||
| 127 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 128 | + ] ; | ||
| 129 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 130 | + sp:subject | ||
| 131 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 132 | + ] | ||
| 133 | + ] [ sp:object | ||
| 134 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 135 | + ] ; | ||
| 136 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; | ||
| 137 | + sp:subject | ||
| 138 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 139 | + ] | ||
| 140 | + ] [ sp:object | ||
| 141 | + [ sp:varName "operatorName"^^xsd:string | ||
| 142 | + ] ; | ||
| 143 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
| 144 | + sp:subject | ||
| 145 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 146 | + ] | ||
| 102 | ] [ sp:object | 147 | ] [ sp:object |
| 103 | [ sp:varName "productVolumeRef"^^xsd:string | 148 | [ sp:varName "productVolumeRef"^^xsd:string |
| 104 | ] ; | 149 | ] ; |
| ... | @@ -113,14 +158,18 @@ | ... | @@ -113,14 +158,18 @@ |
| 113 | sp:subject | 158 | sp:subject |
| 114 | [ sp:varName "dailyProductionFlow"^^xsd:string | 159 | [ sp:varName "dailyProductionFlow"^^xsd:string |
| 115 | ] | 160 | ] |
| 116 | - ] [ rdf:type sp:NotExists ; | 161 | + ] [ sp:object |
| 117 | - sp:elements ([ sp:object | ||
| 118 | [ sp:varName "productionFlowToDate"^^xsd:string | 162 | [ sp:varName "productionFlowToDate"^^xsd:string |
| 119 | ] ; | 163 | ] ; |
| 120 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 164 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 121 | sp:subject | 165 | sp:subject |
| 122 | [ sp:varName "productionFacilityToDate"^^xsd:string | 166 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 123 | ] | 167 | ] |
| 168 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 169 | + sp:predicate rdf:type ; | ||
| 170 | + sp:subject | ||
| 171 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 172 | + ] | ||
| 124 | ] [ sp:object | 173 | ] [ sp:object |
| 125 | [ sp:varName "productionFacility"^^xsd:string | 174 | [ sp:varName "productionFacility"^^xsd:string |
| 126 | ] ; | 175 | ] ; |
| ... | @@ -128,46 +177,48 @@ | ... | @@ -128,46 +177,48 @@ |
| 128 | sp:subject | 177 | sp:subject |
| 129 | [ sp:varName "productionFacilityToDate"^^xsd:string | 178 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 130 | ] | 179 | ] |
| 131 | - ]) | ||
| 132 | ] [ rdf:type sp:Bind ; | 180 | ] [ rdf:type sp:Bind ; |
| 133 | sp:expression | 181 | sp:expression |
| 134 | [ rdf:type ep-spin-lib:normalizeString ; | 182 | [ rdf:type ep-spin-lib:normalizeString ; |
| 135 | - sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | 183 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string |
| 136 | - ] | ||
| 137 | - ] ; | ||
| 138 | - sp:variable | ||
| 139 | - [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 140 | - ] | ||
| 141 | - ] [ rdf:type sp:Bind ; | ||
| 142 | - sp:expression | ||
| 143 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 144 | - sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 145 | ] | 184 | ] |
| 146 | ] ; | 185 | ] ; |
| 147 | sp:variable | 186 | sp:variable |
| 148 | - [ sp:varName "productionContextFacility"^^xsd:string | 187 | + [ sp:varName "normalizedOperatorName"^^xsd:string |
| 149 | ] | 188 | ] |
| 150 | ] [ rdf:type sp:Bind ; | 189 | ] [ rdf:type sp:Bind ; |
| 151 | sp:expression | 190 | sp:expression |
| 152 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 191 | + [ rdf:type rhspin:companyById ; |
| 153 | - sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | 192 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string |
| 154 | ] | 193 | ] |
| 155 | ] ; | 194 | ] ; |
| 156 | sp:variable | 195 | sp:variable |
| 157 | - [ sp:varName "productionContextFacilityType"^^xsd:string | 196 | + [ sp:varName "operator"^^xsd:string |
| 158 | ] | 197 | ] |
| 159 | ]) | 198 | ]) |
| 160 | ] ; | 199 | ] ; |
| 161 | spin:rule | 200 | spin:rule |
| 162 | [ rdf:type sp:Construct ; | 201 | [ rdf:type sp:Construct ; |
| 163 | - rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ; | 202 | + rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; |
| 164 | sp:templates ([ sp:object | 203 | sp:templates ([ sp:object |
| 165 | - [ sp:varName "block"^^xsd:string | 204 | + [ sp:varName "country"^^xsd:string |
| 166 | ] ; | 205 | ] ; |
| 167 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 206 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 168 | sp:subject | 207 | sp:subject |
| 169 | [ sp:varName "locationOfProductionFacility"^^xsd:string | 208 | [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 170 | ] | 209 | ] |
| 210 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
| 211 | + sp:predicate rdf:type ; | ||
| 212 | + sp:subject | ||
| 213 | + [ sp:varName "country"^^xsd:string | ||
| 214 | + ] | ||
| 215 | + ] [ sp:object | ||
| 216 | + [ sp:varName "countryName"^^xsd:string | ||
| 217 | + ] ; | ||
| 218 | + sp:predicate rdfs:label ; | ||
| 219 | + sp:subject | ||
| 220 | + [ sp:varName "country"^^xsd:string | ||
| 221 | + ] | ||
| 171 | ]) ; | 222 | ]) ; |
| 172 | sp:where ([ sp:object | 223 | sp:where ([ sp:object |
| 173 | [ sp:varName "productVolumeSet"^^xsd:string | 224 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -189,20 +240,13 @@ | ... | @@ -189,20 +240,13 @@ |
| 189 | [ sp:varName "productVolumeRef"^^xsd:string | 240 | [ sp:varName "productVolumeRef"^^xsd:string |
| 190 | ] | 241 | ] |
| 191 | ] [ sp:object | 242 | ] [ sp:object |
| 192 | - [ sp:varName "offshoreLocationRef"^^xsd:string | 243 | + [ sp:varName "countryName"^^xsd:string |
| 193 | ] ; | 244 | ] ; |
| 194 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#offshoreLocationRef> ; | 245 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#country> ; |
| 195 | sp:subject | 246 | sp:subject |
| 196 | [ sp:varName "geographicContextRef"^^xsd:string | 247 | [ sp:varName "geographicContextRef"^^xsd:string |
| 197 | ] | 248 | ] |
| 198 | ] [ sp:object | 249 | ] [ sp:object |
| 199 | - [ sp:varName "blockId"^^xsd:string | ||
| 200 | - ] ; | ||
| 201 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#blockID> ; | ||
| 202 | - sp:subject | ||
| 203 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 204 | - ] | ||
| 205 | - ] [ sp:object | ||
| 206 | [ sp:varName "geographicContextRef"^^xsd:string | 250 | [ sp:varName "geographicContextRef"^^xsd:string |
| 207 | ] ; | 251 | ] ; |
| 208 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 252 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| ... | @@ -212,31 +256,254 @@ | ... | @@ -212,31 +256,254 @@ |
| 212 | ] [ rdf:type sp:Bind ; | 256 | ] [ rdf:type sp:Bind ; |
| 213 | sp:expression | 257 | sp:expression |
| 214 | [ rdf:type ep-spin-lib:normalizeString ; | 258 | [ rdf:type ep-spin-lib:normalizeString ; |
| 215 | - sp:arg1 [ sp:varName "blockId"^^xsd:string | 259 | + sp:arg1 [ sp:varName "countryName"^^xsd:string |
| 216 | ] | 260 | ] |
| 217 | ] ; | 261 | ] ; |
| 218 | sp:variable | 262 | sp:variable |
| 219 | - [ sp:varName "normalizedBlockId"^^xsd:string | 263 | + [ sp:varName "normalizedCountryName"^^xsd:string |
| 220 | ] | 264 | ] |
| 221 | ] [ rdf:type sp:Bind ; | 265 | ] [ rdf:type sp:Bind ; |
| 222 | sp:expression | 266 | sp:expression |
| 223 | - [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | 267 | + [ rdf:type ep-dpr-spin-lib:buildCountryURI ; |
| 224 | - sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | 268 | + sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string |
| 269 | + ] | ||
| 270 | + ] ; | ||
| 271 | + sp:variable | ||
| 272 | + [ sp:varName "country"^^xsd:string | ||
| 273 | + ] | ||
| 274 | + ]) | ||
| 275 | + ] ; | ||
| 276 | + spin:rule | ||
| 277 | + [ rdf:type sp:Construct ; | ||
| 278 | + rdfs:comment "STEP 20001b Add the report kind ."^^xsd:string ; | ||
| 279 | + sp:templates ([ sp:object | ||
| 280 | + [ sp:varName "reportKind"^^xsd:string | ||
| 281 | + ] ; | ||
| 282 | + sp:predicate rdf:type ; | ||
| 283 | + sp:subject | ||
| 284 | + [ sp:varName "dailyProductVolumeReport"^^xsd:string | ||
| 285 | + ] | ||
| 286 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
| 287 | + sp:predicate rdf:type ; | ||
| 288 | + sp:subject | ||
| 289 | + [ sp:varName "reportKind"^^xsd:string | ||
| 290 | + ] | ||
| 291 | + ] [ sp:object | ||
| 292 | + [ sp:varName "kind"^^xsd:string | ||
| 293 | + ] ; | ||
| 294 | + sp:predicate rdfs:label ; | ||
| 295 | + sp:subject | ||
| 296 | + [ sp:varName "reportKind"^^xsd:string | ||
| 297 | + ] | ||
| 298 | + ]) ; | ||
| 299 | + sp:where ([ sp:object spin:_this ; | ||
| 300 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 301 | + sp:subject | ||
| 302 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 303 | + ] | ||
| 304 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ; | ||
| 305 | + sp:predicate rdf:type ; | ||
| 306 | + sp:subject | ||
| 307 | + [ sp:varName "dailyProductVolumeReport"^^xsd:string | ||
| 308 | + ] | ||
| 309 | + ] [ sp:object | ||
| 310 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 311 | + ] ; | ||
| 312 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 313 | + sp:subject | ||
| 314 | + [ sp:varName "dailyProductVolumeReport"^^xsd:string | ||
| 315 | + ] | ||
| 316 | + ] [ sp:object | ||
| 317 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 318 | + ] ; | ||
| 319 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 320 | + sp:subject spin:_this | ||
| 321 | + ] [ sp:object | ||
| 322 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 323 | + ] ; | ||
| 324 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 325 | + sp:subject | ||
| 326 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 327 | + ] | ||
| 328 | + ] [ sp:object | ||
| 329 | + [ sp:varName "name"^^xsd:string | ||
| 330 | + ] ; | ||
| 331 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
| 332 | + sp:subject | ||
| 333 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 334 | + ] | ||
| 335 | + ] [ sp:object | ||
| 336 | + [ sp:varName "kind"^^xsd:string | ||
| 337 | + ] ; | ||
| 338 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kind> ; | ||
| 339 | + sp:subject | ||
| 340 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 341 | + ] | ||
| 342 | + ] [ rdf:type sp:Bind ; | ||
| 343 | + sp:expression | ||
| 344 | + [ rdf:type ep-dpr-spin-lib:selectProductVolumeReportPeriodType ; | ||
| 345 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 346 | + ] | ||
| 347 | + ] ; | ||
| 348 | + sp:variable | ||
| 349 | + [ sp:varName "productVolumeReportPeriodType"^^xsd:string | ||
| 350 | + ] | ||
| 351 | + ]) | ||
| 352 | + ] ; | ||
| 353 | + spin:rule | ||
| 354 | + [ rdf:type sp:Construct ; | ||
| 355 | + rdfs:comment "STEP 20002b Record the end date"^^xsd:string ; | ||
| 356 | + sp:templates ([ sp:object | ||
| 357 | + [ sp:varName "dateStart"^^xsd:string | ||
| 358 | + ] ; | ||
| 359 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 360 | + sp:subject | ||
| 361 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 362 | + ] | ||
| 363 | + ] [ sp:object | ||
| 364 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 365 | + ] ; | ||
| 366 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 367 | + sp:subject | ||
| 368 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 369 | + ] | ||
| 370 | + ] [ sp:object | ||
| 371 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 372 | + ] ; | ||
| 373 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 374 | + sp:subject | ||
| 375 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 376 | + ] | ||
| 377 | + ]) ; | ||
| 378 | + sp:where ([ sp:object | ||
| 379 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 380 | + ] ; | ||
| 381 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 382 | + sp:subject spin:_this | ||
| 383 | + ] [ sp:object | ||
| 384 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 385 | + ] ; | ||
| 386 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 387 | + sp:subject | ||
| 388 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 389 | + ] | ||
| 390 | + ] [ sp:object | ||
| 391 | + [ sp:varName "dateStart"^^xsd:string | ||
| 392 | + ] ; | ||
| 393 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; | ||
| 394 | + sp:subject | ||
| 395 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 396 | + ] | ||
| 397 | + ] [ sp:object | ||
| 398 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 399 | + ] ; | ||
| 400 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | ||
| 401 | + sp:subject | ||
| 402 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 403 | + ] | ||
| 404 | + ] [ sp:object | ||
| 405 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 406 | + ] ; | ||
| 407 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 408 | + sp:subject | ||
| 409 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 410 | + ] | ||
| 411 | + ] [ sp:object | ||
| 412 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 413 | + ] ; | ||
| 414 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 415 | + sp:subject | ||
| 416 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 417 | + ] | ||
| 418 | + ]) | ||
| 419 | + ] ; | ||
| 420 | + spin:rule | ||
| 421 | + [ rdf:type sp:Construct ; | ||
| 422 | + rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ; | ||
| 423 | + sp:templates ([ sp:object | ||
| 424 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 425 | + ] ; | ||
| 426 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 427 | + sp:subject | ||
| 428 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 429 | + ] | ||
| 430 | + ] [ sp:object | ||
| 431 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 432 | + ] ; | ||
| 433 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 434 | + sp:subject | ||
| 435 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 436 | + ] | ||
| 437 | + ] [ sp:object | ||
| 438 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 439 | + ] ; | ||
| 440 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 441 | + sp:subject | ||
| 442 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 443 | + ] | ||
| 444 | + ]) ; | ||
| 445 | + sp:where ([ sp:object | ||
| 446 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 447 | + ] ; | ||
| 448 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 449 | + sp:subject spin:_this | ||
| 450 | + ] [ sp:object | ||
| 451 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 452 | + ] ; | ||
| 453 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 454 | + sp:subject | ||
| 455 | + [ sp:varName "productVolumeSet"^^xsd:string | ||
| 456 | + ] | ||
| 457 | + ] [ sp:object | ||
| 458 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 459 | + ] ; | ||
| 460 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; | ||
| 461 | + sp:subject | ||
| 462 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 463 | + ] | ||
| 464 | + ] [ sp:object | ||
| 465 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 466 | + ] ; | ||
| 467 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | ||
| 468 | + sp:subject | ||
| 469 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 225 | ] | 470 | ] |
| 471 | + ] [ sp:object | ||
| 472 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 226 | ] ; | 473 | ] ; |
| 227 | - sp:variable | 474 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 228 | - [ sp:varName "block"^^xsd:string | 475 | + sp:subject |
| 476 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 477 | + ] | ||
| 478 | + ] [ sp:object | ||
| 479 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 480 | + ] ; | ||
| 481 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 482 | + sp:subject | ||
| 483 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 229 | ] | 484 | ] |
| 230 | ]) | 485 | ]) |
| 231 | ] ; | 486 | ] ; |
| 232 | spin:rule | 487 | spin:rule |
| 233 | [ rdf:type sp:Construct ; | 488 | [ rdf:type sp:Construct ; |
| 234 | - rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ; | 489 | + rdfs:comment "STEP 20006b Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility not already defined"^^xsd:string ; |
| 235 | - sp:templates ([ sp:object _:b3 ; | 490 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 236 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | 491 | + sp:predicate rdf:type ; |
| 237 | - sp:subject | 492 | + sp:subject _:b1 |
| 238 | - [ sp:varName "productionFacility"^^xsd:string | 493 | + ] [ sp:object _:b2 ; |
| 239 | - ] | 494 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 495 | + sp:subject _:b1 | ||
| 496 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 497 | + sp:predicate rdf:type ; | ||
| 498 | + sp:subject _:b2 | ||
| 499 | + ] [ sp:object | ||
| 500 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 501 | + ] ; | ||
| 502 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 503 | + sp:subject _:b1 | ||
| 504 | + ] [ sp:object _:b3 ; | ||
| 505 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 506 | + sp:subject _:b2 | ||
| 240 | ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | 507 | ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; |
| 241 | sp:predicate rdf:type ; | 508 | sp:predicate rdf:type ; |
| 242 | sp:subject _:b3 | 509 | sp:subject _:b3 |
| ... | @@ -245,11 +512,6 @@ | ... | @@ -245,11 +512,6 @@ |
| 245 | ] ; | 512 | ] ; |
| 246 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 513 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 247 | sp:subject _:b3 | 514 | sp:subject _:b3 |
| 248 | - ] [ sp:object | ||
| 249 | - [ sp:varName "comment"^^xsd:string | ||
| 250 | - ] ; | ||
| 251 | - sp:predicate rdfs:comment ; | ||
| 252 | - sp:subject _:b3 | ||
| 253 | ]) ; | 515 | ]) ; |
| 254 | sp:where ([ sp:object | 516 | sp:where ([ sp:object |
| 255 | [ sp:varName "productVolumeSet"^^xsd:string | 517 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -293,7 +555,8 @@ | ... | @@ -293,7 +555,8 @@ |
| 293 | sp:subject | 555 | sp:subject |
| 294 | [ sp:varName "dailyProductionFlow"^^xsd:string | 556 | [ sp:varName "dailyProductionFlow"^^xsd:string |
| 295 | ] | 557 | ] |
| 296 | - ] [ sp:object | 558 | + ] [ rdf:type sp:NotExists ; |
| 559 | + sp:elements ([ sp:object | ||
| 297 | [ sp:varName "productionFlowToDate"^^xsd:string | 560 | [ sp:varName "productionFlowToDate"^^xsd:string |
| 298 | ] ; | 561 | ] ; |
| 299 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 562 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| ... | @@ -313,35 +576,30 @@ | ... | @@ -313,35 +576,30 @@ |
| 313 | [ sp:varName "productionFacilityToDate"^^xsd:string | 576 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 314 | ] | 577 | ] |
| 315 | ]) | 578 | ]) |
| 579 | + ]) | ||
| 316 | ] ; | 580 | ] ; |
| 317 | spin:rule | 581 | spin:rule |
| 318 | [ rdf:type sp:Construct ; | 582 | [ rdf:type sp:Construct ; |
| 319 | - rdfs:comment "STEP 20006b Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility not already defined"^^xsd:string ; | 583 | + rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ; |
| 320 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 584 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
| 321 | - sp:predicate rdf:type ; | ||
| 322 | - sp:subject _:b4 | ||
| 323 | - ] [ sp:object _:b5 ; | ||
| 324 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 325 | - sp:subject _:b4 | ||
| 326 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 327 | sp:predicate rdf:type ; | 585 | sp:predicate rdf:type ; |
| 328 | - sp:subject _:b5 | 586 | + sp:subject |
| 587 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 588 | + ] | ||
| 329 | ] [ sp:object | 589 | ] [ sp:object |
| 330 | - [ sp:varName "productionFlowToDate"^^xsd:string | 590 | + [ sp:varName "productionContextFacilityType"^^xsd:string |
| 331 | ] ; | 591 | ] ; |
| 332 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 333 | - sp:subject _:b4 | ||
| 334 | - ] [ sp:object _:b6 ; | ||
| 335 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 336 | - sp:subject _:b5 | ||
| 337 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 338 | sp:predicate rdf:type ; | 592 | sp:predicate rdf:type ; |
| 339 | - sp:subject _:b6 | 593 | + sp:subject |
| 594 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 595 | + ] | ||
| 340 | ] [ sp:object | 596 | ] [ sp:object |
| 341 | - [ sp:varName "geographicContextRef"^^xsd:string | 597 | + [ sp:varName "productionFacility"^^xsd:string |
| 342 | ] ; | 598 | ] ; |
| 343 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 599 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
| 344 | - sp:subject _:b6 | 600 | + sp:subject |
| 601 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 602 | + ] | ||
| 345 | ]) ; | 603 | ]) ; |
| 346 | sp:where ([ sp:object | 604 | sp:where ([ sp:object |
| 347 | [ sp:varName "productVolumeSet"^^xsd:string | 605 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -356,19 +614,26 @@ | ... | @@ -356,19 +614,26 @@ |
| 356 | [ sp:varName "productVolumeSet"^^xsd:string | 614 | [ sp:varName "productVolumeSet"^^xsd:string |
| 357 | ] | 615 | ] |
| 358 | ] [ sp:object | 616 | ] [ sp:object |
| 359 | - [ sp:varName "geographicContextRef"^^xsd:string | 617 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 360 | ] ; | 618 | ] ; |
| 361 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; | 619 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#contextFacilityRef> ; |
| 362 | sp:subject | 620 | sp:subject |
| 363 | [ sp:varName "productVolumeRef"^^xsd:string | 621 | [ sp:varName "productVolumeRef"^^xsd:string |
| 364 | ] | 622 | ] |
| 623 | + ] [ sp:object | ||
| 624 | + [ sp:varName "contextFacilityName"^^xsd:string | ||
| 625 | + ] ; | ||
| 626 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 627 | + sp:subject | ||
| 628 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 629 | + ] | ||
| 365 | ] [ rdf:type sp:Optional ; | 630 | ] [ rdf:type sp:Optional ; |
| 366 | sp:elements ([ sp:object | 631 | sp:elements ([ sp:object |
| 367 | - [ sp:varName "comment"^^xsd:string | 632 | + [ sp:varName "contextFacilityKind"^^xsd:string |
| 368 | ] ; | 633 | ] ; |
| 369 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#comment> ; | 634 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
| 370 | sp:subject | 635 | sp:subject |
| 371 | - [ sp:varName "geographicContextRef"^^xsd:string | 636 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 372 | ] | 637 | ] |
| 373 | ]) | 638 | ]) |
| 374 | ] [ sp:object | 639 | ] [ sp:object |
| ... | @@ -385,19 +650,13 @@ | ... | @@ -385,19 +650,13 @@ |
| 385 | sp:subject | 650 | sp:subject |
| 386 | [ sp:varName "dailyProductionFlow"^^xsd:string | 651 | [ sp:varName "dailyProductionFlow"^^xsd:string |
| 387 | ] | 652 | ] |
| 388 | - ] [ rdf:type sp:NotExists ; | 653 | + ] [ sp:object |
| 389 | - sp:elements ([ sp:object | ||
| 390 | [ sp:varName "productionFlowToDate"^^xsd:string | 654 | [ sp:varName "productionFlowToDate"^^xsd:string |
| 391 | ] ; | 655 | ] ; |
| 392 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 656 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 393 | sp:subject | 657 | sp:subject |
| 394 | [ sp:varName "productionFacilityToDate"^^xsd:string | 658 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 395 | ] | 659 | ] |
| 396 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 397 | - sp:predicate rdf:type ; | ||
| 398 | - sp:subject | ||
| 399 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 400 | - ] | ||
| 401 | ] [ sp:object | 660 | ] [ sp:object |
| 402 | [ sp:varName "productionFacility"^^xsd:string | 661 | [ sp:varName "productionFacility"^^xsd:string |
| 403 | ] ; | 662 | ] ; |
| ... | @@ -405,31 +664,58 @@ | ... | @@ -405,31 +664,58 @@ |
| 405 | sp:subject | 664 | sp:subject |
| 406 | [ sp:varName "productionFacilityToDate"^^xsd:string | 665 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 407 | ] | 666 | ] |
| 408 | - ]) | 667 | + ] [ rdf:type sp:Bind ; |
| 668 | + sp:expression | ||
| 669 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 670 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
| 671 | + ] | ||
| 672 | + ] ; | ||
| 673 | + sp:variable | ||
| 674 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 675 | + ] | ||
| 676 | + ] [ rdf:type sp:Bind ; | ||
| 677 | + sp:expression | ||
| 678 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 679 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 680 | + ] | ||
| 681 | + ] ; | ||
| 682 | + sp:variable | ||
| 683 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 684 | + ] | ||
| 685 | + ] [ rdf:type sp:Bind ; | ||
| 686 | + sp:expression | ||
| 687 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 688 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 689 | + ] | ||
| 690 | + ] ; | ||
| 691 | + sp:variable | ||
| 692 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 693 | + ] | ||
| 409 | ]) | 694 | ]) |
| 410 | ] ; | 695 | ] ; |
| 411 | spin:rule | 696 | spin:rule |
| 412 | [ rdf:type sp:Construct ; | 697 | [ rdf:type sp:Construct ; |
| 413 | - rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; | 698 | + rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist |
| 414 | - sp:templates ([ sp:object | 699 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 415 | - [ sp:varName "country"^^xsd:string | 700 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 416 | - ] ; | ||
| 417 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 418 | - sp:subject | ||
| 419 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 420 | - ] | ||
| 421 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
| 422 | sp:predicate rdf:type ; | 701 | sp:predicate rdf:type ; |
| 423 | - sp:subject | 702 | + sp:subject _:b4 |
| 424 | - [ sp:varName "country"^^xsd:string | 703 | + ] [ sp:object _:b5 ; |
| 425 | - ] | 704 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 705 | + sp:subject _:b4 | ||
| 706 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 707 | + sp:predicate rdf:type ; | ||
| 708 | + sp:subject _:b5 | ||
| 426 | ] [ sp:object | 709 | ] [ sp:object |
| 427 | - [ sp:varName "countryName"^^xsd:string | 710 | + [ sp:varName "productionFlowToDate"^^xsd:string |
| 428 | ] ; | 711 | ] ; |
| 429 | - sp:predicate rdfs:label ; | 712 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 430 | - sp:subject | 713 | + sp:subject _:b4 |
| 431 | - [ sp:varName "country"^^xsd:string | 714 | + ] [ sp:object |
| 432 | - ] | 715 | + [ sp:varName "operator"^^xsd:string |
| 716 | + ] ; | ||
| 717 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 718 | + sp:subject _:b5 | ||
| 433 | ]) ; | 719 | ]) ; |
| 434 | sp:where ([ sp:object | 720 | sp:where ([ sp:object |
| 435 | [ sp:varName "productVolumeSet"^^xsd:string | 721 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -444,69 +730,108 @@ | ... | @@ -444,69 +730,108 @@ |
| 444 | [ sp:varName "productVolumeSet"^^xsd:string | 730 | [ sp:varName "productVolumeSet"^^xsd:string |
| 445 | ] | 731 | ] |
| 446 | ] [ sp:object | 732 | ] [ sp:object |
| 447 | - [ sp:varName "geographicContextRef"^^xsd:string | 733 | + [ sp:varName "operatorRef"^^xsd:string |
| 448 | ] ; | 734 | ] ; |
| 449 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; | 735 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; |
| 450 | sp:subject | 736 | sp:subject |
| 451 | [ sp:varName "productVolumeRef"^^xsd:string | 737 | [ sp:varName "productVolumeRef"^^xsd:string |
| 452 | ] | 738 | ] |
| 453 | ] [ sp:object | 739 | ] [ sp:object |
| 454 | - [ sp:varName "countryName"^^xsd:string | 740 | + [ sp:varName "operatorName"^^xsd:string |
| 455 | ] ; | 741 | ] ; |
| 456 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#country> ; | 742 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; |
| 457 | sp:subject | 743 | sp:subject |
| 458 | - [ sp:varName "geographicContextRef"^^xsd:string | 744 | + [ sp:varName "operatorRef"^^xsd:string |
| 459 | ] | 745 | ] |
| 460 | ] [ sp:object | 746 | ] [ sp:object |
| 461 | - [ sp:varName "geographicContextRef"^^xsd:string | 747 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 462 | ] ; | 748 | ] ; |
| 463 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 749 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 464 | sp:subject | 750 | sp:subject |
| 465 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 751 | + [ sp:varName "dailyProductionFlow"^^xsd:string |
| 752 | + ] | ||
| 753 | + ] [ sp:object | ||
| 754 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 755 | + ] ; | ||
| 756 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 757 | + sp:subject | ||
| 758 | + [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 759 | + ] | ||
| 760 | + ] [ rdf:type sp:NotExists ; | ||
| 761 | + sp:elements ([ sp:object | ||
| 762 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 763 | + ] ; | ||
| 764 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 765 | + sp:subject | ||
| 766 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 767 | + ] | ||
| 768 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 769 | + sp:predicate rdf:type ; | ||
| 770 | + sp:subject | ||
| 771 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 772 | + ] | ||
| 773 | + ] [ sp:object | ||
| 774 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 775 | + ] ; | ||
| 776 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 777 | + sp:subject | ||
| 778 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 466 | ] | 779 | ] |
| 780 | + ]) | ||
| 467 | ] [ rdf:type sp:Bind ; | 781 | ] [ rdf:type sp:Bind ; |
| 468 | sp:expression | 782 | sp:expression |
| 469 | [ rdf:type ep-spin-lib:normalizeString ; | 783 | [ rdf:type ep-spin-lib:normalizeString ; |
| 470 | - sp:arg1 [ sp:varName "countryName"^^xsd:string | 784 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string |
| 471 | ] | 785 | ] |
| 472 | ] ; | 786 | ] ; |
| 473 | sp:variable | 787 | sp:variable |
| 474 | - [ sp:varName "normalizedCountryName"^^xsd:string | 788 | + [ sp:varName "normalizedOperatorName"^^xsd:string |
| 475 | ] | 789 | ] |
| 476 | ] [ rdf:type sp:Bind ; | 790 | ] [ rdf:type sp:Bind ; |
| 477 | sp:expression | 791 | sp:expression |
| 478 | - [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | 792 | + [ rdf:type rhspin:companyById ; |
| 479 | - sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | 793 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string |
| 480 | ] | 794 | ] |
| 481 | ] ; | 795 | ] ; |
| 482 | sp:variable | 796 | sp:variable |
| 483 | - [ sp:varName "country"^^xsd:string | 797 | + [ sp:varName "operator"^^xsd:string |
| 484 | ] | 798 | ] |
| 485 | ]) | 799 | ]) |
| 486 | ] ; | 800 | ] ; |
| 487 | spin:rule | 801 | spin:rule |
| 488 | [ rdf:type sp:Construct ; | 802 | [ rdf:type sp:Construct ; |
| 489 | - rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist | 803 | + rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ; |
| 490 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 491 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 804 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 492 | sp:predicate rdf:type ; | 805 | sp:predicate rdf:type ; |
| 493 | - sp:subject _:b7 | 806 | + sp:subject _:b6 |
| 494 | - ] [ sp:object _:b8 ; | 807 | + ] [ sp:object _:b7 ; |
| 495 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 808 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 496 | - sp:subject _:b7 | 809 | + sp:subject _:b6 |
| 497 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 810 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
| 498 | sp:predicate rdf:type ; | 811 | sp:predicate rdf:type ; |
| 499 | - sp:subject _:b8 | 812 | + sp:subject _:b7 |
| 500 | ] [ sp:object | 813 | ] [ sp:object |
| 501 | [ sp:varName "productionFlowToDate"^^xsd:string | 814 | [ sp:varName "productionFlowToDate"^^xsd:string |
| 502 | ] ; | 815 | ] ; |
| 503 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 816 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 504 | - sp:subject _:b7 | 817 | + sp:subject _:b6 |
| 818 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 819 | + sp:predicate rdf:type ; | ||
| 820 | + sp:subject | ||
| 821 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 822 | + ] | ||
| 505 | ] [ sp:object | 823 | ] [ sp:object |
| 506 | - [ sp:varName "operator"^^xsd:string | 824 | + [ sp:varName "productionContextFacilityType"^^xsd:string |
| 507 | ] ; | 825 | ] ; |
| 508 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 826 | + sp:predicate rdf:type ; |
| 509 | - sp:subject _:b8 | 827 | + sp:subject |
| 828 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 829 | + ] | ||
| 830 | + ] [ sp:object _:b7 ; | ||
| 831 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 832 | + sp:subject | ||
| 833 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 834 | + ] | ||
| 510 | ]) ; | 835 | ]) ; |
| 511 | sp:where ([ sp:object | 836 | sp:where ([ sp:object |
| 512 | [ sp:varName "productVolumeSet"^^xsd:string | 837 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -521,19 +846,28 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -521,19 +846,28 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 521 | [ sp:varName "productVolumeSet"^^xsd:string | 846 | [ sp:varName "productVolumeSet"^^xsd:string |
| 522 | ] | 847 | ] |
| 523 | ] [ sp:object | 848 | ] [ sp:object |
| 524 | - [ sp:varName "operatorRef"^^xsd:string | 849 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 850 | + ] ; | ||
| 851 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#contextFacilityRef> ; | ||
| 852 | + sp:subject | ||
| 853 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 854 | + ] | ||
| 855 | + ] [ sp:object | ||
| 856 | + [ sp:varName "contextFacilityName"^^xsd:string | ||
| 525 | ] ; | 857 | ] ; |
| 526 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; | 858 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 527 | sp:subject | 859 | sp:subject |
| 528 | - [ sp:varName "productVolumeRef"^^xsd:string | 860 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 529 | ] | 861 | ] |
| 530 | - ] [ sp:object | 862 | + ] [ rdf:type sp:Optional ; |
| 531 | - [ sp:varName "operatorName"^^xsd:string | 863 | + sp:elements ([ sp:object |
| 864 | + [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 532 | ] ; | 865 | ] ; |
| 533 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | 866 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
| 534 | sp:subject | 867 | sp:subject |
| 535 | - [ sp:varName "operatorRef"^^xsd:string | 868 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 536 | ] | 869 | ] |
| 870 | + ]) | ||
| 537 | ] [ sp:object | 871 | ] [ sp:object |
| 538 | [ sp:varName "productVolumeRef"^^xsd:string | 872 | [ sp:varName "productVolumeRef"^^xsd:string |
| 539 | ] ; | 873 | ] ; |
| ... | @@ -556,11 +890,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -556,11 +890,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 556 | sp:subject | 890 | sp:subject |
| 557 | [ sp:varName "productionFacilityToDate"^^xsd:string | 891 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 558 | ] | 892 | ] |
| 559 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 560 | - sp:predicate rdf:type ; | ||
| 561 | - sp:subject | ||
| 562 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 563 | - ] | ||
| 564 | ] [ sp:object | 893 | ] [ sp:object |
| 565 | [ sp:varName "productionFacility"^^xsd:string | 894 | [ sp:varName "productionFacility"^^xsd:string |
| 566 | ] ; | 895 | ] ; |
| ... | @@ -572,46 +901,41 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -572,46 +901,41 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 572 | ] [ rdf:type sp:Bind ; | 901 | ] [ rdf:type sp:Bind ; |
| 573 | sp:expression | 902 | sp:expression |
| 574 | [ rdf:type ep-spin-lib:normalizeString ; | 903 | [ rdf:type ep-spin-lib:normalizeString ; |
| 575 | - sp:arg1 [ sp:varName "operatorName"^^xsd:string | 904 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string |
| 576 | ] | 905 | ] |
| 577 | ] ; | 906 | ] ; |
| 578 | sp:variable | 907 | sp:variable |
| 579 | - [ sp:varName "normalizedOperatorName"^^xsd:string | 908 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string |
| 580 | ] | 909 | ] |
| 581 | ] [ rdf:type sp:Bind ; | 910 | ] [ rdf:type sp:Bind ; |
| 582 | sp:expression | 911 | sp:expression |
| 583 | - [ rdf:type rhspin:companyById ; | 912 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
| 584 | - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | 913 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string |
| 585 | ] | 914 | ] |
| 586 | ] ; | 915 | ] ; |
| 587 | sp:variable | 916 | sp:variable |
| 588 | - [ sp:varName "operator"^^xsd:string | 917 | + [ sp:varName "productionContextFacility"^^xsd:string |
| 918 | + ] | ||
| 919 | + ] [ rdf:type sp:Bind ; | ||
| 920 | + sp:expression | ||
| 921 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 922 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 923 | + ] | ||
| 924 | + ] ; | ||
| 925 | + sp:variable | ||
| 926 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 589 | ] | 927 | ] |
| 590 | ]) | 928 | ]) |
| 591 | ] ; | 929 | ] ; |
| 592 | spin:rule | 930 | spin:rule |
| 593 | [ rdf:type sp:Construct ; | 931 | [ rdf:type sp:Construct ; |
| 594 | - rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ; | 932 | + rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; |
| 595 | sp:templates ([ sp:object | 933 | sp:templates ([ sp:object |
| 596 | - [ sp:varName "dTimStart"^^xsd:string | 934 | + [ sp:varName "field"^^xsd:string |
| 597 | - ] ; | ||
| 598 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 599 | - sp:subject | ||
| 600 | - [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 601 | - ] | ||
| 602 | - ] [ sp:object | ||
| 603 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 604 | - ] ; | ||
| 605 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 606 | - sp:subject | ||
| 607 | - [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 608 | - ] | ||
| 609 | - ] [ sp:object | ||
| 610 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 611 | ] ; | 935 | ] ; |
| 612 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 936 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 613 | sp:subject | 937 | sp:subject |
| 614 | - [ sp:varName "productionFlowToDate"^^xsd:string | 938 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 615 | ] | 939 | ] |
| 616 | ]) ; | 940 | ]) ; |
| 617 | sp:where ([ sp:object | 941 | sp:where ([ sp:object |
| ... | @@ -627,32 +951,50 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -627,32 +951,50 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 627 | [ sp:varName "productVolumeSet"^^xsd:string | 951 | [ sp:varName "productVolumeSet"^^xsd:string |
| 628 | ] | 952 | ] |
| 629 | ] [ sp:object | 953 | ] [ sp:object |
| 630 | - [ sp:varName "dTimStart"^^xsd:string | 954 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 631 | ] ; | 955 | ] ; |
| 632 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; | 956 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; |
| 633 | sp:subject | 957 | sp:subject |
| 634 | [ sp:varName "productVolumeRef"^^xsd:string | 958 | [ sp:varName "productVolumeRef"^^xsd:string |
| 635 | ] | 959 | ] |
| 636 | ] [ sp:object | 960 | ] [ sp:object |
| 637 | - [ sp:varName "dTimEnd"^^xsd:string | 961 | + [ sp:varName "fieldRef"^^xsd:string |
| 638 | ] ; | 962 | ] ; |
| 639 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | 963 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fieldRef> ; |
| 640 | sp:subject | 964 | sp:subject |
| 641 | - [ sp:varName "productVolumeRef"^^xsd:string | 965 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 642 | ] | 966 | ] |
| 643 | ] [ sp:object | 967 | ] [ sp:object |
| 644 | - [ sp:varName "productVolumeRef"^^xsd:string | 968 | + [ sp:varName "fieldName"^^xsd:string |
| 645 | ] ; | 969 | ] ; |
| 646 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 970 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 647 | sp:subject | 971 | sp:subject |
| 648 | - [ sp:varName "dailyProductionFlow"^^xsd:string | 972 | + [ sp:varName "fieldRef"^^xsd:string |
| 649 | ] | 973 | ] |
| 650 | ] [ sp:object | 974 | ] [ sp:object |
| 651 | - [ sp:varName "productionFlowToDate"^^xsd:string | 975 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 652 | ] ; | 976 | ] ; |
| 653 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 977 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 654 | sp:subject | 978 | sp:subject |
| 655 | - [ sp:varName "dailyProductionFlow"^^xsd:string | 979 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 980 | + ] | ||
| 981 | + ] [ rdf:type sp:Bind ; | ||
| 982 | + sp:expression | ||
| 983 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 984 | + sp:arg1 [ sp:varName "fieldName"^^xsd:string | ||
| 985 | + ] | ||
| 986 | + ] ; | ||
| 987 | + sp:variable | ||
| 988 | + [ sp:varName "normalizedFieldName"^^xsd:string | ||
| 989 | + ] | ||
| 990 | + ] [ rdf:type sp:Bind ; | ||
| 991 | + sp:expression | ||
| 992 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 993 | + sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string | ||
| 994 | + ] | ||
| 995 | + ] ; | ||
| 996 | + sp:variable | ||
| 997 | + [ sp:varName "field"^^xsd:string | ||
| 656 | ] | 998 | ] |
| 657 | ]) | 999 | ]) |
| 658 | ] ; | 1000 | ] ; |
| ... | @@ -661,12 +1003,12 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -661,12 +1003,12 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 661 | rdfs:comment "STEP 20003 Set the installation"^^xsd:string ; | 1003 | rdfs:comment "STEP 20003 Set the installation"^^xsd:string ; |
| 662 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 1004 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 663 | sp:predicate rdf:type ; | 1005 | sp:predicate rdf:type ; |
| 664 | - sp:subject _:b9 | 1006 | + sp:subject _:b8 |
| 665 | ] [ sp:object | 1007 | ] [ sp:object |
| 666 | [ sp:varName "productionFacility"^^xsd:string | 1008 | [ sp:varName "productionFacility"^^xsd:string |
| 667 | ] ; | 1009 | ] ; |
| 668 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1010 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 669 | - sp:subject _:b9 | 1011 | + sp:subject _:b8 |
| 670 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 1012 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
| 671 | sp:predicate rdf:type ; | 1013 | sp:predicate rdf:type ; |
| 672 | sp:subject | 1014 | sp:subject |
| ... | @@ -683,7 +1025,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -683,7 +1025,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 683 | [ sp:varName "productionFlowToDate"^^xsd:string | 1025 | [ sp:varName "productionFlowToDate"^^xsd:string |
| 684 | ] ; | 1026 | ] ; |
| 685 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 1027 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
| 686 | - sp:subject _:b9 | 1028 | + sp:subject _:b8 |
| 687 | ]) ; | 1029 | ]) ; |
| 688 | sp:where ([ sp:object | 1030 | sp:where ([ sp:object |
| 689 | [ sp:varName "productVolumeSet"^^xsd:string | 1031 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -765,26 +1107,25 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -765,26 +1107,25 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 765 | ] ; | 1107 | ] ; |
| 766 | spin:rule | 1108 | spin:rule |
| 767 | [ rdf:type sp:Construct ; | 1109 | [ rdf:type sp:Construct ; |
| 768 | - rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ; | 1110 | + rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ; |
| 769 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 1111 | + sp:templates ([ sp:object _:b9 ; |
| 770 | - sp:predicate rdf:type ; | 1112 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; |
| 771 | sp:subject | 1113 | sp:subject |
| 772 | - [ sp:varName "productionContextFacility"^^xsd:string | 1114 | + [ sp:varName "productionFacility"^^xsd:string |
| 773 | ] | 1115 | ] |
| 1116 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 1117 | + sp:predicate rdf:type ; | ||
| 1118 | + sp:subject _:b9 | ||
| 774 | ] [ sp:object | 1119 | ] [ sp:object |
| 775 | - [ sp:varName "productionContextFacilityType"^^xsd:string | 1120 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 776 | ] ; | 1121 | ] ; |
| 777 | - sp:predicate rdf:type ; | 1122 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 778 | - sp:subject | 1123 | + sp:subject _:b9 |
| 779 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
| 780 | - ] | ||
| 781 | ] [ sp:object | 1124 | ] [ sp:object |
| 782 | - [ sp:varName "productionFacility"^^xsd:string | 1125 | + [ sp:varName "comment"^^xsd:string |
| 783 | ] ; | 1126 | ] ; |
| 784 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 1127 | + sp:predicate rdfs:comment ; |
| 785 | - sp:subject | 1128 | + sp:subject _:b9 |
| 786 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
| 787 | - ] | ||
| 788 | ]) ; | 1129 | ]) ; |
| 789 | sp:where ([ sp:object | 1130 | sp:where ([ sp:object |
| 790 | [ sp:varName "productVolumeSet"^^xsd:string | 1131 | [ sp:varName "productVolumeSet"^^xsd:string |
| ... | @@ -799,26 +1140,19 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -799,26 +1140,19 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 799 | [ sp:varName "productVolumeSet"^^xsd:string | 1140 | [ sp:varName "productVolumeSet"^^xsd:string |
| 800 | ] | 1141 | ] |
| 801 | ] [ sp:object | 1142 | ] [ sp:object |
| 802 | - [ sp:varName "contextFacilityRef"^^xsd:string | 1143 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 803 | ] ; | 1144 | ] ; |
| 804 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#contextFacilityRef> ; | 1145 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; |
| 805 | sp:subject | 1146 | sp:subject |
| 806 | [ sp:varName "productVolumeRef"^^xsd:string | 1147 | [ sp:varName "productVolumeRef"^^xsd:string |
| 807 | ] | 1148 | ] |
| 808 | - ] [ sp:object | ||
| 809 | - [ sp:varName "contextFacilityName"^^xsd:string | ||
| 810 | - ] ; | ||
| 811 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 812 | - sp:subject | ||
| 813 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 814 | - ] | ||
| 815 | ] [ rdf:type sp:Optional ; | 1149 | ] [ rdf:type sp:Optional ; |
| 816 | sp:elements ([ sp:object | 1150 | sp:elements ([ sp:object |
| 817 | - [ sp:varName "contextFacilityKind"^^xsd:string | 1151 | + [ sp:varName "comment"^^xsd:string |
| 818 | ] ; | 1152 | ] ; |
| 819 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 1153 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#comment> ; |
| 820 | sp:subject | 1154 | sp:subject |
| 821 | - [ sp:varName "contextFacilityRef"^^xsd:string | 1155 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 822 | ] | 1156 | ] |
| 823 | ]) | 1157 | ]) |
| 824 | ] [ sp:object | 1158 | ] [ sp:object |
| ... | @@ -842,6 +1176,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -842,6 +1176,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 842 | sp:subject | 1176 | sp:subject |
| 843 | [ sp:varName "productionFacilityToDate"^^xsd:string | 1177 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 844 | ] | 1178 | ] |
| 1179 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1180 | + sp:predicate rdf:type ; | ||
| 1181 | + sp:subject | ||
| 1182 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1183 | + ] | ||
| 845 | ] [ sp:object | 1184 | ] [ sp:object |
| 846 | [ sp:varName "productionFacility"^^xsd:string | 1185 | [ sp:varName "productionFacility"^^xsd:string |
| 847 | ] ; | 1186 | ] ; |
| ... | @@ -849,58 +1188,17 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -849,58 +1188,17 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 849 | sp:subject | 1188 | sp:subject |
| 850 | [ sp:varName "productionFacilityToDate"^^xsd:string | 1189 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 851 | ] | 1190 | ] |
| 852 | - ] [ rdf:type sp:Bind ; | ||
| 853 | - sp:expression | ||
| 854 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 855 | - sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
| 856 | - ] | ||
| 857 | - ] ; | ||
| 858 | - sp:variable | ||
| 859 | - [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 860 | - ] | ||
| 861 | - ] [ rdf:type sp:Bind ; | ||
| 862 | - sp:expression | ||
| 863 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 864 | - sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 865 | - ] | ||
| 866 | - ] ; | ||
| 867 | - sp:variable | ||
| 868 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
| 869 | - ] | ||
| 870 | - ] [ rdf:type sp:Bind ; | ||
| 871 | - sp:expression | ||
| 872 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 873 | - sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 874 | - ] | ||
| 875 | - ] ; | ||
| 876 | - sp:variable | ||
| 877 | - [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 878 | - ] | ||
| 879 | ]) | 1191 | ]) |
| 880 | ] ; | 1192 | ] ; |
| 881 | spin:rule | 1193 | spin:rule |
| 882 | [ rdf:type sp:Construct ; | 1194 | [ rdf:type sp:Construct ; |
| 883 | - rdfs:comment "STEP 20002b Record the end date"^^xsd:string ; | 1195 | + rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ; |
| 884 | sp:templates ([ sp:object | 1196 | sp:templates ([ sp:object |
| 885 | - [ sp:varName "dateStart"^^xsd:string | 1197 | + [ sp:varName "block"^^xsd:string |
| 886 | - ] ; | ||
| 887 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 888 | - sp:subject | ||
| 889 | - [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 890 | - ] | ||
| 891 | - ] [ sp:object | ||
| 892 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 893 | - ] ; | ||
| 894 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 895 | - sp:subject | ||
| 896 | - [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 897 | - ] | ||
| 898 | - ] [ sp:object | ||
| 899 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 900 | ] ; | 1198 | ] ; |
| 901 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1199 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 902 | sp:subject | 1200 | sp:subject |
| 903 | - [ sp:varName "productionFlowToDate"^^xsd:string | 1201 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 904 | ] | 1202 | ] |
| 905 | ]) ; | 1203 | ]) ; |
| 906 | sp:where ([ sp:object | 1204 | sp:where ([ sp:object |
| ... | @@ -916,38 +1214,56 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -916,38 +1214,56 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 916 | [ sp:varName "productVolumeSet"^^xsd:string | 1214 | [ sp:varName "productVolumeSet"^^xsd:string |
| 917 | ] | 1215 | ] |
| 918 | ] [ sp:object | 1216 | ] [ sp:object |
| 919 | - [ sp:varName "dateStart"^^xsd:string | 1217 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 920 | ] ; | 1218 | ] ; |
| 921 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; | 1219 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; |
| 922 | sp:subject | 1220 | sp:subject |
| 923 | [ sp:varName "productVolumeRef"^^xsd:string | 1221 | [ sp:varName "productVolumeRef"^^xsd:string |
| 924 | ] | 1222 | ] |
| 925 | ] [ sp:object | 1223 | ] [ sp:object |
| 926 | - [ sp:varName "dateEnd"^^xsd:string | 1224 | + [ sp:varName "offshoreLocationRef"^^xsd:string |
| 927 | ] ; | 1225 | ] ; |
| 928 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | 1226 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#offshoreLocationRef> ; |
| 929 | sp:subject | 1227 | sp:subject |
| 930 | - [ sp:varName "productVolumeRef"^^xsd:string | 1228 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 931 | ] | 1229 | ] |
| 932 | ] [ sp:object | 1230 | ] [ sp:object |
| 933 | - [ sp:varName "productVolumeRef"^^xsd:string | 1231 | + [ sp:varName "blockId"^^xsd:string |
| 934 | ] ; | 1232 | ] ; |
| 935 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 1233 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#blockID> ; |
| 936 | sp:subject | 1234 | sp:subject |
| 937 | - [ sp:varName "dailyProductionFlow"^^xsd:string | 1235 | + [ sp:varName "offshoreLocationRef"^^xsd:string |
| 938 | ] | 1236 | ] |
| 939 | ] [ sp:object | 1237 | ] [ sp:object |
| 940 | - [ sp:varName "productionFlowToDate"^^xsd:string | 1238 | + [ sp:varName "geographicContextRef"^^xsd:string |
| 941 | ] ; | 1239 | ] ; |
| 942 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1240 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 943 | sp:subject | 1241 | sp:subject |
| 944 | - [ sp:varName "dailyProductionFlow"^^xsd:string | 1242 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 1243 | + ] | ||
| 1244 | + ] [ rdf:type sp:Bind ; | ||
| 1245 | + sp:expression | ||
| 1246 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1247 | + sp:arg1 [ sp:varName "blockId"^^xsd:string | ||
| 1248 | + ] | ||
| 1249 | + ] ; | ||
| 1250 | + sp:variable | ||
| 1251 | + [ sp:varName "normalizedBlockId"^^xsd:string | ||
| 1252 | + ] | ||
| 1253 | + ] [ rdf:type sp:Bind ; | ||
| 1254 | + sp:expression | ||
| 1255 | + [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | ||
| 1256 | + sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | ||
| 1257 | + ] | ||
| 1258 | + ] ; | ||
| 1259 | + sp:variable | ||
| 1260 | + [ sp:varName "block"^^xsd:string | ||
| 945 | ] | 1261 | ] |
| 946 | ]) | 1262 | ]) |
| 947 | ] ; | 1263 | ] ; |
| 948 | spin:rule | 1264 | spin:rule |
| 949 | [ rdf:type sp:Construct ; | 1265 | [ rdf:type sp:Construct ; |
| 950 | - rdfs:comment "STEP 20001 Create the DailyProductVolumeReport, the DailyProductionFlow and the ProductionFlowToDate ."^^xsd:string ; | 1266 | + rdfs:comment "STEP 20001a Create the DailyProductVolumeReport, the DailyProductionFlow and the ProductionFlowToDate ."^^xsd:string ; |
| 951 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ; | 1267 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductVolumeReport> ; |
| 952 | sp:predicate rdf:type ; | 1268 | sp:predicate rdf:type ; |
| 953 | sp:subject _:b10 | 1269 | sp:subject _:b10 |
| ... | @@ -961,39 +1277,28 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -961,39 +1277,28 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 961 | ] ; | 1277 | ] ; |
| 962 | sp:predicate rdfs:label ; | 1278 | sp:predicate rdfs:label ; |
| 963 | sp:subject _:b10 | 1279 | sp:subject _:b10 |
| 964 | - ] [ sp:object _:b11 ; | ||
| 965 | - sp:predicate rdf:type ; | ||
| 966 | - sp:subject _:b10 | ||
| 967 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ReportType> ; | ||
| 968 | - sp:predicate rdf:type ; | ||
| 969 | - sp:subject _:b11 | ||
| 970 | - ] [ sp:object | ||
| 971 | - [ sp:varName "kind"^^xsd:string | ||
| 972 | - ] ; | ||
| 973 | - sp:predicate rdfs:label ; | ||
| 974 | - sp:subject _:b11 | ||
| 975 | ] [ sp:object | 1280 | ] [ sp:object |
| 976 | [ sp:varName "productVolumeReportPeriodType"^^xsd:string | 1281 | [ sp:varName "productVolumeReportPeriodType"^^xsd:string |
| 977 | ] ; | 1282 | ] ; |
| 978 | sp:predicate rdf:type ; | 1283 | sp:predicate rdf:type ; |
| 979 | - sp:subject _:b11 | 1284 | + sp:subject _:b10 |
| 980 | - ] [ sp:object _:b12 ; | 1285 | + ] [ sp:object _:b11 ; |
| 981 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 1286 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
| 982 | sp:subject _:b10 | 1287 | sp:subject _:b10 |
| 983 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#DailyProductionFlow> ; | 1288 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#DailyProductionFlow> ; |
| 984 | sp:predicate rdf:type ; | 1289 | sp:predicate rdf:type ; |
| 985 | - sp:subject _:b12 | 1290 | + sp:subject _:b11 |
| 986 | ] [ sp:object | 1291 | ] [ sp:object |
| 987 | [ sp:varName "productVolumeRef"^^xsd:string | 1292 | [ sp:varName "productVolumeRef"^^xsd:string |
| 988 | ] ; | 1293 | ] ; |
| 989 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 1294 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| 990 | - sp:subject _:b12 | 1295 | + sp:subject _:b11 |
| 991 | - ] [ sp:object _:b13 ; | 1296 | + ] [ sp:object _:b12 ; |
| 992 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1297 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 993 | - sp:subject _:b12 | 1298 | + sp:subject _:b11 |
| 994 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 1299 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
| 995 | sp:predicate rdf:type ; | 1300 | sp:predicate rdf:type ; |
| 996 | - sp:subject _:b13 | 1301 | + sp:subject _:b12 |
| 997 | ] [ sp:object | 1302 | ] [ sp:object |
| 998 | [ sp:varName "title"^^xsd:string | 1303 | [ sp:varName "title"^^xsd:string |
| 999 | ] ; | 1304 | ] ; |
| ... | @@ -1026,15 +1331,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1026,15 +1331,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1026 | ] | 1331 | ] |
| 1027 | ] [ rdf:type sp:Optional ; | 1332 | ] [ rdf:type sp:Optional ; |
| 1028 | sp:elements ([ sp:object | 1333 | sp:elements ([ sp:object |
| 1029 | - [ sp:varName "kind"^^xsd:string | ||
| 1030 | - ] ; | ||
| 1031 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kind> ; | ||
| 1032 | - sp:subject | ||
| 1033 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1034 | - ] | ||
| 1035 | - ]) | ||
| 1036 | - ] [ rdf:type sp:Optional ; | ||
| 1037 | - sp:elements ([ sp:object | ||
| 1038 | [ sp:varName "periodKindRef"^^xsd:string | 1334 | [ sp:varName "periodKindRef"^^xsd:string |
| 1039 | ] ; | 1335 | ] ; |
| 1040 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodKindRef> ; | 1336 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodKindRef> ; |
| ... | @@ -1197,242 +1493,4 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1197,242 +1493,4 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 1197 | [ sp:varName "locationOfProductionFacility"^^xsd:string | 1493 | [ sp:varName "locationOfProductionFacility"^^xsd:string |
| 1198 | ] | 1494 | ] |
| 1199 | ]) | 1495 | ]) |
| 1200 | - ] ; | ||
| 1201 | - spin:rule | ||
| 1202 | - [ rdf:type sp:Construct ; | ||
| 1203 | - rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; | ||
| 1204 | - sp:templates ([ sp:object | ||
| 1205 | - [ sp:varName "state"^^xsd:string | ||
| 1206 | - ] ; | ||
| 1207 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 1208 | - sp:subject | ||
| 1209 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 1210 | - ] | ||
| 1211 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
| 1212 | - sp:predicate rdf:type ; | ||
| 1213 | - sp:subject | ||
| 1214 | - [ sp:varName "state"^^xsd:string | ||
| 1215 | - ] | ||
| 1216 | - ] [ sp:object | ||
| 1217 | - [ sp:varName "stateName"^^xsd:string | ||
| 1218 | - ] ; | ||
| 1219 | - sp:predicate rdfs:label ; | ||
| 1220 | - sp:subject | ||
| 1221 | - [ sp:varName "state"^^xsd:string | ||
| 1222 | - ] | ||
| 1223 | - ]) ; | ||
| 1224 | - sp:where ([ sp:object | ||
| 1225 | - [ sp:varName "productVolumeSet"^^xsd:string | ||
| 1226 | - ] ; | ||
| 1227 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 1228 | - sp:subject spin:_this | ||
| 1229 | - ] [ sp:object | ||
| 1230 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1231 | - ] ; | ||
| 1232 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 1233 | - sp:subject | ||
| 1234 | - [ sp:varName "productVolumeSet"^^xsd:string | ||
| 1235 | - ] | ||
| 1236 | - ] [ sp:object | ||
| 1237 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1238 | - ] ; | ||
| 1239 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; | ||
| 1240 | - sp:subject | ||
| 1241 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1242 | - ] | ||
| 1243 | - ] [ sp:object | ||
| 1244 | - [ sp:varName "stateName"^^xsd:string | ||
| 1245 | - ] ; | ||
| 1246 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#state> ; | ||
| 1247 | - sp:subject | ||
| 1248 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1249 | - ] | ||
| 1250 | - ] [ sp:object | ||
| 1251 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1252 | - ] ; | ||
| 1253 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1254 | - sp:subject | ||
| 1255 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 1256 | - ] | ||
| 1257 | - ] [ rdf:type sp:Bind ; | ||
| 1258 | - sp:expression | ||
| 1259 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1260 | - sp:arg1 [ sp:varName "stateName"^^xsd:string | ||
| 1261 | - ] | ||
| 1262 | - ] ; | ||
| 1263 | - sp:variable | ||
| 1264 | - [ sp:varName "normalizedStateName"^^xsd:string | ||
| 1265 | - ] | ||
| 1266 | - ] [ rdf:type sp:Bind ; | ||
| 1267 | - sp:expression | ||
| 1268 | - [ rdf:type ep-dpr-spin-lib:buildStateURI ; | ||
| 1269 | - sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | ||
| 1270 | - ] | ||
| 1271 | - ] ; | ||
| 1272 | - sp:variable | ||
| 1273 | - [ sp:varName "state"^^xsd:string | ||
| 1274 | - ] | ||
| 1275 | - ]) | ||
| 1276 | - ] ; | ||
| 1277 | - spin:rule | ||
| 1278 | - [ rdf:type sp:Construct ; | ||
| 1279 | - rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist | ||
| 1280 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 1281 | - sp:templates ([ sp:object | ||
| 1282 | - [ sp:varName "operator"^^xsd:string | ||
| 1283 | - ] ; | ||
| 1284 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 1285 | - sp:subject | ||
| 1286 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 1287 | - ] | ||
| 1288 | - ]) ; | ||
| 1289 | - sp:where ([ sp:object | ||
| 1290 | - [ sp:varName "productVolumeSet"^^xsd:string | ||
| 1291 | - ] ; | ||
| 1292 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 1293 | - sp:subject spin:_this | ||
| 1294 | - ] [ sp:object | ||
| 1295 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1296 | - ] ; | ||
| 1297 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 1298 | - sp:subject | ||
| 1299 | - [ sp:varName "productVolumeSet"^^xsd:string | ||
| 1300 | - ] | ||
| 1301 | - ] [ sp:object | ||
| 1302 | - [ sp:varName "operatorRef"^^xsd:string | ||
| 1303 | - ] ; | ||
| 1304 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; | ||
| 1305 | - sp:subject | ||
| 1306 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1307 | - ] | ||
| 1308 | - ] [ sp:object | ||
| 1309 | - [ sp:varName "operatorName"^^xsd:string | ||
| 1310 | - ] ; | ||
| 1311 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
| 1312 | - sp:subject | ||
| 1313 | - [ sp:varName "operatorRef"^^xsd:string | ||
| 1314 | - ] | ||
| 1315 | - ] [ sp:object | ||
| 1316 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1317 | - ] ; | ||
| 1318 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1319 | - sp:subject | ||
| 1320 | - [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 1321 | - ] | ||
| 1322 | - ] [ sp:object | ||
| 1323 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1324 | - ] ; | ||
| 1325 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1326 | - sp:subject | ||
| 1327 | - [ sp:varName "dailyProductionFlow"^^xsd:string | ||
| 1328 | - ] | ||
| 1329 | - ] [ sp:object | ||
| 1330 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1331 | - ] ; | ||
| 1332 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 1333 | - sp:subject | ||
| 1334 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1335 | - ] | ||
| 1336 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1337 | - sp:predicate rdf:type ; | ||
| 1338 | - sp:subject | ||
| 1339 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1340 | - ] | ||
| 1341 | - ] [ sp:object | ||
| 1342 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 1343 | - ] ; | ||
| 1344 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1345 | - sp:subject | ||
| 1346 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1347 | - ] | ||
| 1348 | - ] [ rdf:type sp:Bind ; | ||
| 1349 | - sp:expression | ||
| 1350 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1351 | - sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
| 1352 | - ] | ||
| 1353 | - ] ; | ||
| 1354 | - sp:variable | ||
| 1355 | - [ sp:varName "normalizedOperatorName"^^xsd:string | ||
| 1356 | - ] | ||
| 1357 | - ] [ rdf:type sp:Bind ; | ||
| 1358 | - sp:expression | ||
| 1359 | - [ rdf:type rhspin:companyById ; | ||
| 1360 | - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
| 1361 | - ] | ||
| 1362 | - ] ; | ||
| 1363 | - sp:variable | ||
| 1364 | - [ sp:varName "operator"^^xsd:string | ||
| 1365 | - ] | ||
| 1366 | - ]) | ||
| 1367 | - ] ; | ||
| 1368 | - spin:rule | ||
| 1369 | - [ rdf:type sp:Construct ; | ||
| 1370 | - rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; | ||
| 1371 | - sp:templates ([ sp:object | ||
| 1372 | - [ sp:varName "field"^^xsd:string | ||
| 1373 | - ] ; | ||
| 1374 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 1375 | - sp:subject | ||
| 1376 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 1377 | - ] | ||
| 1378 | - ]) ; | ||
| 1379 | - sp:where ([ sp:object | ||
| 1380 | - [ sp:varName "productVolumeSet"^^xsd:string | ||
| 1381 | - ] ; | ||
| 1382 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ; | ||
| 1383 | - sp:subject spin:_this | ||
| 1384 | - ] [ sp:object | ||
| 1385 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1386 | - ] ; | ||
| 1387 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ; | ||
| 1388 | - sp:subject | ||
| 1389 | - [ sp:varName "productVolumeSet"^^xsd:string | ||
| 1390 | - ] | ||
| 1391 | - ] [ sp:object | ||
| 1392 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1393 | - ] ; | ||
| 1394 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ; | ||
| 1395 | - sp:subject | ||
| 1396 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1397 | - ] | ||
| 1398 | - ] [ sp:object | ||
| 1399 | - [ sp:varName "fieldRef"^^xsd:string | ||
| 1400 | - ] ; | ||
| 1401 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fieldRef> ; | ||
| 1402 | - sp:subject | ||
| 1403 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1404 | - ] | ||
| 1405 | - ] [ sp:object | ||
| 1406 | - [ sp:varName "fieldName"^^xsd:string | ||
| 1407 | - ] ; | ||
| 1408 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1409 | - sp:subject | ||
| 1410 | - [ sp:varName "fieldRef"^^xsd:string | ||
| 1411 | - ] | ||
| 1412 | - ] [ sp:object | ||
| 1413 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1414 | - ] ; | ||
| 1415 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1416 | - sp:subject | ||
| 1417 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 1418 | - ] | ||
| 1419 | - ] [ rdf:type sp:Bind ; | ||
| 1420 | - sp:expression | ||
| 1421 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1422 | - sp:arg1 [ sp:varName "fieldName"^^xsd:string | ||
| 1423 | - ] | ||
| 1424 | - ] ; | ||
| 1425 | - sp:variable | ||
| 1426 | - [ sp:varName "normalizedFieldName"^^xsd:string | ||
| 1427 | - ] | ||
| 1428 | - ] [ rdf:type sp:Bind ; | ||
| 1429 | - sp:expression | ||
| 1430 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 1431 | - sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string | ||
| 1432 | - ] | ||
| 1433 | - ] ; | ||
| 1434 | - sp:variable | ||
| 1435 | - [ sp:varName "field"^^xsd:string | ||
| 1436 | - ] | ||
| 1437 | - ]) | ||
| 1438 | ] . | 1496 | ] . | ... | ... |
| 1 | -# Saved by TopBraid on Wed Oct 05 12:01:16 BST 2011 | ||
| 2 | # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector | 1 | # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector |
| 3 | -# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0 | ||
| 4 | # imports: http://spinrdf.org/spin | 2 | # imports: http://spinrdf.org/spin |
| 3 | +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 | ||
| 4 | +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 | ||
| 5 | 5 | ||
| 6 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . | 6 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . |
| 7 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . | 7 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . |
| 8 | +@prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . | ||
| 9 | +@prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> . | ||
| 8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 10 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 9 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 11 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 10 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 12 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| ... | @@ -15,5 +17,5 @@ | ... | @@ -15,5 +17,5 @@ |
| 15 | 17 | ||
| 16 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> | 18 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> |
| 17 | rdf:type owl:Ontology ; | 19 | rdf:type owl:Ontology ; |
| 18 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0> ; | 20 | + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> ; |
| 19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 21 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
| 1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
| 4 | +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib | ||
| 5 | +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib | ||
| 6 | + | ||
| 7 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . | ||
| 8 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
| 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#> . | ||
| 11 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
| 12 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 13 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 14 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 15 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | ||
| 16 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 17 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 18 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 19 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 20 | + | ||
| 21 | +<http://www.epim.no/schemas/mprml/1#A_Global-Objects> | ||
| 22 | + spin:rule | ||
| 23 | + [ rdf:type sp:Construct ; | ||
| 24 | + rdfs:comment """STEP 20102 Record the Facility that has the flows | ||
| 25 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
| 26 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 27 | + sp:predicate rdf:type ; | ||
| 28 | + sp:subject | ||
| 29 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 30 | + ] | ||
| 31 | + ] [ sp:object | ||
| 32 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 33 | + ] ; | ||
| 34 | + sp:predicate rdf:type ; | ||
| 35 | + sp:subject | ||
| 36 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 37 | + ] | ||
| 38 | + ]) ; | ||
| 39 | + sp:where ([ sp:object | ||
| 40 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 41 | + ] ; | ||
| 42 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 43 | + sp:subject spin:_this | ||
| 44 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 45 | + sp:predicate rdf:type ; | ||
| 46 | + sp:subject | ||
| 47 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 48 | + ] | ||
| 49 | + ] [ sp:object | ||
| 50 | + [ sp:varName "facilityRef"^^xsd:string | ||
| 51 | + ] ; | ||
| 52 | + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | ||
| 53 | + sp:subject | ||
| 54 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 55 | + ] | ||
| 56 | + ] [ sp:object | ||
| 57 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
| 58 | + ] ; | ||
| 59 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 60 | + sp:subject | ||
| 61 | + [ sp:varName "facilityRef"^^xsd:string | ||
| 62 | + ] | ||
| 63 | + ] [ sp:object | ||
| 64 | + [ sp:varName "facilityName"^^xsd:string | ||
| 65 | + ] ; | ||
| 66 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 67 | + sp:subject | ||
| 68 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
| 69 | + ] | ||
| 70 | + ] [ rdf:type sp:Optional ; | ||
| 71 | + sp:elements ([ sp:object | ||
| 72 | + [ sp:varName "facilityNamingSystem"^^xsd:string | ||
| 73 | + ] ; | ||
| 74 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | ||
| 75 | + sp:subject | ||
| 76 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
| 77 | + ] | ||
| 78 | + ]) | ||
| 79 | + ] [ rdf:type sp:Optional ; | ||
| 80 | + sp:elements ([ sp:object | ||
| 81 | + [ sp:varName "facilityKind"^^xsd:string | ||
| 82 | + ] ; | ||
| 83 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 84 | + sp:subject | ||
| 85 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
| 86 | + ] | ||
| 87 | + ]) | ||
| 88 | + ] [ rdf:type sp:Bind ; | ||
| 89 | + sp:expression | ||
| 90 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 91 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
| 92 | + ] | ||
| 93 | + ] ; | ||
| 94 | + sp:variable | ||
| 95 | + [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 96 | + ] | ||
| 97 | + ] [ rdf:type sp:Bind ; | ||
| 98 | + sp:expression | ||
| 99 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 100 | + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
| 101 | + ] | ||
| 102 | + ] ; | ||
| 103 | + sp:variable | ||
| 104 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 105 | + ] | ||
| 106 | + ] [ rdf:type sp:Bind ; | ||
| 107 | + sp:expression | ||
| 108 | + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
| 109 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
| 110 | + ] | ||
| 111 | + ] ; | ||
| 112 | + sp:variable | ||
| 113 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 114 | + ] | ||
| 115 | + ]) | ||
| 116 | + ] . | ||
| 117 | + | ||
| 118 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> | ||
| 119 | + rdf:type owl:Ontology ; | ||
| 120 | + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; | ||
| 121 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + composite:index "0"^^xsd:int | ||
| 16 | + ] . |
| 1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
| 4 | +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib | ||
| 5 | + | ||
| 6 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . | ||
| 7 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
| 8 | +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | ||
| 9 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | ||
| 10 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
| 11 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 12 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 13 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 14 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | ||
| 15 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 16 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 17 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 18 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 19 | + | ||
| 20 | +<http://www.epim.no/schemas/mprml/1#A_Global-Objects> | ||
| 21 | + spin:rule | ||
| 22 | + [ rdf:type sp:Construct ; | ||
| 23 | + rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ; | ||
| 24 | + sp:templates ([ sp:object | ||
| 25 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 26 | + ] ; | ||
| 27 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 28 | + sp:subject | ||
| 29 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 30 | + ] | ||
| 31 | + ] [ sp:object | ||
| 32 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 33 | + ] ; | ||
| 34 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 35 | + sp:subject | ||
| 36 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 37 | + ] | ||
| 38 | + ] [ sp:object | ||
| 39 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 40 | + ] ; | ||
| 41 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 42 | + sp:subject | ||
| 43 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 44 | + ] | ||
| 45 | + ]) ; | ||
| 46 | + sp:where ([ sp:object | ||
| 47 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 48 | + ] ; | ||
| 49 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 50 | + sp:subject spin:_this | ||
| 51 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 52 | + sp:predicate rdf:type ; | ||
| 53 | + sp:subject | ||
| 54 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 55 | + ] | ||
| 56 | + ] [ sp:object | ||
| 57 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 58 | + ] ; | ||
| 59 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 60 | + sp:subject | ||
| 61 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 62 | + ] | ||
| 63 | + ] [ sp:object | ||
| 64 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 65 | + ] ; | ||
| 66 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 67 | + sp:subject | ||
| 68 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 69 | + ] | ||
| 70 | + ] [ sp:object | ||
| 71 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 72 | + ] ; | ||
| 73 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 74 | + sp:subject | ||
| 75 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 76 | + ] | ||
| 77 | + ] [ sp:object | ||
| 78 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 79 | + ] ; | ||
| 80 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 81 | + sp:subject | ||
| 82 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 83 | + ] | ||
| 84 | + ]) | ||
| 85 | + ] ; | ||
| 86 | + spin:rule | ||
| 87 | + [ rdf:type sp:Construct ; | ||
| 88 | + rdfs:comment "STEP 20001b Add the report kind ."^^xsd:string ; | ||
| 89 | + sp:templates ([ sp:object | ||
| 90 | + [ sp:varName "reportKind"^^xsd:string | ||
| 91 | + ] ; | ||
| 92 | + sp:predicate rdf:type ; | ||
| 93 | + sp:subject | ||
| 94 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 95 | + ] | ||
| 96 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
| 97 | + sp:predicate rdf:type ; | ||
| 98 | + sp:subject | ||
| 99 | + [ sp:varName "reportKind"^^xsd:string | ||
| 100 | + ] | ||
| 101 | + ] [ sp:object | ||
| 102 | + [ sp:varName "kind"^^xsd:string | ||
| 103 | + ] ; | ||
| 104 | + sp:predicate rdfs:label ; | ||
| 105 | + sp:subject | ||
| 106 | + [ sp:varName "reportKind"^^xsd:string | ||
| 107 | + ] | ||
| 108 | + ]) ; | ||
| 109 | + sp:where ([ sp:object spin:_this ; | ||
| 110 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 111 | + sp:subject | ||
| 112 | + [ sp:varName "productionReport"^^xsd:string | ||
| 113 | + ] | ||
| 114 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | ||
| 115 | + sp:predicate rdf:type ; | ||
| 116 | + sp:subject | ||
| 117 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 118 | + ] | ||
| 119 | + ] [ sp:object | ||
| 120 | + [ sp:varName "productionReport"^^xsd:string | ||
| 121 | + ] ; | ||
| 122 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 123 | + sp:subject | ||
| 124 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 125 | + ] | ||
| 126 | + ] [ sp:object | ||
| 127 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 128 | + ] ; | ||
| 129 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 130 | + sp:subject spin:_this | ||
| 131 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 132 | + sp:predicate rdf:type ; | ||
| 133 | + sp:subject | ||
| 134 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 135 | + ] | ||
| 136 | + ] [ sp:object | ||
| 137 | + [ sp:varName "nameRef"^^xsd:string | ||
| 138 | + ] ; | ||
| 139 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 140 | + sp:subject | ||
| 141 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 142 | + ] | ||
| 143 | + ] [ sp:object | ||
| 144 | + [ sp:varName "name"^^xsd:string | ||
| 145 | + ] ; | ||
| 146 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 147 | + sp:subject | ||
| 148 | + [ sp:varName "nameRef"^^xsd:string | ||
| 149 | + ] | ||
| 150 | + ] [ sp:object | ||
| 151 | + [ sp:varName "kind"^^xsd:string | ||
| 152 | + ] ; | ||
| 153 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 154 | + sp:subject | ||
| 155 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 156 | + ] | ||
| 157 | + ] [ rdf:type sp:Bind ; | ||
| 158 | + sp:expression | ||
| 159 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 160 | + sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 161 | + ] | ||
| 162 | + ] ; | ||
| 163 | + sp:variable | ||
| 164 | + [ sp:varName "normalizedKind"^^xsd:string | ||
| 165 | + ] | ||
| 166 | + ] [ rdf:type sp:Bind ; | ||
| 167 | + sp:expression | ||
| 168 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 169 | + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | ||
| 170 | + ] | ||
| 171 | + ] ; | ||
| 172 | + sp:variable | ||
| 173 | + [ sp:varName "reportKind"^^xsd:string | ||
| 174 | + ] | ||
| 175 | + ]) | ||
| 176 | + ] ; | ||
| 177 | + spin:rule | ||
| 178 | + [ rdf:type sp:Construct ; | ||
| 179 | + rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist | ||
| 180 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 181 | + sp:templates ([ sp:object | ||
| 182 | + [ sp:varName "operator"^^xsd:string | ||
| 183 | + ] ; | ||
| 184 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 185 | + sp:subject | ||
| 186 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 187 | + ] | ||
| 188 | + ]) ; | ||
| 189 | + sp:where ([ sp:object | ||
| 190 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 191 | + ] ; | ||
| 192 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 193 | + sp:subject spin:_this | ||
| 194 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 195 | + sp:predicate rdf:type ; | ||
| 196 | + sp:subject | ||
| 197 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 198 | + ] | ||
| 199 | + ] [ sp:object | ||
| 200 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 201 | + ] ; | ||
| 202 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
| 203 | + sp:subject | ||
| 204 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 205 | + ] | ||
| 206 | + ] [ sp:object | ||
| 207 | + [ sp:varName "operatorName"^^xsd:string | ||
| 208 | + ] ; | ||
| 209 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
| 210 | + sp:subject | ||
| 211 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 212 | + ] | ||
| 213 | + ] [ sp:object | ||
| 214 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 215 | + ] ; | ||
| 216 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 217 | + sp:subject | ||
| 218 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 219 | + ] | ||
| 220 | + ] [ sp:object | ||
| 221 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 222 | + ] ; | ||
| 223 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 224 | + sp:subject | ||
| 225 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 226 | + ] | ||
| 227 | + ] [ sp:object | ||
| 228 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 229 | + ] ; | ||
| 230 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 231 | + sp:subject | ||
| 232 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 233 | + ] | ||
| 234 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 235 | + sp:predicate rdf:type ; | ||
| 236 | + sp:subject | ||
| 237 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 238 | + ] | ||
| 239 | + ] [ sp:object | ||
| 240 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 241 | + ] ; | ||
| 242 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 243 | + sp:subject | ||
| 244 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 245 | + ] | ||
| 246 | + ] [ rdf:type sp:Bind ; | ||
| 247 | + sp:expression | ||
| 248 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 249 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
| 250 | + ] | ||
| 251 | + ] ; | ||
| 252 | + sp:variable | ||
| 253 | + [ sp:varName "normalizedOperatorName"^^xsd:string | ||
| 254 | + ] | ||
| 255 | + ] [ rdf:type sp:Bind ; | ||
| 256 | + sp:expression | ||
| 257 | + [ rdf:type rhspin:companyById ; | ||
| 258 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
| 259 | + ] | ||
| 260 | + ] ; | ||
| 261 | + sp:variable | ||
| 262 | + [ sp:varName "operator"^^xsd:string | ||
| 263 | + ] | ||
| 264 | + ]) | ||
| 265 | + ] ; | ||
| 266 | + spin:rule | ||
| 267 | + [ rdf:type sp:Construct ; | ||
| 268 | + rdfs:comment "STEP 20008 Set the geographic context - offshore location"^^xsd:string ; | ||
| 269 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/geography#OffshoreLocation> ; | ||
| 270 | + sp:predicate rdf:type ; | ||
| 271 | + sp:subject | ||
| 272 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 273 | + ] | ||
| 274 | + ] [ sp:object | ||
| 275 | + [ sp:varName "quadrant"^^xsd:string | ||
| 276 | + ] ; | ||
| 277 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaQuadrantId> ; | ||
| 278 | + sp:subject | ||
| 279 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 280 | + ] | ||
| 281 | + ] [ sp:object | ||
| 282 | + [ sp:varName "blockSuffix"^^xsd:string | ||
| 283 | + ] ; | ||
| 284 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaBlockSuffixId> ; | ||
| 285 | + sp:subject | ||
| 286 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 287 | + ] | ||
| 288 | + ] [ sp:object | ||
| 289 | + [ sp:varName "areaName"^^xsd:string | ||
| 290 | + ] ; | ||
| 291 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasAreaName> ; | ||
| 292 | + sp:subject | ||
| 293 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 294 | + ] | ||
| 295 | + ] [ sp:object | ||
| 296 | + [ sp:varName "areaNameNorthSeaOffshore"^^xsd:string | ||
| 297 | + ] ; | ||
| 298 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaAreaName> ; | ||
| 299 | + sp:subject | ||
| 300 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 301 | + ] | ||
| 302 | + ] [ sp:object | ||
| 303 | + [ sp:varName "commentOffshoreLocation"^^xsd:string | ||
| 304 | + ] ; | ||
| 305 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasOffshoreLocationComment> ; | ||
| 306 | + sp:subject | ||
| 307 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 308 | + ] | ||
| 309 | + ]) ; | ||
| 310 | + sp:where ([ sp:object | ||
| 311 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 312 | + ] ; | ||
| 313 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 314 | + sp:subject spin:_this | ||
| 315 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 316 | + sp:predicate rdf:type ; | ||
| 317 | + sp:subject | ||
| 318 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 319 | + ] | ||
| 320 | + ] [ sp:object | ||
| 321 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 322 | + ] ; | ||
| 323 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 324 | + sp:subject | ||
| 325 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 326 | + ] | ||
| 327 | + ] [ sp:object | ||
| 328 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 329 | + ] ; | ||
| 330 | + sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
| 331 | + sp:subject | ||
| 332 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 333 | + ] | ||
| 334 | + ] [ sp:object | ||
| 335 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
| 336 | + ] ; | ||
| 337 | + sp:predicate <http://www.epim.no/schemas/mprml/1#northSeaOffshoreRef> ; | ||
| 338 | + sp:subject | ||
| 339 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 340 | + ] | ||
| 341 | + ] [ sp:object | ||
| 342 | + [ sp:varName "quadrant"^^xsd:string | ||
| 343 | + ] ; | ||
| 344 | + sp:predicate <http://www.epim.no/schemas/mprml/1#quadrant> ; | ||
| 345 | + sp:subject | ||
| 346 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
| 347 | + ] | ||
| 348 | + ] [ rdf:type sp:Optional ; | ||
| 349 | + sp:elements ([ sp:object | ||
| 350 | + [ sp:varName "areaNameNorthSeaOffshore"^^xsd:string | ||
| 351 | + ] ; | ||
| 352 | + sp:predicate <http://www.epim.no/schemas/mprml/1#areaName> ; | ||
| 353 | + sp:subject | ||
| 354 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
| 355 | + ] | ||
| 356 | + ]) | ||
| 357 | + ] [ rdf:type sp:Optional ; | ||
| 358 | + sp:elements ([ sp:object | ||
| 359 | + [ sp:varName "blockSuffix"^^xsd:string | ||
| 360 | + ] ; | ||
| 361 | + sp:predicate <http://www.epim.no/schemas/mprml/1#blockSuffix> ; | ||
| 362 | + sp:subject | ||
| 363 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
| 364 | + ] | ||
| 365 | + ]) | ||
| 366 | + ] [ rdf:type sp:Optional ; | ||
| 367 | + sp:elements ([ sp:object | ||
| 368 | + [ sp:varName "areaName"^^xsd:string | ||
| 369 | + ] ; | ||
| 370 | + sp:predicate <http://www.epim.no/schemas/mprml/1#areaName> ; | ||
| 371 | + sp:subject | ||
| 372 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 373 | + ] | ||
| 374 | + ]) | ||
| 375 | + ] [ rdf:type sp:Optional ; | ||
| 376 | + sp:elements ([ sp:object | ||
| 377 | + [ sp:varName "commentOffshoreLocation"^^xsd:string | ||
| 378 | + ] ; | ||
| 379 | + sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
| 380 | + sp:subject | ||
| 381 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 382 | + ] | ||
| 383 | + ]) | ||
| 384 | + ] [ sp:object | ||
| 385 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 386 | + ] ; | ||
| 387 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 388 | + sp:subject | ||
| 389 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 390 | + ] | ||
| 391 | + ]) | ||
| 392 | + ] ; | ||
| 393 | + spin:rule | ||
| 394 | + [ rdf:type sp:Construct ; | ||
| 395 | + rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ; | ||
| 396 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 397 | + sp:predicate rdf:type ; | ||
| 398 | + sp:subject | ||
| 399 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 400 | + ] | ||
| 401 | + ] [ sp:object | ||
| 402 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 403 | + ] ; | ||
| 404 | + sp:predicate rdf:type ; | ||
| 405 | + sp:subject | ||
| 406 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 407 | + ] | ||
| 408 | + ] [ sp:object | ||
| 409 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 410 | + ] ; | ||
| 411 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 412 | + sp:subject | ||
| 413 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 414 | + ] | ||
| 415 | + ]) ; | ||
| 416 | + sp:where ([ sp:object | ||
| 417 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 418 | + ] ; | ||
| 419 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 420 | + sp:subject spin:_this | ||
| 421 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 422 | + sp:predicate rdf:type ; | ||
| 423 | + sp:subject | ||
| 424 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 425 | + ] | ||
| 426 | + ] [ sp:object | ||
| 427 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 428 | + ] ; | ||
| 429 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 430 | + sp:subject | ||
| 431 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 432 | + ] | ||
| 433 | + ] [ sp:object | ||
| 434 | + [ sp:varName "contextFacilityName"^^xsd:string | ||
| 435 | + ] ; | ||
| 436 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 437 | + sp:subject | ||
| 438 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 439 | + ] | ||
| 440 | + ] [ rdf:type sp:Optional ; | ||
| 441 | + sp:elements ([ sp:object | ||
| 442 | + [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 443 | + ] ; | ||
| 444 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 445 | + sp:subject | ||
| 446 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 447 | + ] | ||
| 448 | + ]) | ||
| 449 | + ] [ sp:object | ||
| 450 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 451 | + ] ; | ||
| 452 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 453 | + sp:subject | ||
| 454 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 455 | + ] | ||
| 456 | + ] [ sp:object | ||
| 457 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 458 | + ] ; | ||
| 459 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 460 | + sp:subject | ||
| 461 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 462 | + ] | ||
| 463 | + ] [ sp:object | ||
| 464 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 465 | + ] ; | ||
| 466 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 467 | + sp:subject | ||
| 468 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 469 | + ] | ||
| 470 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 471 | + sp:predicate rdf:type ; | ||
| 472 | + sp:subject | ||
| 473 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 474 | + ] | ||
| 475 | + ] [ sp:object | ||
| 476 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 477 | + ] ; | ||
| 478 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 479 | + sp:subject | ||
| 480 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 481 | + ] | ||
| 482 | + ] [ rdf:type sp:Bind ; | ||
| 483 | + sp:expression | ||
| 484 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 485 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
| 486 | + ] | ||
| 487 | + ] ; | ||
| 488 | + sp:variable | ||
| 489 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 490 | + ] | ||
| 491 | + ] [ rdf:type sp:Bind ; | ||
| 492 | + sp:expression | ||
| 493 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 494 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 495 | + ] | ||
| 496 | + ] ; | ||
| 497 | + sp:variable | ||
| 498 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 499 | + ] | ||
| 500 | + ] [ rdf:type sp:Bind ; | ||
| 501 | + sp:expression | ||
| 502 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 503 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 504 | + ] | ||
| 505 | + ] ; | ||
| 506 | + sp:variable | ||
| 507 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 508 | + ] | ||
| 509 | + ]) | ||
| 510 | + ] ; | ||
| 511 | + spin:rule | ||
| 512 | + [ rdf:type sp:Construct ; | ||
| 513 | + rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; | ||
| 514 | + sp:templates ([ sp:object | ||
| 515 | + [ sp:varName "field"^^xsd:string | ||
| 516 | + ] ; | ||
| 517 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 518 | + sp:subject | ||
| 519 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 520 | + ] | ||
| 521 | + ]) ; | ||
| 522 | + sp:where ([ sp:object | ||
| 523 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 524 | + ] ; | ||
| 525 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 526 | + sp:subject spin:_this | ||
| 527 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 528 | + sp:predicate rdf:type ; | ||
| 529 | + sp:subject | ||
| 530 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 531 | + ] | ||
| 532 | + ] [ sp:object | ||
| 533 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 534 | + ] ; | ||
| 535 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 536 | + sp:subject | ||
| 537 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 538 | + ] | ||
| 539 | + ] [ sp:object | ||
| 540 | + [ sp:varName "fieldRef"^^xsd:string | ||
| 541 | + ] ; | ||
| 542 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | ||
| 543 | + sp:subject | ||
| 544 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 545 | + ] | ||
| 546 | + ] [ sp:object | ||
| 547 | + [ sp:varName "fieldName"^^xsd:string | ||
| 548 | + ] ; | ||
| 549 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 550 | + sp:subject | ||
| 551 | + [ sp:varName "fieldRef"^^xsd:string | ||
| 552 | + ] | ||
| 553 | + ] [ sp:object | ||
| 554 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 555 | + ] ; | ||
| 556 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 557 | + sp:subject | ||
| 558 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 559 | + ] | ||
| 560 | + ] [ rdf:type sp:Bind ; | ||
| 561 | + sp:expression | ||
| 562 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 563 | + sp:arg1 [ sp:varName "fieldName"^^xsd:string | ||
| 564 | + ] | ||
| 565 | + ] ; | ||
| 566 | + sp:variable | ||
| 567 | + [ sp:varName "normalizedFieldName"^^xsd:string | ||
| 568 | + ] | ||
| 569 | + ] [ rdf:type sp:Bind ; | ||
| 570 | + sp:expression | ||
| 571 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 572 | + sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string | ||
| 573 | + ] | ||
| 574 | + ] ; | ||
| 575 | + sp:variable | ||
| 576 | + [ sp:varName "field"^^xsd:string | ||
| 577 | + ] | ||
| 578 | + ]) | ||
| 579 | + ] ; | ||
| 580 | + spin:rule | ||
| 581 | + [ rdf:type sp:Construct ; | ||
| 582 | + rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist | ||
| 583 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
| 584 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 585 | + sp:predicate rdf:type ; | ||
| 586 | + sp:subject _:b1 | ||
| 587 | + ] [ sp:object _:b2 ; | ||
| 588 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 589 | + sp:subject _:b1 | ||
| 590 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 591 | + sp:predicate rdf:type ; | ||
| 592 | + sp:subject _:b2 | ||
| 593 | + ] [ sp:object | ||
| 594 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 595 | + ] ; | ||
| 596 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 597 | + sp:subject _:b1 | ||
| 598 | + ] [ sp:object | ||
| 599 | + [ sp:varName "operator"^^xsd:string | ||
| 600 | + ] ; | ||
| 601 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 602 | + sp:subject _:b2 | ||
| 603 | + ]) ; | ||
| 604 | + sp:where ([ sp:object | ||
| 605 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 606 | + ] ; | ||
| 607 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 608 | + sp:subject spin:_this | ||
| 609 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 610 | + sp:predicate rdf:type ; | ||
| 611 | + sp:subject | ||
| 612 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 613 | + ] | ||
| 614 | + ] [ sp:object | ||
| 615 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 616 | + ] ; | ||
| 617 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
| 618 | + sp:subject | ||
| 619 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 620 | + ] | ||
| 621 | + ] [ sp:object | ||
| 622 | + [ sp:varName "operatorName"^^xsd:string | ||
| 623 | + ] ; | ||
| 624 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
| 625 | + sp:subject | ||
| 626 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 627 | + ] | ||
| 628 | + ] [ sp:object | ||
| 629 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 630 | + ] ; | ||
| 631 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 632 | + sp:subject | ||
| 633 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 634 | + ] | ||
| 635 | + ] [ sp:object | ||
| 636 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 637 | + ] ; | ||
| 638 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 639 | + sp:subject | ||
| 640 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 641 | + ] | ||
| 642 | + ] [ rdf:type sp:NotExists ; | ||
| 643 | + sp:elements ([ sp:object | ||
| 644 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 645 | + ] ; | ||
| 646 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 647 | + sp:subject | ||
| 648 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 649 | + ] | ||
| 650 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 651 | + sp:predicate rdf:type ; | ||
| 652 | + sp:subject | ||
| 653 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 654 | + ] | ||
| 655 | + ] [ sp:object | ||
| 656 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 657 | + ] ; | ||
| 658 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 659 | + sp:subject | ||
| 660 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 661 | + ] | ||
| 662 | + ]) | ||
| 663 | + ] [ rdf:type sp:Bind ; | ||
| 664 | + sp:expression | ||
| 665 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 666 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
| 667 | + ] | ||
| 668 | + ] ; | ||
| 669 | + sp:variable | ||
| 670 | + [ sp:varName "normalizedOperatorName"^^xsd:string | ||
| 671 | + ] | ||
| 672 | + ] [ rdf:type sp:Bind ; | ||
| 673 | + sp:expression | ||
| 674 | + [ rdf:type rhspin:companyById ; | ||
| 675 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
| 676 | + ] | ||
| 677 | + ] ; | ||
| 678 | + sp:variable | ||
| 679 | + [ sp:varName "operator"^^xsd:string | ||
| 680 | + ] | ||
| 681 | + ]) | ||
| 682 | + ] ; | ||
| 683 | + spin:rule | ||
| 684 | + [ rdf:type sp:Construct ; | ||
| 685 | + rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ; | ||
| 686 | + sp:templates ([ sp:object | ||
| 687 | + [ sp:varName "block"^^xsd:string | ||
| 688 | + ] ; | ||
| 689 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 690 | + sp:subject | ||
| 691 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 692 | + ] | ||
| 693 | + ]) ; | ||
| 694 | + sp:where ([ sp:object | ||
| 695 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 696 | + ] ; | ||
| 697 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 698 | + sp:subject spin:_this | ||
| 699 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 700 | + sp:predicate rdf:type ; | ||
| 701 | + sp:subject | ||
| 702 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 703 | + ] | ||
| 704 | + ] [ sp:object | ||
| 705 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 706 | + ] ; | ||
| 707 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 708 | + sp:subject | ||
| 709 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 710 | + ] | ||
| 711 | + ] [ sp:object | ||
| 712 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 713 | + ] ; | ||
| 714 | + sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
| 715 | + sp:subject | ||
| 716 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 717 | + ] | ||
| 718 | + ] [ sp:object | ||
| 719 | + [ sp:varName "blockId"^^xsd:string | ||
| 720 | + ] ; | ||
| 721 | + sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ; | ||
| 722 | + sp:subject | ||
| 723 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
| 724 | + ] | ||
| 725 | + ] [ sp:object | ||
| 726 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 727 | + ] ; | ||
| 728 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 729 | + sp:subject | ||
| 730 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 731 | + ] | ||
| 732 | + ] [ rdf:type sp:Bind ; | ||
| 733 | + sp:expression | ||
| 734 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 735 | + sp:arg1 [ sp:varName "blockId"^^xsd:string | ||
| 736 | + ] | ||
| 737 | + ] ; | ||
| 738 | + sp:variable | ||
| 739 | + [ sp:varName "normalizedBlockId"^^xsd:string | ||
| 740 | + ] | ||
| 741 | + ] [ rdf:type sp:Bind ; | ||
| 742 | + sp:expression | ||
| 743 | + [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | ||
| 744 | + sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | ||
| 745 | + ] | ||
| 746 | + ] ; | ||
| 747 | + sp:variable | ||
| 748 | + [ sp:varName "block"^^xsd:string | ||
| 749 | + ] | ||
| 750 | + ]) | ||
| 751 | + ] ; | ||
| 752 | + spin:rule | ||
| 753 | + [ rdf:type sp:Construct ; | ||
| 754 | + rdfs:comment "STEP 20002b Record the end date"^^xsd:string ; | ||
| 755 | + sp:templates ([ sp:object | ||
| 756 | + [ sp:varName "dateStart"^^xsd:string | ||
| 757 | + ] ; | ||
| 758 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 759 | + sp:subject | ||
| 760 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 761 | + ] | ||
| 762 | + ] [ sp:object | ||
| 763 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 764 | + ] ; | ||
| 765 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 766 | + sp:subject | ||
| 767 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 768 | + ] | ||
| 769 | + ] [ sp:object | ||
| 770 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 771 | + ] ; | ||
| 772 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 773 | + sp:subject | ||
| 774 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 775 | + ] | ||
| 776 | + ]) ; | ||
| 777 | + sp:where ([ sp:object | ||
| 778 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 779 | + ] ; | ||
| 780 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 781 | + sp:subject spin:_this | ||
| 782 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 783 | + sp:predicate rdf:type ; | ||
| 784 | + sp:subject | ||
| 785 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 786 | + ] | ||
| 787 | + ] [ sp:object | ||
| 788 | + [ sp:varName "dateStart"^^xsd:string | ||
| 789 | + ] ; | ||
| 790 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 791 | + sp:subject | ||
| 792 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 793 | + ] | ||
| 794 | + ] [ sp:object | ||
| 795 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 796 | + ] ; | ||
| 797 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 798 | + sp:subject | ||
| 799 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 800 | + ] | ||
| 801 | + ] [ sp:object | ||
| 802 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 803 | + ] ; | ||
| 804 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 805 | + sp:subject | ||
| 806 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 807 | + ] | ||
| 808 | + ] [ sp:object | ||
| 809 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 810 | + ] ; | ||
| 811 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 812 | + sp:subject | ||
| 813 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 814 | + ] | ||
| 815 | + ]) | ||
| 816 | + ] ; | ||
| 817 | + spin:rule | ||
| 818 | + [ rdf:type sp:Construct ; | ||
| 819 | + rdfs:comment "STEP 20006b Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility not already defined"^^xsd:string ; | ||
| 820 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 821 | + sp:predicate rdf:type ; | ||
| 822 | + sp:subject _:b3 | ||
| 823 | + ] [ sp:object _:b4 ; | ||
| 824 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 825 | + sp:subject _:b3 | ||
| 826 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 827 | + sp:predicate rdf:type ; | ||
| 828 | + sp:subject _:b4 | ||
| 829 | + ] [ sp:object | ||
| 830 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 831 | + ] ; | ||
| 832 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 833 | + sp:subject _:b3 | ||
| 834 | + ] [ sp:object _:b5 ; | ||
| 835 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 836 | + sp:subject _:b4 | ||
| 837 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 838 | + sp:predicate rdf:type ; | ||
| 839 | + sp:subject _:b5 | ||
| 840 | + ] [ sp:object | ||
| 841 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 842 | + ] ; | ||
| 843 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 844 | + sp:subject _:b5 | ||
| 845 | + ]) ; | ||
| 846 | + sp:where ([ sp:object | ||
| 847 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 848 | + ] ; | ||
| 849 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 850 | + sp:subject spin:_this | ||
| 851 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 852 | + sp:predicate rdf:type ; | ||
| 853 | + sp:subject | ||
| 854 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 855 | + ] | ||
| 856 | + ] [ sp:object | ||
| 857 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 858 | + ] ; | ||
| 859 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 860 | + sp:subject | ||
| 861 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 862 | + ] | ||
| 863 | + ] [ rdf:type sp:Optional ; | ||
| 864 | + sp:elements ([ sp:object | ||
| 865 | + [ sp:varName "comment"^^xsd:string | ||
| 866 | + ] ; | ||
| 867 | + sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
| 868 | + sp:subject | ||
| 869 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 870 | + ] | ||
| 871 | + ]) | ||
| 872 | + ] [ sp:object | ||
| 873 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 874 | + ] ; | ||
| 875 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 876 | + sp:subject | ||
| 877 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 878 | + ] | ||
| 879 | + ] [ sp:object | ||
| 880 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 881 | + ] ; | ||
| 882 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 883 | + sp:subject | ||
| 884 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 885 | + ] | ||
| 886 | + ] [ rdf:type sp:NotExists ; | ||
| 887 | + sp:elements ([ sp:object | ||
| 888 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 889 | + ] ; | ||
| 890 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 891 | + sp:subject | ||
| 892 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 893 | + ] | ||
| 894 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 895 | + sp:predicate rdf:type ; | ||
| 896 | + sp:subject | ||
| 897 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 898 | + ] | ||
| 899 | + ] [ sp:object | ||
| 900 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 901 | + ] ; | ||
| 902 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 903 | + sp:subject | ||
| 904 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 905 | + ] | ||
| 906 | + ]) | ||
| 907 | + ]) | ||
| 908 | + ] ; | ||
| 909 | + spin:rule | ||
| 910 | + [ rdf:type sp:Construct ; | ||
| 911 | + rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; | ||
| 912 | + sp:templates ([ sp:object | ||
| 913 | + [ sp:varName "state"^^xsd:string | ||
| 914 | + ] ; | ||
| 915 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 916 | + sp:subject | ||
| 917 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 918 | + ] | ||
| 919 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
| 920 | + sp:predicate rdf:type ; | ||
| 921 | + sp:subject | ||
| 922 | + [ sp:varName "state"^^xsd:string | ||
| 923 | + ] | ||
| 924 | + ] [ sp:object | ||
| 925 | + [ sp:varName "stateName"^^xsd:string | ||
| 926 | + ] ; | ||
| 927 | + sp:predicate rdfs:label ; | ||
| 928 | + sp:subject | ||
| 929 | + [ sp:varName "state"^^xsd:string | ||
| 930 | + ] | ||
| 931 | + ]) ; | ||
| 932 | + sp:where ([ sp:object | ||
| 933 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 934 | + ] ; | ||
| 935 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 936 | + sp:subject spin:_this | ||
| 937 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 938 | + sp:predicate rdf:type ; | ||
| 939 | + sp:subject | ||
| 940 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 941 | + ] | ||
| 942 | + ] [ sp:object | ||
| 943 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 944 | + ] ; | ||
| 945 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 946 | + sp:subject | ||
| 947 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 948 | + ] | ||
| 949 | + ] [ sp:object | ||
| 950 | + [ sp:varName "stateName"^^xsd:string | ||
| 951 | + ] ; | ||
| 952 | + sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | ||
| 953 | + sp:subject | ||
| 954 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 955 | + ] | ||
| 956 | + ] [ sp:object | ||
| 957 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 958 | + ] ; | ||
| 959 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 960 | + sp:subject | ||
| 961 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 962 | + ] | ||
| 963 | + ] [ rdf:type sp:Bind ; | ||
| 964 | + sp:expression | ||
| 965 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 966 | + sp:arg1 [ sp:varName "stateName"^^xsd:string | ||
| 967 | + ] | ||
| 968 | + ] ; | ||
| 969 | + sp:variable | ||
| 970 | + [ sp:varName "normalizedStateName"^^xsd:string | ||
| 971 | + ] | ||
| 972 | + ] [ rdf:type sp:Bind ; | ||
| 973 | + sp:expression | ||
| 974 | + [ rdf:type ep-dpr-spin-lib:buildStateURI ; | ||
| 975 | + sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | ||
| 976 | + ] | ||
| 977 | + ] ; | ||
| 978 | + sp:variable | ||
| 979 | + [ sp:varName "state"^^xsd:string | ||
| 980 | + ] | ||
| 981 | + ]) | ||
| 982 | + ] ; | ||
| 983 | + spin:rule | ||
| 984 | + [ rdf:type sp:Construct ; | ||
| 985 | + rdfs:comment "STEP 20003 Set the installation"^^xsd:string ; | ||
| 986 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 987 | + sp:predicate rdf:type ; | ||
| 988 | + sp:subject _:b6 | ||
| 989 | + ] [ sp:object | ||
| 990 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 991 | + ] ; | ||
| 992 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 993 | + sp:subject _:b6 | ||
| 994 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 995 | + sp:predicate rdf:type ; | ||
| 996 | + sp:subject | ||
| 997 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 998 | + ] | ||
| 999 | + ] [ sp:object | ||
| 1000 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 1001 | + ] ; | ||
| 1002 | + sp:predicate rdf:type ; | ||
| 1003 | + sp:subject | ||
| 1004 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 1005 | + ] | ||
| 1006 | + ] [ sp:object | ||
| 1007 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1008 | + ] ; | ||
| 1009 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 1010 | + sp:subject _:b6 | ||
| 1011 | + ]) ; | ||
| 1012 | + sp:where ([ sp:object | ||
| 1013 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1014 | + ] ; | ||
| 1015 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 1016 | + sp:subject spin:_this | ||
| 1017 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1018 | + sp:predicate rdf:type ; | ||
| 1019 | + sp:subject | ||
| 1020 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1021 | + ] | ||
| 1022 | + ] [ sp:object | ||
| 1023 | + [ sp:varName "installationRef"^^xsd:string | ||
| 1024 | + ] ; | ||
| 1025 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 1026 | + sp:subject | ||
| 1027 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1028 | + ] | ||
| 1029 | + ] [ sp:object | ||
| 1030 | + [ sp:varName "installationName"^^xsd:string | ||
| 1031 | + ] ; | ||
| 1032 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1033 | + sp:subject | ||
| 1034 | + [ sp:varName "installationRef"^^xsd:string | ||
| 1035 | + ] | ||
| 1036 | + ] [ rdf:type sp:Optional ; | ||
| 1037 | + sp:elements ([ sp:object | ||
| 1038 | + [ sp:varName "installationKind"^^xsd:string | ||
| 1039 | + ] ; | ||
| 1040 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1041 | + sp:subject | ||
| 1042 | + [ sp:varName "installationRef"^^xsd:string | ||
| 1043 | + ] | ||
| 1044 | + ]) | ||
| 1045 | + ] [ sp:object | ||
| 1046 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1047 | + ] ; | ||
| 1048 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1049 | + sp:subject | ||
| 1050 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 1051 | + ] | ||
| 1052 | + ] [ sp:object | ||
| 1053 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1054 | + ] ; | ||
| 1055 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1056 | + sp:subject | ||
| 1057 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 1058 | + ] | ||
| 1059 | + ] [ rdf:type sp:Bind ; | ||
| 1060 | + sp:expression | ||
| 1061 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1062 | + sp:arg1 [ sp:varName "installationName"^^xsd:string | ||
| 1063 | + ] | ||
| 1064 | + ] ; | ||
| 1065 | + sp:variable | ||
| 1066 | + [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 1067 | + ] | ||
| 1068 | + ] [ rdf:type sp:Bind ; | ||
| 1069 | + sp:expression | ||
| 1070 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 1071 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 1072 | + ] | ||
| 1073 | + ] ; | ||
| 1074 | + sp:variable | ||
| 1075 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 1076 | + ] | ||
| 1077 | + ] [ rdf:type sp:Bind ; | ||
| 1078 | + sp:expression | ||
| 1079 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 1080 | + sp:arg1 [ sp:varName "installationKind"^^xsd:string | ||
| 1081 | + ] | ||
| 1082 | + ] ; | ||
| 1083 | + sp:variable | ||
| 1084 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
| 1085 | + ] | ||
| 1086 | + ]) | ||
| 1087 | + ] ; | ||
| 1088 | + spin:rule | ||
| 1089 | + [ rdf:type sp:Construct ; | ||
| 1090 | + rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ; | ||
| 1091 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1092 | + sp:predicate rdf:type ; | ||
| 1093 | + sp:subject _:b7 | ||
| 1094 | + ] [ sp:object _:b8 ; | ||
| 1095 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1096 | + sp:subject _:b7 | ||
| 1097 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 1098 | + sp:predicate rdf:type ; | ||
| 1099 | + sp:subject _:b8 | ||
| 1100 | + ] [ sp:object | ||
| 1101 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1102 | + ] ; | ||
| 1103 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 1104 | + sp:subject _:b7 | ||
| 1105 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 1106 | + sp:predicate rdf:type ; | ||
| 1107 | + sp:subject | ||
| 1108 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 1109 | + ] | ||
| 1110 | + ] [ sp:object | ||
| 1111 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 1112 | + ] ; | ||
| 1113 | + sp:predicate rdf:type ; | ||
| 1114 | + sp:subject | ||
| 1115 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 1116 | + ] | ||
| 1117 | + ] [ sp:object _:b8 ; | ||
| 1118 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 1119 | + sp:subject | ||
| 1120 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 1121 | + ] | ||
| 1122 | + ]) ; | ||
| 1123 | + sp:where ([ sp:object | ||
| 1124 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1125 | + ] ; | ||
| 1126 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 1127 | + sp:subject spin:_this | ||
| 1128 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1129 | + sp:predicate rdf:type ; | ||
| 1130 | + sp:subject | ||
| 1131 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1132 | + ] | ||
| 1133 | + ] [ sp:object | ||
| 1134 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 1135 | + ] ; | ||
| 1136 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 1137 | + sp:subject | ||
| 1138 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1139 | + ] | ||
| 1140 | + ] [ sp:object | ||
| 1141 | + [ sp:varName "contextFacilityName"^^xsd:string | ||
| 1142 | + ] ; | ||
| 1143 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1144 | + sp:subject | ||
| 1145 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 1146 | + ] | ||
| 1147 | + ] [ rdf:type sp:Optional ; | ||
| 1148 | + sp:elements ([ sp:object | ||
| 1149 | + [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 1150 | + ] ; | ||
| 1151 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 1152 | + sp:subject | ||
| 1153 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 1154 | + ] | ||
| 1155 | + ]) | ||
| 1156 | + ] [ sp:object | ||
| 1157 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1158 | + ] ; | ||
| 1159 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1160 | + sp:subject | ||
| 1161 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 1162 | + ] | ||
| 1163 | + ] [ sp:object | ||
| 1164 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1165 | + ] ; | ||
| 1166 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1167 | + sp:subject | ||
| 1168 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 1169 | + ] | ||
| 1170 | + ] [ rdf:type sp:NotExists ; | ||
| 1171 | + sp:elements ([ sp:object | ||
| 1172 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1173 | + ] ; | ||
| 1174 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 1175 | + sp:subject | ||
| 1176 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1177 | + ] | ||
| 1178 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1179 | + sp:predicate rdf:type ; | ||
| 1180 | + sp:subject | ||
| 1181 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1182 | + ] | ||
| 1183 | + ] [ sp:object | ||
| 1184 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 1185 | + ] ; | ||
| 1186 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1187 | + sp:subject | ||
| 1188 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1189 | + ] | ||
| 1190 | + ]) | ||
| 1191 | + ] [ rdf:type sp:Bind ; | ||
| 1192 | + sp:expression | ||
| 1193 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1194 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
| 1195 | + ] | ||
| 1196 | + ] ; | ||
| 1197 | + sp:variable | ||
| 1198 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 1199 | + ] | ||
| 1200 | + ] [ rdf:type sp:Bind ; | ||
| 1201 | + sp:expression | ||
| 1202 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 1203 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
| 1204 | + ] | ||
| 1205 | + ] ; | ||
| 1206 | + sp:variable | ||
| 1207 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
| 1208 | + ] | ||
| 1209 | + ] [ rdf:type sp:Bind ; | ||
| 1210 | + sp:expression | ||
| 1211 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 1212 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
| 1213 | + ] | ||
| 1214 | + ] ; | ||
| 1215 | + sp:variable | ||
| 1216 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
| 1217 | + ] | ||
| 1218 | + ]) | ||
| 1219 | + ] ; | ||
| 1220 | + spin:rule | ||
| 1221 | + [ rdf:type sp:Construct ; | ||
| 1222 | + rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ; | ||
| 1223 | + sp:templates ([ sp:object _:b9 ; | ||
| 1224 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | ||
| 1225 | + sp:subject | ||
| 1226 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 1227 | + ] | ||
| 1228 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 1229 | + sp:predicate rdf:type ; | ||
| 1230 | + sp:subject _:b9 | ||
| 1231 | + ] [ sp:object | ||
| 1232 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1233 | + ] ; | ||
| 1234 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1235 | + sp:subject _:b9 | ||
| 1236 | + ] [ sp:object | ||
| 1237 | + [ sp:varName "comment"^^xsd:string | ||
| 1238 | + ] ; | ||
| 1239 | + sp:predicate rdfs:comment ; | ||
| 1240 | + sp:subject _:b9 | ||
| 1241 | + ]) ; | ||
| 1242 | + sp:where ([ sp:object | ||
| 1243 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1244 | + ] ; | ||
| 1245 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 1246 | + sp:subject spin:_this | ||
| 1247 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1248 | + sp:predicate rdf:type ; | ||
| 1249 | + sp:subject | ||
| 1250 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1251 | + ] | ||
| 1252 | + ] [ sp:object | ||
| 1253 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1254 | + ] ; | ||
| 1255 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 1256 | + sp:subject | ||
| 1257 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1258 | + ] | ||
| 1259 | + ] [ rdf:type sp:Optional ; | ||
| 1260 | + sp:elements ([ sp:object | ||
| 1261 | + [ sp:varName "comment"^^xsd:string | ||
| 1262 | + ] ; | ||
| 1263 | + sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
| 1264 | + sp:subject | ||
| 1265 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1266 | + ] | ||
| 1267 | + ]) | ||
| 1268 | + ] [ sp:object | ||
| 1269 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1270 | + ] ; | ||
| 1271 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1272 | + sp:subject | ||
| 1273 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 1274 | + ] | ||
| 1275 | + ] [ sp:object | ||
| 1276 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1277 | + ] ; | ||
| 1278 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1279 | + sp:subject | ||
| 1280 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 1281 | + ] | ||
| 1282 | + ] [ sp:object | ||
| 1283 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
| 1284 | + ] ; | ||
| 1285 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
| 1286 | + sp:subject | ||
| 1287 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1288 | + ] | ||
| 1289 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 1290 | + sp:predicate rdf:type ; | ||
| 1291 | + sp:subject | ||
| 1292 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1293 | + ] | ||
| 1294 | + ] [ sp:object | ||
| 1295 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 1296 | + ] ; | ||
| 1297 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1298 | + sp:subject | ||
| 1299 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 1300 | + ] | ||
| 1301 | + ]) | ||
| 1302 | + ] ; | ||
| 1303 | + spin:rule | ||
| 1304 | + [ rdf:type sp:Construct ; | ||
| 1305 | + rdfs:comment "STEP 20001a Create the ProductVolumeReport, the DailyProductionFlow and the ProductionFlowToDate ."^^xsd:string ; | ||
| 1306 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | ||
| 1307 | + sp:predicate rdf:type ; | ||
| 1308 | + sp:subject _:b10 | ||
| 1309 | + ] [ sp:object | ||
| 1310 | + [ sp:varName "productionReport"^^xsd:string | ||
| 1311 | + ] ; | ||
| 1312 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 1313 | + sp:subject _:b10 | ||
| 1314 | + ] [ sp:object | ||
| 1315 | + [ sp:varName "name"^^xsd:string | ||
| 1316 | + ] ; | ||
| 1317 | + sp:predicate rdfs:label ; | ||
| 1318 | + sp:subject _:b10 | ||
| 1319 | + ] [ sp:object | ||
| 1320 | + [ sp:varName "productVolumeReportPeriodType"^^xsd:string | ||
| 1321 | + ] ; | ||
| 1322 | + sp:predicate rdf:type ; | ||
| 1323 | + sp:subject _:b10 | ||
| 1324 | + ] [ sp:object _:b11 ; | ||
| 1325 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 1326 | + sp:subject _:b10 | ||
| 1327 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
| 1328 | + sp:predicate rdf:type ; | ||
| 1329 | + sp:subject _:b11 | ||
| 1330 | + ] [ sp:object | ||
| 1331 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1332 | + ] ; | ||
| 1333 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1334 | + sp:subject _:b11 | ||
| 1335 | + ] [ sp:object _:b12 ; | ||
| 1336 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1337 | + sp:subject _:b11 | ||
| 1338 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
| 1339 | + sp:predicate rdf:type ; | ||
| 1340 | + sp:subject _:b12 | ||
| 1341 | + ] [ sp:object | ||
| 1342 | + [ sp:varName "title"^^xsd:string | ||
| 1343 | + ] ; | ||
| 1344 | + sp:predicate <http://purl.org/dc/elements/1.1/title> ; | ||
| 1345 | + sp:subject _:b10 | ||
| 1346 | + ]) ; | ||
| 1347 | + sp:where ([ sp:object spin:_this ; | ||
| 1348 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1349 | + sp:subject | ||
| 1350 | + [ sp:varName "productionReport"^^xsd:string | ||
| 1351 | + ] | ||
| 1352 | + ] [ sp:object | ||
| 1353 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1354 | + ] ; | ||
| 1355 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 1356 | + sp:subject spin:_this | ||
| 1357 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1358 | + sp:predicate rdf:type ; | ||
| 1359 | + sp:subject | ||
| 1360 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1361 | + ] | ||
| 1362 | + ] [ sp:object | ||
| 1363 | + [ sp:varName "nameRef"^^xsd:string | ||
| 1364 | + ] ; | ||
| 1365 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 1366 | + sp:subject | ||
| 1367 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1368 | + ] | ||
| 1369 | + ] [ sp:object | ||
| 1370 | + [ sp:varName "name"^^xsd:string | ||
| 1371 | + ] ; | ||
| 1372 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1373 | + sp:subject | ||
| 1374 | + [ sp:varName "nameRef"^^xsd:string | ||
| 1375 | + ] | ||
| 1376 | + ] [ rdf:type sp:Optional ; | ||
| 1377 | + sp:elements ([ sp:object | ||
| 1378 | + [ sp:varName "periodKindRef"^^xsd:string | ||
| 1379 | + ] ; | ||
| 1380 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
| 1381 | + sp:subject | ||
| 1382 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1383 | + ] | ||
| 1384 | + ]) | ||
| 1385 | + ] [ rdf:type sp:Optional ; | ||
| 1386 | + sp:elements ([ sp:object | ||
| 1387 | + [ sp:varName "titleRef"^^xsd:string | ||
| 1388 | + ] ; | ||
| 1389 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 1390 | + sp:subject | ||
| 1391 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1392 | + ] | ||
| 1393 | + ] [ sp:object | ||
| 1394 | + [ sp:varName "title"^^xsd:string | ||
| 1395 | + ] ; | ||
| 1396 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 1397 | + sp:subject | ||
| 1398 | + [ sp:varName "titleRef"^^xsd:string | ||
| 1399 | + ] | ||
| 1400 | + ]) | ||
| 1401 | + ] [ rdf:type sp:Bind ; | ||
| 1402 | + sp:expression | ||
| 1403 | + [ rdf:type ep-dpr-spin-lib:selectProductVolumeReportPeriodType ; | ||
| 1404 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 1405 | + ] | ||
| 1406 | + ] ; | ||
| 1407 | + sp:variable | ||
| 1408 | + [ sp:varName "productVolumeReportPeriodType"^^xsd:string | ||
| 1409 | + ] | ||
| 1410 | + ]) | ||
| 1411 | + ] ; | ||
| 1412 | + spin:rule | ||
| 1413 | + [ rdf:type sp:Construct ; | ||
| 1414 | + rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; | ||
| 1415 | + sp:templates ([ sp:object | ||
| 1416 | + [ sp:varName "country"^^xsd:string | ||
| 1417 | + ] ; | ||
| 1418 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 1419 | + sp:subject | ||
| 1420 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 1421 | + ] | ||
| 1422 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
| 1423 | + sp:predicate rdf:type ; | ||
| 1424 | + sp:subject | ||
| 1425 | + [ sp:varName "country"^^xsd:string | ||
| 1426 | + ] | ||
| 1427 | + ] [ sp:object | ||
| 1428 | + [ sp:varName "countryName"^^xsd:string | ||
| 1429 | + ] ; | ||
| 1430 | + sp:predicate rdfs:label ; | ||
| 1431 | + sp:subject | ||
| 1432 | + [ sp:varName "country"^^xsd:string | ||
| 1433 | + ] | ||
| 1434 | + ]) ; | ||
| 1435 | + sp:where ([ sp:object | ||
| 1436 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1437 | + ] ; | ||
| 1438 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 1439 | + sp:subject spin:_this | ||
| 1440 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1441 | + sp:predicate rdf:type ; | ||
| 1442 | + sp:subject | ||
| 1443 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1444 | + ] | ||
| 1445 | + ] [ sp:object | ||
| 1446 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1447 | + ] ; | ||
| 1448 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
| 1449 | + sp:subject | ||
| 1450 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1451 | + ] | ||
| 1452 | + ] [ sp:object | ||
| 1453 | + [ sp:varName "countryName"^^xsd:string | ||
| 1454 | + ] ; | ||
| 1455 | + sp:predicate <http://www.epim.no/schemas/mprml/1#country> ; | ||
| 1456 | + sp:subject | ||
| 1457 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1458 | + ] | ||
| 1459 | + ] [ sp:object | ||
| 1460 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
| 1461 | + ] ; | ||
| 1462 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 1463 | + sp:subject | ||
| 1464 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
| 1465 | + ] | ||
| 1466 | + ] [ rdf:type sp:Bind ; | ||
| 1467 | + sp:expression | ||
| 1468 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 1469 | + sp:arg1 [ sp:varName "countryName"^^xsd:string | ||
| 1470 | + ] | ||
| 1471 | + ] ; | ||
| 1472 | + sp:variable | ||
| 1473 | + [ sp:varName "normalizedCountryName"^^xsd:string | ||
| 1474 | + ] | ||
| 1475 | + ] [ rdf:type sp:Bind ; | ||
| 1476 | + sp:expression | ||
| 1477 | + [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | ||
| 1478 | + sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | ||
| 1479 | + ] | ||
| 1480 | + ] ; | ||
| 1481 | + sp:variable | ||
| 1482 | + [ sp:varName "country"^^xsd:string | ||
| 1483 | + ] | ||
| 1484 | + ]) | ||
| 1485 | + ] . | ||
| 1486 | + | ||
| 1487 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | ||
| 1488 | + rdf:type owl:Ontology ; | ||
| 1489 | + owl:imports <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | ||
| 1490 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + composite:index "0"^^xsd:int | ||
| 16 | + ] . |
| 1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
| 4 | +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib | ||
| 5 | + | ||
| 6 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> . | ||
| 7 | +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | ||
| 8 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | ||
| 9 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
| 10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 13 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 14 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 15 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 16 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 17 | + | ||
| 18 | +<http://www.epim.no/schemas/mprml/1#A_Global-Objects> | ||
| 19 | + spin:rule | ||
| 20 | + [ rdf:type sp:Construct ; | ||
| 21 | + rdfs:comment "STEP 10001c Add the report kind"^^xsd:string ; | ||
| 22 | + sp:templates ([ sp:object | ||
| 23 | + [ sp:varName "reportKind"^^xsd:string | ||
| 24 | + ] ; | ||
| 25 | + sp:predicate rdf:type ; | ||
| 26 | + sp:subject | ||
| 27 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 28 | + ] | ||
| 29 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
| 30 | + sp:predicate rdf:type ; | ||
| 31 | + sp:subject | ||
| 32 | + [ sp:varName "reportKind"^^xsd:string | ||
| 33 | + ] | ||
| 34 | + ] [ sp:object | ||
| 35 | + [ sp:varName "kind"^^xsd:string | ||
| 36 | + ] ; | ||
| 37 | + sp:predicate rdfs:label ; | ||
| 38 | + sp:subject | ||
| 39 | + [ sp:varName "reportKind"^^xsd:string | ||
| 40 | + ] | ||
| 41 | + ]) ; | ||
| 42 | + sp:where ([ sp:object | ||
| 43 | + [ sp:varName "contextRef"^^xsd:string | ||
| 44 | + ] ; | ||
| 45 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 46 | + sp:subject spin:_this | ||
| 47 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 48 | + sp:predicate rdf:type ; | ||
| 49 | + sp:subject | ||
| 50 | + [ sp:varName "contextRef"^^xsd:string | ||
| 51 | + ] | ||
| 52 | + ] [ sp:object | ||
| 53 | + [ sp:varName "kind"^^xsd:string | ||
| 54 | + ] ; | ||
| 55 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 56 | + sp:subject | ||
| 57 | + [ sp:varName "contextRef"^^xsd:string | ||
| 58 | + ] | ||
| 59 | + ] [ sp:object | ||
| 60 | + [ sp:varName "date"^^xsd:string | ||
| 61 | + ] ; | ||
| 62 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 63 | + sp:subject | ||
| 64 | + [ sp:varName "contextRef"^^xsd:string | ||
| 65 | + ] | ||
| 66 | + ] [ sp:object spin:_this ; | ||
| 67 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 68 | + sp:subject | ||
| 69 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 70 | + ] | ||
| 71 | + ] [ rdf:type sp:Bind ; | ||
| 72 | + sp:expression | ||
| 73 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 74 | + sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 75 | + ] | ||
| 76 | + ] ; | ||
| 77 | + sp:variable | ||
| 78 | + [ sp:varName "normalizedKind"^^xsd:string | ||
| 79 | + ] | ||
| 80 | + ] [ rdf:type sp:Bind ; | ||
| 81 | + sp:expression | ||
| 82 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 83 | + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | ||
| 84 | + ] | ||
| 85 | + ] ; | ||
| 86 | + sp:variable | ||
| 87 | + [ sp:varName "reportKind"^^xsd:string | ||
| 88 | + ] | ||
| 89 | + ]) | ||
| 90 | + ] ; | ||
| 91 | + spin:rule | ||
| 92 | + [ rdf:type sp:Construct ; | ||
| 93 | + rdfs:comment """STEP 10001a Create the ProductionReport - dTimStart and dTimEnd supplied | ||
| 94 | +Extract the name from the productionOperation child"""^^xsd:string ; | ||
| 95 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ; | ||
| 96 | + sp:predicate rdf:type ; | ||
| 97 | + sp:subject | ||
| 98 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 99 | + ] | ||
| 100 | + ] [ sp:object | ||
| 101 | + [ sp:varName "title"^^xsd:string | ||
| 102 | + ] ; | ||
| 103 | + sp:predicate rdfs:label ; | ||
| 104 | + sp:subject | ||
| 105 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 106 | + ] | ||
| 107 | + ] [ sp:object | ||
| 108 | + [ sp:varName "date"^^xsd:string | ||
| 109 | + ] ; | ||
| 110 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | ||
| 111 | + sp:subject | ||
| 112 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 113 | + ] | ||
| 114 | + ] [ sp:object spin:_this ; | ||
| 115 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 116 | + sp:subject | ||
| 117 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 118 | + ] | ||
| 119 | + ]) ; | ||
| 120 | + sp:where ([ sp:object | ||
| 121 | + [ sp:varName "contextRef"^^xsd:string | ||
| 122 | + ] ; | ||
| 123 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 124 | + sp:subject spin:_this | ||
| 125 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 126 | + sp:predicate rdf:type ; | ||
| 127 | + sp:subject | ||
| 128 | + [ sp:varName "contextRef"^^xsd:string | ||
| 129 | + ] | ||
| 130 | + ] [ rdf:type sp:Optional ; | ||
| 131 | + sp:elements ([ sp:object | ||
| 132 | + [ sp:varName "titleRef"^^xsd:string | ||
| 133 | + ] ; | ||
| 134 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 135 | + sp:subject | ||
| 136 | + [ sp:varName "contextRef"^^xsd:string | ||
| 137 | + ] | ||
| 138 | + ] [ sp:object | ||
| 139 | + [ sp:varName "title"^^xsd:string | ||
| 140 | + ] ; | ||
| 141 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 142 | + sp:subject | ||
| 143 | + [ sp:varName "titleRef"^^xsd:string | ||
| 144 | + ] | ||
| 145 | + ]) | ||
| 146 | + ] [ sp:object | ||
| 147 | + [ sp:varName "date"^^xsd:string | ||
| 148 | + ] ; | ||
| 149 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 150 | + sp:subject | ||
| 151 | + [ sp:varName "contextRef"^^xsd:string | ||
| 152 | + ] | ||
| 153 | + ] [ sp:object | ||
| 154 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 155 | + ] ; | ||
| 156 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 157 | + sp:subject spin:_this | ||
| 158 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 159 | + sp:predicate rdf:type ; | ||
| 160 | + sp:subject | ||
| 161 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 162 | + ] | ||
| 163 | + ] [ sp:object | ||
| 164 | + [ sp:varName "nameRef"^^xsd:string | ||
| 165 | + ] ; | ||
| 166 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 167 | + sp:subject | ||
| 168 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 169 | + ] | ||
| 170 | + ] [ sp:object | ||
| 171 | + [ sp:varName "name"^^xsd:string | ||
| 172 | + ] ; | ||
| 173 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 174 | + sp:subject | ||
| 175 | + [ sp:varName "nameRef"^^xsd:string | ||
| 176 | + ] | ||
| 177 | + ] [ sp:object | ||
| 178 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 179 | + ] ; | ||
| 180 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 181 | + sp:subject | ||
| 182 | + [ sp:varName "prodctionOperationRef"^^xsd:string | ||
| 183 | + ] | ||
| 184 | + ] [ sp:object | ||
| 185 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 186 | + ] ; | ||
| 187 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 188 | + sp:subject | ||
| 189 | + [ sp:varName "prodctionOperationRef"^^xsd:string | ||
| 190 | + ] | ||
| 191 | + ] [ rdf:type sp:Bind ; | ||
| 192 | + sp:expression | ||
| 193 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 194 | + sp:arg1 [ sp:varName "name"^^xsd:string | ||
| 195 | + ] | ||
| 196 | + ] ; | ||
| 197 | + sp:variable | ||
| 198 | + [ sp:varName "normalizedName"^^xsd:string | ||
| 199 | + ] | ||
| 200 | + ] [ rdf:type sp:Bind ; | ||
| 201 | + sp:expression | ||
| 202 | + [ rdf:type ep-dpr-spin-lib:buildDailyProductionReportURI ; | ||
| 203 | + sp:arg1 [ sp:varName "normalizedName"^^xsd:string | ||
| 204 | + ] ; | ||
| 205 | + sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
| 206 | + ] ; | ||
| 207 | + sp:arg3 [ sp:varName "dTimEnd"^^xsd:string | ||
| 208 | + ] | ||
| 209 | + ] ; | ||
| 210 | + sp:variable | ||
| 211 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 212 | + ] | ||
| 213 | + ]) | ||
| 214 | + ] ; | ||
| 215 | + spin:rule | ||
| 216 | + [ rdf:type sp:Construct ; | ||
| 217 | + rdfs:comment """STEP 10001b Create the ProductionReport - dateStart and dateEnd supplied | ||
| 218 | +Extract the name from the productionOperation child"""^^xsd:string ; | ||
| 219 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ; | ||
| 220 | + sp:predicate rdf:type ; | ||
| 221 | + sp:subject | ||
| 222 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 223 | + ] | ||
| 224 | + ] [ sp:object | ||
| 225 | + [ sp:varName "title"^^xsd:string | ||
| 226 | + ] ; | ||
| 227 | + sp:predicate rdfs:label ; | ||
| 228 | + sp:subject | ||
| 229 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 230 | + ] | ||
| 231 | + ] [ sp:object | ||
| 232 | + [ sp:varName "date"^^xsd:string | ||
| 233 | + ] ; | ||
| 234 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | ||
| 235 | + sp:subject | ||
| 236 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 237 | + ] | ||
| 238 | + ] [ sp:object spin:_this ; | ||
| 239 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 240 | + sp:subject | ||
| 241 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 242 | + ] | ||
| 243 | + ]) ; | ||
| 244 | + sp:where ([ sp:object | ||
| 245 | + [ sp:varName "contextRef"^^xsd:string | ||
| 246 | + ] ; | ||
| 247 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 248 | + sp:subject spin:_this | ||
| 249 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 250 | + sp:predicate rdf:type ; | ||
| 251 | + sp:subject | ||
| 252 | + [ sp:varName "contextRef"^^xsd:string | ||
| 253 | + ] | ||
| 254 | + ] [ rdf:type sp:Optional ; | ||
| 255 | + sp:elements ([ sp:object | ||
| 256 | + [ sp:varName "titleRef"^^xsd:string | ||
| 257 | + ] ; | ||
| 258 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 259 | + sp:subject | ||
| 260 | + [ sp:varName "contextRef"^^xsd:string | ||
| 261 | + ] | ||
| 262 | + ] [ sp:object | ||
| 263 | + [ sp:varName "title"^^xsd:string | ||
| 264 | + ] ; | ||
| 265 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 266 | + sp:subject | ||
| 267 | + [ sp:varName "titleRef"^^xsd:string | ||
| 268 | + ] | ||
| 269 | + ]) | ||
| 270 | + ] [ sp:object | ||
| 271 | + [ sp:varName "date"^^xsd:string | ||
| 272 | + ] ; | ||
| 273 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 274 | + sp:subject | ||
| 275 | + [ sp:varName "contextRef"^^xsd:string | ||
| 276 | + ] | ||
| 277 | + ] [ sp:object | ||
| 278 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 279 | + ] ; | ||
| 280 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 281 | + sp:subject spin:_this | ||
| 282 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 283 | + sp:predicate rdf:type ; | ||
| 284 | + sp:subject | ||
| 285 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 286 | + ] | ||
| 287 | + ] [ sp:object | ||
| 288 | + [ sp:varName "nameRef"^^xsd:string | ||
| 289 | + ] ; | ||
| 290 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 291 | + sp:subject | ||
| 292 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 293 | + ] | ||
| 294 | + ] [ sp:object | ||
| 295 | + [ sp:varName "name"^^xsd:string | ||
| 296 | + ] ; | ||
| 297 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 298 | + sp:subject | ||
| 299 | + [ sp:varName "nameRef"^^xsd:string | ||
| 300 | + ] | ||
| 301 | + ] [ sp:object | ||
| 302 | + [ sp:varName "dateStart"^^xsd:string | ||
| 303 | + ] ; | ||
| 304 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 305 | + sp:subject | ||
| 306 | + [ sp:varName "prodctionOperationRef"^^xsd:string | ||
| 307 | + ] | ||
| 308 | + ] [ sp:object | ||
| 309 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 310 | + ] ; | ||
| 311 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 312 | + sp:subject | ||
| 313 | + [ sp:varName "prodctionOperationRef"^^xsd:string | ||
| 314 | + ] | ||
| 315 | + ] [ rdf:type sp:Bind ; | ||
| 316 | + sp:expression | ||
| 317 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 318 | + sp:arg1 [ sp:varName "name"^^xsd:string | ||
| 319 | + ] | ||
| 320 | + ] ; | ||
| 321 | + sp:variable | ||
| 322 | + [ sp:varName "normalizedName"^^xsd:string | ||
| 323 | + ] | ||
| 324 | + ] [ rdf:type sp:Bind ; | ||
| 325 | + sp:expression | ||
| 326 | + [ rdf:type ep-dpr-spin-lib:buildDailyProductionReportURI ; | ||
| 327 | + sp:arg1 [ sp:varName "normalizedName"^^xsd:string | ||
| 328 | + ] ; | ||
| 329 | + sp:arg2 [ sp:varName "dateStart"^^xsd:string | ||
| 330 | + ] ; | ||
| 331 | + sp:arg3 [ sp:varName "dateEnd"^^xsd:string | ||
| 332 | + ] | ||
| 333 | + ] ; | ||
| 334 | + sp:variable | ||
| 335 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 336 | + ] | ||
| 337 | + ]) | ||
| 338 | + ] . | ||
| 339 | + | ||
| 340 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | ||
| 341 | + rdf:type owl:Ontology ; | ||
| 342 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; | ||
| 343 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + composite:index "0"^^xsd:int | ||
| 16 | + ] . |
| 1 | # baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest | 1 | # baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest |
| 2 | +# imports: file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml | ||
| 2 | # imports: http://spinrdf.org/spin | 3 | # imports: http://spinrdf.org/spin |
| 4 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
| 3 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector | 5 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector |
| 4 | # imports: http://www.reportinghub.no/np/data/npd | 6 | # imports: http://www.reportinghub.no/np/data/npd |
| 5 | 7 | ||
| 6 | @prefix : <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest#> . | 8 | @prefix : <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest#> . |
| 7 | @prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . | 9 | @prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . |
| 10 | +@prefix TRYM-volumes_2011-08-27_final: <file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml#> . | ||
| 8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 9 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 12 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 10 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| ... | @@ -15,5 +18,5 @@ | ... | @@ -15,5 +18,5 @@ |
| 15 | 18 | ||
| 16 | <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest> | 19 | <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest> |
| 17 | rdf:type owl:Ontology ; | 20 | rdf:type owl:Ontology ; |
| 18 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ; | 21 | + owl:imports <file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> , <http://www.epim.no/schemas/mprml/1> ; |
| 19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 22 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
| 1 | -<?xml version="1.0" encoding="UTF-8"?><objects version="1.0.0.0(PRODML)" xmlns="http://www.witsml.org/schemas/131" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 1 | +<?xml version="1.0" encoding="UTF-8"?><objects version="1.0.0.0(PRODML)" xmlns="http://www.epim.no/schemas/mprml/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 2 | <context xsi:type="obj_report"> | 2 | <context xsi:type="obj_report"> |
| 3 | <kind>Daily production report Trym</kind> | 3 | <kind>Daily production report Trym</kind> |
| 4 | <title>Daily production report Trym September 2011</title> | 4 | <title>Daily production report Trym September 2011</title> | ... | ... |
-
Please register or login to post a comment