Showing
4 changed files
with
183 additions
and
731 deletions
| 1 | -# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography | 1 | +# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography |
| 2 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 2 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
| 3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/facility | 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/facility |
| 4 | - | 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-core |
| 5 | -@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 5 | + |
| 6 | -@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . | 6 | +@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
| 7 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 7 | +@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . |
| 8 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 8 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 9 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 9 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 10 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 10 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 11 | - | 11 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 12 | -<http://www.reportinghub.no/ep/schema/1.0/geography> | 12 | + |
| 13 | - rdf:type owl:Ontology ; | 13 | +<http://www.reportinghub.no/ep/schema/1.0/geography> |
| 14 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> ; | 14 | + rdf:type owl:Ontology ; |
| 15 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 15 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ; |
| 16 | - | 16 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 17 | -ep-geo:AreaCoveredByBusinessArrangement | 17 | + |
| 18 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 18 | +ep-geo:AreaCoveredByBusinessArrangement |
| 19 | - rdfs:label "NPD Block"^^xsd:string ; | 19 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 20 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 20 | + rdfs:label "NPD Block"^^xsd:string ; |
| 21 | - owl:disjointWith ep-geo:NpdPolygon , ep-geo:NpdBlock , ep-geo:Country , ep-geo:State , ep-geo:County . | 21 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 22 | - | 22 | + owl:disjointWith ep-geo:County , ep-geo:State , ep-geo:Country , ep-geo:NpdBlock , ep-geo:NpdPolygon . |
| 23 | -ep-geo:Country | 23 | + |
| 24 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 24 | +ep-geo:Country |
| 25 | - rdfs:label "country"^^xsd:string ; | 25 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 26 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 26 | + rdfs:label "country"^^xsd:string ; |
| 27 | - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:County , ep-geo:State . | 27 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 28 | - | 28 | + owl:disjointWith ep-geo:State , ep-geo:County , ep-geo:NpdPolygon , ep-geo:NpdBlock . |
| 29 | -ep-geo:County | 29 | + |
| 30 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 30 | +ep-geo:County |
| 31 | - rdfs:label "county"^^xsd:string ; | 31 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 32 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 32 | + rdfs:label "county"^^xsd:string ; |
| 33 | - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:State , ep-geo:Country . | 33 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 34 | - | 34 | + owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:NpdPolygon , ep-geo:NpdBlock . |
| 35 | -ep-geo:NpdBlock | 35 | + |
| 36 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 36 | +ep-geo:NpdBlock |
| 37 | - rdfs:label "NPD Block"^^xsd:string ; | 37 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 38 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 38 | + rdfs:label "NPD Block"^^xsd:string ; |
| 39 | - owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:County . | 39 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 40 | - | 40 | + owl:disjointWith ep-geo:County , ep-geo:State , ep-geo:Country . |
| 41 | -ep-geo:NpdPolygon | 41 | + |
| 42 | - rdf:type owl:Class ; | 42 | +ep-geo:NpdPolygon |
| 43 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 43 | + rdf:type owl:Class ; |
| 44 | - owl:disjointWith ep-geo:State , ep-geo:NpdBlock , ep-geo:County , ep-geo:Country . | 44 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 45 | - | 45 | + owl:disjointWith ep-geo:Country , ep-geo:County , ep-geo:NpdBlock , ep-geo:State . |
| 46 | -ep-geo:PartOfTheSurfaceOfTheEarth | 46 | + |
| 47 | - rdf:type owl:Class ; | 47 | +ep-geo:OffshoreLocation |
| 48 | - rdfs:label "part of the surface of the earth"^^xsd:string ; | 48 | + rdf:type owl:Class ; |
| 49 | - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | 49 | + rdfs:label "offshore location"^^xsd:string ; |
| 50 | - | 50 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth . |
| 51 | -ep-geo:State | 51 | + |
| 52 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 52 | +ep-geo:PartOfTheSurfaceOfTheEarth |
| 53 | - rdfs:label "state"^^xsd:string ; | 53 | + rdf:type owl:Class ; |
| 54 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 54 | + rdfs:label "part of the surface of the earth"^^xsd:string ; |
| 55 | - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:County , ep-geo:Country . | 55 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/production-core#TemporalPartOfARegionOfSpace> . |
| 56 | - | 56 | + |
| 57 | -ep-geo:locatedWithin | 57 | +ep-geo:State |
| 58 | - rdf:type owl:ObjectProperty ; | 58 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 59 | - rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; | 59 | + rdfs:label "state"^^xsd:string ; |
| 60 | - rdfs:label "located within"^^xsd:string ; | 60 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 61 | - rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | 61 | + owl:disjointWith ep-geo:Country , ep-geo:County , ep-geo:NpdPolygon , ep-geo:NpdBlock . |
| 62 | - | 62 | + |
| 63 | -ep-geo:nominallyLocatedAt | 63 | +ep-geo:hasAreaName |
| 64 | - rdf:type owl:ObjectProperty ; | 64 | + rdf:type owl:DatatypeProperty ; |
| 65 | - rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; | 65 | + rdfs:domain ep-geo:OffshoreLocation ; |
| 66 | - rdfs:label "nominally located at"^^xsd:string ; | 66 | + rdfs:label "has area name"^^xsd:string . |
| 67 | - rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | 67 | + |
| 68 | +ep-geo:hasNorthSeaAreaName | ||
| 69 | + rdf:type owl:DatatypeProperty ; | ||
| 70 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 71 | + rdfs:label "has North Sea area name"^^xsd:string . | ||
| 72 | + | ||
| 73 | +ep-geo:hasNorthSeaBlockSuffixId | ||
| 74 | + rdf:type owl:DatatypeProperty ; | ||
| 75 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 76 | + rdfs:label "has North Sea block suffix ID"^^xsd:string . | ||
| 77 | + | ||
| 78 | +ep-geo:hasNorthSeaQuadrantId | ||
| 79 | + rdf:type owl:DatatypeProperty ; | ||
| 80 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 81 | + rdfs:label "has North Sea quadrant ID"^^xsd:string . | ||
| 82 | + | ||
| 83 | +ep-geo:hasOffshoreLocationComment | ||
| 84 | + rdf:type owl:DatatypeProperty ; | ||
| 85 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 86 | + rdfs:label "has offshore location comment"^^xsd:string . | ||
| 87 | + | ||
| 88 | +ep-geo:locatedWithin | ||
| 89 | + rdf:type owl:ObjectProperty ; | ||
| 90 | + rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; | ||
| 91 | + rdfs:label "located within"^^xsd:string ; | ||
| 92 | + rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | ||
| 93 | + | ||
| 94 | +ep-geo:nominallyLocatedAt | ||
| 95 | + rdf:type owl:ObjectProperty ; | ||
| 96 | + rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; | ||
| 97 | + rdfs:label "nominally located at"^^xsd:string ; | ||
| 98 | + rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | ... | ... |
| ... | @@ -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://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> ; | 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> ; |
| 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 |
| ... | @@ -152,6 +152,26 @@ arg2 is report end date"""^^xsd:string ; | ... | @@ -152,6 +152,26 @@ arg2 is report end date"""^^xsd:string ; |
| 152 | ]) | 152 | ]) |
| 153 | ] . | 153 | ] . |
| 154 | 154 | ||
| 155 | +ep-dpr-spin-lib:buildBlockURI | ||
| 156 | + rdf:type spin:Function ; | ||
| 157 | + rdfs:subClassOf ep-dpr-spin-lib:Function ; | ||
| 158 | + spin:body | ||
| 159 | + [ rdf:type sp:Select ; | ||
| 160 | + rdfs:comment "arg1 is the block ID"^^xsd:string ; | ||
| 161 | + sp:resultVariables ([ sp:varName "uri"^^xsd:string | ||
| 162 | + ]) ; | ||
| 163 | + sp:where ([ rdf:type sp:Bind ; | ||
| 164 | + sp:expression | ||
| 165 | + [ rdf:type ep-spin-lib:buildURI ; | ||
| 166 | + sp:arg1 "https://www.reportinghub.no/ep/data/block/" ; | ||
| 167 | + sp:arg2 spin:_arg1 | ||
| 168 | + ] ; | ||
| 169 | + sp:variable | ||
| 170 | + [ sp:varName "uri"^^xsd:string | ||
| 171 | + ] | ||
| 172 | + ]) | ||
| 173 | + ] . | ||
| 174 | + | ||
| 155 | ep-dpr-spin-lib:buildCountryURI | 175 | ep-dpr-spin-lib:buildCountryURI |
| 156 | rdf:type spin:Function ; | 176 | rdf:type spin:Function ; |
| 157 | rdfs:label "build Country URI"^^xsd:string ; | 177 | rdfs:label "build Country URI"^^xsd:string ; |
| ... | @@ -5470,6 +5490,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5470,6 +5490,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5470 | rdfs:subClassOf ep-dpr-spin-lib:Function ; | 5490 | rdfs:subClassOf ep-dpr-spin-lib:Function ; |
| 5471 | spin:body | 5491 | spin:body |
| 5472 | [ rdf:type sp:Select ; | 5492 | [ 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 ; | ||
| 5473 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string | 5509 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string |
| 5474 | ]) ; | 5510 | ]) ; |
| 5475 | sp:where ([ rdf:type sp:Bind ; | 5511 | sp:where ([ rdf:type sp:Bind ; |
| ... | @@ -5549,22 +5585,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5549,22 +5585,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5549 | [ sp:varName "myVar"^^xsd:string | 5585 | [ sp:varName "myVar"^^xsd:string |
| 5550 | ] | 5586 | ] |
| 5551 | ]) | 5587 | ]) |
| 5552 | - ] ; | ||
| 5553 | - spin:body | ||
| 5554 | - [ rdf:type sp:Select ; | ||
| 5555 | - sp:resultVariables (_:b29) ; | ||
| 5556 | - sp:where ([ rdf:type sp:Bind ; | ||
| 5557 | - sp:expression | ||
| 5558 | - [ rdf:type sp:if ; | ||
| 5559 | - sp:arg1 [ rdf:type sp:eq ; | ||
| 5560 | - sp:arg1 spin:_arg1 ; | ||
| 5561 | - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 5562 | - ] ; | ||
| 5563 | - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 5564 | - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 5565 | - ] ; | ||
| 5566 | - sp:variable _:b29 | ||
| 5567 | - ]) | ||
| 5568 | ] . | 5588 | ] . |
| 5569 | 5589 | ||
| 5570 | ep-dpr-spin-lib:selectTemperatureScale | 5590 | ep-dpr-spin-lib:selectTemperatureScale |
| ... | @@ -7093,89 +7113,89 @@ ep-dpr-spin-lib:selectWorkScale | ... | @@ -7093,89 +7113,89 @@ ep-dpr-spin-lib:selectWorkScale |
| 7093 | ]) | 7113 | ]) |
| 7094 | ] . | 7114 | ] . |
| 7095 | 7115 | ||
| 7096 | -_:b32 | 7116 | +_:b1 sp:varName "uri"^^xsd:string . |
| 7097 | - sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ||
| 7098 | - | ||
| 7099 | -_:b31 | ||
| 7100 | - sp:varName "volumeAtStdType"^^xsd:string . | ||
| 7101 | - | ||
| 7102 | -_:b30 | ||
| 7103 | - sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | ||
| 7104 | - | ||
| 7105 | -_:b29 | ||
| 7106 | - sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7107 | 7117 | ||
| 7108 | -_:b28 | 7118 | +_:b2 sp:varName "uri"^^xsd:string . |
| 7109 | - sp:varName "safetyActivityType"^^xsd:string . | ||
| 7110 | 7119 | ||
| 7111 | -_:b27 | 7120 | +_:b3 sp:varName "UUID"^^xsd:string . |
| 7112 | - sp:varName "relationshipToMeasure"^^xsd:string . | ||
| 7113 | 7121 | ||
| 7114 | -_:b26 | 7122 | +_:b4 sp:varName "uri"^^xsd:string . |
| 7115 | - sp:varName "productionFlowPurposeType"^^xsd:string . | ||
| 7116 | 7123 | ||
| 7117 | -_:b25 | 7124 | +_:b5 sp:varName "uri"^^xsd:string . |
| 7118 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7119 | 7125 | ||
| 7120 | -_:b24 | 7126 | +_:b6 sp:varName "uri"^^xsd:string . |
| 7121 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7122 | 7127 | ||
| 7123 | -_:b23 | 7128 | +_:b7 sp:varName "uri"^^xsd:string . |
| 7124 | - sp:varName "productionFlowDefinitionType"^^xsd:string . | ||
| 7125 | 7129 | ||
| 7126 | -_:b22 | 7130 | +_:b8 sp:varName "uri"^^xsd:string . |
| 7127 | - sp:varName "productionFacilityType"^^xsd:string . | ||
| 7128 | 7131 | ||
| 7129 | -_:b21 | 7132 | +_:b9 sp:varName "uri"^^xsd:string . |
| 7130 | - sp:varName "productType"^^xsd:string . | ||
| 7131 | 7133 | ||
| 7132 | -_:b20 | 7134 | +_:b10 |
| 7133 | - sp:varName "densityScale"^^xsd:string . | 7135 | + sp:varName "uri"^^xsd:string . |
| 7134 | 7136 | ||
| 7135 | -_:b19 | 7137 | +_:b11 |
| 7136 | sp:varName "uri"^^xsd:string . | 7138 | sp:varName "uri"^^xsd:string . |
| 7137 | 7139 | ||
| 7138 | -_:b18 | 7140 | +_:b12 |
| 7139 | sp:varName "uri"^^xsd:string . | 7141 | sp:varName "uri"^^xsd:string . |
| 7140 | 7142 | ||
| 7141 | -_:b17 | 7143 | +_:b13 |
| 7142 | sp:varName "uri"^^xsd:string . | 7144 | sp:varName "uri"^^xsd:string . |
| 7143 | 7145 | ||
| 7144 | -_:b16 | 7146 | +_:b14 |
| 7145 | sp:varName "uri"^^xsd:string . | 7147 | sp:varName "uri"^^xsd:string . |
| 7146 | 7148 | ||
| 7147 | _:b15 | 7149 | _:b15 |
| 7148 | sp:varName "uri"^^xsd:string . | 7150 | sp:varName "uri"^^xsd:string . |
| 7149 | 7151 | ||
| 7150 | -_:b14 | 7152 | +_:b16 |
| 7151 | sp:varName "uri"^^xsd:string . | 7153 | sp:varName "uri"^^xsd:string . |
| 7152 | 7154 | ||
| 7153 | -_:b13 | 7155 | +_:b17 |
| 7154 | sp:varName "uri"^^xsd:string . | 7156 | sp:varName "uri"^^xsd:string . |
| 7155 | 7157 | ||
| 7156 | -_:b12 | 7158 | +_:b18 |
| 7157 | sp:varName "uri"^^xsd:string . | 7159 | sp:varName "uri"^^xsd:string . |
| 7158 | 7160 | ||
| 7159 | -_:b11 | 7161 | +_:b19 |
| 7160 | sp:varName "uri"^^xsd:string . | 7162 | sp:varName "uri"^^xsd:string . |
| 7161 | 7163 | ||
| 7162 | -_:b10 | 7164 | +_:b20 |
| 7163 | - sp:varName "uri"^^xsd:string . | 7165 | + sp:varName "densityScale"^^xsd:string . |
| 7164 | 7166 | ||
| 7165 | -_:b9 sp:varName "uri"^^xsd:string . | 7167 | +_:b21 |
| 7168 | + sp:varName "productType"^^xsd:string . | ||
| 7166 | 7169 | ||
| 7167 | -_:b8 sp:varName "uri"^^xsd:string . | 7170 | +_:b22 |
| 7171 | + sp:varName "productionFacilityType"^^xsd:string . | ||
| 7168 | 7172 | ||
| 7169 | -_:b7 sp:varName "uri"^^xsd:string . | 7173 | +_:b23 |
| 7174 | + sp:varName "productionFlowDefinitionType"^^xsd:string . | ||
| 7170 | 7175 | ||
| 7171 | -_:b6 sp:varName "uri"^^xsd:string . | 7176 | +_:b24 |
| 7177 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7172 | 7178 | ||
| 7173 | -_:b5 sp:varName "uri"^^xsd:string . | 7179 | +_:b25 |
| 7180 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7174 | 7181 | ||
| 7175 | -_:b4 sp:varName "uri"^^xsd:string . | 7182 | +_:b26 |
| 7183 | + sp:varName "productionFlowPurposeType"^^xsd:string . | ||
| 7176 | 7184 | ||
| 7177 | -_:b3 sp:varName "UUID"^^xsd:string . | 7185 | +_:b27 |
| 7186 | + sp:varName "relationshipToMeasure"^^xsd:string . | ||
| 7178 | 7187 | ||
| 7179 | -_:b2 sp:varName "uri"^^xsd:string . | 7188 | +_:b28 |
| 7189 | + sp:varName "safetyActivityType"^^xsd:string . | ||
| 7180 | 7190 | ||
| 7181 | -_:b1 sp:varName "uri"^^xsd:string . | 7191 | +_:b29 |
| 7192 | + sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7193 | + | ||
| 7194 | +_:b30 | ||
| 7195 | + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | ||
| 7196 | + | ||
| 7197 | +_:b31 | ||
| 7198 | + sp:varName "volumeAtStdType"^^xsd:string . | ||
| 7199 | + | ||
| 7200 | +_:b32 | ||
| 7201 | + sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ... | ... |
www.reportinghub.no/ep/transform/TRANSFORM_dpr-dailyProductionActivity-v1.1.1.ttl
deleted
100644 → 0
| 1 | -# baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/dailyProductionActivity | ||
| 2 | -# imports: http://spinrdf.org/spin | ||
| 3 | -# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib | ||
| 4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
| 5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/production-core | ||
| 6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/production-well | ||
| 7 | -# imports: http://www.witsml.org/schemas/131/addendum/combo | ||
| 8 | - | ||
| 9 | -@prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/dailyProductionActivity#> . | ||
| 10 | -@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | ||
| 11 | -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
| 12 | -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
| 13 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 14 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 15 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 16 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | ||
| 17 | -@prefix sp: <http://spinrdf.org/sp#> . | ||
| 18 | -@prefix spin: <http://spinrdf.org/spin#> . | ||
| 19 | -@prefix spl: <http://spinrdf.org/spl#> . | ||
| 20 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 21 | - | ||
| 22 | -<http://www.reportinghub.no/ep/transform/1.0/dpr/dailyProductionActivity> | ||
| 23 | - rdf:type owl:Ontology ; | ||
| 24 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://spinrdf.org/spin> ; | ||
| 25 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
| 26 | - | ||
| 27 | -<http://www.witsml.org/schemas/131/addendum/combo#A_Global-WITSMLComposite> | ||
| 28 | - spin:rule | ||
| 29 | - [ rdf:type sp:Construct ; | ||
| 30 | - rdfs:comment """STEP 10002b Create the DailyProductionActivity - start and end dates | ||
| 31 | -The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""^^xsd:string ; | ||
| 32 | - sp:templates ([ sp:object | ||
| 33 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 34 | - ] ; | ||
| 35 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 36 | - sp:subject | ||
| 37 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 38 | - ] | ||
| 39 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> ; | ||
| 40 | - sp:predicate rdf:type ; | ||
| 41 | - sp:subject | ||
| 42 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 43 | - ] | ||
| 44 | - ] [ sp:object | ||
| 45 | - [ sp:varName "startDate"^^xsd:string | ||
| 46 | - ] ; | ||
| 47 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 48 | - sp:subject | ||
| 49 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 50 | - ] | ||
| 51 | - ] [ sp:object | ||
| 52 | - [ sp:varName "endDate"^^xsd:string | ||
| 53 | - ] ; | ||
| 54 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 55 | - sp:subject | ||
| 56 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 57 | - ] | ||
| 58 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionActivityToDate> ; | ||
| 59 | - sp:predicate rdf:type ; | ||
| 60 | - sp:subject | ||
| 61 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 62 | - ] | ||
| 63 | - ] [ sp:object | ||
| 64 | - [ sp:varName "endDate"^^xsd:string | ||
| 65 | - ] ; | ||
| 66 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 67 | - sp:subject | ||
| 68 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 69 | - ] | ||
| 70 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ProductionActivityToDate> ; | ||
| 71 | - sp:predicate rdf:type ; | ||
| 72 | - sp:subject | ||
| 73 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 74 | - ] | ||
| 75 | - ] [ sp:object | ||
| 76 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 77 | - ] ; | ||
| 78 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 79 | - sp:subject | ||
| 80 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 81 | - ] | ||
| 82 | - ] [ sp:object | ||
| 83 | - [ sp:varName "endDate"^^xsd:string | ||
| 84 | - ] ; | ||
| 85 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 86 | - sp:subject | ||
| 87 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 88 | - ] | ||
| 89 | - ] [ sp:object | ||
| 90 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 91 | - ] ; | ||
| 92 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 93 | - sp:subject | ||
| 94 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 95 | - ] | ||
| 96 | - ] [ sp:object | ||
| 97 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 98 | - ] ; | ||
| 99 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 100 | - sp:subject | ||
| 101 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 102 | - ] | ||
| 103 | - ]) ; | ||
| 104 | - sp:where ([ sp:object spin:_this ; | ||
| 105 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 106 | - sp:subject | ||
| 107 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 108 | - ] | ||
| 109 | - ] [ sp:object | ||
| 110 | - [ sp:varName "productionOperationSetRef"^^xsd:string | ||
| 111 | - ] ; | ||
| 112 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef> ; | ||
| 113 | - sp:subject spin:_this | ||
| 114 | - ] [ sp:object | ||
| 115 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 116 | - ] ; | ||
| 117 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef> ; | ||
| 118 | - sp:subject | ||
| 119 | - [ sp:varName "productionOperationSetRef"^^xsd:string | ||
| 120 | - ] | ||
| 121 | - ] [ sp:object | ||
| 122 | - [ sp:varName "installationRef"^^xsd:string | ||
| 123 | - ] ; | ||
| 124 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ; | ||
| 125 | - sp:subject | ||
| 126 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 127 | - ] | ||
| 128 | - ] [ sp:object | ||
| 129 | - [ sp:varName "installationName"^^xsd:string | ||
| 130 | - ] ; | ||
| 131 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 132 | - sp:subject | ||
| 133 | - [ sp:varName "installationRef"^^xsd:string | ||
| 134 | - ] | ||
| 135 | - ] [ sp:object | ||
| 136 | - [ sp:varName "startDate"^^xsd:string | ||
| 137 | - ] ; | ||
| 138 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ; | ||
| 139 | - sp:subject | ||
| 140 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 141 | - ] | ||
| 142 | - ] [ sp:object | ||
| 143 | - [ sp:varName "endDate"^^xsd:string | ||
| 144 | - ] ; | ||
| 145 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateEnd> ; | ||
| 146 | - sp:subject | ||
| 147 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 148 | - ] | ||
| 149 | - ] [ rdf:type sp:Bind ; | ||
| 150 | - sp:expression | ||
| 151 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 152 | - sp:arg1 [ sp:varName "installationName"^^xsd:string | ||
| 153 | - ] | ||
| 154 | - ] ; | ||
| 155 | - sp:variable | ||
| 156 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 157 | - ] | ||
| 158 | - ] [ rdf:type sp:Bind ; | ||
| 159 | - sp:expression | ||
| 160 | - [ rdf:type ep-dpr-spin-lib:buildDailyProductionActivityURI ; | ||
| 161 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 162 | - ] ; | ||
| 163 | - sp:arg2 [ sp:varName "startDateTime"^^xsd:string | ||
| 164 | - ] ; | ||
| 165 | - sp:arg3 [ sp:varName "endDate"^^xsd:string | ||
| 166 | - ] | ||
| 167 | - ] ; | ||
| 168 | - sp:variable | ||
| 169 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 170 | - ] | ||
| 171 | - ] [ rdf:type sp:Bind ; | ||
| 172 | - sp:expression | ||
| 173 | - [ rdf:type ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ; | ||
| 174 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 175 | - ] ; | ||
| 176 | - sp:arg2 [ sp:varName "endDate"^^xsd:string | ||
| 177 | - ] | ||
| 178 | - ] ; | ||
| 179 | - sp:variable | ||
| 180 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 181 | - ] | ||
| 182 | - ] [ rdf:type sp:Bind ; | ||
| 183 | - sp:expression | ||
| 184 | - [ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ; | ||
| 185 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 186 | - ] ; | ||
| 187 | - sp:arg2 [ sp:varName "endDate"^^xsd:string | ||
| 188 | - ] | ||
| 189 | - ] ; | ||
| 190 | - sp:variable | ||
| 191 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 192 | - ] | ||
| 193 | - ]) | ||
| 194 | - ] ; | ||
| 195 | - spin:rule | ||
| 196 | - [ rdf:type sp:Construct ; | ||
| 197 | - rdfs:comment """STEP 10002a Create the DailyProductionActivity - start and end date-times | ||
| 198 | -The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""^^xsd:string ; | ||
| 199 | - sp:templates ([ sp:object | ||
| 200 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 201 | - ] ; | ||
| 202 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 203 | - sp:subject | ||
| 204 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 205 | - ] | ||
| 206 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> ; | ||
| 207 | - sp:predicate rdf:type ; | ||
| 208 | - sp:subject | ||
| 209 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 210 | - ] | ||
| 211 | - ] [ sp:object | ||
| 212 | - [ sp:varName "startDateTime"^^xsd:string | ||
| 213 | - ] ; | ||
| 214 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 215 | - sp:subject | ||
| 216 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 217 | - ] | ||
| 218 | - ] [ sp:object | ||
| 219 | - [ sp:varName "endDateTime"^^xsd:string | ||
| 220 | - ] ; | ||
| 221 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 222 | - sp:subject | ||
| 223 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 224 | - ] | ||
| 225 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionActivityToDate> ; | ||
| 226 | - sp:predicate rdf:type ; | ||
| 227 | - sp:subject | ||
| 228 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 229 | - ] | ||
| 230 | - ] [ sp:object | ||
| 231 | - [ sp:varName "endDateTime"^^xsd:string | ||
| 232 | - ] ; | ||
| 233 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 234 | - sp:subject | ||
| 235 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 236 | - ] | ||
| 237 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ProductionActivityToDate> ; | ||
| 238 | - sp:predicate rdf:type ; | ||
| 239 | - sp:subject | ||
| 240 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 241 | - ] | ||
| 242 | - ] [ sp:object | ||
| 243 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 244 | - ] ; | ||
| 245 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 246 | - sp:subject | ||
| 247 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 248 | - ] | ||
| 249 | - ] [ sp:object | ||
| 250 | - [ sp:varName "endDateTime"^^xsd:string | ||
| 251 | - ] ; | ||
| 252 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 253 | - sp:subject | ||
| 254 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 255 | - ] | ||
| 256 | - ] [ sp:object | ||
| 257 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 258 | - ] ; | ||
| 259 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 260 | - sp:subject | ||
| 261 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 262 | - ] | ||
| 263 | - ] [ sp:object | ||
| 264 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 265 | - ] ; | ||
| 266 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 267 | - sp:subject | ||
| 268 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 269 | - ] | ||
| 270 | - ]) ; | ||
| 271 | - sp:where ([ sp:object spin:_this ; | ||
| 272 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 273 | - sp:subject | ||
| 274 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 275 | - ] | ||
| 276 | - ] [ sp:object | ||
| 277 | - [ sp:varName "productionOperationSetRef"^^xsd:string | ||
| 278 | - ] ; | ||
| 279 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef> ; | ||
| 280 | - sp:subject spin:_this | ||
| 281 | - ] [ sp:object | ||
| 282 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 283 | - ] ; | ||
| 284 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef> ; | ||
| 285 | - sp:subject | ||
| 286 | - [ sp:varName "productionOperationSetRef"^^xsd:string | ||
| 287 | - ] | ||
| 288 | - ] [ sp:object | ||
| 289 | - [ sp:varName "installationRef"^^xsd:string | ||
| 290 | - ] ; | ||
| 291 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ; | ||
| 292 | - sp:subject | ||
| 293 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 294 | - ] | ||
| 295 | - ] [ sp:object | ||
| 296 | - [ sp:varName "installationName"^^xsd:string | ||
| 297 | - ] ; | ||
| 298 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 299 | - sp:subject | ||
| 300 | - [ sp:varName "installationRef"^^xsd:string | ||
| 301 | - ] | ||
| 302 | - ] [ sp:object | ||
| 303 | - [ sp:varName "startDateTime"^^xsd:string | ||
| 304 | - ] ; | ||
| 305 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; | ||
| 306 | - sp:subject | ||
| 307 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 308 | - ] | ||
| 309 | - ] [ sp:object | ||
| 310 | - [ sp:varName "endDateTime"^^xsd:string | ||
| 311 | - ] ; | ||
| 312 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | ||
| 313 | - sp:subject | ||
| 314 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 315 | - ] | ||
| 316 | - ] [ rdf:type sp:Bind ; | ||
| 317 | - sp:expression | ||
| 318 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 319 | - sp:arg1 [ sp:varName "installationName"^^xsd:string | ||
| 320 | - ] | ||
| 321 | - ] ; | ||
| 322 | - sp:variable | ||
| 323 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 324 | - ] | ||
| 325 | - ] [ rdf:type sp:Bind ; | ||
| 326 | - sp:expression | ||
| 327 | - [ rdf:type ep-dpr-spin-lib:buildDailyProductionActivityURI ; | ||
| 328 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 329 | - ] ; | ||
| 330 | - sp:arg2 [ sp:varName "startDateTime"^^xsd:string | ||
| 331 | - ] ; | ||
| 332 | - sp:arg3 [ sp:varName "endDateTime"^^xsd:string | ||
| 333 | - ] | ||
| 334 | - ] ; | ||
| 335 | - sp:variable | ||
| 336 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 337 | - ] | ||
| 338 | - ] [ rdf:type sp:Bind ; | ||
| 339 | - sp:expression | ||
| 340 | - [ rdf:type ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ; | ||
| 341 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 342 | - ] ; | ||
| 343 | - sp:arg2 [ sp:varName "endDateTime"^^xsd:string | ||
| 344 | - ] | ||
| 345 | - ] ; | ||
| 346 | - sp:variable | ||
| 347 | - [ sp:varName "annualProductionActivityToDate"^^xsd:string | ||
| 348 | - ] | ||
| 349 | - ] [ rdf:type sp:Bind ; | ||
| 350 | - sp:expression | ||
| 351 | - [ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ; | ||
| 352 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 353 | - ] ; | ||
| 354 | - sp:arg2 [ sp:varName "endDateTime"^^xsd:string | ||
| 355 | - ] | ||
| 356 | - ] ; | ||
| 357 | - sp:variable | ||
| 358 | - [ sp:varName "productionActivityToDate"^^xsd:string | ||
| 359 | - ] | ||
| 360 | - ]) | ||
| 361 | - ] ; | ||
| 362 | - spin:rule | ||
| 363 | - [ rdf:type sp:Construct ; | ||
| 364 | - rdfs:comment "STEP 10003 Set the overall daily activity installation and its operator"^^xsd:string ; | ||
| 365 | - sp:templates ([ sp:object _:b1 ; | ||
| 366 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#productionOperator> ; | ||
| 367 | - sp:subject | ||
| 368 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 369 | - ] | ||
| 370 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ; | ||
| 371 | - sp:predicate rdf:type ; | ||
| 372 | - sp:subject _:b1 | ||
| 373 | - ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
| 374 | - sp:predicate rdf:type ; | ||
| 375 | - sp:subject _:b1 | ||
| 376 | - ] [ sp:object | ||
| 377 | - [ sp:varName "operatorName"^^xsd:string | ||
| 378 | - ] ; | ||
| 379 | - sp:predicate rdfs:label ; | ||
| 380 | - sp:subject _:b1 | ||
| 381 | - ] [ sp:object _:b2 ; | ||
| 382 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; | ||
| 383 | - sp:subject | ||
| 384 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 385 | - ] | ||
| 386 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 387 | - sp:predicate rdf:type ; | ||
| 388 | - sp:subject _:b2 | ||
| 389 | - ] [ sp:object | ||
| 390 | - [ sp:varName "productionInstallation"^^xsd:string | ||
| 391 | - ] ; | ||
| 392 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 393 | - sp:subject _:b2 | ||
| 394 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 395 | - sp:predicate rdf:type ; | ||
| 396 | - sp:subject | ||
| 397 | - [ sp:varName "productionInstallation"^^xsd:string | ||
| 398 | - ] | ||
| 399 | - ] [ sp:object | ||
| 400 | - [ sp:varName "productionInstallationType"^^xsd:string | ||
| 401 | - ] ; | ||
| 402 | - sp:predicate rdf:type ; | ||
| 403 | - sp:subject | ||
| 404 | - [ sp:varName "productionInstallation"^^xsd:string | ||
| 405 | - ] | ||
| 406 | - ]) ; | ||
| 407 | - sp:where ([ sp:object spin:_this ; | ||
| 408 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 409 | - sp:subject | ||
| 410 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 411 | - ] | ||
| 412 | - ] [ sp:object | ||
| 413 | - [ sp:varName "dailyProductionActivity"^^xsd:string | ||
| 414 | - ] ; | ||
| 415 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 416 | - sp:subject | ||
| 417 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 418 | - ] | ||
| 419 | - ] [ sp:object | ||
| 420 | - [ sp:varName "productionOperationSetRef"^^xsd:string | ||
| 421 | - ] ; | ||
| 422 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef> ; | ||
| 423 | - sp:subject spin:_this | ||
| 424 | - ] [ sp:object | ||
| 425 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 426 | - ] ; | ||
| 427 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef> ; | ||
| 428 | - sp:subject | ||
| 429 | - [ sp:varName "productionOperationSetRef"^^xsd:string | ||
| 430 | - ] | ||
| 431 | - ] [ rdf:type sp:Optional ; | ||
| 432 | - sp:elements ([ sp:object | ||
| 433 | - [ sp:varName "installationRef"^^xsd:string | ||
| 434 | - ] ; | ||
| 435 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ; | ||
| 436 | - sp:subject | ||
| 437 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 438 | - ] | ||
| 439 | - ] [ sp:object | ||
| 440 | - [ sp:varName "installationName"^^xsd:string | ||
| 441 | - ] ; | ||
| 442 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 443 | - sp:subject | ||
| 444 | - [ sp:varName "installationRef"^^xsd:string | ||
| 445 | - ] | ||
| 446 | - ] [ rdf:type sp:Optional ; | ||
| 447 | - sp:elements ([ sp:object | ||
| 448 | - [ sp:varName "installationKind"^^xsd:string | ||
| 449 | - ] ; | ||
| 450 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
| 451 | - sp:subject | ||
| 452 | - [ sp:varName "installationRef"^^xsd:string | ||
| 453 | - ] | ||
| 454 | - ]) | ||
| 455 | - ]) | ||
| 456 | - ] [ rdf:type sp:Optional ; | ||
| 457 | - sp:elements ([ sp:object | ||
| 458 | - [ sp:varName "operator"^^xsd:string | ||
| 459 | - ] ; | ||
| 460 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; | ||
| 461 | - sp:subject | ||
| 462 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 463 | - ] | ||
| 464 | - ] [ sp:object | ||
| 465 | - [ sp:varName "operatorName"^^xsd:string | ||
| 466 | - ] ; | ||
| 467 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
| 468 | - sp:subject | ||
| 469 | - [ sp:varName "operator"^^xsd:string | ||
| 470 | - ] | ||
| 471 | - ]) | ||
| 472 | - ] [ rdf:type sp:Bind ; | ||
| 473 | - sp:expression | ||
| 474 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 475 | - sp:arg1 [ sp:varName "installationName"^^xsd:string | ||
| 476 | - ] | ||
| 477 | - ] ; | ||
| 478 | - sp:variable | ||
| 479 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 480 | - ] | ||
| 481 | - ] [ rdf:type sp:Bind ; | ||
| 482 | - sp:expression | ||
| 483 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
| 484 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 485 | - ] | ||
| 486 | - ] ; | ||
| 487 | - sp:variable | ||
| 488 | - [ sp:varName "productionInstallation"^^xsd:string | ||
| 489 | - ] | ||
| 490 | - ] [ rdf:type sp:Bind ; | ||
| 491 | - sp:expression | ||
| 492 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
| 493 | - sp:arg1 [ sp:varName "installationKind"^^xsd:string | ||
| 494 | - ] | ||
| 495 | - ] ; | ||
| 496 | - sp:variable | ||
| 497 | - [ sp:varName "productionInstallationType"^^xsd:string | ||
| 498 | - ] | ||
| 499 | - ]) | ||
| 500 | - ] ; | ||
| 501 | - spin:rule | ||
| 502 | - [ rdf:type sp:Construct ; | ||
| 503 | - rdfs:comment "STEP 10001 Create the DailyProductionReport"^^xsd:string ; | ||
| 504 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ; | ||
| 505 | - sp:predicate rdf:type ; | ||
| 506 | - sp:subject | ||
| 507 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 508 | - ] | ||
| 509 | - ] [ sp:object | ||
| 510 | - [ sp:varName "docName"^^xsd:string | ||
| 511 | - ] ; | ||
| 512 | - sp:predicate rdfs:label ; | ||
| 513 | - sp:subject | ||
| 514 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 515 | - ] | ||
| 516 | - ] [ sp:object | ||
| 517 | - [ sp:varName "docDate"^^xsd:string | ||
| 518 | - ] ; | ||
| 519 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-report#dateCoveredByReport> ; | ||
| 520 | - sp:subject | ||
| 521 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 522 | - ] | ||
| 523 | - ] [ sp:object | ||
| 524 | - [ sp:varName "fileCreationDate"^^xsd:string | ||
| 525 | - ] ; | ||
| 526 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | ||
| 527 | - sp:subject | ||
| 528 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 529 | - ] | ||
| 530 | - ] [ sp:object spin:_this ; | ||
| 531 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
| 532 | - sp:subject | ||
| 533 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 534 | - ] | ||
| 535 | - ]) ; | ||
| 536 | - sp:where ([ sp:object | ||
| 537 | - [ sp:varName "documentInfoRef"^^xsd:string | ||
| 538 | - ] ; | ||
| 539 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentInfoRef> ; | ||
| 540 | - sp:subject spin:_this | ||
| 541 | - ] [ sp:object | ||
| 542 | - [ sp:varName "documentNameRef"^^xsd:string | ||
| 543 | - ] ; | ||
| 544 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentNameRef> ; | ||
| 545 | - sp:subject | ||
| 546 | - [ sp:varName "documentInfoRef"^^xsd:string | ||
| 547 | - ] | ||
| 548 | - ] [ sp:object | ||
| 549 | - [ sp:varName "documentName"^^xsd:string | ||
| 550 | - ] ; | ||
| 551 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 552 | - sp:subject | ||
| 553 | - [ sp:varName "documentNameRef"^^xsd:string | ||
| 554 | - ] | ||
| 555 | - ] [ sp:object | ||
| 556 | - [ sp:varName "documentDate"^^xsd:string | ||
| 557 | - ] ; | ||
| 558 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentDate> ; | ||
| 559 | - sp:subject | ||
| 560 | - [ sp:varName "documentInfoRef"^^xsd:string | ||
| 561 | - ] | ||
| 562 | - ] [ rdf:type sp:Optional ; | ||
| 563 | - sp:elements ([ sp:object | ||
| 564 | - [ sp:varName "fileCreationInformationRef"^^xsd:string | ||
| 565 | - ] ; | ||
| 566 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fileCreationInformationRef> ; | ||
| 567 | - sp:subject | ||
| 568 | - [ sp:varName "documentInfoRe"^^xsd:string | ||
| 569 | - ] | ||
| 570 | - ] [ sp:object | ||
| 571 | - [ sp:varName "fileCreationDate"^^xsd:string | ||
| 572 | - ] ; | ||
| 573 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fileCreationDate> ; | ||
| 574 | - sp:subject | ||
| 575 | - [ sp:varName "fileCreationInformationRef"^^xsd:string | ||
| 576 | - ] | ||
| 577 | - ]) | ||
| 578 | - ] [ rdf:type sp:Bind ; | ||
| 579 | - sp:expression | ||
| 580 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
| 581 | - sp:arg1 [ sp:varName "documentName"^^xsd:string | ||
| 582 | - ] | ||
| 583 | - ] ; | ||
| 584 | - sp:variable | ||
| 585 | - [ sp:varName "normalizedDocumentName"^^xsd:string | ||
| 586 | - ] | ||
| 587 | - ] [ rdf:type sp:Bind ; | ||
| 588 | - sp:expression | ||
| 589 | - [ rdf:type ep-dpr-spin-lib:buildDailyProductionReportURI ; | ||
| 590 | - sp:arg1 [ sp:varName "normalizedDocumentName"^^xsd:string | ||
| 591 | - ] ; | ||
| 592 | - sp:arg2 [ sp:varName "documentDate"^^xsd:string | ||
| 593 | - ] | ||
| 594 | - ] ; | ||
| 595 | - sp:variable | ||
| 596 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
| 597 | - ] | ||
| 598 | - ]) | ||
| 599 | - ] . |
This diff could not be displayed because it is too large.
-
Please register or login to post a comment